[*] Binary protection state of setled
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of setled
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/setled @ 0x18a0 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 5840 named .text */
0x000018a0 lui gp, 2 |
0x000018a4 addiu gp, gp, -0x3890 |
0x000018a8 addu gp, gp, t9 | gp += t9;
0x000018ac lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x000018b0 addiu sp, sp, -0x118 |
0x000018b4 addiu v0, zero, 1 | v0 = 1;
0x000018b8 sw a0, 0x118(sp) | *(arg_118h) = a0;
0x000018bc sw a1, 0x1c(sp) | *(var_1ch) = a1;
0x000018c0 lw a0, 0x3340(v1) | a0 = *((v1 + 3280));
0x000018c4 lw a1, 0x3344(v1) | a1 = *((v1 + 3281));
0x000018c8 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x000018cc sw s0, 0xf0(sp) | *(var_f0h) = s0;
0x000018d0 addiu v1, v1, 0x34b8 | v1 += 0x34b8;
0x000018d4 sw v1, 0x44(sp) | *(var_44h) = v1;
0x000018d8 addiu v1, zero, 0x6c | v1 = 0x6c;
0x000018dc sb v1, 0x48(sp) | *(var_48h) = v1;
0x000018e0 addiu v1, sp, 0x24 | v1 = sp + 0x24;
0x000018e4 sw v1, 0x54(sp) | *(var_54h) = v1;
0x000018e8 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x000018ec lw s0, -0x7f30(gp) | s0 = *((gp - 8140));
0x000018f0 addiu v1, v1, 0x3148 | v1 += str.Led_name;
0x000018f4 sw v1, 0x58(sp) | *(var_58h) = v1;
0x000018f8 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x000018fc lw a2, (s0) | a2 = *(s0);
0x00001900 addiu v1, v1, 0x3154 | v1 += str.color1;
0x00001904 sw v1, 0x60(sp) | *(var_60h) = v1;
0x00001908 addiu v1, zero, 0x63 | v1 = 0x63;
0x0000190c sb v1, 0x64(sp) | *(var_64h) = v1;
0x00001910 addiu v1, sp, 0x28 | v1 = sp + 0x28;
0x00001914 sw v1, 0x70(sp) | *(var_70h) = v1;
0x00001918 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x0000191c sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001920 addiu v1, v1, 0x315c | v1 += str.First_color;
0x00001924 sw v1, 0x74(sp) | *(var_74h) = v1;
0x00001928 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x0000192c sw ra, 0x114(sp) | *(var_114h) = ra;
0x00001930 addiu v1, v1, 0x3168 | v1 += str.color2;
0x00001934 sw v1, 0x7c(sp) | *(var_7ch) = v1;
0x00001938 addiu v1, zero, 0x64 | v1 = 0x64;
0x0000193c sw a2, 0xec(sp) | *(var_ech) = a2;
0x00001940 sw a0, 0x38(sp) | *(var_38h) = a0;
0x00001944 sw a1, 0x3c(sp) | *(var_3ch) = a1;
0x00001948 sw v0, 0x50(sp) | *(var_50h) = v0;
0x0000194c sw v0, 0x6c(sp) | *(var_6ch) = v0;
0x00001950 sw fp, 0x110(sp) | *(var_110h) = fp;
0x00001954 sw s7, 0x10c(sp) | *(var_10ch) = s7;
0x00001958 sw s6, 0x108(sp) | *(var_108h) = s6;
0x0000195c sw s5, 0x104(sp) | *(var_104h) = s5;
0x00001960 sw s4, 0x100(sp) | *(var_100h) = s4;
0x00001964 sw s3, 0xfc(sp) | *(var_fch) = s3;
0x00001968 sw s2, 0xf8(sp) | *(var_f8h) = s2;
0x0000196c sw s1, 0xf4(sp) | *(var_f4h) = s1;
0x00001970 sb v1, 0x80(sp) | *(var_80h) = v1;
0x00001974 addiu v1, sp, 0x2c | v1 = sp + 0x2c;
0x00001978 sw v1, 0x8c(sp) | *(var_8ch) = v1;
0x0000197c lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x00001980 sw v0, 0x88(sp) | *(var_88h) = v0;
0x00001984 addiu v1, v1, 0x3170 | v1 += str.Second_color;
0x00001988 sw v1, 0x90(sp) | *(var_90h) = v1;
0x0000198c lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x00001990 sw v0, 0xc0(sp) | *(var_c0h) = v0;
0x00001994 addiu v1, v1, 0x3514 | v1 += 0x3514;
0x00001998 sw v1, 0x98(sp) | *(var_98h) = v1;
0x0000199c addiu v1, zero, 0x69 | v1 = 0x69;
0x000019a0 sb v1, 0x9c(sp) | *(var_9ch) = v1;
0x000019a4 addiu v1, zero, 7 | v1 = 7;
0x000019a8 sw v1, 0xa4(sp) | *(var_a4h) = v1;
0x000019ac addiu v1, sp, 0x38 | v1 = sp + 0x38;
0x000019b0 sw v1, 0xa8(sp) | *(var_a8h) = v1;
0x000019b4 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x000019b8 addiu v0, sp, 0x30 | v0 = sp + 0x30;
0x000019bc addiu v1, v1, 0x3180 | v1 += str.Flash_interval;
0x000019c0 sw v1, 0xac(sp) | *(var_ach) = v1;
0x000019c4 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x000019c8 sw v0, 0xc4(sp) | *(var_c4h) = v0;
0x000019cc lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x000019d0 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x000019d4 addiu v1, v1, 0x3454 | v1 += 0x3454;
0x000019d8 lw t9, -0x7f4c(gp) | t9 = sym.imp.system;
0x000019dc sw v1, 0xb4(sp) | *(var_b4h) = v1;
0x000019e0 addiu v0, v0, 0x3190 | v0 += str.State_name;
0x000019e4 addiu v1, zero, 0x73 | v1 = 0x73;
0x000019e8 sb v1, 0xb8(sp) | *(var_b8h) = v1;
0x000019ec sw v0, 0xc8(sp) | *(var_c8h) = v0;
0x000019f0 sw zero, 0x24(sp) | *(var_24h) = 0;
0x000019f4 sw zero, 0x28(sp) | *(var_28h) = 0;
0x000019f8 sw zero, 0x2c(sp) | *(var_2ch) = 0;
0x000019fc sw zero, 0x30(sp) | *(var_30h) = 0;
0x00001a00 sw zero, 0x34(sp) | *(var_34h) = 0;
0x00001a04 sw zero, 0x4c(sp) | *(var_4ch) = 0;
0x00001a08 sw zero, 0x5c(sp) | *(var_5ch) = 0;
0x00001a0c sw zero, 0x68(sp) | *(var_68h) = 0;
0x00001a10 sw zero, 0x78(sp) | *(var_78h) = 0;
0x00001a14 sw zero, 0x84(sp) | *(var_84h) = 0;
0x00001a18 sw zero, 0x94(sp) | *(var_94h) = 0;
0x00001a1c addiu a0, a0, 0x319c | a0 += str.pidof_blinkenlights;
0x00001a20 sw zero, 0xa0(sp) | *(var_a0h) = 0;
0x00001a24 sw zero, 0xb0(sp) | *(var_b0h) = 0;
0x00001a28 sw zero, 0xbc(sp) | *(var_bch) = 0;
0x00001a2c sw zero, 0xcc(sp) | *(var_cch) = 0;
0x00001a30 sw zero, 0xd0(sp) | *(var_d0h) = 0;
0x00001a34 sb zero, 0xd4(sp) | *(var_d4h) = 0;
0x00001a38 sw zero, 0xd8(sp) | *(var_d8h) = 0;
0x00001a3c sw zero, 0xdc(sp) | *(var_dch) = 0;
0x00001a40 sw zero, 0xe0(sp) | *(var_e0h) = 0;
0x00001a44 sw zero, 0xe4(sp) | *(var_e4h) = 0;
0x00001a48 sw zero, 0xe8(sp) | *(var_e8h) = 0;
0x00001a4c jalr t9 | t9 ();
0x00001a50 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001a54 beqz v0, 0x1bbc | goto label_5;
| }
0x00001a58 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00001a5c lw t9, -0x7f68(gp) | t9 = sym.imp.g_option_context_new;
0x00001a60 addiu a0, a0, 0x3270 | a0 += 0x3270;
0x00001a64 jalr t9 | t9 ();
0x00001a68 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001a6c move a0, v0 | a0 = v0;
0x00001a70 move a2, zero | a2 = 0;
0x00001a74 lw t9, -0x7f14(gp) | t9 = sym.imp.g_option_context_add_main_entries;
0x00001a78 addiu a1, sp, 0x44 | a1 = sp + 0x44;
0x00001a7c move s1, v0 | s1 = v0;
0x00001a80 jalr t9 | t9 ();
0x00001a84 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001a88 addiu a3, sp, 0x34 | a3 = sp + 0x34;
0x00001a8c addiu a2, sp, 0x1c | a2 = sp + 0x1c;
0x00001a90 lw t9, -0x7f60(gp) | t9 = sym.imp.g_option_context_parse;
0x00001a94 addiu a1, sp, 0x118 | a1 = sp + 0x118;
0x00001a98 move a0, s1 | a0 = s1;
0x00001a9c jalr t9 | t9 ();
0x00001aa0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00001aa4 beqz v0, 0x1b50 |
0x00001aa8 lw t9, -0x7f28(gp) | t9 = sym.imp.g_option_context_free;
0x00001aac move a0, s1 | a0 = s1;
0x00001ab0 jalr t9 | t9 ();
0x00001ab4 lw v0, 0x28(sp) | v0 = *(var_28h);
0x00001ab8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001abc beqz v0, 0x1de4 | goto label_6;
| }
0x00001ac0 lw v0, 0x24(sp) | v0 = *(var_24h);
0x00001ac4 lw t9, -0x7fd8(gp) | t9 = sym.plugin_led_lib_init;
| if (v0 == 0) {
0x00001ac8 beqz v0, 0x1de4 | goto label_6;
| }
0x00001acc bal 0x25dc | sym_plugin_led_lib_init ();
0x00001ad0 nop |
0x00001ad4 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001ad8 beqz v0, 0x1be0 | goto label_7;
| }
0x00001adc lw s1, 0x30(sp) | s1 = *(var_30h);
0x00001ae0 lw s2, -0x7fdc(gp) | s2 = *((gp - 8183));
| if (s1 == 0) {
0x00001ae4 beqz s1, 0x1c18 | goto label_8;
| }
0x00001ae8 lw t9, -0x7f78(gp) | t9 = sym.imp.g_file_test;
0x00001aec addiu a1, zero, 0x10 | a1 = 0x10;
0x00001af0 addiu a0, s2, 0x3274 | a0 = s2 + str._var_run_setled_states;
0x00001af4 jalr t9 | t9 ();
0x00001af8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001afc beqz v0, 0x1be8 | goto label_9;
| }
0x00001b00 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001b04 lw t9, -0x7f24(gp) | t9 = sym.imp.fopen;
0x00001b08 addiu a1, a1, 0x328c | a1 += 0x328c;
0x00001b0c addiu a0, s2, 0x3274 | a0 = s2 + str._var_run_setled_states;
0x00001b10 jalr t9 | t9 ();
0x00001b14 move s3, v0 | s3 = v0;
0x00001b18 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001b1c beqz v0, 0x1f28 | goto label_10;
| }
0x00001b20 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001b24 lw t9, -0x7f1c(gp) | t9 = sym.imp.g_fprintf
0x00001b28 move a2, s1 | a2 = s1;
0x00001b2c addiu a1, a1, 0x32ac | a1 += 0x32ac;
0x00001b30 move a0, v0 | a0 = v0;
0x00001b34 jalr t9 | t9 ();
0x00001b38 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001b3c lw t9, -0x7f6c(gp) | t9 = sym.imp.fclose;
0x00001b40 move a0, s3 | a0 = s3;
0x00001b44 jalr t9 | t9 ();
0x00001b48 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001b4c b 0x1c08 | goto label_4;
| }
0x00001b50 lw v0, 0x34(sp) | v0 = *(var_34h);
0x00001b54 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00001b58 lw t9, -0x7f34(gp) | t9 = sym.imp.g_printerr;
0x00001b5c lw a1, 8(v0) | a1 = *((v0 + 2));
0x00001b60 addiu a0, a0, 0x31ec | a0 += str._s_nTry____or___help_for_more_information._n;
0x00001b64 jalr t9 | t9 ();
0x00001b68 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001b6c lw t9, -0x7f7c(gp) | t9 = sym.imp.g_error_free;
0x00001b70 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00001b74 jalr t9 | t9 ();
0x00001b78 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001b7c addiu v0, zero, 1 | v0 = 1;
| do {
| label_0:
0x00001b80 lw a0, 0xec(sp) | a0 = *(var_ech);
0x00001b84 lw v1, (s0) | v1 = *(s0);
0x00001b88 lw ra, 0x114(sp) | ra = *(var_114h);
| if (a0 != v1) {
0x00001b8c bne a0, v1, 0x1f64 | goto label_11;
| }
0x00001b90 lw fp, 0x110(sp) | fp = *(var_110h);
0x00001b94 lw s7, 0x10c(sp) | s7 = *(var_10ch);
0x00001b98 lw s6, 0x108(sp) | s6 = *(var_108h);
0x00001b9c lw s5, 0x104(sp) | s5 = *(var_104h);
0x00001ba0 lw s4, 0x100(sp) | s4 = *(var_100h);
0x00001ba4 lw s3, 0xfc(sp) | s3 = *(var_fch);
0x00001ba8 lw s2, 0xf8(sp) | s2 = *(var_f8h);
0x00001bac lw s1, 0xf4(sp) | s1 = *(var_f4h);
0x00001bb0 lw s0, 0xf0(sp) | s0 = *(var_f0h);
0x00001bb4 addiu sp, sp, 0x118 |
0x00001bb8 jr ra | return v0;
| label_5:
0x00001bbc lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001bc0 lw t9, -0x7f64(gp) | t9 = sym.imp.__syslog_chk;
0x00001bc4 addiu a2, a2, 0x31b0 | a2 += str.Error:_setled_usage_disallowed_while_blinkenlights_running;
| label_1:
0x00001bc8 addiu a1, zero, 1 | a1 = 1;
0x00001bcc addiu a0, zero, 3 | a0 = 3;
0x00001bd0 jalr t9 | t9 ();
0x00001bd4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001bd8 addiu v0, zero, 1 | v0 = 1;
0x00001bdc b 0x1b80 |
| } while (1);
| label_7:
0x00001be0 addiu v0, zero, 1 | v0 = 1;
0x00001be4 b 0x1b80 | goto label_0;
| label_9:
0x00001be8 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001bec lw t9, -0x7f64(gp) | t9 = sym.imp.__syslog_chk;
0x00001bf0 addiu a3, s2, 0x3274 | a3 = s2 + str._var_run_setled_states;
0x00001bf4 addiu a2, a2, 0x32b0 | a2 += str.File__s_does_not_exist:__m;
0x00001bf8 addiu a1, zero, 1 | a1 = 1;
0x00001bfc addiu a0, zero, 4 | a0 = 4;
0x00001c00 jalr t9 | t9 ();
0x00001c04 lw gp, 0x10(sp) | gp = *(var_10h);
| label_4:
0x00001c08 lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001c0c lw a0, 0x30(sp) | a0 = *(var_30h);
0x00001c10 jalr t9 | t9 ();
0x00001c14 lw gp, 0x10(sp) | gp = *(var_10h);
| label_8:
0x00001c18 lw t9, -0x7f44(gp) | t9 = sym.imp.daemon;
0x00001c1c move a1, zero | a1 = 0;
0x00001c20 move a0, zero | a0 = 0;
0x00001c24 jalr t9 | t9 ();
0x00001c28 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 < 0) {
0x00001c2c bltz v0, 0x1f00 | goto label_12;
| }
| label_3:
0x00001c30 lw s3, -0x7fdc(gp) | s3 = *((gp - 8183));
0x00001c34 addiu s3, s3, 0x20e0 | s3 += fcn.000020e0;
0x00001c38 move t9, s3 | t9 = s3;
0x00001c3c lw a0, 0x28(sp) | a0 = *(var_28h);
0x00001c40 bal 0x20e0 | fcn_000020e0 ();
0x00001c44 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001c48 lw a0, 0x28(sp) | a0 = *(var_28h);
0x00001c4c lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001c50 move s2, v0 | s2 = v0;
0x00001c54 jalr t9 | t9 ();
0x00001c58 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001c5c lw s1, 0x24(sp) | s1 = *(var_24h);
0x00001c60 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001c64 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001c68 addiu a1, a1, 0x4648 | a1 += 0x4648;
0x00001c6c move a0, s1 | a0 = s1;
0x00001c70 jalr t9 | t9 ();
0x00001c74 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00001c78 bnez v0, 0x1e48 | goto label_13;
| }
0x00001c7c addiu s1, zero, 1 | s1 = 1;
| label_2:
0x00001c80 lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001c84 lw a0, 0x24(sp) | a0 = *(var_24h);
0x00001c88 jalr t9 | t9 ();
0x00001c8c lw s4, 0x2c(sp) | s4 = *(var_2ch);
0x00001c90 lw gp, 0x10(sp) | gp = *(var_10h);
| if (s4 != 0) {
0x00001c94 beqz s4, 0x1cb8 |
0x00001c98 lw t9, -0x7fd4(gp) | t9 = *(gp);
0x00001c9c lw a0, 0x38(sp) | a0 = *(var_38h);
0x00001ca0 lw a1, 0x3c(sp) | a1 = *(var_3ch);
0x00001ca4 move a2, zero | a2 = 0;
0x00001ca8 move a3, zero | a3 = 0;
0x00001cac bal 0x2760 | fcn_00002760 ();
0x00001cb0 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 > 0) {
0x00001cb4 bgtz v0, 0x1ce8 | goto label_14;
| }
| }
0x00001cb8 lw t9, -0x7fd0(gp) | t9 = sym.plugin_led_lib_set_action;
0x00001cbc move a1, s2 | a1 = s2;
0x00001cc0 move a0, s1 | a0 = s1;
0x00001cc4 bal 0x24bc | sym_plugin_led_lib_set_action ();
0x00001cc8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001ccc beqz v0, 0x1dd4 | goto label_15;
| }
0x00001cd0 lw t9, -0x7fcc(gp) | t9 = sym.plugin_led_lib_exit;
0x00001cd4 bal 0x2564 | sym_plugin_led_lib_exit ();
0x00001cd8 nop |
0x00001cdc lw gp, 0x10(sp) | gp = *(var_10h);
0x00001ce0 move v0, zero | v0 = 0;
0x00001ce4 b 0x1b80 | goto label_0;
| label_14:
0x00001ce8 move t9, s3 | t9 = s3;
0x00001cec move a0, s4 | a0 = s4;
0x00001cf0 bal 0x20e0 | fcn_000020e0 ();
0x00001cf4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001cf8 lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x00001cfc lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001d00 move s7, v0 | s7 = v0;
0x00001d04 jalr t9 | t9 ();
0x00001d08 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001d0c lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00001d10 lw s4, 0x3348(v0) | s4 = *((v0 + 3282));
0x00001d14 lw s3, 0x334c(v0) | s3 = *((v0 + 3283));
0x00001d18 move s6, s4 | s6 = s4;
0x00001d1c move s5, s3 | s5 = s3;
| do {
0x00001d20 lw t9, -0x7fd0(gp) | t9 = sym.plugin_led_lib_set_action;
0x00001d24 move a1, s2 | a1 = s2;
0x00001d28 move a0, s1 | a0 = s1;
0x00001d2c bal 0x24bc | sym_plugin_led_lib_set_action ();
0x00001d30 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001d34 beqz v0, 0x1dd4 | goto label_15;
| }
0x00001d38 lw t9, -0x7fc8(gp) | t9 = *(gp);
0x00001d3c lw a0, 0x38(sp) | a0 = *(var_38h);
0x00001d40 lw a1, 0x3c(sp) | a1 = *(var_3ch);
0x00001d44 move a2, s4 | a2 = s4;
0x00001d48 move a3, s3 | a3 = s3;
0x00001d4c bal 0x28b0 | fcn_000028b0 ();
0x00001d50 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001d54 move a1, v1 | a1 = v1;
0x00001d58 lw t9, -0x7fc4(gp) | t9 = *(gp);
0x00001d5c move a0, v0 | a0 = v0;
0x00001d60 bal 0x2e50 | fcn_00002e50 ();
0x00001d64 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001d68 lw t9, -0x7f3c(gp) | t9 = sym.imp.g_usleep;
0x00001d6c move a0, v0 | a0 = v0;
0x00001d70 jalr t9 | t9 ();
0x00001d74 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001d78 move a1, s7 | a1 = s7;
0x00001d7c lw t9, -0x7fd0(gp) | t9 = sym.plugin_led_lib_set_action;
0x00001d80 move a0, s1 | a0 = s1;
0x00001d84 bal 0x24bc | sym_plugin_led_lib_set_action ();
0x00001d88 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001d8c lw a0, 0x38(sp) | a0 = *(var_38h);
0x00001d90 lw a1, 0x3c(sp) | a1 = *(var_3ch);
0x00001d94 lw t9, -0x7fc8(gp) | t9 = *(gp);
0x00001d98 move a2, s6 | a2 = s6;
0x00001d9c move a3, s5 | a3 = s5;
0x00001da0 move fp, v0 | fp = v0;
0x00001da4 bal 0x28b0 | fcn_000028b0 ();
0x00001da8 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001dac move a0, v0 | a0 = v0;
0x00001db0 lw t9, -0x7fc4(gp) | t9 = *(gp);
0x00001db4 move a1, v1 | a1 = v1;
0x00001db8 bal 0x2e50 | fcn_00002e50 ();
0x00001dbc lw gp, 0x10(sp) | gp = *(var_10h);
0x00001dc0 lw t9, -0x7f3c(gp) | t9 = sym.imp.g_usleep;
0x00001dc4 move a0, v0 | a0 = v0;
0x00001dc8 jalr t9 | t9 ();
0x00001dcc lw gp, 0x10(sp) | gp = *(var_10h);
0x00001dd0 bnez fp, 0x1d20 |
| } while (fp != 0);
| label_15:
0x00001dd4 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001dd8 lw t9, -0x7f64(gp) | t9 = sym.imp.__syslog_chk;
0x00001ddc addiu a2, a2, 0x3320 | a2 += str.Error:_failed_to_set_action;
0x00001de0 b 0x1bc8 | goto label_1;
| label_6:
0x00001de4 lw v0, 0x1c(sp) | v0 = *(var_1ch);
0x00001de8 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00001dec lw t9, -0x7f5c(gp) | t9 = sym.imp.g_printf;
0x00001df0 lw a1, (v0) | a1 = *(v0);
0x00001df4 addiu a0, a0, 0x3218 | a0 += str.usage:__s__l__LEDNAME___c__COLOR1____d__COLOR2___i__INTERVAL___s__LED_STATE_ENUM_NAME___n;
0x00001df8 jalr t9 | t9 ();
0x00001dfc lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e00 lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001e04 lw a0, 0x28(sp) | a0 = *(var_28h);
0x00001e08 jalr t9 | t9 ();
0x00001e0c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e10 lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001e14 lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x00001e18 jalr t9 | t9 ();
0x00001e1c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e20 lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001e24 lw a0, 0x24(sp) | a0 = *(var_24h);
0x00001e28 jalr t9 | t9 ();
0x00001e2c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e30 lw t9, -0x7f20(gp) | t9 = sym.imp.g_free;
0x00001e34 lw a0, 0x30(sp) | a0 = *(var_30h);
0x00001e38 jalr t9 | t9 ();
0x00001e3c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001e40 addiu v0, zero, 1 | v0 = 1;
0x00001e44 b 0x1b80 | goto label_0;
| label_13:
0x00001e48 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001e4c lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001e50 addiu a1, a1, 0x32e8 | a1 += str.statusled1;
0x00001e54 move a0, s1 | a0 = s1;
0x00001e58 jalr t9 | t9 ();
0x00001e5c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001e60 bnez v0, 0x1e6c |
0x00001e64 addiu s1, zero, 0x14 | s1 = 0x14;
0x00001e68 b 0x1c80 | goto label_2;
| }
0x00001e6c lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001e70 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001e74 addiu a1, a1, 0x32f4 | a1 += str.statusled2;
0x00001e78 move a0, s1 | a0 = s1;
0x00001e7c jalr t9 | t9 ();
0x00001e80 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 != 0) {
0x00001e84 beqz v0, 0x1f20 |
0x00001e88 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001e8c lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001e90 addiu a1, a1, 0x45d4 | a1 += 0x45d4;
0x00001e94 move a0, s1 | a0 = s1;
0x00001e98 jalr t9 | t9 ();
0x00001e9c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001ea0 beqz v0, 0x1f4c | goto label_16;
| }
0x00001ea4 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001ea8 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001eac addiu a1, a1, 0x4610 | a1 += 0x4610;
0x00001eb0 move a0, s1 | a0 = s1;
0x00001eb4 jalr t9 | t9 ();
0x00001eb8 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001ebc beqz v0, 0x1f54 | goto label_17;
| }
0x00001ec0 lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001ec4 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001ec8 addiu a1, a1, 0x3300 | a1 += str.audioconnectorled;
0x00001ecc move a0, s1 | a0 = s1;
0x00001ed0 jalr t9 | t9 ();
0x00001ed4 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00001ed8 beqz v0, 0x1f5c | goto label_18;
| }
0x00001edc lw a1, -0x7fdc(gp) | a1 = *((gp - 8183));
0x00001ee0 lw t9, -0x7f48(gp) | t9 = sym.imp.g_strcmp0;
0x00001ee4 move a0, s1 | a0 = s1;
0x00001ee8 addiu a1, a1, 0x3314 | a1 += str.wirelessled;
0x00001eec jalr t9 | t9 ();
0x00001ef0 sltiu s1, v0, 1 | s1 = (v0 < 1) ? 1 : 0;
0x00001ef4 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001ef8 sll s1, s1, 2 | s1 <<= 2;
0x00001efc b 0x1c80 | goto label_2;
| label_12:
0x00001f00 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001f04 lw t9, -0x7f64(gp) | t9 = sym.imp.__syslog_chk;
0x00001f08 addiu a2, a2, 0x32cc | a2 += str.Error:_daemon___failed:__m;
0x00001f0c addiu a1, zero, 1 | a1 = 1;
0x00001f10 addiu a0, zero, 3 | a0 = 3;
0x00001f14 jalr t9 | t9 ();
0x00001f18 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001f1c b 0x1c30 | goto label_3;
| }
0x00001f20 addiu s1, zero, 0x15 | s1 = 0x15;
0x00001f24 b 0x1c80 | goto label_2;
| label_10:
0x00001f28 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001f2c lw t9, -0x7f64(gp) | t9 = sym.imp.__syslog_chk;
0x00001f30 addiu a3, s2, 0x3274 | a3 = s2 + str._var_run_setled_states;
0x00001f34 addiu a2, a2, 0x3290 | a2 += str.Failed_to_open_file__s:__m;
0x00001f38 addiu a1, zero, 1 | a1 = 1;
0x00001f3c addiu a0, zero, 4 | a0 = 4;
0x00001f40 jalr t9 | t9 ();
0x00001f44 lw gp, 0x10(sp) | gp = *(var_10h);
0x00001f48 b 0x1c08 | goto label_4;
| label_16:
0x00001f4c addiu s1, zero, 2 | s1 = 2;
0x00001f50 b 0x1c80 | goto label_2;
| label_17:
0x00001f54 addiu s1, zero, 3 | s1 = 3;
0x00001f58 b 0x1c80 | goto label_2;
| label_18:
0x00001f5c addiu s1, zero, 5 | s1 = 5;
0x00001f60 b 0x1c80 | goto label_2;
| label_11:
0x00001f64 lw t9, -0x7f38(gp) | t9 = sym.imp.__stack_chk_fail;
0x00001f68 jalr t9 | t9 ();
0x00001f6c nop |
| }
[*] Function fprintf used 2 times setled