[*] Binary protection state of pwmctrl
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of pwmctrl
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/pwmctrl @ 0x9e0 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 3136 named .text */
0x000009e0 lui gp, 2 |
0x000009e4 addiu gp, gp, -0x69c0 |
0x000009e8 addu gp, gp, t9 | gp += t9;
0x000009ec addiu sp, sp, -0x78 |
0x000009f0 lw t9, -0x7fcc(gp) | t9 = sym.parse_cmdline;
0x000009f4 sw s2, 0x58(sp) | *(var_58h) = s2;
0x000009f8 lw s2, -0x7f54(gp) | s2 = *((gp - 8149));
0x000009fc sw gp, 0x18(sp) | *(var_18h) = gp;
0x00000a00 sw s1, 0x54(sp) | *(var_54h) = s1;
0x00000a04 lw v0, (s2) | v0 = *(s2);
0x00000a08 sw s0, 0x50(sp) | *(var_50h) = s0;
0x00000a0c sw ra, 0x74(sp) | *(var_74h) = ra;
0x00000a10 sw fp, 0x70(sp) | *(var_70h) = fp;
0x00000a14 sw s7, 0x6c(sp) | *(var_6ch) = s7;
0x00000a18 sw s6, 0x68(sp) | *(var_68h) = s6;
0x00000a1c sw s5, 0x64(sp) | *(var_64h) = s5;
0x00000a20 sw s4, 0x60(sp) | *(var_60h) = s4;
0x00000a24 sw s3, 0x5c(sp) | *(var_5ch) = s3;
0x00000a28 sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x00000a2c move s0, a1 | s0 = a1;
0x00000a30 bal 0x1370 | sym_parse_cmdline ();
0x00000a34 sll v0, v0, 2 | v0 <<= 2;
0x00000a38 addu s0, s0, v0 | s0 += v0;
0x00000a3c lw s1, (s0) | s1 = *(s0);
0x00000a40 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s1 == 0) {
0x00000a44 beqz s1, 0xfd4 | goto label_7;
| }
0x00000a48 lw t9, -0x7fc8(gp) | t9 = sym.lookup_pwm_port;
0x00000a4c move a0, s1 | a0 = s1;
0x00000a50 bal 0x1488 | sym_lookup_pwm_port ();
0x00000a54 addiu v1, zero, -1 | v1 = -1;
0x00000a58 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == v1) {
0x00000a5c beq v0, v1, 0xfac | goto label_8;
| }
0x00000a60 lw s0, 4(s0) | s0 = *((s0 + 1));
0x00000a64 lw a3, -0x7fdc(gp) | a3 = *((gp - 8183));
| if (s0 == 0) {
0x00000a68 beqz s0, 0xf88 | goto label_9;
| }
0x00000a6c lw t9, -0x7fa0(gp) | t9 = sym.imp.__sprintf_chk;
0x00000a70 addiu s3, sp, 0x3c | s3 = sp + 0x3c;
0x00000a74 addiu a3, a3, 0x1b10 | a3 += str._dev_gpiopwm_d;
0x00000a78 addiu a2, zero, 0xf | a2 = 0xf;
0x00000a7c addiu a1, zero, 1 | a1 = 1;
0x00000a80 move a0, s3 | a0 = s3;
0x00000a84 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00000a88 jalr t9 | t9 ();
0x00000a8c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000a90 addiu a1, zero, 2 | a1 = 2;
0x00000a94 lw t9, -0x7f74(gp) | t9 = sym.imp.open;
0x00000a98 move a0, s3 | a0 = s3;
0x00000a9c jalr t9 | t9 ();
0x00000aa0 move s4, v0 | s4 = v0;
0x00000aa4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x00000aa8 bltz v0, 0xf30 | goto label_10;
| }
0x00000aac lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000ab0 lw t9, -0x7f94(gp) | t9 = sym.imp.strncmp;
0x00000ab4 addiu a2, zero, 3 | a2 = 3;
0x00000ab8 addiu a1, a1, 0x1b40 | a1 += 0x1b40;
0x00000abc move a0, s0 | a0 = s0;
0x00000ac0 jalr t9 | t9 ();
0x00000ac4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00000ac8 beqz v0, 0xd08 | goto label_11;
| }
0x00000acc lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000ad0 lw t9, -0x7f94(gp) | t9 = sym.imp.strncmp;
0x00000ad4 addiu a2, zero, 4 | a2 = 4;
0x00000ad8 addiu a1, a1, 0x1b88 | a1 += str.mode;
0x00000adc move a0, s0 | a0 = s0;
0x00000ae0 jalr t9 | t9 ();
0x00000ae4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000ae8 beqz v0, 0xc6c |
0x00000aec lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000af0 lw t9, -0x7f94(gp) | t9 = sym.imp.strncmp;
0x00000af4 addiu a2, zero, 3 | a2 = 3;
0x00000af8 addiu a1, a1, 0x1bcc | a1 += 0x1bcc;
0x00000afc move a0, s0 | a0 = s0;
0x00000b00 jalr t9 | t9 ();
0x00000b04 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000b08 bnez v0, 0xdc4 | goto label_12;
| }
0x00000b0c lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000b10 addiu s3, s0, 3 | s3 = s0 + 3;
0x00000b14 addiu a2, zero, 0xa | a2 = 0xa;
0x00000b18 move a1, zero | a1 = 0;
0x00000b1c move a0, s3 | a0 = s3;
0x00000b20 jalr t9 | t9 ();
0x00000b24 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000b28 addiu a1, zero, 0x2f | a1 = 0x2f;
0x00000b2c move a0, s3 | a0 = s3;
0x00000b30 lw t9, -0x7f78(gp) | t9 = sym.imp.strchr;
0x00000b34 move s7, v0 | s7 = v0;
0x00000b38 jalr t9 | t9 ();
0x00000b3c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00000b40 beqz v0, 0xe0c | goto label_13;
| }
0x00000b44 lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000b48 addiu a2, zero, 0xa | a2 = 0xa;
0x00000b4c move a1, zero | a1 = 0;
0x00000b50 addiu a0, v0, 1 | a0 = v0 + 1;
0x00000b54 jalr t9 | t9 ();
0x00000b58 move s6, v0 | s6 = v0;
0x00000b5c lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00000b60 bnez v0, 0xb68 |
0x00000b64 addiu s6, zero, 2 | s6 = 2;
| }
| label_2:
0x00000b68 lw t9, -0x7f78(gp) | t9 = sym.imp.strchr;
0x00000b6c addiu a1, zero, 0x40 | a1 = 0x40;
0x00000b70 move a0, s3 | a0 = s3;
0x00000b74 jalr t9 | t9 ();
0x00000b78 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00000b7c beqz v0, 0xebc | goto label_14;
| }
0x00000b80 lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000b84 addiu a2, zero, 0xa | a2 = 0xa;
0x00000b88 move a1, zero | a1 = 0;
0x00000b8c addiu a0, v0, 1 | a0 = v0 + 1;
0x00000b90 jalr t9 | t9 ();
0x00000b94 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000b98 move fp, v0 | fp = v0;
| label_5:
0x00000b9c lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000ba0 move a1, zero | a1 = 0;
0x00000ba4 move a0, s1 | a0 = s1;
0x00000ba8 addiu a2, zero, 0xa | a2 = 0xa;
0x00000bac jalr t9 | t9 ();
0x00000bb0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000bb4 mul a0, s6, fp | __asm ("mul a0, s6, fp");
0x00000bb8 subu a1, s6, s7 | __asm ("subu a1, s6, s7");
0x00000bbc lw s3, -0x7fd8(gp) | s3 = *(gp);
0x00000bc0 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x00000bc4 sw a1, 0x34(sp) | *(var_34h) = a1;
0x00000bc8 lw v1, (s3) | v1 = *(s3);
0x00000bcc sw a0, 0x30(sp) | *(var_30h) = a0;
0x00000bd0 sw s7, 0x38(sp) | *(var_38h) = s7;
0x00000bd4 addiu s5, sp, 0x2c | s5 = sp + 0x2c;
| if (v1 != 0) {
0x00000bd8 beqz v1, 0xbf8 |
0x00000bdc lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000be0 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000be4 move a1, s5 | a1 = s5;
0x00000be8 addiu t9, t9, 0x1160 | t9 += fcn.00001160;
0x00000bec addiu a0, a0, 0x1bd0 | a0 += str.pwm_in_;
0x00000bf0 bal 0x1160 | fcn_00001160 ();
0x00000bf4 lw gp, 0x18(sp) | gp = *(var_18h);
| }
0x00000bf8 lw t9, -0x7f60(gp) | t9 = sym.imp.ioctl;
0x00000bfc lui a1, 0x2000 | a1 = 0x20000000;
0x00000c00 move a2, s5 | a2 = s5;
0x00000c04 addiu a1, a1, 0x2b26 | a1 += 0x2b26;
0x00000c08 move a0, s4 | a0 = s4;
0x00000c0c jalr t9 | t9 ();
0x00000c10 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000c14 bnez v0, 0xec8 | goto label_15;
| }
| label_6:
0x00000c18 lw v0, (s3) | v0 = *(s3);
0x00000c1c lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
| if (v0 != 0) {
0x00000c20 beqz v0, 0xc44 |
0x00000c24 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000c28 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000c2c move a1, s5 | a1 = s5;
0x00000c30 addiu t9, t9, 0x1160 | t9 += fcn.00001160;
0x00000c34 addiu a0, a0, 0x1bfc | a0 += str.pwm_out;
0x00000c38 bal 0x1160 | fcn_00001160 ();
0x00000c3c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000c40 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
| }
0x00000c44 lw t9, -0x7f88(gp) | t9 = sym.imp.__printf_chk;
0x00000c48 sw fp, 0x14(sp) | *(var_14h) = fp;
0x00000c4c sw s6, 0x10(sp) | *(var_10h) = s6;
0x00000c50 move a3, s7 | a3 = s7;
0x00000c54 move a2, s1 | a2 = s1;
0x00000c58 addiu a1, a1, 0x1c04 | a1 += str._s__duty:__lu__lu_frequency:__lu_n;
0x00000c5c addiu a0, zero, 1 | a0 = 1;
0x00000c60 jalr t9 | t9 ();
0x00000c64 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000c68 b 0xcc8 |
| } else {
0x00000c6c lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000c70 addiu a2, zero, 0xa | a2 = 0xa;
0x00000c74 move a1, zero | a1 = 0;
0x00000c78 addiu a0, s0, 4 | a0 = s0 + 4;
0x00000c7c jalr t9 | t9 ();
0x00000c80 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000c84 lui a1, 0x2000 | a1 = 0x20000000;
0x00000c88 addiu a2, sp, 0x2c | a2 = sp + 0x2c;
0x00000c8c lw t9, -0x7f60(gp) | t9 = sym.imp.ioctl;
0x00000c90 addiu a1, a1, 0x2b20 | a1 += 0x2b20;
0x00000c94 move a0, s4 | a0 = s4;
0x00000c98 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x00000c9c jalr t9 | t9 ();
0x00000ca0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000ca4 bnez v0, 0xe14 | goto label_16;
| }
| label_3:
0x00000ca8 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000cac lw t9, -0x7f88(gp) | t9 = sym.imp.__printf_chk;
0x00000cb0 lw a3, 0x2c(sp) | a3 = *(var_2ch);
0x00000cb4 move a2, s1 | a2 = s1;
0x00000cb8 addiu a1, a1, 0x1bbc | a1 += str._s__mode:__d_n;
0x00000cbc addiu a0, zero, 1 | a0 = 1;
0x00000cc0 jalr t9 | t9 ();
0x00000cc4 lw gp, 0x18(sp) | gp = *(var_18h);
| }
| do {
| label_0:
0x00000cc8 lw a0, 0x4c(sp) | a0 = *(var_4ch);
0x00000ccc lw v1, (s2) | v1 = *(s2);
0x00000cd0 move v0, zero | v0 = 0;
| if (a0 != v1) {
0x00000cd4 bne a0, v1, 0xf24 | goto label_17;
| }
0x00000cd8 lw ra, 0x74(sp) | ra = *(var_74h);
0x00000cdc lw fp, 0x70(sp) | fp = *(var_70h);
0x00000ce0 lw s7, 0x6c(sp) | s7 = *(var_6ch);
0x00000ce4 lw s6, 0x68(sp) | s6 = *(var_68h);
0x00000ce8 lw s5, 0x64(sp) | s5 = *(var_64h);
0x00000cec lw s4, 0x60(sp) | s4 = *(var_60h);
0x00000cf0 lw s3, 0x5c(sp) | s3 = *(var_5ch);
0x00000cf4 lw s2, 0x58(sp) | s2 = *(var_58h);
0x00000cf8 lw s1, 0x54(sp) | s1 = *(var_54h);
0x00000cfc lw s0, 0x50(sp) | s0 = *(var_50h);
0x00000d00 addiu sp, sp, 0x78 |
0x00000d04 jr ra | return v0;
| label_11:
0x00000d08 lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000d0c addiu a2, zero, 0xa | a2 = 0xa;
0x00000d10 move a1, zero | a1 = 0;
0x00000d14 lw s3, -0x7fd8(gp) | s3 = *(gp);
0x00000d18 move a0, s1 | a0 = s1;
0x00000d1c jalr t9 | t9 ();
0x00000d20 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000d24 addiu a2, zero, 0xa | a2 = 0xa;
0x00000d28 move a1, zero | a1 = 0;
0x00000d2c lw t9, -0x7f98(gp) | t9 = sym.imp.strtol;
0x00000d30 addiu a0, s0, 3 | a0 = s0 + 3;
0x00000d34 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x00000d38 jalr t9 | t9 ();
0x00000d3c lw v1, (s3) | v1 = *(s3);
0x00000d40 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000d44 sw v0, 0x30(sp) | *(var_30h) = v0;
0x00000d48 sw zero, 0x34(sp) | *(var_34h) = 0;
0x00000d4c sw zero, 0x38(sp) | *(var_38h) = 0;
0x00000d50 addiu s5, sp, 0x2c | s5 = sp + 0x2c;
| if (v1 != 0) {
0x00000d54 bnez v1, 0xdec | goto label_18;
| }
| label_1:
0x00000d58 lw t9, -0x7f60(gp) | t9 = sym.imp.ioctl;
0x00000d5c lui a1, 0x2000 | a1 = 0x20000000;
0x00000d60 move a2, s5 | a2 = s5;
0x00000d64 addiu a1, a1, 0x2b26 | a1 += 0x2b26;
0x00000d68 move a0, s4 | a0 = s4;
0x00000d6c jalr t9 | t9 ();
0x00000d70 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000d74 bnez v0, 0xe68 | goto label_19;
| }
| label_4:
0x00000d78 lw v0, (s3) | v0 = *(s3);
0x00000d7c lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
| if (v0 != 0) {
0x00000d80 beqz v0, 0xda4 |
0x00000d84 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000d88 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000d8c move a1, s5 | a1 = s5;
0x00000d90 addiu t9, t9, 0x1160 | t9 += fcn.00001160;
0x00000d94 addiu a0, a0, 0x1b70 | a0 += str.clk_out;
0x00000d98 bal 0x1160 | fcn_00001160 ();
0x00000d9c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000da0 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
| }
0x00000da4 lw t9, -0x7f88(gp) | t9 = sym.imp.__printf_chk;
0x00000da8 lw a3, 0x30(sp) | a3 = *(var_30h);
0x00000dac move a2, s1 | a2 = s1;
0x00000db0 addiu a1, a1, 0x1b78 | a1 += str._s__clk:__d_n;
0x00000db4 addiu a0, zero, 1 | a0 = 1;
0x00000db8 jalr t9 | t9 ();
0x00000dbc lw gp, 0x18(sp) | gp = *(var_18h);
0x00000dc0 b 0xcc8 |
| } while (1);
| label_12:
0x00000dc4 lw v0, -0x7f50(gp) | v0 = *((gp - 8148));
0x00000dc8 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000dcc lw t9, -0x7f8c(gp) | t9 = sym.imp.__fprintf_chk
0x00000dd0 lw a0, (v0) | a0 = *(v0);
0x00000dd4 move a3, s0 | a3 = s0;
0x00000dd8 addiu a2, a2, 0x1c28 | a2 += str.Unsupported_cmd:__s_n;
0x00000ddc addiu a1, zero, 1 | a1 = 1;
0x00000de0 jalr t9 | t9 ();
0x00000de4 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000de8 b 0xcc8 | goto label_0;
| label_18:
0x00000dec lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000df0 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000df4 move a1, s5 | a1 = s5;
0x00000df8 addiu t9, t9, 0x1160 | t9 += fcn.00001160;
0x00000dfc addiu a0, a0, 0x1b44 | a0 += str.clk_in_;
0x00000e00 bal 0x1160 | fcn_00001160 ();
0x00000e04 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000e08 b 0xd58 | goto label_1;
| label_13:
0x00000e0c addiu s6, zero, 0x2710 | s6 = 0x2710;
0x00000e10 b 0xb68 | goto label_2;
| label_16:
0x00000e14 lw v0, -0x7f50(gp) | v0 = *((gp - 8148));
0x00000e18 lw t9, -0x7f84(gp) | t9 = sym.imp.__errno_location;
0x00000e1c lw s4, (v0) | s4 = *(v0);
0x00000e20 jalr t9 | t9 ();
0x00000e24 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000e28 lw s3, (v0) | s3 = *(v0);
0x00000e2c lw t9, -0x7f68(gp) | t9 = sym.imp.strerror;
0x00000e30 move a0, s3 | a0 = s3;
0x00000e34 jalr t9 | t9 ();
0x00000e38 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000e3c sw v0, 0x14(sp) | *(var_14h) = v0;
0x00000e40 sw s3, 0x10(sp) | *(var_10h) = s3;
0x00000e44 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000e48 lw t9, -0x7f8c(gp) | t9 = sym.imp.__fprintf_chk
0x00000e4c move a3, s0 | a3 = s0;
0x00000e50 addiu a2, a2, 0x1b90 | a2 += str.Failed_to_set_pwm_mode:__s_error:__i__s_n;
0x00000e54 addiu a1, zero, 1 | a1 = 1;
0x00000e58 move a0, s4 | a0 = s4;
0x00000e5c jalr t9 | t9 ();
0x00000e60 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000e64 b 0xca8 | goto label_3;
| label_19:
0x00000e68 lw v0, -0x7f50(gp) | v0 = *((gp - 8148));
0x00000e6c lw t9, -0x7f84(gp) | t9 = sym.imp.__errno_location;
0x00000e70 lw s6, (v0) | s6 = *(v0);
0x00000e74 jalr t9 | t9 ();
0x00000e78 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000e7c lw s4, (v0) | s4 = *(v0);
0x00000e80 lw t9, -0x7f68(gp) | t9 = sym.imp.strerror;
0x00000e84 move a0, s4 | a0 = s4;
0x00000e88 jalr t9 | t9 ();
0x00000e8c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000e90 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00000e94 sw s4, 0x10(sp) | *(var_10h) = s4;
0x00000e98 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000e9c lw t9, -0x7f8c(gp) | t9 = sym.imp.__fprintf_chk
0x00000ea0 move a3, s0 | a3 = s0;
0x00000ea4 addiu a2, a2, 0x1b4c | a2 += str.Failed_to_set_clk:__s_error:__i__s_n;
0x00000ea8 addiu a1, zero, 1 | a1 = 1;
0x00000eac move a0, s6 | a0 = s6;
0x00000eb0 jalr t9 | t9 ();
0x00000eb4 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000eb8 b 0xd78 | goto label_4;
| label_14:
0x00000ebc lui fp, 1 | fp = 0x186a0;
0x00000ec0 ori fp, fp, 0x86a0 |
0x00000ec4 b 0xb9c | goto label_5;
| label_15:
0x00000ec8 lw v0, -0x7f50(gp) | v0 = *((gp - 8148));
0x00000ecc lw t9, -0x7f84(gp) | t9 = sym.imp.__errno_location;
0x00000ed0 lw v1, (v0) | v1 = *(v0);
0x00000ed4 sw v1, 0x24(sp) | *(var_24h) = v1;
0x00000ed8 jalr t9 | t9 ();
0x00000edc lw gp, 0x18(sp) | gp = *(var_18h);
0x00000ee0 lw s4, (v0) | s4 = *(v0);
0x00000ee4 lw t9, -0x7f68(gp) | t9 = sym.imp.strerror;
0x00000ee8 move a0, s4 | a0 = s4;
0x00000eec jalr t9 | t9 ();
0x00000ef0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000ef4 lw v1, 0x24(sp) | v1 = *(var_24h);
0x00000ef8 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00000efc lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000f00 lw t9, -0x7f8c(gp) | t9 = sym.imp.__fprintf_chk
0x00000f04 sw s4, 0x10(sp) | *(var_10h) = s4;
0x00000f08 move a3, s0 | a3 = s0;
0x00000f0c addiu a2, a2, 0x1bd8 | a2 += str.Failed_to_set_pwm:__s_error:__i__s_n;
0x00000f10 addiu a1, zero, 1 | a1 = 1;
0x00000f14 move a0, v1 | a0 = v1;
0x00000f18 jalr t9 | t9 ();
0x00000f1c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000f20 b 0xc18 | goto label_6;
| label_17:
0x00000f24 lw t9, -0x7f5c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00000f28 jalr t9 | t9 ();
0x00000f2c nop |
| label_10:
0x00000f30 lw t9, -0x7f84(gp) | t9 = sym.imp.__errno_location;
0x00000f34 jalr t9 | t9 ();
0x00000f38 nop |
0x00000f3c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000f40 lw a0, (v0) | a0 = *(v0);
0x00000f44 lw v0, -0x7f50(gp) | v0 = *((gp - 8148));
0x00000f48 lw t9, -0x7f68(gp) | t9 = sym.imp.strerror;
0x00000f4c lw s0, (v0) | s0 = *(v0);
0x00000f50 jalr t9 | t9 ();
0x00000f54 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000f58 move a0, s0 | a0 = s0;
0x00000f5c sw v0, 0x10(sp) | *(var_10h) = v0;
0x00000f60 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000f64 lw t9, -0x7f8c(gp) | t9 = sym.imp.__fprintf_chk
0x00000f68 move a3, s3 | a3 = s3;
0x00000f6c addiu a2, a2, 0x1b20 | a2 += str.Unable_to_open_device__s.__s;
0x00000f70 addiu a1, zero, 1 | a1 = 1;
0x00000f74 jalr t9 | t9 ();
0x00000f78 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000f7c lw t9, -0x7f70(gp) | t9 = sym.imp.exit;
0x00000f80 addiu a0, zero, 1 | a0 = 1;
0x00000f84 jalr t9 | t9 ();
| label_9:
0x00000f88 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000f8c lw t9, -0x7f64(gp) | t9 = sym.imp.puts;
0x00000f90 addiu a0, a0, 0x1af4 | a0 += str.command_argument_missing;
| do {
0x00000f94 jalr t9 | t9 ();
0x00000f98 nop |
0x00000f9c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000fa0 lw t9, -0x7f70(gp) | t9 = sym.imp.exit;
0x00000fa4 addiu a0, zero, 1 | a0 = 1;
0x00000fa8 jalr t9 | t9 ();
| label_8:
0x00000fac lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00000fb0 lw t9, -0x7f88(gp) | t9 = sym.imp.__printf_chk;
0x00000fb4 addiu a0, zero, 1 | a0 = 1;
0x00000fb8 move a2, s1 | a2 = s1;
0x00000fbc addiu a1, a1, 0x1ad4 | a1 += str.pin__s_is_not_an_pwm_device_n;
0x00000fc0 jalr t9 | t9 ();
0x00000fc4 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000fc8 lw t9, -0x7f70(gp) | t9 = sym.imp.exit;
0x00000fcc addiu a0, zero, 1 | a0 = 1;
0x00000fd0 jalr t9 | t9 ();
| label_7:
0x00000fd4 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000fd8 lw t9, -0x7f64(gp) | t9 = sym.imp.puts;
0x00000fdc addiu a0, a0, 0x1abc | a0 += str.pin_argument_missing;
0x00000fe0 b 0xf94 |
| } while (1);
| }
[*] Function fprintf used 6 times pwmctrl