[*] Binary protection state of lightd
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function sprintf tear down of lightd
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/lightd @ 0x12934 */
| #include <stdint.h>
|
; (fcn) fcn.00012934 () | void fcn_00012934 () {
0x00012934 lui gp, 3 |
0x00012938 addiu gp, gp, -0x1894 |
0x0001293c addu gp, gp, t9 | gp += t9;
0x00012940 addiu sp, sp, -0x50 |
0x00012944 lw t9, -0x7dd8(gp) | t9 = sym.imp.g_sprintf
0x00012948 sw s3, 0x40(sp) | *(var_40h) = s3;
0x0001294c lw s3, -0x7d08(gp) | s3 = *((gp - 8002));
0x00012950 sw s5, 0x48(sp) | *(var_48h) = s5;
0x00012954 move s5, a2 | s5 = a2;
0x00012958 lw v0, (s3) | v0 = *(s3);
0x0001295c move a2, a1 | a2 = a1;
0x00012960 lw a1, -0x7fc4(gp) | a1 = *(gp);
0x00012964 sw s1, 0x38(sp) | *(var_38h) = s1;
0x00012968 addiu s1, sp, 0x24 | s1 = sp + 0x24;
0x0001296c sw ra, 0x4c(sp) | *(var_4ch) = ra;
0x00012970 sw gp, 0x18(sp) | *(var_18h) = gp;
0x00012974 sw s4, 0x44(sp) | *(var_44h) = s4;
0x00012978 sw s2, 0x3c(sp) | *(var_3ch) = s2;
0x0001297c sw s0, 0x34(sp) | *(var_34h) = s0;
| /* esilref: '&d' */
0x00012980 addiu a1, a1, 0x7f64 | a1 += 0x7f64;
0x00012984 move s0, a0 | s0 = a0;
0x00012988 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x0001298c move a0, s1 | a0 = s1;
0x00012990 jalr t9 | t9 ();
0x00012994 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012998 lw a0, 0x98(s0) | a0 = *((s0 + 38));
0x0001299c lw t9, -0x7c98(gp) | t9 = sym.imp.g_strdup_printf;
0x000129a0 move a1, s5 | a1 = s5;
0x000129a4 jalr t9 | t9 ();
0x000129a8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000129ac move a2, zero | a2 = 0;
0x000129b0 move a0, v0 | a0 = v0;
0x000129b4 lw a1, -0x7fc4(gp) | a1 = *(gp);
0x000129b8 lw t9, -0x7c08(gp) | t9 = sym.imp.g_strconcat;
| /* str._brightness */
0x000129bc addiu a1, a1, 0x6bc0 | a1 += 0x6bc0;
0x000129c0 move s4, v0 | s4 = v0;
0x000129c4 jalr t9 | t9 ();
0x000129c8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000129cc addiu a1, zero, 1 | a1 = 1;
0x000129d0 move a0, v0 | a0 = v0;
0x000129d4 lw t9, -0x7b84(gp) | t9 = sym.imp.open;
0x000129d8 move s2, v0 | s2 = v0;
0x000129dc jalr t9 | t9 ();
0x000129e0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x000129e4 bltz v0, 0x12a80 | goto label_1;
| }
0x000129e8 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x000129ec move a0, s2 | a0 = s2;
0x000129f0 move s0, v0 | s0 = v0;
0x000129f4 jalr t9 | t9 ();
0x000129f8 lw gp, 0x18(sp) | gp = *(var_18h);
0x000129fc lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x00012a00 move a0, s4 | a0 = s4;
0x00012a04 jalr t9 | t9 ();
0x00012a08 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012a0c lw t9, -0x7ce4(gp) | t9 = sym.imp.strlen;
0x00012a10 move a0, s1 | a0 = s1;
0x00012a14 jalr t9 | t9 ();
0x00012a18 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012a1c move a1, s1 | a1 = s1;
0x00012a20 move a2, v0 | a2 = v0;
0x00012a24 lw t9, -0x7c00(gp) | t9 = sym.imp.write;
0x00012a28 move a0, s0 | a0 = s0;
0x00012a2c jalr t9 | t9 ();
0x00012a30 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012a34 move s1, v0 | s1 = v0;
0x00012a38 lw t9, -0x7d38(gp) | t9 = sym.imp.close;
0x00012a3c move a0, s0 | a0 = s0;
0x00012a40 jalr t9 | t9 ();
0x00012a44 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s1 < 0) {
0x00012a48 bltz s1, 0x12acc | goto label_2;
| }
0x00012a4c addiu v0, zero, 1 | v0 = 1;
| do {
| label_0:
0x00012a50 lw a0, 0x2c(sp) | a0 = *(var_2ch);
0x00012a54 lw v1, (s3) | v1 = *(s3);
0x00012a58 lw ra, 0x4c(sp) | ra = *(var_4ch);
| if (a0 != v1) {
0x00012a5c bne a0, v1, 0x12af4 | goto label_3;
| }
0x00012a60 lw s5, 0x48(sp) | s5 = *(var_48h);
0x00012a64 lw s4, 0x44(sp) | s4 = *(var_44h);
0x00012a68 lw s3, 0x40(sp) | s3 = *(var_40h);
0x00012a6c lw s2, 0x3c(sp) | s2 = *(var_3ch);
0x00012a70 lw s1, 0x38(sp) | s1 = *(var_38h);
0x00012a74 lw s0, 0x34(sp) | s0 = *(var_34h);
0x00012a78 addiu sp, sp, 0x50 |
0x00012a7c jr ra | return v0;
| label_1:
0x00012a80 lw a2, -0x7fc4(gp) | a2 = *(gp);
0x00012a84 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x00012a88 move a3, s5 | a3 = s5;
| /* str.Failed_to_open_fd_for_led__d___s_ */
0x00012a8c addiu a2, a2, 0x6bcc | a2 += 0x6bcc;
0x00012a90 addiu a1, zero, 1 | a1 = 1;
0x00012a94 addiu a0, zero, 4 | a0 = 4;
0x00012a98 sw s2, 0x10(sp) | *(var_10h) = s2;
0x00012a9c jalr t9 | t9 ();
0x00012aa0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012aa4 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x00012aa8 move a0, s2 | a0 = s2;
0x00012aac jalr t9 | t9 ();
0x00012ab0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012ab4 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x00012ab8 move a0, s4 | a0 = s4;
0x00012abc jalr t9 | t9 ();
0x00012ac0 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012ac4 addiu v0, zero, -1 | v0 = -1;
0x00012ac8 b 0x12a50 |
| } while (1);
| label_2:
0x00012acc lw a2, -0x7fc4(gp) | a2 = *(gp);
0x00012ad0 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x00012ad4 move a3, s5 | a3 = s5;
| /* str.Write_failure_to_led__d__brightness_ */
0x00012ad8 addiu a2, a2, 0x6bf0 | a2 += 0x6bf0;
0x00012adc addiu a1, zero, 1 | a1 = 1;
0x00012ae0 addiu a0, zero, 3 | a0 = 3;
0x00012ae4 jalr t9 | t9 ();
0x00012ae8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00012aec addiu v0, zero, -1 | v0 = -1;
0x00012af0 b 0x12a50 | goto label_0;
| label_3:
0x00012af4 lw t9, -0x7d5c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00012af8 jalr t9 | t9 ();
0x00012afc nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/lightd @ 0x1e1c0 */
| #include <stdint.h>
|
; (fcn) fcn.0001e1c0 () | void fcn_0001e1c0 () {
| label_2:
0x0001e1c0 lui gp, 2 |
0x0001e1c4 addiu gp, gp, 0x2ee0 |
0x0001e1c8 addu gp, gp, t9 | gp += t9;
0x0001e1cc addiu sp, sp, -0x58 |
0x0001e1d0 lw t9, -0x7e50(gp) | t9 = sym.led_1_pwm_get_type;
0x0001e1d4 sw s3, 0x48(sp) | *(var_48h) = s3;
0x0001e1d8 lw s3, -0x7d08(gp) | s3 = *((gp - 8002));
0x0001e1dc sw gp, 0x18(sp) | *(var_18h) = gp;
0x0001e1e0 sw ra, 0x54(sp) | *(var_54h) = ra;
0x0001e1e4 lw v0, (s3) | v0 = *(s3);
0x0001e1e8 sw s4, 0x4c(sp) | *(var_4ch) = s4;
0x0001e1ec sw s1, 0x40(sp) | *(var_40h) = s1;
0x0001e1f0 sw s0, 0x3c(sp) | *(var_3ch) = s0;
0x0001e1f4 sw s5, 0x50(sp) | *(var_50h) = s5;
0x0001e1f8 sw s2, 0x44(sp) | *(var_44h) = s2;
0x0001e1fc sw v0, 0x34(sp) | *(var_34h) = v0;
0x0001e200 move s1, a0 | s1 = a0;
0x0001e204 move s0, a1 | s0 = a1;
0x0001e208 bal 0x1d374 | sym_led_1_pwm_get_type ();
0x0001e20c lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e210 move a1, v0 | a1 = v0;
0x0001e214 lw t9, -0x7d58(gp) | t9 = sym.imp.g_type_check_instance_cast;
0x0001e218 move a0, s1 | a0 = s1;
0x0001e21c jalr t9 | t9 ();
0x0001e220 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e224 move s4, v0 | s4 = v0;
0x0001e228 sw zero, 0x2c(sp) | *(var_2ch) = 0;
0x0001e22c lw v0, -0x7fc0(gp) | v0 = *(gp);
0x0001e230 sw zero, 0x30(sp) | *(var_30h) = 0;
0x0001e234 sw zero, 0x24(sp) | *(var_24h) = 0;
0x0001e238 lw v0, (v0) | v0 = *(v0);
0x0001e23c sh zero, 0x28(sp) | *(var_28h) = 0;
0x0001e240 sb zero, 0x2a(sp) | *(var_2ah) = 0;
0x0001e244 bnez v0, 0x1e3fc |
| while (1) {
0x0001e248 lw s5, -0x7fc4(gp) | s5 = *(gp);
0x0001e24c lw t9, -0x7dd8(gp) | t9 = sym.imp.g_sprintf
0x0001e250 lw a2, 0x154(s4) | a2 = *((s4 + 85));
0x0001e254 addiu s2, sp, 0x2c | s2 = sp + 0x2c;
| /* esilref: '&d' */
0x0001e258 addiu a1, s5, 0x7f64 | a1 = s5 + 0x7f64;
0x0001e25c move a0, s2 | a0 = s2;
0x0001e260 jalr t9 | t9 ();
0x0001e264 lw v1, 0x158(s4) | v1 = *((s4 + 86));
0x0001e268 lui v0, 0x51eb | v0 = 0x51eb0000;
0x0001e26c mul a1, v1, s0 | __asm ("mul a1, v1, s0");
0x0001e270 ori v0, v0, 0x851f | v0 |= 0x851f;
0x0001e274 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e278 lw a2, 0x15c(s4) | a2 = *((s4 + 87));
0x0001e27c addiu s0, sp, 0x24 | s0 = sp + 0x24;
0x0001e280 mult a1, v0 | __asm ("mult a1, v0");
0x0001e284 mfhi v0 | __asm ("mfhi v0");
0x0001e288 sra a1, a1, 0x1f | a1 >>= 0x1f;
0x0001e28c lw t9, -0x7dd8(gp) | t9 = sym.imp.g_sprintf
0x0001e290 move a0, s0 | a0 = s0;
0x0001e294 sra v0, v0, 5 | v0 >>= 5;
0x0001e298 subu a1, a1, v0 | __asm ("subu a1, a1, v0");
0x0001e29c addu a1, a1, v1 | a1 += v1;
0x0001e2a0 addu a2, a1, a2 | a2 = a1 + a2;
| /* esilref: '&d' */
0x0001e2a4 addiu a1, s5, 0x7f64 | a1 = s5 + 0x7f64;
0x0001e2a8 jalr t9 | t9 ();
0x0001e2ac lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e2b0 lw a0, 0x98(s1) | a0 = *((s1 + 38));
0x0001e2b4 move a2, zero | a2 = 0;
0x0001e2b8 lw a1, -0x7e54(gp) | a1 = *((gp - 8085));
0x0001e2bc lw t9, -0x7c08(gp) | t9 = sym.imp.g_strconcat;
| /* str._pwm1_duty_cycle */
0x0001e2c0 addiu a1, a1, -0x7d94 | a1 += -0x7d94;
0x0001e2c4 jalr t9 | t9 ();
0x0001e2c8 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e2cc addiu a1, zero, 1 | a1 = 1;
0x0001e2d0 move a0, v0 | a0 = v0;
0x0001e2d4 lw t9, -0x7b84(gp) | t9 = sym.imp.open;
0x0001e2d8 move s5, v0 | s5 = v0;
0x0001e2dc jalr t9 | t9 ();
0x0001e2e0 move s4, v0 | s4 = v0;
0x0001e2e4 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x0001e2e8 bltz v0, 0x1e420 | goto label_17;
| }
0x0001e2ec lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x0001e2f0 move a0, s5 | a0 = s5;
0x0001e2f4 jalr t9 | t9 ();
0x0001e2f8 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e2fc lw t9, -0x7ce4(gp) | t9 = sym.imp.strlen;
0x0001e300 move a0, s0 | a0 = s0;
0x0001e304 jalr t9 | t9 ();
0x0001e308 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e30c move a1, s0 | a1 = s0;
0x0001e310 move a2, v0 | a2 = v0;
0x0001e314 lw t9, -0x7c00(gp) | t9 = sym.imp.write;
0x0001e318 move a0, s4 | a0 = s4;
0x0001e31c jalr t9 | t9 ();
0x0001e320 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e324 move s0, v0 | s0 = v0;
0x0001e328 lw t9, -0x7d38(gp) | t9 = sym.imp.close;
0x0001e32c move a0, s4 | a0 = s4;
0x0001e330 jalr t9 | t9 ();
0x0001e334 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s0 < 0) {
0x0001e338 bltz s0, 0x1e4f8 | goto label_18;
| }
| label_1:
0x0001e33c lw a1, -0x7e54(gp) | a1 = *((gp - 8085));
0x0001e340 lw t9, -0x7c08(gp) | t9 = sym.imp.g_strconcat;
0x0001e344 lw a0, 0x98(s1) | a0 = *((s1 + 38));
0x0001e348 move a2, zero | a2 = 0;
| /* str._pwm1_period */
0x0001e34c addiu a1, a1, -0x7ddc | a1 += -0x7ddc;
0x0001e350 jalr t9 | t9 ();
0x0001e354 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e358 addiu a1, zero, 1 | a1 = 1;
0x0001e35c move a0, v0 | a0 = v0;
0x0001e360 lw t9, -0x7b84(gp) | t9 = sym.imp.open;
0x0001e364 move s1, v0 | s1 = v0;
0x0001e368 jalr t9 | t9 ();
0x0001e36c move s0, v0 | s0 = v0;
0x0001e370 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 < 0) {
0x0001e374 bltz v0, 0x1e4a8 | goto label_19;
| }
0x0001e378 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x0001e37c move a0, s1 | a0 = s1;
0x0001e380 jalr t9 | t9 ();
0x0001e384 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e388 lw t9, -0x7ce4(gp) | t9 = sym.imp.strlen;
0x0001e38c move a0, s2 | a0 = s2;
0x0001e390 jalr t9 | t9 ();
0x0001e394 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e398 move a2, v0 | a2 = v0;
0x0001e39c move a1, s2 | a1 = s2;
0x0001e3a0 lw t9, -0x7c00(gp) | t9 = sym.imp.write;
0x0001e3a4 move a0, s0 | a0 = s0;
0x0001e3a8 jalr t9 | t9 ();
0x0001e3ac lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e3b0 move s1, v0 | s1 = v0;
0x0001e3b4 lw t9, -0x7d38(gp) | t9 = sym.imp.close;
0x0001e3b8 move a0, s0 | a0 = s0;
0x0001e3bc jalr t9 | t9 ();
0x0001e3c0 lw gp, 0x18(sp) | gp = *(var_18h);
| if (s1 < 0) {
0x0001e3c4 bltz s1, 0x1e470 | goto label_20;
| }
0x0001e3c8 addiu v0, zero, 1 | v0 = 1;
| label_0:
0x0001e3cc lw a0, 0x34(sp) | a0 = *(var_34h);
0x0001e3d0 lw v1, (s3) | v1 = *(s3);
0x0001e3d4 lw ra, 0x54(sp) | ra = *(var_54h);
| if (a0 != v1) {
0x0001e3d8 bne a0, v1, 0x1e52c | goto label_21;
| }
0x0001e3dc lw s5, 0x50(sp) | s5 = *(var_50h);
0x0001e3e0 lw s4, 0x4c(sp) | s4 = *(var_4ch);
0x0001e3e4 lw s3, 0x48(sp) | s3 = *(var_48h);
0x0001e3e8 lw s2, 0x44(sp) | s2 = *(var_44h);
0x0001e3ec lw s1, 0x40(sp) | s1 = *(var_40h);
0x0001e3f0 lw s0, 0x3c(sp) | s0 = *(var_3ch);
0x0001e3f4 addiu sp, sp, 0x58 |
0x0001e3f8 jr ra | return v0;
0x0001e3fc lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e400 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001e404 move a3, s0 | a3 = s0;
| /* str.brightness__d */
0x0001e408 addiu a2, a2, -0x7d44 | a2 += -0x7d44;
0x0001e40c addiu a1, zero, 1 | a1 = 1;
0x0001e410 addiu a0, zero, 6 | a0 = 6;
0x0001e414 jalr t9 | t9 ();
0x0001e418 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e41c b 0x1e248 |
| }
| label_17:
0x0001e420 lw t9, -0x7b78(gp) | t9 = sym.imp.__errno_location;
0x0001e424 jalr t9 | t9 ();
0x0001e428 nop |
0x0001e42c lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e430 lw v0, (v0) | v0 = *(v0);
0x0001e434 move a3, s5 | a3 = s5;
0x0001e438 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e43c lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001e440 sw v0, 0x10(sp) | *(var_10h) = v0;
| /* str.Failed_to_open_fd_for__pwm1_duty_cycle___s___d_ */
0x0001e444 addiu a2, a2, -0x7d34 | a2 += -0x7d34;
0x0001e448 addiu a1, zero, 1 | a1 = 1;
0x0001e44c addiu a0, zero, 4 | a0 = 4;
0x0001e450 jalr t9 | t9 ();
0x0001e454 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e458 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x0001e45c move a0, s5 | a0 = s5;
0x0001e460 jalr t9 | t9 ();
0x0001e464 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e468 addiu v0, zero, -1 | v0 = -1;
0x0001e46c b 0x1e3cc | goto label_0;
| label_20:
0x0001e470 lw t9, -0x7b78(gp) | t9 = sym.imp.__errno_location;
0x0001e474 jalr t9 | t9 ();
0x0001e478 nop |
0x0001e47c lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e480 lw a3, (v0) | a3 = *(v0);
0x0001e484 addiu a1, zero, 1 | a1 = 1;
0x0001e488 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e48c lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Write_failure_to__pwm1_period___d_ */
0x0001e490 addiu a2, a2, -0x7cb0 | a2 += -0x7cb0;
0x0001e494 addiu a0, zero, 3 | a0 = 3;
0x0001e498 jalr t9 | t9 ();
0x0001e49c lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e4a0 addiu v0, zero, 1 | v0 = 1;
0x0001e4a4 b 0x1e3cc | goto label_0;
| label_19:
0x0001e4a8 lw t9, -0x7b78(gp) | t9 = sym.imp.__errno_location;
0x0001e4ac jalr t9 | t9 ();
0x0001e4b0 nop |
0x0001e4b4 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e4b8 lw v0, (v0) | v0 = *(v0);
0x0001e4bc move a3, s1 | a3 = s1;
0x0001e4c0 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e4c4 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001e4c8 sw v0, 0x10(sp) | *(var_10h) = v0;
| /* str.Failed_to_open_fd_for__pwm1_period___s___d_ */
0x0001e4cc addiu a2, a2, -0x7cdc | a2 += -0x7cdc;
0x0001e4d0 addiu a1, zero, 1 | a1 = 1;
0x0001e4d4 addiu a0, zero, 4 | a0 = 4;
0x0001e4d8 jalr t9 | t9 ();
0x0001e4dc lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e4e0 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x0001e4e4 move a0, s1 | a0 = s1;
0x0001e4e8 jalr t9 | t9 ();
0x0001e4ec lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e4f0 addiu v0, zero, -1 | v0 = -1;
0x0001e4f4 b 0x1e3cc | goto label_0;
| label_18:
0x0001e4f8 lw t9, -0x7b78(gp) | t9 = sym.imp.__errno_location;
0x0001e4fc jalr t9 | t9 ();
0x0001e500 nop |
0x0001e504 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e508 lw a3, (v0) | a3 = *(v0);
0x0001e50c addiu a1, zero, 1 | a1 = 1;
0x0001e510 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e514 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Write_failure_to__pwm1_duty_cycle___d_ */
0x0001e518 addiu a2, a2, -0x7d04 | a2 += -0x7d04;
0x0001e51c addiu a0, zero, 3 | a0 = 3;
0x0001e520 jalr t9 | t9 ();
0x0001e524 lw gp, 0x18(sp) | gp = *(var_18h);
0x0001e528 b 0x1e33c | goto label_1;
| label_21:
0x0001e52c lw t9, -0x7d5c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0001e530 jalr t9 | t9 ();
0x0001e534 nop |
| label_14:
0x0001e538 lui gp, 2 |
0x0001e53c addiu gp, gp, 0x2b68 |
0x0001e540 addu gp, gp, t9 | gp += t9;
0x0001e544 addiu sp, sp, -0x60 |
0x0001e548 lw t9, -0x7e50(gp) | t9 = sym.led_1_pwm_get_type;
0x0001e54c sw s3, 0x44(sp) | *(var_44h_2) = s3;
0x0001e550 lw s3, -0x7d08(gp) | s3 = *((gp - 8002));
0x0001e554 sw gp, 0x18(sp) | *(var_18h_2) = gp;
0x0001e558 sw ra, 0x5c(sp) | *(var_5ch) = ra;
0x0001e55c lw v0, (s3) | v0 = *(s3);
0x0001e560 sw s1, 0x3c(sp) | *(var_3ch_2) = s1;
0x0001e564 sw s0, 0x38(sp) | *(var_38h) = s0;
0x0001e568 sw fp, 0x58(sp) | *(var_58h) = fp;
0x0001e56c sw s7, 0x54(sp) | *(var_54h_2) = s7;
0x0001e570 sw s6, 0x50(sp) | *(var_50h_2) = s6;
0x0001e574 sw s5, 0x4c(sp) | *(var_4ch_2) = s5;
0x0001e578 sw s4, 0x48(sp) | *(var_48h_2) = s4;
0x0001e57c sw s2, 0x40(sp) | *(var_40h_2) = s2;
0x0001e580 sw v0, 0x34(sp) | *(var_34h_2) = v0;
0x0001e584 move s0, a0 | s0 = a0;
0x0001e588 move s1, a1 | s1 = a1;
0x0001e58c bal 0x1d374 | sym_led_1_pwm_get_type ();
0x0001e590 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e594 move a1, v0 | a1 = v0;
0x0001e598 lw t9, -0x7d58(gp) | t9 = sym.imp.g_type_check_instance_cast;
0x0001e59c move a0, s0 | a0 = s0;
0x0001e5a0 jalr t9 | t9 ();
0x0001e5a4 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (s1 == 0) {
0x0001e5a8 beqz s1, 0x1e7c4 | goto label_22;
| }
0x0001e5ac lw t9, -0x7fa0(gp) | t9 = *(gp);
0x0001e5b0 lw a0, 0x30(s0) | a0 = *((s0 + 12));
0x0001e5b4 move s4, v0 | s4 = v0;
0x0001e5b8 bal 0x22e50 | fcn_00022e50 ();
0x0001e5bc lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e5c0 lw a2, 0x40(s0) | a2 = *((s0 + 16));
0x0001e5c4 lw a3, 0x44(s0) | a3 = *((s0 + 17));
0x0001e5c8 lw t9, -0x7f58(gp) | t9 = *(gp);
0x0001e5cc move a0, v0 | a0 = v0;
0x0001e5d0 move a1, v1 | a1 = v1;
0x0001e5d4 bal 0x224c0 | fcn_000224c0 ();
0x0001e5d8 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e5dc move a1, v1 | a1 = v1;
0x0001e5e0 lw t9, -0x7f68(gp) | t9 = *(gp);
0x0001e5e4 move a0, v0 | a0 = v0;
0x0001e5e8 bal 0x22dd0 | fcn_00022dd0 ();
0x0001e5ec lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e5f0 lw t9, -0x7f74(gp) | t9 = sym.led_base_get_type;
0x0001e5f4 move s2, v0 | s2 = v0;
0x0001e5f8 bal 0x7004 | sym_led_base_get_type ();
0x0001e5fc lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e600 move a1, v0 | a1 = v0;
0x0001e604 lw t9, -0x7d58(gp) | t9 = sym.imp.g_type_check_instance_cast;
0x0001e608 move a0, s4 | a0 = s4;
0x0001e60c jalr t9 | t9 ();
0x0001e610 lw s5, 0x28(s0) | s5 = *((s0 + 10));
0x0001e614 addiu v1, zero, -1 | v1 = -1;
0x0001e618 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e61c lw s6, 0x38(v0) | s6 = *((v0 + 14));
0x0001e620 lw s7, 0x3c(v0) | s7 = *((v0 + 15));
| if (s5 == v1) {
0x0001e624 beq s5, v1, 0x1e914 | goto label_23;
| }
0x0001e628 lw fp, -0x7fc0(gp) | fp = *(gp);
0x0001e62c lw v0, (fp) | v0 = *(fp);
0x0001e630 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
| if (v0 != 0) {
0x0001e634 bnez v0, 0x1e928 | goto label_24;
| }
| label_7:
0x0001e638 lw s1, 0x74(s0) | s1 = *((s0 + 29));
0x0001e63c slt v0, s2, s1 | v0 = (s2 < s1) ? 1 : 0;
| if (v0 == 0) {
0x0001e640 beql v0, zero, 0x1e788 | goto label_25;
| }
0x0001e644 lw s1, 0x78(s0) | s1 = *((s0 + 30));
| do {
| label_4:
0x0001e648 lw t9, -0x7f74(gp) | t9 = sym.led_base_get_type;
| label_3:
0x0001e64c bal 0x7004 | sym_led_base_get_type ();
0x0001e650 nop |
0x0001e654 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e658 move a1, v0 | a1 = v0;
0x0001e65c lw t9, -0x7d58(gp) | t9 = sym.imp.g_type_check_instance_cast;
0x0001e660 move a0, s4 | a0 = s4;
0x0001e664 jalr t9 | t9 ();
0x0001e668 lw v0, 0x9c(v0) | v0 = *((v0 + 39));
0x0001e66c lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 != 0) {
0x0001e670 beqz v0, 0x1e6c0 |
0x0001e674 lw v0, -0x7fc4(gp) | v0 = *(gp);
0x0001e678 lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001e67c move a0, s6 | a0 = s6;
0x0001e680 lw a2, 0x6388(v0) | a2 = *((v0 + 6370));
0x0001e684 lw a3, 0x638c(v0) | a3 = *((v0 + 6371));
0x0001e688 move a1, s7 | a1 = s7;
0x0001e68c bal 0x21f20 | fcn_00021f20 ();
0x0001e690 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e694 move a1, v1 | a1 = v1;
0x0001e698 lw t9, -0x7f68(gp) | t9 = *(gp);
0x0001e69c move a0, v0 | a0 = v0;
0x0001e6a0 bal 0x22dd0 | fcn_00022dd0 ();
0x0001e6a4 slt v1, v0, s1 | v1 = (v0 < s1) ? 1 : 0;
0x0001e6a8 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v1 == 0) {
0x0001e6ac beqz v1, 0x1e6c0 | goto label_10;
| }
0x0001e6b0 lw v1, (fp) | v1 = *(fp);
0x0001e6b4 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
| if (v1 != 0) {
0x0001e6b8 bnez v1, 0x1ea1c | goto label_26;
| }
0x0001e6bc move s1, v0 | s1 = v0;
| }
| label_10:
0x0001e6c0 lw v0, 0x74(s0) | v0 = *((s0 + 29));
0x0001e6c4 lw s2, 0x78(s0) | s2 = *((s0 + 30));
0x0001e6c8 subu s1, s1, v0 | __asm ("subu s1, s1, v0");
0x0001e6cc mul s1, s1, s5 | __asm ("mul s1, s1, s5");
0x0001e6d0 subu s2, s2, v0 | __asm ("subu s2, s2, v0");
0x0001e6d4 lw t9, -0x7fc4(gp) | t9 = *(gp);
0x0001e6d8 move a0, s0 | a0 = s0;
| /* fcn.0001e1c0 */
0x0001e6dc addiu t9, t9, -0x1e40 | t9 += -0x1e40;
0x0001e6e0 div zero, s1, s2 | __asm ("div zero, s1, s2");
0x0001e6e4 teq s2, zero, 7 | __asm ("teq s2, zero, 7");
0x0001e6e8 mflo a1 | __asm ("mflo a1");
0x0001e6ec mflo s2 | __asm ("mflo s2");
0x0001e6f0 bal 0x1e1c0 | fcn_0001e1c0 ();
| goto label_2;
0x0001e6f4 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 <= 0) {
0x0001e6f8 blez v0, 0x1e9c4 | goto label_27;
| }
0x0001e6fc lw v0, 0x150(s4) | v0 = *(s4);
0x0001e700 lw a1, -0x7fc4(gp) | a1 = *(gp);
| if (v0 != s2) {
0x0001e704 bne v0, s2, 0x1e840 | goto label_28;
| }
| label_6:
0x0001e708 lw s1, -0x7fc4(gp) | s1 = *(gp);
0x0001e70c addiu a1, zero, 1 | a1 = 1;
| /* fcn.0001ce0c */
0x0001e710 addiu s1, s1, -0x31f4 | s1 += -0x31f4;
0x0001e714 move t9, s1 | t9 = s1;
0x0001e718 move a0, s0 | a0 = s0;
0x0001e71c bal 0x1ce0c | fcn_0001ce0c ();
0x0001e720 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 <= 0) {
0x0001e724 blez v0, 0x1e824 | goto label_29;
| }
0x0001e728 lw t9, -0x7fc4(gp) | t9 = *(gp);
0x0001e72c addiu a1, zero, 1 | a1 = 1;
| /* fcn.0001df24 */
0x0001e730 addiu t9, t9, -0x20dc | t9 += -0x20dc;
0x0001e734 move a0, s0 | a0 = s0;
0x0001e738 bal 0x1df24 | fcn_0001df24 ();
0x0001e73c lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 <= 0) {
0x0001e740 blez v0, 0x1e824 | goto label_29;
| }
0x0001e744 addiu v0, zero, 1 | v0 = 1;
| label_5:
0x0001e748 lw a0, 0x34(sp) | a0 = *(var_34h_2);
0x0001e74c lw v1, (s3) | v1 = *(s3);
0x0001e750 lw ra, 0x5c(sp) | ra = *(var_5ch);
| if (a0 != v1) {
0x0001e754 bne a0, v1, 0x1ea4c | goto label_30;
| }
0x0001e758 lw fp, 0x58(sp) | fp = *(var_58h);
0x0001e75c lw s7, 0x54(sp) | s7 = *(var_54h_2);
0x0001e760 lw s6, 0x50(sp) | s6 = *(var_50h_2);
0x0001e764 lw s5, 0x4c(sp) | s5 = *(var_4ch_2);
0x0001e768 lw s4, 0x48(sp) | s4 = *(var_48h_2);
0x0001e76c lw s3, 0x44(sp) | s3 = *(var_44h_2);
0x0001e770 lw s2, 0x40(sp) | s2 = *(var_40h_2);
0x0001e774 lw s1, 0x3c(sp) | s1 = *(var_3ch_2);
0x0001e778 lw s0, 0x38(sp) | s0 = *(var_38h);
0x0001e77c addiu sp, sp, 0x60 |
0x0001e780 jr ra | return v0;
| label_8:
0x0001e784 lw s1, 0x78(s0) | s1 = *((s0 + 30));
| label_25:
0x0001e788 slt v0, s1, s2 | v0 = (s1 < s2) ? 1 : 0;
0x0001e78c beql v0, zero, 0x1e648 |
| } while (v0 == 0);
0x0001e790 move s1, s2 | s1 = s2;
0x0001e794 lw v0, (fp) | v0 = *(fp);
0x0001e798 lw t9, -0x7f74(gp) | t9 = sym.led_base_get_type;
| if (v0 == 0) {
0x0001e79c beqz v0, 0x1e64c | goto label_3;
| }
0x0001e7a0 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e7a4 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001e7a8 move a3, s1 | a3 = s1;
| /* str.max_limit_intensity__d */
0x0001e7ac addiu a2, a2, -0x7c60 | a2 += -0x7c60;
0x0001e7b0 addiu a1, zero, 1 | a1 = 1;
0x0001e7b4 addiu a0, zero, 6 | a0 = 6;
0x0001e7b8 jalr t9 | t9 ();
0x0001e7bc lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e7c0 b 0x1e648 | goto label_4;
| label_22:
0x0001e7c4 lw t9, -0x7fc4(gp) | t9 = *(gp);
0x0001e7c8 move a1, zero | a1 = 0;
| /* fcn.0001df24 */
0x0001e7cc addiu t9, t9, -0x20dc | t9 += -0x20dc;
0x0001e7d0 move a0, s0 | a0 = s0;
0x0001e7d4 bal 0x1df24 | fcn_0001df24 ();
0x0001e7d8 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 > 0) {
0x0001e7dc blez v0, 0x1e81c |
0x0001e7e0 lw t9, -0x7fc4(gp) | t9 = *(gp);
0x0001e7e4 move a1, zero | a1 = 0;
| /* fcn.0001e1c0 */
0x0001e7e8 addiu t9, t9, -0x1e40 | t9 += -0x1e40;
0x0001e7ec move a0, s0 | a0 = s0;
0x0001e7f0 bal 0x1e1c0 | fcn_0001e1c0 ();
| goto label_2;
0x0001e7f4 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 <= 0) {
0x0001e7f8 blez v0, 0x1e81c | goto label_31;
| }
0x0001e7fc lw t9, -0x7fc4(gp) | t9 = *(gp);
0x0001e800 move a1, zero | a1 = 0;
| /* fcn.0001ce0c */
0x0001e804 addiu t9, t9, -0x31f4 | t9 += -0x31f4;
0x0001e808 move a0, s0 | a0 = s0;
0x0001e80c bal 0x1ce0c | fcn_0001ce0c ();
0x0001e810 slt v0, zero, v0 | v0 = (0 < v0) ? 1 : 0;
0x0001e814 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e818 b 0x1e748 | goto label_5;
| }
| label_31:
0x0001e81c lw s1, -0x7fc4(gp) | s1 = *(gp);
| /* fcn.0001ce0c */
0x0001e820 addiu s1, s1, -0x31f4 | s1 += -0x31f4;
| label_29:
0x0001e824 move a1, zero | a1 = 0;
0x0001e828 move t9, s1 | t9 = s1;
0x0001e82c move a0, s0 | a0 = s0;
0x0001e830 bal 0x1ce0c | fcn_0001ce0c ();
0x0001e834 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e838 move v0, zero | v0 = 0;
0x0001e83c b 0x1e748 | goto label_5;
| label_28:
0x0001e840 addiu v0, zero, 0x31 | v0 = 0x31;
0x0001e844 lw t9, -0x7c08(gp) | t9 = sym.imp.g_strconcat;
0x0001e848 lw a0, 0x98(s0) | a0 = *((s0 + 38));
0x0001e84c sh v0, 0x2c(sp) | *(var_2ch_3) = v0;
0x0001e850 addiu v0, zero, 0x30 | v0 = 0x30;
0x0001e854 move a2, zero | a2 = 0;
| /* str._pwm1_enable */
0x0001e858 addiu a1, a1, 0x7f80 | a1 += 0x7f80;
0x0001e85c sh v0, 0x30(sp) | *(var_30h_3) = v0;
0x0001e860 jalr t9 | t9 ();
0x0001e864 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e868 addiu a1, zero, 2 | a1 = 2;
0x0001e86c move a0, v0 | a0 = v0;
0x0001e870 lw t9, -0x7b84(gp) | t9 = sym.imp.open;
0x0001e874 move s5, v0 | s5 = v0;
0x0001e878 jalr t9 | t9 ();
0x0001e87c move s1, v0 | s1 = v0;
0x0001e880 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 < 0) {
0x0001e884 bltz v0, 0x1e9cc | goto label_32;
| }
0x0001e888 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x0001e88c move a0, s5 | a0 = s5;
0x0001e890 jalr t9 | t9 ();
0x0001e894 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e898 addiu s5, sp, 0x30 | s5 = sp + 0x30;
0x0001e89c lw t9, -0x7ce4(gp) | t9 = sym.imp.strlen;
0x0001e8a0 move a0, s5 | a0 = s5;
0x0001e8a4 jalr t9 | t9 ();
0x0001e8a8 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e8ac move a1, s5 | a1 = s5;
0x0001e8b0 move a2, v0 | a2 = v0;
0x0001e8b4 lw t9, -0x7c00(gp) | t9 = sym.imp.write;
0x0001e8b8 move a0, s1 | a0 = s1;
0x0001e8bc jalr t9 | t9 ();
0x0001e8c0 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e8c4 addiu s5, sp, 0x2c | s5 = sp + 0x2c;
0x0001e8c8 move a0, s5 | a0 = s5;
0x0001e8cc lw t9, -0x7ce4(gp) | t9 = sym.imp.strlen;
0x0001e8d0 move s6, v0 | s6 = v0;
0x0001e8d4 jalr t9 | t9 ();
0x0001e8d8 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e8dc move a0, s1 | a0 = s1;
0x0001e8e0 move a2, v0 | a2 = v0;
0x0001e8e4 lw t9, -0x7c00(gp) | t9 = sym.imp.write;
0x0001e8e8 move a1, s5 | a1 = s5;
0x0001e8ec jalr t9 | t9 ();
0x0001e8f0 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e8f4 move a0, s1 | a0 = s1;
0x0001e8f8 lw t9, -0x7d38(gp) | t9 = sym.imp.close;
0x0001e8fc move s1, v0 | s1 = v0;
0x0001e900 jalr t9 | t9 ();
0x0001e904 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (s6 < 0) {
0x0001e908 bltz s6, 0x1e97c | goto label_33;
| }
| label_9:
0x0001e90c sw s2, 0x150(s4) | *(s4) = s2;
0x0001e910 b 0x1e708 | goto label_6;
| label_23:
0x0001e914 lw fp, -0x7fc0(gp) | fp = *(gp);
0x0001e918 lw v0, (fp) | v0 = *(fp);
0x0001e91c addiu s5, zero, 0xff | s5 = 0xff;
| if (v0 == 0) {
0x0001e920 beqz v0, 0x1e638 | goto label_7;
| }
0x0001e924 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
| label_24:
0x0001e928 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001e92c move a3, s2 | a3 = s2;
| /* str.manual_intensity__d */
0x0001e930 addiu a2, a2, -0x7c8c | a2 += -0x7c8c;
0x0001e934 addiu a1, zero, 1 | a1 = 1;
0x0001e938 addiu a0, zero, 6 | a0 = 6;
0x0001e93c jalr t9 | t9 ();
0x0001e940 lw s1, 0x74(s0) | s1 = *((s0 + 29));
0x0001e944 slt v0, s2, s1 | v0 = (s2 < s1) ? 1 : 0;
0x0001e948 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (v0 == 0) {
0x0001e94c beqz v0, 0x1e784 | goto label_8;
| }
0x0001e950 lw v0, (fp) | v0 = *(fp);
0x0001e954 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
| if (v0 == 0) {
0x0001e958 beqz v0, 0x1e648 | goto label_4;
| }
0x0001e95c lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001e960 move a3, s1 | a3 = s1;
| /* str.min_limit_intensity__d */
0x0001e964 addiu a2, a2, -0x7c78 | a2 += -0x7c78;
0x0001e968 addiu a1, zero, 1 | a1 = 1;
0x0001e96c addiu a0, zero, 6 | a0 = 6;
0x0001e970 jalr t9 | t9 ();
0x0001e974 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e978 b 0x1e648 | goto label_4;
| if (s1 >= 0) {
| label_33:
0x0001e97c bgezl s1, 0x1e708 | goto label_6;
| }
0x0001e980 sw s2, 0x150(s4) | *(s4) = s2;
0x0001e984 lw t9, -0x7b78(gp) | t9 = sym.imp.__errno_location;
0x0001e988 jalr t9 | t9 ();
0x0001e98c nop |
0x0001e990 lw a3, (v0) | a3 = *(v0);
0x0001e994 addiu v0, zero, 0x10 | v0 = 0x10;
0x0001e998 lw gp, 0x18(sp) | gp = *(var_18h_2);
| if (a3 == v0) {
0x0001e99c beq a3, v0, 0x1e90c | goto label_9;
| }
0x0001e9a0 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e9a4 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Write_failure_to_led_0__pwm_disable___d_ */
0x0001e9a8 addiu a2, a2, -0x7fe0 | a2 += -0x7fe0;
0x0001e9ac addiu a1, zero, 1 | a1 = 1;
0x0001e9b0 addiu a0, zero, 3 | a0 = 3;
0x0001e9b4 jalr t9 | t9 ();
0x0001e9b8 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e9bc sw s2, 0x150(s4) | *(s4) = s2;
0x0001e9c0 b 0x1e708 | goto label_6;
| label_27:
0x0001e9c4 move v0, zero | v0 = 0;
0x0001e9c8 b 0x1e748 | goto label_5;
| label_32:
0x0001e9cc lw t9, -0x7b78(gp) | t9 = sym.imp.__errno_location;
0x0001e9d0 jalr t9 | t9 ();
0x0001e9d4 nop |
0x0001e9d8 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001e9dc lw v0, (v0) | v0 = *(v0);
0x0001e9e0 move a3, s5 | a3 = s5;
0x0001e9e4 lw a2, -0x7e54(gp) | a2 = *((gp - 8085));
0x0001e9e8 lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Failed_to_open_pwm1_reenable_fd_for_led_0___s____d_ */
0x0001e9ec addiu a2, a2, -0x7c10 | a2 += -0x7c10;
0x0001e9f0 addiu a1, zero, 1 | a1 = 1;
0x0001e9f4 addiu a0, zero, 4 | a0 = 4;
0x0001e9f8 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x0001e9fc jalr t9 | t9 ();
0x0001ea00 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001ea04 lw t9, -0x7b7c(gp) | t9 = sym.imp.g_free;
0x0001ea08 move a0, s5 | a0 = s5;
0x0001ea0c jalr t9 | t9 ();
0x0001ea10 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001ea14 sw s2, 0x150(s4) | *(s4) = s2;
0x0001ea18 b 0x1e708 | goto label_6;
| label_26:
0x0001ea1c lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001ea20 move a3, s1 | a3 = s1;
0x0001ea24 sw v0, 0x10(sp) | *(var_10h_3) = v0;
0x0001ea28 sw v0, 0x24(sp) | *(var_24h_2) = v0;
| /* str.Powerd_limits_the_power._Requested:__d__allocated:__d */
0x0001ea2c addiu a2, a2, -0x7c48 | a2 += -0x7c48;
0x0001ea30 addiu a1, zero, 1 | a1 = 1;
0x0001ea34 addiu a0, zero, 6 | a0 = 6;
0x0001ea38 jalr t9 | t9 ();
0x0001ea3c lw v0, 0x24(sp) | v0 = *(var_24h_2);
0x0001ea40 lw gp, 0x18(sp) | gp = *(var_18h_2);
0x0001ea44 move s1, v0 | s1 = v0;
0x0001ea48 b 0x1e6c0 | goto label_10;
| label_30:
0x0001ea4c lw t9, -0x7d5c(gp) | t9 = sym.imp.__stack_chk_fail;
0x0001ea50 jalr t9 | t9 ();
0x0001ea54 nop |
0x0001ea58 lui gp, 2 |
0x0001ea5c addiu gp, gp, 0x2648 |
0x0001ea60 addu gp, gp, t9 | gp += t9;
0x0001ea64 addiu sp, sp, -0x88 |
0x0001ea68 lw t9, -0x7e50(gp) | t9 = sym.led_1_pwm_get_type;
0x0001ea6c sw gp, 0x20(sp) | *(var_20h) = gp;
0x0001ea70 sw ra, 0x84(sp) | *(var_84h) = ra;
0x0001ea74 sw s6, 0x78(sp) | *(var_78h) = s6;
0x0001ea78 sw fp, 0x80(sp) | *(var_80h) = fp;
0x0001ea7c sw s7, 0x7c(sp) | *(var_7ch) = s7;
0x0001ea80 sw s5, 0x74(sp) | *(var_74h) = s5;
0x0001ea84 sw s4, 0x70(sp) | *(var_70h) = s4;
0x0001ea88 sw s3, 0x6c(sp) | *(var_6ch) = s3;
0x0001ea8c sw s2, 0x68(sp) | *(var_68h) = s2;
0x0001ea90 sw s1, 0x64(sp) | *(var_64h) = s1;
0x0001ea94 sw s0, 0x60(sp) | *(var_60h) = s0;
0x0001ea98 move s6, a0 | s6 = a0;
0x0001ea9c bal 0x1d374 | sym_led_1_pwm_get_type ();
0x0001eaa0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001eaa4 move a1, v0 | a1 = v0;
0x0001eaa8 lw t9, -0x7d58(gp) | t9 = sym.imp.g_type_check_instance_cast;
0x0001eaac move a0, s6 | a0 = s6;
0x0001eab0 jalr t9 | t9 ();
0x0001eab4 lw v1, 0x128(s6) | v1 = *((s6 + 74));
0x0001eab8 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v1 <= 0) {
0x0001eabc blez v1, 0x1ef58 | goto label_34;
| }
0x0001eac0 lw v1, 0x120(s6) | v1 = *(s6);
0x0001eac4 lw s2, (v1) | s2 = *(v1);
| label_12:
0x0001eac8 lw s4, 0x30(s6) | s4 = *((s6 + 12));
0x0001eacc lw s5, -0x7fc0(gp) | s5 = *(gp);
| if (s4 == 0) {
0x0001ead0 beqz s4, 0x1eee4 | goto label_13;
| }
0x0001ead4 lw a0, 0x130(v0) | a0 = *((v0 + 76));
0x0001ead8 lw a1, 0x134(v0) | a1 = *(v0);
0x0001eadc sw a0, 0x38(sp) | *(var_38h_2) = a0;
0x0001eae0 sw a1, 0x3c(sp) | *(var_3ch_3) = a1;
0x0001eae4 lw a0, 0x138(v0) | a0 = *((v0 + 78));
0x0001eae8 lw a1, 0x13c(v0) | a1 = *((v0 + 79));
0x0001eaec sw a0, 0x28(sp) | *(var_28h_2) = a0;
0x0001eaf0 sw a1, 0x2c(sp) | *(var_2ch_2) = a1;
0x0001eaf4 lw a0, 0x140(v0) | a0 = *(v0);
0x0001eaf8 lw a1, 0x144(v0) | a1 = *((v0 + 81));
0x0001eafc sw a0, 0x40(sp) | *(var_40h_3) = a0;
0x0001eb00 sw a1, 0x44(sp) | *(var_44h_3) = a1;
0x0001eb04 lw a0, 0x148(v0) | a0 = *((v0 + 82));
0x0001eb08 lw a1, 0x14c(v0) | a1 = *((v0 + 83));
0x0001eb0c lw v1, (s5) | v1 = *(s5);
0x0001eb10 lw s1, 0x11c(s6) | s1 = *(s6);
0x0001eb14 sw a0, 0x48(sp) | *(var_48h_3) = a0;
0x0001eb18 sw a1, 0x4c(sp) | *(var_4ch_3) = a1;
| if (v1 != 0) {
0x0001eb1c bnez v1, 0x1ef38 | goto label_35;
| }
| label_11:
0x0001eb20 lw s0, -0x7fd4(gp) | s0 = *((gp - 8181));
0x0001eb24 lw v0, -0x7fc4(gp) | v0 = *(gp);
0x0001eb28 lw t9, -0x7f1c(gp) | t9 = *(gp);
0x0001eb2c lw a0, -0x6f70(s0) | a0 = *((s0 - 7132));
0x0001eb30 lw a1, -0x6f6c(s0) | a1 = *((s0 - 7131));
0x0001eb34 lw a2, 0x6368(v0) | a2 = *((v0 + 6362));
0x0001eb38 lw a3, 0x636c(v0) | a3 = *((v0 + 6363));
0x0001eb3c bal 0x21be0 | fcn_00021be0 ();
0x0001eb40 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 == 0) {
0x0001eb44 beqz v0, 0x1ef14 | goto label_36;
| }
0x0001eb48 lw s3, -0x7fc4(gp) | s3 = *(gp);
| /* fcn.0001d218 */
0x0001eb4c addiu s3, s3, -0x2de8 | s3 += -0x2de8;
| do {
0x0001eb50 lw t9, -0x7fa0(gp) | t9 = *(gp);
0x0001eb54 move a0, s4 | a0 = s4;
0x0001eb58 bal 0x22e50 | fcn_00022e50 ();
0x0001eb5c move a0, s2 | a0 = s2;
0x0001eb60 move t9, s3 | t9 = s3;
0x0001eb64 move fp, v0 | fp = v0;
0x0001eb68 move s7, v1 | s7 = v1;
0x0001eb6c bal 0x1d218 | fcn_0001d218 ();
0x0001eb70 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001eb74 lw a0, -0x6f70(s0) | a0 = *((s0 - 7132));
0x0001eb78 lw a1, -0x6f6c(s0) | a1 = *((s0 - 7131));
0x0001eb7c lw a2, -0x7fc4(gp) | a2 = *(gp);
0x0001eb80 lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001eb84 move s2, v0 | s2 = v0;
0x0001eb88 lw a3, 0x667c(a2) | a3 = *((a2 + 6559));
0x0001eb8c lw a2, 0x6678(a2) | a2 = *((a2 + 6558));
0x0001eb90 move s3, v1 | s3 = v1;
0x0001eb94 bal 0x21f20 | fcn_00021f20 ();
0x0001eb98 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001eb9c move a0, s2 | a0 = s2;
0x0001eba0 move a1, s3 | a1 = s3;
0x0001eba4 lw a2, -0x7fc4(gp) | a2 = *(gp);
0x0001eba8 lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ebac move s2, v0 | s2 = v0;
0x0001ebb0 lw a3, 0x6684(a2) | a3 = *((a2 + 6561));
0x0001ebb4 lw a2, 0x6680(a2) | a2 = *((a2 + 6560));
0x0001ebb8 move s3, v1 | s3 = v1;
0x0001ebbc bal 0x21f20 | fcn_00021f20 ();
0x0001ebc0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ebc4 move a1, s3 | a1 = s3;
0x0001ebc8 move a0, s2 | a0 = s2;
0x0001ebcc lw t9, -0x7f48(gp) | t9 = *(gp);
0x0001ebd0 move a2, v0 | a2 = v0;
0x0001ebd4 move a3, v1 | a3 = v1;
0x0001ebd8 bal 0x20ab0 | fcn_00020ab0 ();
0x0001ebdc lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ebe0 move a0, s1 | a0 = s1;
0x0001ebe4 sw v0, -0x6f70(s0) | *((s0 - 7132)) = v0;
0x0001ebe8 lw t9, -0x7fa0(gp) | t9 = *(gp);
0x0001ebec sw v1, -0x6f6c(s0) | *((s0 - 7131)) = v1;
0x0001ebf0 sw v0, 0x30(sp) | *(var_30h_2) = v0;
0x0001ebf4 lw s1, -0x7fd4(gp) | s1 = *((gp - 8181));
0x0001ebf8 sw v1, 0x34(sp) | *(var_34h_3) = v1;
0x0001ebfc bal 0x22e50 | fcn_00022e50 ();
0x0001ec00 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ec04 lw a2, 0x28(sp) | a2 = *(var_28h_2);
0x0001ec08 lw a3, 0x2c(sp) | a3 = *(var_2ch_2);
0x0001ec0c lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ec10 sw s1, 0x54(sp) | *(var_54h_3) = s1;
0x0001ec14 move a0, v0 | a0 = v0;
0x0001ec18 move a1, v1 | a1 = v1;
0x0001ec1c sw v0, 0x58(sp) | *(var_58h_2) = v0;
0x0001ec20 sw v1, 0x5c(sp) | *(var_5ch_2) = v1;
0x0001ec24 lw s2, -0x5ea0(s1) | s2 = *((s1 - 6056));
0x0001ec28 lw s4, -0x7fd4(gp) | s4 = *((gp - 8181));
0x0001ec2c lw s3, -0x5e9c(s1) | s3 = *((s1 - 6055));
0x0001ec30 bal 0x21f20 | fcn_00021f20 ();
0x0001ec34 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ec38 move a2, s2 | a2 = s2;
0x0001ec3c move a3, s3 | a3 = s3;
0x0001ec40 lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ec44 move a0, v0 | a0 = v0;
0x0001ec48 move a1, v1 | a1 = v1;
0x0001ec4c bal 0x21f20 | fcn_00021f20 ();
0x0001ec50 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ec54 lw a2, -0x5ea8(s4) | a2 = *((s4 - 6058));
0x0001ec58 lw a3, -0x5ea4(s4) | a3 = *((s4 - 6057));
0x0001ec5c lw t9, -0x7f48(gp) | t9 = *(gp);
0x0001ec60 move a0, v0 | a0 = v0;
0x0001ec64 move a1, v1 | a1 = v1;
0x0001ec68 bal 0x20ab0 | fcn_00020ab0 ();
0x0001ec6c lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ec70 lw a2, 0x30(sp) | a2 = *(var_30h_2);
0x0001ec74 lw a3, 0x34(sp) | a3 = *(var_34h_3);
0x0001ec78 lw t9, -0x7f58(gp) | t9 = *(gp);
0x0001ec7c lw a0, 0x48(sp) | a0 = *(var_48h_3);
0x0001ec80 lw a1, 0x4c(sp) | a1 = *(var_4ch_3);
0x0001ec84 sw v0, -0x5ea8(s4) | *((s4 - 6058)) = v0;
0x0001ec88 sw v1, -0x5ea4(s4) | *((s4 - 6057)) = v1;
0x0001ec8c move s0, v0 | s0 = v0;
0x0001ec90 move s1, v1 | s1 = v1;
0x0001ec94 bal 0x224c0 | fcn_000224c0 ();
0x0001ec98 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ec9c move a2, s2 | a2 = s2;
0x0001eca0 move a3, s3 | a3 = s3;
0x0001eca4 lw t9, -0x7f58(gp) | t9 = *(gp);
0x0001eca8 move a0, v0 | a0 = v0;
0x0001ecac move a1, v1 | a1 = v1;
0x0001ecb0 sw v0, 0x48(sp) | *(var_48h_3) = v0;
0x0001ecb4 sw v1, 0x4c(sp) | *(var_4ch_3) = v1;
0x0001ecb8 bal 0x224c0 | fcn_000224c0 ();
0x0001ecbc lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ecc0 lw t3, 0x5c(sp) | t3 = *(var_5ch_2);
0x0001ecc4 lw t2, 0x58(sp) | t2 = *(var_58h_2);
0x0001ecc8 lw t9, -0x7f40(gp) | t9 = *(gp);
0x0001eccc move a3, t3 | a3 = t3;
0x0001ecd0 move a2, t2 | a2 = t2;
0x0001ecd4 move a0, v0 | a0 = v0;
0x0001ecd8 move a1, v1 | a1 = v1;
0x0001ecdc bal 0x21420 | fcn_00021420 ();
0x0001ece0 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ece4 lw a2, 0x40(sp) | a2 = *(var_40h_3);
0x0001ece8 lw a3, 0x44(sp) | a3 = *(var_44h_3);
0x0001ecec lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ecf0 move a0, v0 | a0 = v0;
0x0001ecf4 move a1, v1 | a1 = v1;
0x0001ecf8 bal 0x21f20 | fcn_00021f20 ();
0x0001ecfc lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ed00 move a2, s2 | a2 = s2;
0x0001ed04 move a3, s3 | a3 = s3;
0x0001ed08 lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ed0c move a0, v0 | a0 = v0;
0x0001ed10 move a1, v1 | a1 = v1;
0x0001ed14 bal 0x21f20 | fcn_00021f20 ();
0x0001ed18 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ed1c lw t2, 0x54(sp) | t2 = *(var_54h_3);
0x0001ed20 lw t0, 0x48(sp) | t0 = *(var_48h_3);
0x0001ed24 lw t1, 0x4c(sp) | t1 = *(var_4ch_3);
0x0001ed28 lw a2, 0x38(sp) | a2 = *(var_38h_2);
0x0001ed2c lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ed30 lw a3, 0x3c(sp) | a3 = *(var_3ch_3);
0x0001ed34 move a0, t0 | a0 = t0;
0x0001ed38 move a1, t1 | a1 = t1;
0x0001ed3c sw t0, -0x5ea0(t2) | *((t2 - 6056)) = t0;
0x0001ed40 sw t1, -0x5e9c(t2) | *((t2 - 6055)) = t1;
0x0001ed44 move s2, v0 | s2 = v0;
0x0001ed48 move s3, v1 | s3 = v1;
0x0001ed4c bal 0x21f20 | fcn_00021f20 ();
0x0001ed50 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ed54 lw a0, 0x28(sp) | a0 = *(var_28h_2);
0x0001ed58 lw a1, 0x2c(sp) | a1 = *(var_2ch_2);
0x0001ed5c lw t9, -0x7f80(gp) | t9 = *(gp);
0x0001ed60 move a2, zero | a2 = 0;
0x0001ed64 move a3, zero | a3 = 0;
0x0001ed68 sw v0, 0x28(sp) | *(var_28h_2) = v0;
0x0001ed6c sw v1, 0x2c(sp) | *(var_2ch_2) = v1;
0x0001ed70 bal 0x21c80 | fcn_00021c80 ();
0x0001ed74 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 > 0) {
0x0001ed78 blez v0, 0x1edf0 |
0x0001ed7c lw v0, -0x7fd4(gp) | v0 = *((gp - 8181));
0x0001ed80 lw t9, -0x7f80(gp) | t9 = *(gp);
0x0001ed84 sw v0, 0x38(sp) | *(var_38h_2) = v0;
0x0001ed88 lw t0, -0x5eb0(v0) | t0 = *((v0 - 6060));
0x0001ed8c lw t1, -0x5eac(v0) | t1 = *((v0 - 6059));
0x0001ed90 move a0, t0 | a0 = t0;
0x0001ed94 move a1, t1 | a1 = t1;
0x0001ed98 sw t0, 0x40(sp) | *(var_40h_3) = t0;
0x0001ed9c sw t1, 0x44(sp) | *(var_44h_3) = t1;
0x0001eda0 move a2, fp | a2 = fp;
0x0001eda4 move a3, s7 | a3 = s7;
0x0001eda8 bal 0x21c80 | fcn_00021c80 ();
0x0001edac lw gp, 0x20(sp) | gp = *(var_20h);
0x0001edb0 lw t0, 0x40(sp) | t0 = *(var_40h_3);
0x0001edb4 lw t1, 0x44(sp) | t1 = *(var_44h_3);
| if (v0 > 0) {
0x0001edb8 bgtz v0, 0x1efe4 | goto label_37;
| }
0x0001edbc lw t9, -0x7f7c(gp) | t9 = *(gp);
0x0001edc0 move a2, zero | a2 = 0;
0x0001edc4 move a3, zero | a3 = 0;
0x0001edc8 move a0, t0 | a0 = t0;
0x0001edcc move a1, t1 | a1 = t1;
0x0001edd0 bal 0x21dd0 | fcn_00021dd0 ();
0x0001edd4 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 >= 0) {
0x0001edd8 bgez v0, 0x1edf8 | goto label_15;
| }
0x0001eddc sw zero, -0x5ea8(s4) | *((s4 - 6058)) = 0;
0x0001ede0 sw zero, -0x5ea4(s4) | *((s4 - 6057)) = 0;
0x0001ede4 move s0, zero | s0 = 0;
0x0001ede8 move s1, zero | s1 = 0;
0x0001edec b 0x1edf8 |
| } else {
0x0001edf0 lw v0, -0x7fd4(gp) | v0 = *((gp - 8181));
0x0001edf4 sw v0, 0x38(sp) | *(var_38h_2) = v0;
| }
| label_15:
0x0001edf8 lw t9, -0x7f48(gp) | t9 = *(gp);
0x0001edfc lw a0, 0x28(sp) | a0 = *(var_28h_2);
0x0001ee00 lw a1, 0x2c(sp) | a1 = *(var_2ch_2);
0x0001ee04 move a2, s0 | a2 = s0;
0x0001ee08 move a3, s1 | a3 = s1;
0x0001ee0c bal 0x20ab0 | fcn_00020ab0 ();
0x0001ee10 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ee14 move a2, s2 | a2 = s2;
0x0001ee18 move a3, s3 | a3 = s3;
0x0001ee1c lw t9, -0x7f48(gp) | t9 = *(gp);
0x0001ee20 move a0, v0 | a0 = v0;
0x0001ee24 move a1, v1 | a1 = v1;
0x0001ee28 bal 0x20ab0 | fcn_00020ab0 ();
0x0001ee2c lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ee30 move a2, fp | a2 = fp;
0x0001ee34 move a3, s7 | a3 = s7;
0x0001ee38 lw t9, -0x7f6c(gp) | t9 = *(gp);
0x0001ee3c move a0, v0 | a0 = v0;
0x0001ee40 move a1, v1 | a1 = v1;
0x0001ee44 bal 0x21f20 | fcn_00021f20 ();
0x0001ee48 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ee4c lw t0, 0x38(sp) | t0 = *(var_38h_2);
0x0001ee50 move a0, fp | a0 = fp;
0x0001ee54 lw t9, -0x7f58(gp) | t9 = *(gp);
0x0001ee58 move a1, s7 | a1 = s7;
0x0001ee5c move a2, v0 | a2 = v0;
0x0001ee60 move a3, v1 | a3 = v1;
0x0001ee64 sw v0, -0x5eb0(t0) | *((t0 - 6060)) = v0;
0x0001ee68 sw v1, -0x5eac(t0) | *((t0 - 6059)) = v1;
0x0001ee6c bal 0x224c0 | fcn_000224c0 ();
0x0001ee70 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ee74 move a2, v0 | a2 = v0;
0x0001ee78 move a0, fp | a0 = fp;
0x0001ee7c lw t9, -0x7f7c(gp) | t9 = *(gp);
0x0001ee80 move a3, v1 | a3 = v1;
0x0001ee84 move a1, s7 | a1 = s7;
0x0001ee88 move s0, v0 | s0 = v0;
0x0001ee8c move s1, v1 | s1 = v1;
0x0001ee90 bal 0x21dd0 | fcn_00021dd0 ();
0x0001ee94 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 >= 0) {
0x0001ee98 bltz v0, 0x1eec4 |
0x0001ee9c lw t9, -0x7f7c(gp) | t9 = *(gp);
0x0001eea0 move a0, s0 | a0 = s0;
0x0001eea4 move a1, s1 | a1 = s1;
0x0001eea8 move a2, zero | a2 = 0;
0x0001eeac move a3, zero | a3 = 0;
0x0001eeb0 bal 0x21dd0 | fcn_00021dd0 ();
0x0001eeb4 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 < 0) {
0x0001eeb8 bltz v0, 0x1f054 | goto label_38;
| }
0x0001eebc move fp, s0 | fp = s0;
0x0001eec0 move s7, s1 | s7 = s1;
| }
| label_16:
0x0001eec4 lw a0, (s5) | a0 = *(s5);
0x0001eec8 sw fp, 0x40(s6) | *((s6 + 16)) = fp;
0x0001eecc sw s7, 0x44(s6) | *((s6 + 17)) = s7;
| if (a0 != 0) {
0x0001eed0 bnez a0, 0x1ef60 | goto label_39;
| }
0x0001eed4 lw v1, 0x2c(s6) | v1 = *((s6 + 11));
0x0001eed8 addiu v0, zero, 1 | v0 = 1;
0x0001eedc lw t9, -0x7fc4(gp) | t9 = *(gp);
| if (v1 == v0) {
0x0001eee0 beq v1, v0, 0x1efa4 | goto label_40;
| }
| label_13:
0x0001eee4 lw ra, 0x84(sp) | ra = *(var_84h);
0x0001eee8 lw fp, 0x80(sp) | fp = *(var_80h);
0x0001eeec lw s7, 0x7c(sp) | s7 = *(var_7ch);
0x0001eef0 lw s6, 0x78(sp) | s6 = *(var_78h);
0x0001eef4 lw s5, 0x74(sp) | s5 = *(var_74h);
0x0001eef8 lw s4, 0x70(sp) | s4 = *(var_70h);
0x0001eefc lw s3, 0x6c(sp) | s3 = *(var_6ch);
0x0001ef00 lw s2, 0x68(sp) | s2 = *(var_68h);
0x0001ef04 lw s1, 0x64(sp) | s1 = *(var_64h);
0x0001ef08 lw s0, 0x60(sp) | s0 = *(var_60h);
0x0001ef0c addiu sp, sp, 0x88 |
0x0001ef10 jr ra | return v0;
| label_36:
0x0001ef14 lw s3, -0x7fc4(gp) | s3 = *(gp);
| /* fcn.0001d218 */
0x0001ef18 addiu s3, s3, -0x2de8 | s3 += -0x2de8;
0x0001ef1c move t9, s3 | t9 = s3;
0x0001ef20 move a0, s2 | a0 = s2;
0x0001ef24 bal 0x1d218 | fcn_0001d218 ();
0x0001ef28 sw v0, -0x6f70(s0) | *((s0 - 7132)) = v0;
0x0001ef2c lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ef30 sw v1, -0x6f6c(s0) | *((s0 - 7131)) = v1;
0x0001ef34 b 0x1eb50 |
| } while (1);
| label_35:
0x0001ef38 lw a2, -0x7fc4(gp) | a2 = *(gp);
0x0001ef3c lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
| /* str.Regulator_enabled */
0x0001ef40 addiu a2, a2, 0x6608 | a2 += 0x6608;
0x0001ef44 addiu a1, zero, 1 | a1 = 1;
0x0001ef48 addiu a0, zero, 6 | a0 = 6;
0x0001ef4c jalr t9 | t9 ();
0x0001ef50 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001ef54 b 0x1eb20 | goto label_11;
| label_34:
0x0001ef58 addiu s2, zero, -1 | s2 = -1;
0x0001ef5c b 0x1eac8 | goto label_12;
| label_39:
0x0001ef60 lw a0, 0x30(sp) | a0 = *(var_30h_2);
0x0001ef64 lw a1, 0x34(sp) | a1 = *(var_34h_3);
0x0001ef68 lw a2, -0x7fc4(gp) | a2 = *(gp);
0x0001ef6c lw t9, -0x7d30(gp) | t9 = sym.imp.__syslog_chk;
0x0001ef70 sw a0, 0x18(sp) | *(var_18h_3) = a0;
0x0001ef74 sw a1, 0x1c(sp) | *(var_1ch) = a1;
0x0001ef78 sw fp, 0x10(sp) | *(var_10h_2) = fp;
0x0001ef7c sw s7, 0x14(sp) | *(var_14h) = s7;
| /* str.power_reduce___.2f__temp___.2f */
0x0001ef80 addiu a2, a2, 0x661c | a2 += 0x661c;
0x0001ef84 addiu a1, zero, 1 | a1 = 1;
0x0001ef88 addiu a0, zero, 6 | a0 = 6;
0x0001ef8c jalr t9 | t9 ();
0x0001ef90 lw v1, 0x2c(s6) | v1 = *((s6 + 11));
0x0001ef94 addiu v0, zero, 1 | v0 = 1;
0x0001ef98 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v1 != v0) {
0x0001ef9c bne v1, v0, 0x1eee4 | goto label_13;
| }
0x0001efa0 lw t9, -0x7fc4(gp) | t9 = *(gp);
| label_40:
0x0001efa4 lw ra, 0x84(sp) | ra = *(var_84h);
0x0001efa8 lw fp, 0x80(sp) | fp = *(var_80h);
0x0001efac lw s7, 0x7c(sp) | s7 = *(var_7ch);
0x0001efb0 lw s5, 0x74(sp) | s5 = *(var_74h);
0x0001efb4 lw s4, 0x70(sp) | s4 = *(var_70h);
0x0001efb8 lw s3, 0x6c(sp) | s3 = *(var_6ch);
0x0001efbc lw s2, 0x68(sp) | s2 = *(var_68h);
0x0001efc0 lw s1, 0x64(sp) | s1 = *(var_64h);
0x0001efc4 lw s0, 0x60(sp) | s0 = *(var_60h);
0x0001efc8 move a0, s6 | a0 = s6;
0x0001efcc lw s6, 0x78(sp) | s6 = *(var_78h);
0x0001efd0 move a2, zero | a2 = 0;
0x0001efd4 addiu a1, zero, 1 | a1 = 1;
0x0001efd8 addiu t9, t9, -0x1ac8 | t9 += -0x1ac8;
0x0001efdc addiu sp, sp, 0x88 |
0x0001efe0 b 0x1e538 | goto label_14;
| label_37:
0x0001efe4 lw v0, -0x7fc4(gp) | v0 = *(gp);
0x0001efe8 lw t9, -0x7f58(gp) | t9 = *(gp);
0x0001efec lw a2, 0x28(sp) | a2 = *(var_28h_2);
0x0001eff0 lw a3, 0x2c(sp) | a3 = *(var_2ch_2);
0x0001eff4 lw a0, 0x6378(v0) | a0 = *((v0 + 6366));
0x0001eff8 lw a1, 0x637c(v0) | a1 = *((v0 + 6367));
0x0001effc bal 0x224c0 | fcn_000224c0 ();
0x0001f000 lw gp, 0x20(sp) | gp = *(var_20h);
0x0001f004 move a2, s2 | a2 = s2;
0x0001f008 move a3, s3 | a3 = s3;
0x0001f00c lw t9, -0x7f58(gp) | t9 = *(gp);
0x0001f010 move a0, v0 | a0 = v0;
0x0001f014 move a1, v1 | a1 = v1;
0x0001f018 bal 0x224c0 | fcn_000224c0 ();
0x0001f01c lw gp, 0x20(sp) | gp = *(var_20h);
0x0001f020 move a2, zero | a2 = 0;
0x0001f024 move a3, zero | a3 = 0;
0x0001f028 lw t9, -0x7f7c(gp) | t9 = *(gp);
0x0001f02c move a0, v0 | a0 = v0;
0x0001f030 move a1, v1 | a1 = v1;
0x0001f034 move s0, v0 | s0 = v0;
0x0001f038 move s1, v1 | s1 = v1;
0x0001f03c bal 0x21dd0 | fcn_00021dd0 ();
0x0001f040 lw gp, 0x20(sp) | gp = *(var_20h);
| if (v0 >= 0) {
0x0001f044 bltz v0, 0x1f060 |
0x0001f048 sw s0, -0x5ea8(s4) | *((s4 - 6058)) = s0;
0x0001f04c sw s1, -0x5ea4(s4) | *((s4 - 6057)) = s1;
0x0001f050 b 0x1edf8 | goto label_15;
| label_38:
0x0001f054 move fp, zero | fp = 0;
0x0001f058 move s7, zero | s7 = 0;
0x0001f05c b 0x1eec4 | goto label_16;
| }
0x0001f060 move s0, zero | s0 = 0;
0x0001f064 move s1, zero | s1 = 0;
0x0001f068 sw s0, -0x5ea8(s4) | *((s4 - 6058)) = s0;
0x0001f06c sw s1, -0x5ea4(s4) | *((s4 - 6057)) = s1;
0x0001f070 b 0x1edf8 | goto label_15;
| }
[*] Function sprintf used 4 times lightd