[*] Binary protection state of io_cgi
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of io_cgi
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/io_cgi @ 0x4048 */
| #include <stdint.h>
|
; (fcn) fcn.00004048 () | void fcn_00004048 () {
0x00004048 lui gp, 2 |
0x0000404c addiu gp, gp, 0xfc8 |
0x00004050 addu gp, gp, t9 | gp += t9;
0x00004054 addiu sp, sp, -0x30 |
0x00004058 lw v0, 0x10(a0) | v0 = *((a0 + 4));
0x0000405c sw gp, 0x10(sp) | *(var_10h) = gp;
0x00004060 sw s0, 0x18(sp) | *(var_18h) = s0;
0x00004064 sw ra, 0x2c(sp) | *(var_2ch) = ra;
0x00004068 move s0, a0 | s0 = a0;
0x0000406c sw s4, 0x28(sp) | *(var_28h) = s4;
0x00004070 sw s3, 0x24(sp) | *(var_24h) = s3;
0x00004074 sw s2, 0x20(sp) | *(var_20h) = s2;
0x00004078 sw s1, 0x1c(sp) | *(var_1ch) = s1;
0x0000407c move a0, a3 | a0 = a3;
| if (v0 != 0) {
0x00004080 bnez v0, 0x41e0 | goto label_7;
| }
0x00004084 lw s1, -0x7fd0(gp) | s1 = *((gp - 8180));
| if (a1 == 0) {
0x00004088 beqz a1, 0x4130 | goto label_8;
| }
0x0000408c lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00004090 addiu a1, s1, -0x4b90 | a1 = s1 + -0x4b90;
0x00004094 move s2, a2 | s2 = a2;
0x00004098 jalr t9 | t9 ();
0x0000409c lw v1, 0x14(s0) | v1 = *((s0 + 5));
0x000040a0 lw gp, 0x10(sp) | gp = *(var_10h);
0x000040a4 move s4, v0 | s4 = v0;
| if (v1 != 0) {
0x000040a8 bnez v1, 0x4238 | goto label_9;
| }
0x000040ac lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000040b0 addiu a3, a3, -0x4b9c | a3 += -0x4b9c;
| do {
0x000040b4 lw s3, -0x7fd0(gp) | s3 = *((gp - 8180));
0x000040b8 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x000040bc move a2, s2 | a2 = s2;
0x000040c0 addiu a1, s3, -0x4b60 | a1 = s3 + -0x4b60;
0x000040c4 move a0, s4 | a0 = s4;
0x000040c8 jalr t9 | t9 ();
0x000040cc lw gp, 0x10(sp) | gp = *(var_10h);
0x000040d0 addiu a1, s1, -0x4b90 | a1 = s1 + -0x4b90;
0x000040d4 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x000040d8 move a0, s4 | a0 = s4;
0x000040dc jalr t9 | t9 ();
0x000040e0 lw v1, 0x18(s0) | v1 = *((s0 + 6));
0x000040e4 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v1 != 0) {
0x000040e8 bnez v1, 0x42ec | goto label_10;
| }
0x000040ec lw v1, 0x14(s0) | v1 = *((s0 + 5));
| label_3:
0x000040f0 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
| if (v1 != 0) {
0x000040f4 bnez v1, 0x42e4 | goto label_11;
| }
0x000040f8 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000040fc addiu a3, a3, -0x4b94 | a3 += -0x4b94;
| label_2:
0x00004100 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00004104 lw s4, 0x28(sp) | s4 = *(var_28h);
0x00004108 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x0000410c lw s0, 0x18(sp) | s0 = *(var_18h);
0x00004110 move a2, s2 | a2 = s2;
0x00004114 addiu a1, s3, -0x4b60 | a1 = s3 + -0x4b60;
0x00004118 lw s2, 0x20(sp) | s2 = *(var_20h);
0x0000411c lw s3, 0x24(sp) | s3 = *(var_24h);
0x00004120 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004124 move a0, v0 | a0 = v0;
0x00004128 addiu sp, sp, 0x30 |
0x0000412c jr t9 | t9 ();
| label_8:
0x00004130 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00004134 addiu a1, s1, -0x4b90 | a1 = s1 + -0x4b90;
0x00004138 jalr t9 | t9 ();
0x0000413c lw v1, 0x18(s0) | v1 = *((s0 + 6));
0x00004140 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004144 move s2, v0 | s2 = v0;
| if (v1 != 0) {
0x00004148 bnez v1, 0x4244 | goto label_12;
| }
0x0000414c lw s3, 0x14(s0) | s3 = *((s0 + 5));
0x00004150 lw a2, (s0) | a2 = *(s0);
0x00004154 lw v1, 0xc(s0) | v1 = *((s0 + 3));
0x00004158 move v0, s3 | v0 = s3;
0x0000415c addiu a2, a2, 1 | a2++;
| if (v1 == 0) {
0x00004160 beqz v1, 0x425c | goto label_13;
| }
| label_0:
0x00004164 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
| if (v0 != 0) {
0x00004168 bnez v0, 0x432c | goto label_14;
| }
0x0000416c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004170 addiu a3, a3, -0x4b9c | a3 += -0x4b9c;
| label_6:
0x00004174 lw s4, -0x7fd0(gp) | s4 = *((gp - 8180));
0x00004178 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x0000417c addiu a1, s4, -0x4b54 | a1 = s4 + -0x4b54;
0x00004180 move a0, s2 | a0 = s2;
0x00004184 jalr t9 | t9 ();
0x00004188 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000418c addiu a1, s1, -0x4b90 | a1 = s1 + -0x4b90;
0x00004190 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00004194 move a0, s2 | a0 = s2;
0x00004198 jalr t9 | t9 ();
0x0000419c lw a2, (s0) | a2 = *(s0);
0x000041a0 lw gp, 0x10(sp) | gp = *(var_10h);
0x000041a4 addiu a2, a2, 1 | a2++;
| if (s3 != 0) {
0x000041a8 bnez s3, 0x4318 | goto label_15;
| }
0x000041ac lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000041b0 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x000041b4 addiu a3, a3, -0x4b94 | a3 += -0x4b94;
0x000041b8 addiu a1, s4, -0x4b54 | a1 = s4 + -0x4b54;
| label_5:
0x000041bc lw ra, 0x2c(sp) | ra = *(var_2ch);
0x000041c0 lw s4, 0x28(sp) | s4 = *(var_28h);
0x000041c4 lw s3, 0x24(sp) | s3 = *(var_24h);
0x000041c8 lw s2, 0x20(sp) | s2 = *(var_20h);
0x000041cc lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x000041d0 lw s0, 0x18(sp) | s0 = *(var_18h);
0x000041d4 move a0, v0 | a0 = v0;
0x000041d8 addiu sp, sp, 0x30 |
0x000041dc jr t9 | t9 ();
| label_7:
0x000041e0 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x000041e4 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x000041e8 addiu a1, a1, -0x4b90 | a1 += -0x4b90;
0x000041ec jalr t9 | t9 ();
0x000041f0 lw v1, 0x14(s0) | v1 = *((s0 + 5));
0x000041f4 lw gp, 0x10(sp) | gp = *(var_10h);
0x000041f8 lw a2, (s0) | a2 = *(s0);
| if (v1 != 0) {
0x000041fc bnez v1, 0x42d8 | goto label_16;
| }
0x00004200 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004204 addiu a3, a3, -0x4b9c | a3 += -0x4b9c;
| label_1:
0x00004208 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x0000420c lw ra, 0x2c(sp) | ra = *(var_2ch);
0x00004210 lw s4, 0x28(sp) | s4 = *(var_28h);
0x00004214 lw s3, 0x24(sp) | s3 = *(var_24h);
0x00004218 lw s2, 0x20(sp) | s2 = *(var_20h);
0x0000421c lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x00004220 lw s0, 0x18(sp) | s0 = *(var_18h);
0x00004224 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004228 addiu a1, a1, -0x4b60 | a1 += -0x4b60;
0x0000422c move a0, v0 | a0 = v0;
0x00004230 addiu sp, sp, 0x30 |
0x00004234 jr t9 | t9 ();
| label_9:
0x00004238 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x0000423c addiu a3, a3, -0x4ba0 | a3 += -0x4ba0;
0x00004240 b 0x40b4 |
| } while (1);
| label_12:
0x00004244 lw v0, 0x14(s0) | v0 = *((s0 + 5));
0x00004248 lw a2, (s0) | a2 = *(s0);
0x0000424c lw v1, 0xc(s0) | v1 = *((s0 + 3));
0x00004250 sltiu s3, v0, 1 | s3 = (v0 < 1) ? 1 : 0;
0x00004254 addiu a2, a2, 1 | a2++;
| if (v1 != 0) {
0x00004258 bnez v1, 0x4164 | goto label_0;
| }
| label_13:
0x0000425c lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
| if (v0 != 0) {
0x00004260 bnez v0, 0x4310 | goto label_17;
| }
0x00004264 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004268 addiu a3, a3, -0x4b9c | a3 += -0x4b9c;
| label_4:
0x0000426c lw s4, -0x7fd0(gp) | s4 = *((gp - 8180));
0x00004270 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004274 addiu a1, s4, -0x4b48 | a1 = s4 + -0x4b48;
0x00004278 move a0, s2 | a0 = s2;
0x0000427c jalr t9 | t9 ();
0x00004280 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004284 addiu a1, s1, -0x4b90 | a1 = s1 + -0x4b90;
0x00004288 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x0000428c move a0, s2 | a0 = s2;
0x00004290 jalr t9 | t9 ();
0x00004294 lw a2, (s0) | a2 = *(s0);
0x00004298 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000429c addiu a2, a2, 1 | a2++;
| if (s3 != 0) {
0x000042a0 bnez s3, 0x42fc | goto label_18;
| }
0x000042a4 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000042a8 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x000042ac addiu a3, a3, -0x4b94 | a3 += -0x4b94;
0x000042b0 addiu a1, s4, -0x4b48 | a1 = s4 + -0x4b48;
| do {
0x000042b4 lw ra, 0x2c(sp) | ra = *(var_2ch);
0x000042b8 lw s4, 0x28(sp) | s4 = *(var_28h);
0x000042bc lw s3, 0x24(sp) | s3 = *(var_24h);
0x000042c0 lw s2, 0x20(sp) | s2 = *(var_20h);
0x000042c4 lw s1, 0x1c(sp) | s1 = *(var_1ch);
0x000042c8 lw s0, 0x18(sp) | s0 = *(var_18h);
0x000042cc move a0, v0 | a0 = v0;
0x000042d0 addiu sp, sp, 0x30 |
0x000042d4 jr t9 | t9 ();
| label_16:
0x000042d8 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x000042dc addiu a3, a3, -0x4ba0 | a3 += -0x4ba0;
0x000042e0 b 0x4208 | goto label_1;
| label_11:
0x000042e4 addiu a3, a3, -0x4b98 | a3 += -0x4b98;
0x000042e8 b 0x4100 | goto label_2;
| label_10:
0x000042ec lw v1, 0x14(s0) | v1 = *((s0 + 5));
0x000042f0 sltiu v1, v1, 1 | v1 = (v1 < 1) ? 1 : 0;
0x000042f4 sw v1, 0x14(s0) | *((s0 + 5)) = v1;
0x000042f8 b 0x40f0 | goto label_3;
| label_18:
0x000042fc lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004300 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004304 addiu a3, a3, -0x4b98 | a3 += -0x4b98;
0x00004308 addiu a1, s4, -0x4b48 | a1 = s4 + -0x4b48;
0x0000430c b 0x42b4 |
| } while (1);
| label_17:
0x00004310 addiu a3, a3, -0x4ba0 | a3 += -0x4ba0;
0x00004314 b 0x426c | goto label_4;
| label_15:
0x00004318 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x0000431c lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004320 addiu a3, a3, -0x4b98 | a3 += -0x4b98;
0x00004324 addiu a1, s4, -0x4b54 | a1 = s4 + -0x4b54;
0x00004328 b 0x41bc | goto label_5;
| label_14:
0x0000432c addiu a3, a3, -0x4ba0 | a3 += -0x4ba0;
0x00004330 b 0x4174 | goto label_6;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/io_cgi @ 0x46b4 */
| #include <stdint.h>
|
; (fcn) sym.handle_check_command () | void handle_check_command () {
0x000046b4 lui gp, 2 |
0x000046b8 addiu gp, gp, 0x95c |
0x000046bc addu gp, gp, t9 | gp += t9;
0x000046c0 addiu sp, sp, -0x80 |
0x000046c4 lw v0, -0x7e34(gp) | v0 = *((gp - 8077));
0x000046c8 lw v1, 0x94(sp) | v1 = *(arg_94h);
0x000046cc sw v0, 0x3c(sp) | *(var_3ch) = v0;
0x000046d0 sw v1, 0x34(sp) | *(var_34h) = v1;
0x000046d4 lw v0, (v0) | v0 = *(v0);
0x000046d8 lw v1, 0x98(sp) | v1 = *(arg_98h);
0x000046dc lw t9, -0x7f8c(gp) | t9 = sym.get_port_props;
0x000046e0 sw gp, 0x10(sp) | *(var_10h) = gp;
0x000046e4 sw s2, 0x60(sp) | *(var_60h) = s2;
0x000046e8 sw s0, 0x58(sp) | *(var_58h) = s0;
0x000046ec sw ra, 0x7c(sp) | *(var_7ch) = ra;
0x000046f0 sw fp, 0x78(sp) | *(var_78h) = fp;
0x000046f4 sw s7, 0x74(sp) | *(var_74h) = s7;
0x000046f8 sw s6, 0x70(sp) | *(var_70h) = s6;
0x000046fc sw s5, 0x6c(sp) | *(var_6ch) = s5;
0x00004700 sw s4, 0x68(sp) | *(var_68h) = s4;
0x00004704 sw s3, 0x64(sp) | *(var_64h) = s3;
0x00004708 sw s1, 0x5c(sp) | *(var_5ch) = s1;
0x0000470c move s0, a0 | s0 = a0;
0x00004710 sw a1, 0x84(sp) | *(arg_84h) = a1;
0x00004714 addiu a0, sp, 0x50 | a0 = sp + 0x50;
0x00004718 sw a2, 0x88(sp) | *(arg_88h) = a2;
0x0000471c sw v1, 0x20(sp) | *(var_20h) = v1;
0x00004720 sw v0, 0x54(sp) | *(var_54h) = v0;
0x00004724 sw zero, 0x4c(sp) | *(var_4ch) = 0;
0x00004728 sw zero, 0x50(sp) | *(var_50h) = 0;
0x0000472c move s2, a3 | s2 = a3;
0x00004730 bal 0x43a4 | sym_get_port_props ();
0x00004734 lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00004738 beqz v0, 0x4bc8 | goto label_20;
| }
0x0000473c lb v0, (s0) | v0 = *(s0);
0x00004740 lw t9, -0x7eb4(gp) | t9 = sym.imp.g_malloc0;
| if (v0 == 0) {
0x00004744 beqz v0, 0x49d8 | goto label_21;
| }
0x00004748 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x0000474c lw t9, -0x7ea4(gp) | t9 = sym.imp.g_strsplit;
0x00004750 move a2, zero | a2 = 0;
0x00004754 addiu a1, a1, -0x4a84 | a1 += -0x4a84;
0x00004758 move a0, s0 | a0 = s0;
0x0000475c jalr t9 | t9 ();
0x00004760 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004764 sw v0, 0x30(sp) | *(var_30h) = v0;
| label_6:
0x00004768 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x0000476c lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00004770 lw a0, 0x34(sp) | a0 = *(var_34h);
0x00004774 addiu a1, a1, -0x4a80 | a1 += -0x4a80;
0x00004778 jalr t9 | t9 ();
0x0000477c lw s3, 0x30(sp) | s3 = *(var_30h);
0x00004780 lw a0, (s3) | a0 = *(s3);
0x00004784 lw gp, 0x10(sp) | gp = *(var_10h);
| if (a0 == 0) {
0x00004788 beqz a0, 0x4974 | goto label_22;
| }
0x0000478c lb v0, (a0) | v0 = *(a0);
0x00004790 addiu v0, zero, 1 | v0 = 1;
| if (v0 == 0) {
0x00004794 beqz v0, 0x4974 | goto label_22;
| }
0x00004798 sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x0000479c lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047a0 addiu fp, sp, 0x4c | fp = sp + 0x4c;
0x000047a4 addiu v0, v0, -0x4aac | v0 += -0x4aac;
0x000047a8 sw v0, 0x44(sp) | *(var_44h) = v0;
0x000047ac lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047b0 sltiu s4, s2, 1 | s4 = (s2 < 1) ? 1 : 0;
0x000047b4 addiu v0, v0, -0x4ab4 | v0 += -0x4ab4;
0x000047b8 sw v0, 0x40(sp) | *(var_40h) = v0;
0x000047bc lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047c0 sw fp, 0x28(sp) | *(var_28h) = fp;
0x000047c4 addiu v0, v0, -0x4ac8 | v0 += -0x4ac8;
0x000047c8 sw v0, 0x38(sp) | *(var_38h) = v0;
0x000047cc lw t9, -0x7d24(gp) | t9 = sym.imp.g_ascii_strtoll;
| label_5:
0x000047d0 lw a1, 0x28(sp) | a1 = *(var_28h);
0x000047d4 addiu a2, zero, 0xa | a2 = 0xa;
0x000047d8 jalr t9 | t9 ();
0x000047dc lw fp, 0x50(sp) | fp = *(var_50h);
0x000047e0 lw gp, 0x10(sp) | gp = *(var_10h);
0x000047e4 move s0, v0 | s0 = v0;
| if (fp == 0) {
0x000047e8 beqz fp, 0x4b38 | goto label_23;
| }
0x000047ec lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047f0 lw s5, -0x7fd0(gp) | s5 = *((gp - 8180));
0x000047f4 sw v0, 0x24(sp) | *(var_24h) = v0;
0x000047f8 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x000047fc move s6, zero | s6 = 0;
0x00004800 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x00004804 move s1, zero | s1 = 0;
0x00004808 sw zero, 0x18(sp) | *(var_18h) = 0;
0x0000480c move s7, fp | s7 = fp;
0x00004810 b 0x4870 |
| while (a0 == 0) {
0x00004814 addiu s6, s6, 1 | s6++;
| if (v0 != 0) {
0x00004818 bnel v0, zero, 0x481c |
| }
| if (s2 == 0) {
| label_0:
0x0000481c beql s2, zero, 0x48a4 | goto label_24;
| }
0x00004820 lw a1, 4(fp) | a1 = *(arg_84h);
| label_1:
0x00004824 lw v1, 0x90(sp) | v1 = *(arg_90h);
| if (s1 == s0) {
0x00004828 beq s1, s0, 0x4a08 | goto label_25;
| }
| if (s6 == s0) {
0x0000482c beq s6, s0, 0x4aa0 | goto label_26;
| }
0x00004830 nop |
0x00004834 lw a2, (s3) | a2 = *(s3);
| label_2:
0x00004838 lw a1, 0x4c(sp) | a1 = *(var_4ch);
| if (a2 != a1) {
0x0000483c beql a2, a1, 0x4868 |
0x00004840 lw s7, 4(s7) | s7 = *((s7 + 1));
| if (v0 == 0) {
0x00004844 beql v0, zero, 0x4868 | goto label_7;
| }
0x00004848 lw s7, 4(s7) | s7 = *((s7 + 1));
0x0000484c lw a2, 4(fp) | a2 = *(arg_84h);
0x00004850 addu a2, s4, a2 | a2 = s4 + a2;
| if (a2 == s0) {
0x00004854 beq a2, s0, 0x4b28 | goto label_27;
| }
0x00004858 nop |
0x0000485c lw v0, 0x90(sp) | v0 = *(arg_90h);
| if (s2 != 0) {
0x00004860 bnez s2, 0x4a3c | goto label_11;
| }
| label_3:
0x00004864 lw s7, 4(s7) | s7 = *((s7 + 1));
| }
| label_7:
0x00004868 lw v0, 0x18(sp) | v0 = *(var_18h);
| if (s7 == 0) {
0x0000486c beqz s7, 0x4914 | goto label_28;
| }
| label_4:
0x00004870 lw fp, (s7) | fp = *(s7);
0x00004874 lw t9, -0x7ea8(gp) | t9 = sym.imp.g_hash_table_lookup;
0x00004878 addiu a1, s5, -0x4a24 | a1 = s5 + -0x4a24;
0x0000487c lw a0, 0x18(fp) | a0 = *(arg_98h);
0x00004880 jalr t9 | t9 ();
0x00004884 lw a0, 0xc(fp) | a0 = *(arg_ch);
0x00004888 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000488c beqz a0, 0x4814 |
| }
| if (v0 == 0) {
0x00004890 beqz v0, 0x481c | goto label_0;
| }
0x00004894 nop |
0x00004898 addiu s1, s1, 1 | s1++;
| if (s2 != 0) {
0x0000489c bnez s2, 0x4824 | goto label_1;
| }
0x000048a0 lw a1, 4(fp) | a1 = *(arg_84h);
| label_24:
0x000048a4 addu a1, s4, a1 | a1 = s4 + a1;
0x000048a8 lw a2, (s3) | a2 = *(s3);
| if (a1 == s0) {
0x000048ac bnel a1, s0, 0x4838 | goto label_2;
| }
0x000048b0 lw a1, 0x4c(sp) | a1 = *(var_4ch);
| if (v0 == 0) {
0x000048b4 beqz v0, 0x4864 | goto label_3;
| }
0x000048b8 lw v0, (s3) | v0 = *(s3);
0x000048bc addiu v0, zero, 1 | v0 = 1;
| if (a1 == v0) {
0x000048c0 beq a1, v0, 0x4b1c | goto label_29;
| }
0x000048c4 sw v0, 0x18(sp) | *(var_18h) = v0;
0x000048c8 lw v0, 0x84(sp) | v0 = *(arg_84h);
| label_12:
0x000048cc lw v0, 0x88(sp) | v0 = *(arg_88h);
| if (v0 != 0) {
0x000048d0 bnez v0, 0x4b40 | goto label_30;
| }
0x000048d4 move a2, s0 | a2 = s0;
| if (v0 == 0) {
0x000048d8 beqz v0, 0x4a6c | goto label_31;
| }
0x000048dc lw a3, 0x44(sp) | a3 = *(var_44h);
| if (a0 == 0) {
0x000048e0 bnez a0, 0x48e8 |
0x000048e4 lw a3, 0x40(sp) | a3 = *(var_40h);
| }
| label_8:
0x000048e8 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x000048ec lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x000048f0 addiu a1, a1, -0x49f8 | a1 += -0x49f8;
| label_9:
0x000048f4 lw a0, 0x20(sp) | a0 = *(var_20h);
0x000048f8 jalr t9 | t9 ();
0x000048fc lw s7, 4(s7) | s7 = *((s7 + 1));
0x00004900 addiu v0, zero, 1 | v0 = 1;
0x00004904 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004908 sw v0, 0x1c(sp) | *(var_1ch) = v0;
| if (s7 != 0) {
0x0000490c bnez s7, 0x4870 | goto label_4;
| }
0x00004910 lw v0, 0x18(sp) | v0 = *(var_18h);
| if (v0 != 0) {
| label_28:
0x00004914 beql v0, zero, 0x491c |
0x00004918 sw zero, 0x1c(sp) | *(var_1ch) = 0;
| }
| label_13:
0x0000491c addiu s3, s3, 4 | s3 += 4;
0x00004920 lw a0, (s3) | a0 = *(s3);
0x00004924 lw v0, 0x1c(sp) | v0 = *(var_1ch);
| if (a0 == 0) {
0x00004928 beqz a0, 0x493c | goto label_32;
| }
0x0000492c lb v0, (a0) | v0 = *(a0);
0x00004930 lw t9, -0x7d24(gp) | t9 = sym.imp.g_ascii_strtoll;
| if (v0 != 0) {
0x00004934 bnez v0, 0x47d0 | goto label_5;
| }
0x00004938 lw v0, 0x1c(sp) | v0 = *(var_1ch);
| label_32:
0x0000493c lw t9, -0x7ee8(gp) | t9 = sym.imp.g_strfreev;
| if (v0 == 0) {
0x00004940 bnez v0, 0x4978 |
0x00004944 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004948 lw t9, -0x7e44(gp) | t9 = sym.imp.g_string_assign;
0x0000494c lw a0, 0x34(sp) | a0 = *(var_34h);
0x00004950 addiu a1, a1, -0x4db4 | a1 += -0x4db4;
0x00004954 jalr t9 | t9 ();
0x00004958 lw gp, 0x10(sp) | gp = *(var_10h);
0x0000495c lw a0, 0x20(sp) | a0 = *(var_20h);
0x00004960 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004964 lw t9, -0x7e44(gp) | t9 = sym.imp.g_string_assign;
0x00004968 addiu a1, a1, -0x4b64 | a1 += -0x4b64;
0x0000496c jalr t9 | t9 ();
0x00004970 lw gp, 0x10(sp) | gp = *(var_10h);
| label_22:
0x00004974 lw t9, -0x7ee8(gp) | t9 = sym.imp.g_strfreev;
| }
0x00004978 lw a0, 0x30(sp) | a0 = *(var_30h);
0x0000497c jalr t9 | t9 ();
0x00004980 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004984 lw t9, -0x7d80(gp) | t9 = sym.imp.g_list_free_full;
0x00004988 lw a1, -0x7f88(gp) | a1 = sym.port_free;
0x0000498c lw a0, 0x50(sp) | a0 = *(var_50h);
0x00004990 jalr t9 | t9 ();
0x00004994 lw gp, 0x10(sp) | gp = *(var_10h);
| label_18:
0x00004998 lw v0, 0x3c(sp) | v0 = *(var_3ch);
0x0000499c lw v1, 0x54(sp) | v1 = *(var_54h);
0x000049a0 lw v0, (v0) | v0 = *(v0);
0x000049a4 lw ra, 0x7c(sp) | ra = *(var_7ch);
| if (v1 != v0) {
0x000049a8 bne v1, v0, 0x4c08 | goto label_33;
| }
0x000049ac lw fp, 0x78(sp) | fp = *(var_78h);
0x000049b0 lw s7, 0x74(sp) | s7 = *(var_74h);
0x000049b4 lw s6, 0x70(sp) | s6 = *(var_70h);
0x000049b8 lw s5, 0x6c(sp) | s5 = *(var_6ch);
0x000049bc lw s4, 0x68(sp) | s4 = *(var_68h);
0x000049c0 lw s3, 0x64(sp) | s3 = *(var_64h);
0x000049c4 lw s2, 0x60(sp) | s2 = *(var_60h);
0x000049c8 lw s1, 0x5c(sp) | s1 = *(var_5ch);
0x000049cc lw s0, 0x58(sp) | s0 = *(var_58h);
0x000049d0 addiu sp, sp, 0x80 |
0x000049d4 jr ra | return v0;
| label_21:
0x000049d8 addiu a0, zero, 8 | a0 = 8;
0x000049dc jalr t9 | t9 ();
0x000049e0 lw gp, 0x10(sp) | gp = *(var_10h);
0x000049e4 move s0, v0 | s0 = v0;
0x000049e8 sw v0, 0x30(sp) | *(var_30h) = v0;
0x000049ec lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x000049f0 lw t9, -0x7d54(gp) | t9 = sym.imp.g_strdup;
0x000049f4 addiu a0, a0, -0x4a88 | a0 += -0x4a88;
0x000049f8 jalr t9 | t9 ();
0x000049fc lw gp, 0x10(sp) | gp = *(var_10h);
0x00004a00 sw v0, (s0) | *(s0) = v0;
0x00004a04 b 0x4768 | goto label_6;
| if (v1 != 0) {
| label_25:
0x00004a08 bnez v1, 0x4a18 | goto label_10;
| }
0x00004a0c nop |
0x00004a10 lw a2, (s3) | a2 = *(s3);
| if (s6 == s1) {
0x00004a14 bnel s6, s1, 0x4838 | goto label_2;
| }
| label_10:
0x00004a18 lw v0, 0x4c(sp) | v0 = *(var_4ch);
| if (v0 == 0) {
0x00004a1c beqz v0, 0x4864 | goto label_3;
| }
0x00004a20 lw a1, (s3) | a1 = *(s3);
0x00004a24 addiu v0, zero, 1 | v0 = 1;
| if (a1 == v0) {
0x00004a28 beq a1, v0, 0x4b1c | goto label_29;
| }
0x00004a2c lw a2, 4(fp) | a2 = *(arg_84h);
0x00004a30 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00004a34 addu a2, s4, a2 | a2 = s4 + a2;
0x00004a38 lw v0, 0x90(sp) | v0 = *(arg_90h);
| label_11:
0x00004a3c addu v0, s6, s4 | v0 = s6 + s4;
| if (v0 == 0) {
0x00004a40 beqz v0, 0x4ab0 | goto label_34;
| }
0x00004a44 addu v0, s1, s4 | v0 = s1 + s4;
0x00004a48 lw s7, 4(s7) | s7 = *((s7 + 1));
| if (v0 == s0) {
0x00004a4c bnel v0, s0, 0x4868 | goto label_7;
| }
| if (a0 == 0) {
0x00004a50 beql a0, zero, 0x4868 | goto label_7;
| }
0x00004a54 lw s7, 4(s7) | s7 = *((s7 + 1));
0x00004a58 lw v0, 0x84(sp) | v0 = *(arg_84h);
0x00004a5c lw v0, 0x88(sp) | v0 = *(arg_88h);
| if (v0 != 0) {
0x00004a60 bnez v0, 0x4b98 | goto label_35;
| }
0x00004a64 lw a3, 0x44(sp) | a3 = *(var_44h);
| if (v0 == 0) {
0x00004a68 bnel v0, zero, 0x48e8 | goto label_8;
| }
| label_31:
0x00004a6c lw v0, 0x14(fp) | v0 = *(arg_94h);
| label_19:
0x00004a70 lw a3, 8(fp) | a3 = *(arg_88h);
| if (v0 != 0) {
0x00004a74 bnez v0, 0x4b8c | goto label_36;
| }
0x00004a78 sltu a3, zero, a3 | a3 = (0 < a3) ? 1 : 0;
| label_16:
0x00004a7c lw v0, 0x2c(sp) | v0 = *(var_2ch);
| if (s2 == 0) {
0x00004a80 beqz s2, 0x4b6c | goto label_37;
| }
0x00004a84 lw v0, 0x90(sp) | v0 = *(arg_90h);
0x00004a88 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
| if (v0 != 0) {
0x00004a8c bnez v0, 0x4bb8 | goto label_38;
| }
0x00004a90 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004a94 addu a2, s6, s4 | a2 = s6 + s4;
0x00004a98 addiu a1, a1, -0x49e0 | a1 += -0x49e0;
0x00004a9c b 0x48f4 | goto label_9;
| label_26:
0x00004aa0 lw a2, (s3) | a2 = *(s3);
| if (v1 == 0) {
0x00004aa4 bnel v1, zero, 0x4838 | goto label_2;
| }
0x00004aa8 b 0x4a18 | goto label_10;
0x00004aac nop |
| label_34:
0x00004ab0 lw s7, 4(s7) | s7 = *((s7 + 1));
| if (v0 == s0) {
0x00004ab4 bnel v0, s0, 0x4868 | goto label_7;
| }
0x00004ab8 lw s7, 4(s7) | s7 = *((s7 + 1));
| if (a0 == 0) {
0x00004abc bnel a0, zero, 0x4868 | goto label_7;
| }
0x00004ac0 lw v0, 0x84(sp) | v0 = *(arg_84h);
0x00004ac4 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
| if (v0 == 0) {
0x00004ac8 beqz v0, 0x4c14 | goto label_39;
| }
0x00004acc lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004ad0 lw a0, 0x20(sp) | a0 = *(var_20h);
0x00004ad4 move a2, s0 | a2 = s0;
0x00004ad8 addiu a1, a1, -0x4a10 | a1 += -0x4a10;
0x00004adc jalr t9 | t9 ();
0x00004ae0 lw gp, 0x10(sp) | gp = *(var_10h);
| label_17:
0x00004ae4 lw v0, 8(fp) | v0 = *(arg_88h);
0x00004ae8 lw a2, 0x38(sp) | a2 = *(var_38h);
| if (v0 != 0) {
0x00004aec bnel v0, zero, 0x4af8 |
| label_14:
0x00004af0 lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004af4 addiu a2, a2, -0x4ac0 | a2 += -0x4ac0;
| }
| label_15:
0x00004af8 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004afc lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004b00 lw a0, 0x20(sp) | a0 = *(var_20h);
0x00004b04 addiu a1, a1, -0x49fc | a1 += -0x49fc;
0x00004b08 jalr t9 | t9 ();
0x00004b0c addiu v0, zero, 1 | v0 = 1;
0x00004b10 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004b14 sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x00004b18 b 0x4864 | goto label_3;
| label_29:
0x00004b1c addiu v0, zero, 1 | v0 = 1;
0x00004b20 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00004b24 b 0x4864 | goto label_3;
| label_27:
0x00004b28 lw v0, 0x90(sp) | v0 = *(arg_90h);
| if (s2 == 0) {
0x00004b2c bnel s2, zero, 0x4a3c | goto label_11;
| }
0x00004b30 lw v0, 0x84(sp) | v0 = *(arg_84h);
0x00004b34 b 0x48cc | goto label_12;
| label_23:
0x00004b38 sw zero, 0x1c(sp) | *(var_1ch) = 0;
0x00004b3c b 0x491c | goto label_13;
| label_30:
0x00004b40 lw v0, 0x24(sp) | v0 = *(var_24h);
0x00004b44 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004b48 lw a0, 0x20(sp) | a0 = *(var_20h);
0x00004b4c addiu a1, v0, -0x4a04 | a1 = v0 + -0x4a04;
0x00004b50 move a2, s0 | a2 = s0;
0x00004b54 jalr t9 | t9 ();
0x00004b58 lw v0, 8(fp) | v0 = *(arg_88h);
0x00004b5c lw gp, 0x10(sp) | gp = *(var_10h);
| if (v0 == 0) {
0x00004b60 beqz v0, 0x4af0 | goto label_14;
| }
0x00004b64 lw a2, 0x38(sp) | a2 = *(var_38h);
0x00004b68 b 0x4af8 | goto label_15;
| label_37:
0x00004b6c lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004b70 addiu a1, v0, -0x49d0 | a1 = v0 + -0x49d0;
0x00004b74 lw a0, 0x20(sp) | a0 = *(var_20h);
0x00004b78 addiu v0, zero, 1 | v0 = 1;
0x00004b7c sw v0, 0x1c(sp) | *(var_1ch) = v0;
0x00004b80 jalr t9 | t9 ();
0x00004b84 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004b88 b 0x4864 | goto label_3;
| label_36:
0x00004b8c sltiu a3, a3, 1 | a3 = (a3 < 1) ? 1 : 0;
0x00004b90 sw a3, 8(fp) | *(arg_88h) = a3;
0x00004b94 b 0x4a7c | goto label_16;
| label_35:
0x00004b98 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004b9c lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
0x00004ba0 lw a0, 0x20(sp) | a0 = *(var_20h);
0x00004ba4 move a2, s0 | a2 = s0;
0x00004ba8 addiu a1, a1, -0x4a1c | a1 += -0x4a1c;
0x00004bac jalr t9 | t9 ();
0x00004bb0 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004bb4 b 0x4ae4 | goto label_17;
| label_38:
0x00004bb8 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004bbc addu a2, s1, s4 | a2 = s1 + s4;
0x00004bc0 addiu a1, a1, -0x49ec | a1 += -0x49ec;
0x00004bc4 b 0x48f4 | goto label_9;
| label_20:
0x00004bc8 lw a3, -0x7fd0(gp) | a3 = *((gp - 8180));
0x00004bcc lw a2, -0x7fd0(gp) | a2 = *((gp - 8180));
0x00004bd0 lw t9, -0x7f24(gp) | t9 = sym.imp.g_log;
0x00004bd4 addiu a3, a3, -0x4b64 | a3 += -0x4b64;
0x00004bd8 addiu a2, a2, -0x4aa4 | a2 += -0x4aa4;
0x00004bdc addiu a1, zero, 0x10 | a1 = 0x10;
0x00004be0 move a0, zero | a0 = 0;
0x00004be4 jalr t9 | t9 ();
0x00004be8 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004bec lw a0, 0x34(sp) | a0 = *(var_34h);
0x00004bf0 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00004bf4 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00004bf8 addiu a1, a1, -0x4db4 | a1 += -0x4db4;
0x00004bfc jalr t9 | t9 ();
0x00004c00 lw gp, 0x10(sp) | gp = *(var_10h);
0x00004c04 b 0x4998 | goto label_18;
| label_33:
0x00004c08 lw t9, -0x7e7c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00004c0c jalr t9 | t9 ();
0x00004c10 nop |
| label_39:
0x00004c14 lw v0, 0x88(sp) | v0 = *(arg_88h);
0x00004c18 lw a3, 0x40(sp) | a3 = *(var_40h);
| if (v0 == 0) {
0x00004c1c bnel v0, zero, 0x48e8 | goto label_8;
| }
0x00004c20 lw v0, 0x14(fp) | v0 = *(arg_94h);
0x00004c24 b 0x4a70 | goto label_19;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/io_cgi @ 0x59c0 */
| #include <stdint.h>
|
; (fcn) sym.handle_connector_command () | void handle_connector_command () {
0x000059c0 lui gp, 2 |
0x000059c4 addiu gp, gp, -0x9b0 |
0x000059c8 addu gp, gp, t9 | gp += t9;
0x000059cc lw v0, -0x7e34(gp) | v0 = *((gp - 8077));
0x000059d0 addiu sp, sp, -0x68 |
0x000059d4 lw t9, -0x7f8c(gp) | t9 = sym.get_port_props;
0x000059d8 sw v0, 0x2c(sp) | *(var_2ch) = v0;
0x000059dc lw v0, (v0) | v0 = *(v0);
0x000059e0 sw gp, 0x10(sp) | *(var_10h_2) = gp;
0x000059e4 sw s0, 0x40(sp) | *(var_40h) = s0;
0x000059e8 sw ra, 0x64(sp) | *(var_64h_3) = ra;
0x000059ec sw fp, 0x60(sp) | *(var_60h_3) = fp;
0x000059f0 sw s7, 0x5c(sp) | *(var_5ch_3) = s7;
0x000059f4 sw s6, 0x58(sp) | *(var_58h_2) = s6;
0x000059f8 sw s5, 0x54(sp) | *(var_54h_2) = s5;
0x000059fc sw s4, 0x50(sp) | *(var_50h_3) = s4;
0x00005a00 sw s3, 0x4c(sp) | *(var_4ch_2) = s3;
0x00005a04 sw s2, 0x48(sp) | *(var_48h_3) = s2;
0x00005a08 sw s1, 0x44(sp) | *(var_44h_2) = s1;
0x00005a0c move s0, a0 | s0 = a0;
0x00005a10 sw a1, 0x28(sp) | *(var_28h_2) = a1;
0x00005a14 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00005a18 sw a2, 0x1c(sp) | *(var_1ch) = a2;
0x00005a1c sw v0, 0x3c(sp) | *(var_3ch_3) = v0;
0x00005a20 sw zero, 0x34(sp) | *(var_34h_2) = 0;
0x00005a24 sw zero, 0x38(sp) | *(var_38h_3) = 0;
0x00005a28 bal 0x43a4 | sym_get_port_props ();
0x00005a2c nop |
0x00005a30 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 == 0) {
0x00005a34 beqz v0, 0x5c48 | goto label_6;
| }
0x00005a38 lb v0, (s0) | v0 = *(s0);
0x00005a3c lw t9, -0x7eb4(gp) | t9 = sym.imp.g_malloc0;
| if (v0 == 0) {
0x00005a40 beqz v0, 0x5be4 | goto label_7;
| }
0x00005a44 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00005a48 lw t9, -0x7ea4(gp) | t9 = sym.imp.g_strsplit;
0x00005a4c move a2, zero | a2 = 0;
0x00005a50 addiu a1, a1, -0x4a84 | a1 += -0x4a84;
0x00005a54 move a0, s0 | a0 = s0;
0x00005a58 jalr t9 | t9 ();
0x00005a5c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005a60 move s6, v0 | s6 = v0;
| label_3:
0x00005a64 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00005a68 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00005a6c lw a0, 0x28(sp) | a0 = *(var_28h_2);
0x00005a70 addiu a1, a1, -0x4a80 | a1 += -0x4a80;
0x00005a74 jalr t9 | t9 ();
0x00005a78 lw s3, 0x38(sp) | s3 = *(var_38h_3);
0x00005a7c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005a80 sw zero, 0x18(sp) | *(var_18h_4) = 0;
| if (s3 == 0) {
0x00005a84 beqz s3, 0x5c2c | goto label_8;
| }
0x00005a88 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00005a8c lw s2, -0x7fd0(gp) | s2 = *((gp - 8180));
0x00005a90 addiu v0, v0, -0x4890 | v0 += -0x4890;
0x00005a94 sw v0, 0x20(sp) | *(var_20h_3) = v0;
0x00005a98 lw v0, -0x7fd0(gp) | v0 = *((gp - 8180));
0x00005a9c addiu s2, s2, -0x4874 | s2 += -0x4874;
0x00005aa0 addiu v0, v0, -0x4884 | v0 += -0x4884;
0x00005aa4 sw v0, 0x24(sp) | *(var_24h_3) = v0;
0x00005aa8 lw a0, (s6) | a0 = *(s6);
| label_2:
0x00005aac lw s0, (s3) | s0 = *(s3);
| if (a0 == 0) {
0x00005ab0 beqz a0, 0x5b68 | goto label_9;
| }
0x00005ab4 lw s4, -0x7fd0(gp) | s4 = *((gp - 8180));
0x00005ab8 lw s5, -0x7fd0(gp) | s5 = *((gp - 8180));
0x00005abc move s7, s6 | s7 = s6;
0x00005ac0 addiu fp, sp, 0x34 | fp = sp + 0x34;
0x00005ac4 addiu s4, s4, -0x4854 | s4 += -0x4854;
0x00005ac8 b 0x5ad8 |
| while (a0 == v1) {
| label_0:
0x00005acc lw a0, (s7) | a0 = *(s7);
| if (a0 == 0) {
0x00005ad0 beql a0, zero, 0x5b6c | goto label_10;
| }
0x00005ad4 lw s3, 4(s3) | s3 = *((s3 + 1));
| label_1:
0x00005ad8 lw t9, -0x7d24(gp) | t9 = sym.imp.g_ascii_strtoll;
0x00005adc addiu a2, zero, 0xa | a2 = 0xa;
0x00005ae0 move a1, fp | a1 = fp;
0x00005ae4 jalr t9 | t9 ();
0x00005ae8 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005aec lw a0, 0x18(s0) | a0 = *((s0 + 6));
0x00005af0 move a1, s2 | a1 = s2;
0x00005af4 lw t9, -0x7ea8(gp) | t9 = sym.imp.g_hash_table_lookup;
0x00005af8 move s1, v0 | s1 = v0;
0x00005afc jalr t9 | t9 ();
0x00005b00 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 == 0) {
0x00005b04 beqz v0, 0x5c10 | goto label_11;
| }
0x00005b08 addiu v0, zero, 1 | v0 = 1;
| label_4:
0x00005b0c lw a0, (s7) | a0 = *(s7);
0x00005b10 lw v1, 0x34(sp) | v1 = *(var_34h_2);
0x00005b14 beql a0, v1, 0x5acc |
| }
0x00005b18 addiu s7, s7, 4 | s7 += 4;
0x00005b1c lw a2, 4(s0) | a2 = *((s0 + 1));
0x00005b20 addiu a2, a2, 1 | a2++;
0x00005b24 addiu s7, s7, 4 | s7 += 4;
| if (a2 != s1) {
0x00005b28 bne a2, s1, 0x5acc | goto label_0;
| }
| if (v0 == 0) {
0x00005b2c beqz v0, 0x5acc | goto label_0;
| }
0x00005b30 nop |
0x00005b34 lw a3, 8(s0) | a3 = *((s0 + 2));
0x00005b38 lw a0, 0x20(sp) | a0 = *(var_20h_3);
0x00005b3c lw v1, 0x24(sp) | v1 = *(var_24h_3);
0x00005b40 lw t9, -0x7f20(gp) | t9 = sym.imp.g_string_append_printf
| if (a3 == 0) {
0x00005b44 movn v1, a0, a3 | v1 = a0;
| }
0x00005b48 lw a0, 0x1c(sp) | a0 = *(var_1ch);
0x00005b4c move a3, v1 | a3 = v1;
0x00005b50 move a1, s4 | a1 = s4;
0x00005b54 sw v0, 0x18(sp) | *(var_18h_4) = v0;
0x00005b58 jalr t9 | t9 ();
0x00005b5c lw a0, (s7) | a0 = *(s7);
0x00005b60 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (a0 != 0) {
0x00005b64 bnez a0, 0x5ad8 | goto label_1;
| }
| label_9:
0x00005b68 lw s3, 4(s3) | s3 = *((s3 + 1));
| label_10:
0x00005b6c lw a0, (s6) | a0 = *(s6);
| if (s3 == 0) {
0x00005b70 bnel s3, zero, 0x5aac | goto label_2;
| }
0x00005b74 lw v0, 0x18(sp) | v0 = *(var_18h_4);
0x00005b78 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00005b7c beqz v0, 0x5c30 |
| while (1) {
0x00005b80 lw t9, -0x7ee8(gp) | t9 = sym.imp.g_strfreev;
0x00005b84 move a0, s6 | a0 = s6;
0x00005b88 jalr t9 | t9 ();
0x00005b8c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005b90 lw t9, -0x7d80(gp) | t9 = sym.imp.g_list_free_full;
0x00005b94 lw a1, -0x7f88(gp) | a1 = sym.port_free;
0x00005b98 lw a0, 0x38(sp) | a0 = *(var_38h_3);
0x00005b9c jalr t9 | t9 ();
0x00005ba0 lw gp, 0x10(sp) | gp = *(var_10h_2);
| label_5:
0x00005ba4 lw v0, 0x2c(sp) | v0 = *(var_2ch);
0x00005ba8 lw v1, 0x3c(sp) | v1 = *(var_3ch_3);
0x00005bac lw v0, (v0) | v0 = *(v0);
0x00005bb0 lw ra, 0x64(sp) | ra = *(var_64h_3);
| if (v1 != v0) {
0x00005bb4 bne v1, v0, 0x5c7c | goto label_12;
| }
0x00005bb8 lw fp, 0x60(sp) | fp = *(var_60h_3);
0x00005bbc lw s7, 0x5c(sp) | s7 = *(var_5ch_3);
0x00005bc0 lw s6, 0x58(sp) | s6 = *(var_58h_2);
0x00005bc4 lw s5, 0x54(sp) | s5 = *(var_54h_2);
0x00005bc8 lw s4, 0x50(sp) | s4 = *(var_50h_3);
0x00005bcc lw s3, 0x4c(sp) | s3 = *(var_4ch_2);
0x00005bd0 lw s2, 0x48(sp) | s2 = *(var_48h_3);
0x00005bd4 lw s1, 0x44(sp) | s1 = *(var_44h_2);
0x00005bd8 lw s0, 0x40(sp) | s0 = *(var_40h);
0x00005bdc addiu sp, sp, 0x68 |
0x00005be0 jr ra | return v0;
| label_7:
0x00005be4 addiu a0, zero, 8 | a0 = 8;
0x00005be8 jalr t9 | t9 ();
0x00005bec lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005bf0 move s6, v0 | s6 = v0;
0x00005bf4 lw a0, -0x7fd0(gp) | a0 = *((gp - 8180));
0x00005bf8 lw t9, -0x7d54(gp) | t9 = sym.imp.g_strdup;
0x00005bfc addiu a0, a0, -0x4a88 | a0 += -0x4a88;
0x00005c00 jalr t9 | t9 ();
0x00005c04 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005c08 sw v0, (s6) | *(s6) = v0;
0x00005c0c b 0x5a64 | goto label_3;
| label_11:
0x00005c10 lw t9, -0x7ea8(gp) | t9 = sym.imp.g_hash_table_lookup;
0x00005c14 lw a0, 0x18(s0) | a0 = *((s0 + 6));
0x00005c18 addiu a1, s5, -0x4864 | a1 = s5 + -0x4864;
0x00005c1c jalr t9 | t9 ();
0x00005c20 sltu v0, zero, v0 | v0 = (0 < v0) ? 1 : 0;
0x00005c24 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005c28 b 0x5b0c | goto label_4;
| label_8:
0x00005c2c lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00005c30 lw t9, -0x7e44(gp) | t9 = sym.imp.g_string_assign;
0x00005c34 lw a0, 0x28(sp) | a0 = *(var_28h_2);
0x00005c38 addiu a1, a1, -0x4db4 | a1 += -0x4db4;
0x00005c3c jalr t9 | t9 ();
0x00005c40 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005c44 b 0x5b80 |
| }
| label_6:
0x00005c48 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00005c4c lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00005c50 lw a0, 0x28(sp) | a0 = *(var_28h_2);
0x00005c54 addiu a1, a1, -0x4db4 | a1 += -0x4db4;
0x00005c58 jalr t9 | t9 ();
0x00005c5c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005c60 lw a0, 0x1c(sp) | a0 = *(var_1ch);
0x00005c64 lw a1, -0x7fd0(gp) | a1 = *((gp - 8180));
0x00005c68 lw t9, -0x7f18(gp) | t9 = sym.imp.g_string_append;
0x00005c6c addiu a1, a1, -0x4d7c | a1 += -0x4d7c;
0x00005c70 jalr t9 | t9 ();
0x00005c74 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x00005c78 b 0x5ba4 | goto label_5;
| label_12:
0x00005c7c lw t9, -0x7e7c(gp) | t9 = sym.imp.__stack_chk_fail;
0x00005c80 jalr t9 | t9 ();
0x00005c84 nop |
| }
[*] Function printf used 18 times io_cgi