[*] Binary protection state of dcore

  
  	Full RELRO     Canary found      NX disabled  PIE enabled  No RPATH     No RUNPATH   No Symbols


[*] Function sprintf tear down of dcore

    ; assembly                               | /* r2dec pseudo code output */
                                             | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dcore @ 0x1b14 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) fcn.00001b14 ()                  | void fcn_00001b14 () {
    0x00001b14 lui gp, 2                     |     
    0x00001b18 addiu gp, gp, -0x3b04         |     
    0x00001b1c addu gp, gp, t9               |     gp += t9;
    0x00001b20 addiu sp, sp, -0x238          |     
    0x00001b24 lw a2, -0x7fd8(gp)            |     a2 = *((gp - 8182));
    0x00001b28 sw s2, 0x22c(sp)              |     *(var_22ch) = s2;
    0x00001b2c lw s2, -0x7e68(gp)            |     s2 = *((gp - 8090));
    0x00001b30 lw t9, -0x7eb0(gp)            |     t9 = sym.imp.__asprintf_chk
    0x00001b34 sw gp, 0x10(sp)               |     *(var_10h_2) = gp;
    0x00001b38 lw v0, (s2)                   |     v0 = *(s2);
    0x00001b3c move a3, a1                   |     a3 = a1;
    0x00001b40 sw ra, 0x234(sp)              |     *(var_234h) = ra;
    0x00001b44 sw s3, 0x230(sp)              |     *(var_230h) = s3;
    0x00001b48 addiu a2, a2, 0x50f8          |     a2 += str._proc__lu_auxv;
    0x00001b4c addiu a1, zero, 1             |     a1 = 1;
    0x00001b50 sw s1, 0x228(sp)              |     *(var_228h) = s1;
    0x00001b54 sw s0, 0x224(sp)              |     *(var_224h) = s0;
    0x00001b58 move s3, a0                   |     s3 = a0;
    0x00001b5c sw v0, 0x21c(sp)              |     *(var_21ch) = v0;
    0x00001b60 addiu a0, sp, 0x18            |     a0 = sp + 0x18;
    0x00001b64 jalr t9                       |     t9 ();
    0x00001b68 lw gp, 0x10(sp)               |     gp = *(var_10h_2);
    0x00001b6c lw a0, 0x18(sp)               |     a0 = *(var_18h_2);
    0x00001b70 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x00001b74 lw t9, -0x7e50(gp)            |     t9 = sym.imp.fopen;
    0x00001b78 addiu a1, a1, 0x5108          |     a1 += 0x5108;
    0x00001b7c jalr t9                       |     t9 ();
    0x00001b80 lw gp, 0x10(sp)               |     gp = *(var_10h_2);
                                             |     if (v0 == 0) {
    0x00001b84 beqz v0, 0x1c18               |         goto label_0;
                                             |     }
    0x00001b88 lw t9, -0x7e5c(gp)            |     t9 = sym.imp.free;
    0x00001b8c lw a0, 0x18(sp)               |     a0 = *(var_18h_2);
    0x00001b90 move s1, v0                   |     s1 = v0;
    0x00001b94 jalr t9                       |     t9 ();
    0x00001b98 lw gp, 0x10(sp)               |     gp = *(var_10h_2);
    0x00001b9c addiu s0, sp, 0x1c            |     s0 = sp + 0x1c;
    0x00001ba0 move a3, s1                   |     a3 = s1;
    0x00001ba4 lw t9, -0x7ea0(gp)            |     t9 = sym.imp.fread;
    0x00001ba8 addiu a2, zero, 0x200         |     a2 = 0x200;
    0x00001bac addiu a1, zero, 1             |     a1 = 1;
    0x00001bb0 move a0, s0                   |     a0 = s0;
    0x00001bb4 jalr t9                       |     t9 ();
    0x00001bb8 lw gp, 0x10(sp)               |     gp = *(var_10h_2);
    0x00001bbc move a0, s1                   |     a0 = s1;
    0x00001bc0 lw t9, -0x7f18(gp)            |     t9 = sym.imp.fclose;
    0x00001bc4 move s1, v0                   |     s1 = v0;
    0x00001bc8 jalr t9                       |     t9 ();
    0x00001bcc lw gp, 0x10(sp)               |     gp = *(var_10h_2);
    0x00001bd0 move a3, s1                   |     a3 = s1;
    0x00001bd4 move a2, s0                   |     a2 = s0;
    0x00001bd8 lw t9, -0x7fd8(gp)            |     t9 = *((gp - 8182));
    0x00001bdc addiu a1, zero, 6             |     a1 = 6;
    0x00001be0 addiu t9, t9, 0x19d8          |     t9 += fcn.000019d8;
    0x00001be4 move a0, s3                   |     a0 = s3;
    0x00001be8 bal 0x19d8                    |     fcn_000019d8 ();
    0x00001bec lw gp, 0x10(sp)               |     gp = *(var_10h_2);
                                             |     do {
    0x00001bf0 lw v1, 0x21c(sp)              |         v1 = *(var_21ch);
    0x00001bf4 lw v0, (s2)                   |         v0 = *(s2);
    0x00001bf8 lw ra, 0x234(sp)              |         ra = *(var_234h);
                                             |         if (v1 != v0) {
    0x00001bfc bne v1, v0, 0x1c3c            |             goto label_1;
                                             |         }
    0x00001c00 lw s3, 0x230(sp)              |         s3 = *(var_230h);
    0x00001c04 lw s2, 0x22c(sp)              |         s2 = *(var_22ch);
    0x00001c08 lw s1, 0x228(sp)              |         s1 = *(var_228h);
    0x00001c0c lw s0, 0x224(sp)              |         s0 = *(var_224h);
    0x00001c10 addiu sp, sp, 0x238           |         
    0x00001c14 jr ra                         |         return v1;
                                             | label_0:
    0x00001c18 lw t9, -0x7e90(gp)            |         t9 = sym.imp.perror;
    0x00001c1c lw a0, 0x18(sp)               |         a0 = *(var_18h_2);
    0x00001c20 jalr t9                       |         t9 ();
    0x00001c24 lw gp, 0x10(sp)               |         gp = *(var_10h_2);
    0x00001c28 lw t9, -0x7e5c(gp)            |         t9 = sym.imp.free;
    0x00001c2c lw a0, 0x18(sp)               |         a0 = *(var_18h_2);
    0x00001c30 jalr t9                       |         t9 ();
    0x00001c34 lw gp, 0x10(sp)               |         gp = *(var_10h_2);
    0x00001c38 b 0x1bf0                      |         
                                             |     } while (1);
                                             | label_1:
    0x00001c3c lw t9, -0x7e7c(gp)            |     t9 = sym.imp.__stack_chk_fail;
    0x00001c40 jalr t9                       |     t9 ();
    0x00001c44 nop                           |     
                                             | }
    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dcore @ 0x1510 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) main ()                      | int32_t main () {
                                         |     /* [13] -r-x section size 14160 named .text */
    0x00001510 lui gp, 2                 |     
    0x00001514 addiu gp, gp, -0x3500     |     
    0x00001518 addu gp, gp, t9           |     gp += t9;
    0x0000151c addiu sp, sp, -0x38       |     
    0x00001520 lw t9, -0x7e48(gp)        |     t9 = sym.imp.elf_version;
    0x00001524 sw gp, 0x10(sp)           |     *(var_10h) = gp;
    0x00001528 sw s3, 0x24(sp)           |     *(var_24h) = s3;
    0x0000152c sw s0, 0x18(sp)           |     *(var_18h) = s0;
    0x00001530 sw ra, 0x34(sp)           |     *(var_34h) = ra;
    0x00001534 sw s6, 0x30(sp)           |     *(var_30h) = s6;
    0x00001538 sw s5, 0x2c(sp)           |     *(var_2ch) = s5;
    0x0000153c sw s4, 0x28(sp)           |     *(var_28h) = s4;
    0x00001540 sw s2, 0x20(sp)           |     *(var_20h) = s2;
    0x00001544 sw s1, 0x1c(sp)           |     *(var_1ch) = s1;
    0x00001548 move s3, a0               |     s3 = a0;
    0x0000154c addiu a0, zero, 1         |     a0 = 1;
    0x00001550 move s0, a1               |     s0 = a1;
    0x00001554 jalr t9                   |     t9 ();
    0x00001558 lw gp, 0x10(sp)           |     gp = *(var_10h);
                                         |     if (v0 == 0) {
    0x0000155c beqz v0, 0x1688           |         goto label_4;
                                         |     }
                                         | label_0:
    0x00001560 lw s1, -0x7fd8(gp)        |     s1 = *((gp - 8182));
    0x00001564 lw s6, -0x7f24(gp)        |     s6 = *((gp - 8137));
    0x00001568 lw s5, -0x7fdc(gp)        |     s5 = *(gp);
    0x0000156c addiu s1, s1, 0x5084      |     s1 += 0x5084;
    0x00001570 addiu s4, zero, -1        |     s4 = -1;
    0x00001574 addiu s2, zero, 0x63      |     s2 = 0x63;
                                         |     do {
    0x00001578 lw t9, -0x7ef0(gp)        |         t9 = sym.imp.getopt;
    0x0000157c move a2, s1               |         a2 = s1;
    0x00001580 move a1, s0               |         a1 = s0;
    0x00001584 move a0, s3               |         a0 = s3;
    0x00001588 jalr t9                   |         t9 ();
    0x0000158c lw gp, 0x10(sp)           |         gp = *(var_10h);
                                         |         if (v0 == s4) {
    0x00001590 bne v0, s4, 0x166c        |             
    0x00001594 lw v0, -0x7e78(gp)        |             v0 = *((gp - 8094));
    0x00001598 lw a1, (v0)               |             a1 = *(v0);
    0x0000159c sll a1, a1, 2             |             a1 <<= 2;
                                         |             if (s3 == a1) {
    0x000015a0 beq s3, a1, 0x1708        |                 goto label_5;
                                         |             }
    0x000015a4 addu s0, s0, a1           |             s0 += a1;
    0x000015a8 lw t9, -0x7ed8(gp)        |             t9 = sym.imp.strtoul;
    0x000015ac lw a0, (s0)               |             a0 = *(s0);
    0x000015b0 move a2, zero             |             a2 = 0;
    0x000015b4 move a1, zero             |             a1 = 0;
    0x000015b8 jalr t9                   |             t9 ();
    0x000015bc move s2, v0               |             s2 = v0;
    0x000015c0 lw gp, 0x10(sp)           |             gp = *(var_10h);
                                         |             if (v0 == s4) {
    0x000015c4 beq v0, s4, 0x16c4        |                 goto label_6;
                                         |             }
                                         | label_1:
    0x000015c8 lw s0, -0x7fdc(gp)        |             s0 = *(gp);
    0x000015cc lw v0, (s0)               |             v0 = *(s0);
    0x000015d0 lw a2, -0x7fd8(gp)        |             a2 = *((gp - 8182));
                                         |             if (v0 == 0) {
    0x000015d4 beqz v0, 0x1744           |                 goto label_7;
                                         |             }
                                         | label_3:
    0x000015d8 lw t9, -0x7ed0(gp)        |             t9 = sym.imp.open;
    0x000015dc lw a0, (s0)               |             a0 = *(s0);
    0x000015e0 addiu a2, zero, 0x1ff     |             a2 = 0x1ff;
    0x000015e4 addiu a1, zero, 0x301     |             a1 = 0x301;
    0x000015e8 jalr t9                   |             t9 ();
    0x000015ec move s1, v0               |             s1 = v0;
    0x000015f0 lw gp, 0x10(sp)           |             gp = *(var_10h);
    0x000015f4 lw a0, (s0)               |             a0 = *(s0);
                                         |             if (v0 < 0) {
    0x000015f8 bltz v0, 0x1720           |                 goto label_8;
                                         |             }
    0x000015fc lw t9, -0x7e5c(gp)        |             t9 = sym.imp.free;
    0x00001600 jalr t9                   |             t9 ();
    0x00001604 nop                       |             
    0x00001608 lw gp, 0x10(sp)           |             gp = *(var_10h);
    0x0000160c addiu a1, zero, 1         |             a1 = 1;
    0x00001610 lw t9, -0x7e70(gp)        |             t9 = sym.imp.signal;
    0x00001614 addiu a0, zero, 0xd       |             a0 = 0xd;
    0x00001618 jalr t9                   |             t9 ();
    0x0000161c lw gp, 0x10(sp)           |             gp = *(var_10h);
    0x00001620 move a1, s1               |             a1 = s1;
    0x00001624 lw t9, -0x7fd4(gp)        |             t9 = sym.dumpcore;
    0x00001628 move a0, s2               |             a0 = s2;
    0x0000162c bal 0x1dcc                |             sym_dumpcore ();
    0x00001630 lw gp, 0x10(sp)           |             gp = *(var_10h);
    0x00001634 lw t9, -0x7f2c(gp)        |             t9 = sym.imp.close;
    0x00001638 move a0, s1               |             a0 = s1;
    0x0000163c jalr t9                   |             t9 ();
    0x00001640 move v0, zero             |             v0 = 0;
                                         | label_2:
    0x00001644 lw ra, 0x34(sp)           |             ra = *(var_34h);
    0x00001648 lw s6, 0x30(sp)           |             s6 = *(var_30h);
    0x0000164c lw s5, 0x2c(sp)           |             s5 = *(var_2ch);
    0x00001650 lw s4, 0x28(sp)           |             s4 = *(var_28h);
    0x00001654 lw s3, 0x24(sp)           |             s3 = *(var_24h);
    0x00001658 lw s2, 0x20(sp)           |             s2 = *(var_20h);
    0x0000165c lw s1, 0x1c(sp)           |             s1 = *(var_1ch);
    0x00001660 lw s0, 0x18(sp)           |             s0 = *(var_18h);
    0x00001664 addiu sp, sp, 0x38        |             
    0x00001668 jr ra                     |             return v0;
                                         |         }
    0x0000166c lw t9, -0x7e60(gp)        |         t9 = sym.imp.strdup;
                                         |         if (v0 != s2) {
    0x00001670 bne v0, s2, 0x1764        |             goto label_9;
                                         |         }
    0x00001674 lw a0, (s6)               |         a0 = *(s6);
    0x00001678 jalr t9                   |         t9 ();
    0x0000167c lw gp, 0x10(sp)           |         gp = *(var_10h);
    0x00001680 sw v0, (s5)               |         *(s5) = v0;
    0x00001684 b 0x1578                  |         
                                         |     } while (1);
                                         | label_4:
    0x00001688 lw v0, -0x7e58(gp)        |     v0 = *((gp - 8086));
    0x0000168c lw t9, -0x7ee4(gp)        |     t9 = sym.imp.elf_errmsg;
    0x00001690 addiu a0, zero, -1        |     a0 = -1;
    0x00001694 lw s1, (v0)               |     s1 = *(v0);
    0x00001698 jalr t9                   |     t9 ();
    0x0000169c lw gp, 0x10(sp)           |     gp = *(var_10h);
    0x000016a0 move a3, v0               |     a3 = v0;
    0x000016a4 addiu a1, zero, 1         |     a1 = 1;
    0x000016a8 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x000016ac lw t9, -0x7f1c(gp)        |     t9 = sym.imp.__fprintf_chk;
    0x000016b0 addiu a2, a2, 0x5074      |     a2 += str.elfversion:__s_n;
    0x000016b4 move a0, s1               |     a0 = s1;
    0x000016b8 jalr t9                   |     t9 ();
    0x000016bc lw gp, 0x10(sp)           |     gp = *(var_10h);
    0x000016c0 b 0x1560                  |     goto label_0;
                                         | label_6:
    0x000016c4 lw t9, -0x7ef8(gp)        |     t9 = sym.imp.__errno_location;
    0x000016c8 jalr t9                   |     t9 ();
    0x000016cc nop                       |     
    0x000016d0 lw v1, (v0)               |     v1 = *(v0);
    0x000016d4 addiu v0, zero, 0x22      |     v0 = 0x22;
    0x000016d8 lw gp, 0x10(sp)           |     gp = *(var_10h);
                                         |     if (v1 != v0) {
    0x000016dc bne v1, v0, 0x15c8        |         goto label_1;
                                         |     }
    0x000016e0 lw v0, -0x7e58(gp)        |     v0 = *((gp - 8086));
    0x000016e4 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x000016e8 lw t9, -0x7f1c(gp)        |     t9 = sym.imp.__fprintf_chk;
    0x000016ec lw a3, (s0)               |     a3 = *(s0);
    0x000016f0 lw a0, (v0)               |     a0 = *(v0);
    0x000016f4 addiu a2, a2, 0x50d8      |     a2 += str._s_is_not_a_pid_n;
    0x000016f8 addiu a1, zero, 1         |     a1 = 1;
    0x000016fc jalr t9                   |     t9 ();
    0x00001700 addiu v0, zero, 1         |     v0 = 1;
    0x00001704 b 0x1644                  |     goto label_2;
                                         | label_5:
    0x00001708 lw a0, -0x7fd8(gp)        |     a0 = *((gp - 8182));
    0x0000170c lw t9, -0x7eb8(gp)        |     t9 = sym.imp.puts;
    0x00001710 addiu a0, a0, 0x5088      |     a0 += str.dcore_0.1_ndcore__options__pid_n_n_c_tcore_file_name__default_core._pid___n_h_thelp;
    0x00001714 jalr t9                   |     t9 ();
    0x00001718 addiu v0, zero, 1         |     v0 = 1;
    0x0000171c b 0x1644                  |     goto label_2;
                                         | label_8:
    0x00001720 lw t9, -0x7e90(gp)        |     t9 = sym.imp.perror;
    0x00001724 jalr t9                   |     t9 ();
    0x00001728 nop                       |     
    0x0000172c lw gp, 0x10(sp)           |     gp = *(var_10h);
    0x00001730 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00001734 lw a0, (s0)               |     a0 = *(s0);
    0x00001738 jalr t9                   |     t9 ();
    0x0000173c addiu v0, zero, 1         |     v0 = 1;
    0x00001740 b 0x1644                  |     goto label_2;
                                         | label_7:
    0x00001744 lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x00001748 move a3, s2               |     a3 = s2;
    0x0000174c addiu a2, a2, 0x50ec      |     a2 += str.core._lu;
    0x00001750 addiu a1, zero, 1         |     a1 = 1;
    0x00001754 move a0, s0               |     a0 = s0;
    0x00001758 jalr t9                   |     t9 ();
    0x0000175c lw gp, 0x10(sp)           |     gp = *(var_10h);
    0x00001760 b 0x15d8                  |     goto label_3;
                                         | label_9:
    0x00001764 lw a0, -0x7fd8(gp)        |     a0 = *((gp - 8182));
    0x00001768 lw t9, -0x7eb8(gp)        |     t9 = sym.imp.puts;
    0x0000176c addiu a0, a0, 0x5088      |     a0 += str.dcore_0.1_ndcore__options__pid_n_n_c_tcore_file_name__default_core._pid___n_h_thelp;
    0x00001770 jalr t9                   |     t9 ();
    0x00001774 lw gp, 0x10(sp)           |     gp = *(var_10h);
    0x00001778 lw t9, -0x7ec4(gp)        |     t9 = sym.imp.exit;
    0x0000177c addiu a0, zero, 1         |     a0 = 1;
    0x00001780 jalr t9                   |     t9 ();
    0x00001784 nop                       |     
    0x00001788 nop                       |     
    0x0000178c nop                       |     
                                         | }
    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dcore @ 0x1dcc */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) sym.dumpcore ()              | void dumpcore () {
    0x00001dcc lui gp, 2                 |     
    0x00001dd0 addiu gp, gp, -0x3dbc     |     
    0x00001dd4 addu gp, gp, t9           |     gp += t9;
    0x00001dd8 lw v0, -0x7e68(gp)        |     v0 = *((gp - 8090));
    0x00001ddc addiu sp, sp, -0x110      |     
    0x00001de0 lw t9, -0x7fb0(gp)        |     t9 = sym.arch_get_pagesize;
    0x00001de4 sw s0, 0xe8(sp)           |     *(var_e8h) = s0;
    0x00001de8 sw v0, 0x44(sp)           |     *(var_44h) = v0;
    0x00001dec lw s0, -0x7fcc(gp)        |     s0 = *((gp - 8179));
    0x00001df0 lw v0, (v0)               |     v0 = *(v0);
    0x00001df4 sw ra, 0x10c(sp)          |     *(var_10ch) = ra;
    0x00001df8 sw gp, 0x20(sp)           |     *(var_20h) = gp;
    0x00001dfc sw s3, 0xf4(sp)           |     *(var_f4h) = s3;
    0x00001e00 sw s1, 0xec(sp)           |     *(var_ech) = s1;
    0x00001e04 sw a1, 0x114(sp)          |     *(arg_114h) = a1;
    0x00001e08 sw fp, 0x108(sp)          |     *(var_108h) = fp;
    0x00001e0c sw s7, 0x104(sp)          |     *(var_104h) = s7;
    0x00001e10 sw s6, 0x100(sp)          |     *(var_100h) = s6;
    0x00001e14 sw s5, 0xfc(sp)           |     *(var_fch) = s5;
    0x00001e18 sw s4, 0xf8(sp)           |     *(var_f8h) = s4;
    0x00001e1c sw s2, 0xf0(sp)           |     *(var_f0h) = s2;
    0x00001e20 sw s0, 0x38(sp)           |     *(var_38h) = s0;
    0x00001e24 sw v0, 0xe4(sp)           |     *(var_e4h) = v0;
    0x00001e28 sw zero, 0x54(sp)         |     *(var_54h) = 0;
    0x00001e2c move s1, a0               |     s1 = a0;
    0x00001e30 bal 0x4734                |     sym_arch_get_pagesize ();
    0x00001e34 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001e38 addiu a1, zero, 0x34      |     a1 = 0x34;
    0x00001e3c addiu a0, zero, 1         |     a0 = 1;
    0x00001e40 lw t9, -0x7f3c(gp)        |     t9 = sym.imp.calloc;
    0x00001e44 sw v0, 0x6610(s0)         |     *((s0 + 6532)) = v0;
    0x00001e48 jalr t9                   |     t9 ();
    0x00001e4c move s3, v0               |     s3 = v0;
    0x00001e50 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001e54 lui v0, 0x464c            |     v0 = 0x464c457f;
    0x00001e58 addiu v0, v0, 0x457f      |     
    0x00001e5c sw v0, (s3)               |     *(s3) = v0;
    0x00001e60 addiu v0, zero, 0x101     |     v0 = 0x101;
    0x00001e64 sh v0, 4(s3)              |     *((s3 + 2)) = v0;
    0x00001e68 lw t9, -0x7fac(gp)        |     t9 = sym.arch_get_machine;
    0x00001e6c addiu v0, zero, 1         |     v0 = 1;
    0x00001e70 sb v0, 6(s3)              |     *((s3 + 6)) = v0;
    0x00001e74 sb zero, 8(s3)            |     *((s3 + 8)) = 0;
    0x00001e78 bal 0x472c                |     sym_arch_get_machine ();
    0x00001e7c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001e80 sh v0, 0x12(s3)           |     *((s3 + 9)) = v0;
    0x00001e84 addiu v0, zero, 4         |     v0 = 4;
    0x00001e88 lw t9, -0x7fa8(gp)        |     t9 = sym.arch_get_elf_flags;
    0x00001e8c sh v0, 0x10(s3)           |     *((s3 + 8)) = v0;
    0x00001e90 bal 0x4724                |     sym_arch_get_elf_flags ();
    0x00001e94 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001e98 sw v0, 0x24(s3)           |     *((s3 + 9)) = v0;
    0x00001e9c addiu v0, zero, 1         |     v0 = 1;
    0x00001ea0 sw v0, 0x14(s3)           |     *((s3 + 5)) = v0;
    0x00001ea4 lw t9, -0x7fa4(gp)        |     t9 = sym.trace_attach;
    0x00001ea8 addiu v0, zero, 0x34      |     v0 = 0x34;
    0x00001eac sh v0, 0x28(s3)           |     *((s3 + 20)) = v0;
    0x00001eb0 move a0, s1               |     a0 = s1;
    0x00001eb4 bal 0x2b60                |     sym_trace_attach ();
    0x00001eb8 addiu v1, zero, -1        |     v1 = -1;
    0x00001ebc lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == v1) {
    0x00001ec0 beq v0, v1, 0x2590        |         goto label_6;
                                         |     }
    0x00001ec4 lw t9, -0x7fa0(gp)        |     t9 = sym.procmap_new;
    0x00001ec8 lw a1, 0x6610(s0)         |     a1 = *((s0 + 6532));
    0x00001ecc move a0, s1               |     a0 = s1;
    0x00001ed0 bal 0x3570                |     sym_procmap_new ();
    0x00001ed4 move s0, v0               |     s0 = v0;
    0x00001ed8 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == 0) {
    0x00001edc beqz v0, 0x2590           |         goto label_6;
                                         |     }
    0x00001ee0 lw a0, 0x14(v0)           |     a0 = *((v0 + 5));
    0x00001ee4 lw t9, -0x7f3c(gp)        |     t9 = sym.imp.calloc;
    0x00001ee8 addiu a1, zero, 0x20      |     a1 = 0x20;
    0x00001eec addiu a0, a0, 1           |     a0++;
    0x00001ef0 jalr t9                   |     t9 ();
    0x00001ef4 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001ef8 addiu a0, zero, 0x400     |     a0 = 0x400;
    0x00001efc sw v0, 0x48(sp)           |     *(var_48h) = v0;
    0x00001f00 lw t9, -0x7f9c(gp)        |     t9 = sym.buf_new;
    0x00001f04 addiu s7, sp, 0x64        |     s7 = sp + 0x64;
    0x00001f08 bal 0x2650                |     sym_buf_new ();
    0x00001f0c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001f10 lw v1, 0x14(s0)           |     v1 = *((s0 + 5));
    0x00001f14 addiu a3, zero, 0x34      |     a3 = 0x34;
    0x00001f18 addiu v1, v1, 1           |     v1++;
    0x00001f1c andi v1, v1, 0xffff       |     v1 &= 0xffff;
    0x00001f20 sw a3, 0x1c(s3)           |     *((s3 + 7)) = a3;
    0x00001f24 lw t9, -0x7ef4(gp)        |     t9 = sym.imp.memset;
    0x00001f28 addiu a3, zero, 0x20      |     a3 = 0x20;
    0x00001f2c sh v1, 0x2c(s3)           |     *((s3 + 22)) = v1;
    0x00001f30 addiu a2, zero, 0x80      |     a2 = 0x80;
    0x00001f34 move a1, zero             |     a1 = 0;
    0x00001f38 move a0, s7               |     a0 = s7;
    0x00001f3c sh a3, 0x2a(s3)           |     *((s3 + 21)) = a3;
    0x00001f40 sw v0, 0x54(sp)           |     *(var_54h) = v0;
    0x00001f44 sll s6, v1, 5             |     s6 = v1 << 5;
    0x00001f48 jalr t9                   |     t9 ();
    0x00001f4c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001f50 addiu s5, sp, 0x58        |     s5 = sp + 0x58;
    0x00001f54 move a3, s1               |     a3 = s1;
    0x00001f58 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x00001f5c lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x00001f60 addiu a2, a2, 0x510c      |     a2 += str._proc__lu_cmdline;
    0x00001f64 addiu a1, zero, 1         |     a1 = 1;
    0x00001f68 lw s2, -0x7fd8(gp)        |     s2 = *((gp - 8182));
    0x00001f6c move a0, s5               |     a0 = s5;
    0x00001f70 jalr t9                   |     t9 ();
    0x00001f74 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001f78 lw a0, 0x58(sp)           |     a0 = *(var_58h);
    0x00001f7c lw t9, -0x7e50(gp)        |     t9 = sym.imp.fopen;
    0x00001f80 addiu a1, s2, 0x5108      |     a1 = s2 + 0x5108;
    0x00001f84 jalr t9                   |     t9 ();
    0x00001f88 move fp, v0               |     fp = v0;
    0x00001f8c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001f90 lw a0, 0x58(sp)           |     a0 = *(var_58h);
                                         |     if (v0 == 0) {
    0x00001f94 beqz v0, 0x2608           |         goto label_7;
                                         |     }
    0x00001f98 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00001f9c addiu s4, sp, 0x94        |     s4 = sp + 0x94;
    0x00001fa0 jalr t9                   |     t9 ();
    0x00001fa4 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001fa8 move a3, fp               |     a3 = fp;
    0x00001fac addiu a2, zero, 0x50      |     a2 = 0x50;
    0x00001fb0 lw t9, -0x7ea0(gp)        |     t9 = sym.imp.fread;
    0x00001fb4 addiu a1, zero, 1         |     a1 = 1;
    0x00001fb8 move a0, s4               |     a0 = s4;
    0x00001fbc jalr t9                   |     t9 ();
    0x00001fc0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001fc4 lw t9, -0x7f18(gp)        |     t9 = sym.imp.fclose;
    0x00001fc8 move a0, fp               |     a0 = fp;
    0x00001fcc jalr t9                   |     t9 ();
    0x00001fd0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001fd4 move a3, s1               |     a3 = s1;
    0x00001fd8 addiu a1, zero, 1         |     a1 = 1;
    0x00001fdc lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x00001fe0 lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x00001fe4 addiu a2, a2, 0x5120      |     a2 += str._proc__lu_;
    0x00001fe8 move a0, s5               |     a0 = s5;
    0x00001fec jalr t9                   |     t9 ();
    0x00001ff0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00001ff4 lw a0, 0x58(sp)           |     a0 = *(var_58h);
    0x00001ff8 lw t9, -0x7e50(gp)        |     t9 = sym.imp.fopen;
    0x00001ffc addiu a1, s2, 0x5108      |     a1 = s2 + 0x5108;
    0x00002000 jalr t9                   |     t9 ();
    0x00002004 move fp, v0               |     fp = v0;
    0x00002008 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x0000200c lw a0, 0x58(sp)           |     a0 = *(var_58h);
                                         |     if (v0 == 0) {
    0x00002010 beqz v0, 0x2608           |         goto label_7;
                                         |     }
    0x00002014 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00002018 lw s2, -0x7fd8(gp)        |     s2 = *((gp - 8182));
    0x0000201c jalr t9                   |     t9 ();
    0x00002020 nop                       |     
    0x00002024 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002028 addiu v0, sp, 0x5c        |     v0 = sp + 0x5c;
    0x0000202c sw v0, 0x1c(sp)           |     *(var_1ch_2) = v0;
    0x00002030 addiu v0, sp, 0x60        |     v0 = sp + 0x60;
    0x00002034 lw a1, -0x7fd8(gp)        |     a1 = *((gp - 8182));
    0x00002038 sw v0, 0x18(sp)           |     *(var_18h_2) = v0;
    0x0000203c addiu v0, sp, 0x80        |     v0 = sp + 0x80;
    0x00002040 sw v0, 0x14(sp)           |     *(var_14h) = v0;
    0x00002044 lw t9, -0x7ee0(gp)        |     t9 = sym.imp.fscanf;
    0x00002048 addiu v0, sp, 0x7c        |     v0 = sp + 0x7c;
    0x0000204c addiu a3, sp, 0x78        |     a3 = sp + 0x78;
    0x00002050 addiu a2, sp, 0x65        |     a2 = sp + 0x65;
    0x00002054 addiu a1, a1, 0x512c      |     a1 += str._d__s__c__d__d__d__d__d__u__u__u__u__u_u__u__d__d__d__ld;
    0x00002058 move a0, fp               |     a0 = fp;
    0x0000205c sw v0, 0x10(sp)           |     *(var_10h_2) = v0;
    0x00002060 jalr t9                   |     t9 ();
    0x00002064 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002068 lb s5, 0x65(sp)           |     s5 = *(var_65h);
    0x0000206c addiu a0, s2, 0x5174      |     a0 = s2 + str.RSDTZW;
    0x00002070 lw t9, -0x7edc(gp)        |     t9 = sym.imp.strchr;
    0x00002074 move a1, s5               |     a1 = s5;
    0x00002078 jalr t9                   |     t9 ();
    0x0000207c lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == 0) {
    0x00002080 beqz v0, 0x262c           |         goto label_8;
                                         |     }
    0x00002084 addiu s2, s2, 0x5174      |     s2 += str.RSDTZW;
    0x00002088 subu v0, v0, s2           |     __asm ("subu v0, v0, s2");
    0x0000208c seb v0, v0                |     __asm ("seb v0, v0");
                                         | label_4:
    0x00002090 sb v0, 0x64(sp)           |     *(var_64h) = v0;
    0x00002094 lw v0, 0x60(sp)           |     v0 = *(var_60h);
    0x00002098 xori s5, s5, 0x5a         |     s5 ^= 0x5a;
    0x0000209c sw v0, 0x68(sp)           |     *(var_68h) = v0;
    0x000020a0 lw v0, 0x5c(sp)           |     v0 = *(var_5ch);
    0x000020a4 lw t9, -0x7f18(gp)        |     t9 = sym.imp.fclose;
    0x000020a8 sltiu s5, s5, 1           |     s5 = (s5 < 1) ? 1 : 0;
    0x000020ac move a0, fp               |     a0 = fp;
    0x000020b0 sb s5, 0x66(sp)           |     *(var_66h) = s5;
    0x000020b4 sb v0, 0x67(sp)           |     *(var_67h) = v0;
    0x000020b8 jalr t9                   |     t9 ();
    0x000020bc lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000020c0 addiu a2, zero, 0x10      |     a2 = 0x10;
    0x000020c4 move a1, s4               |     a1 = s4;
    0x000020c8 lw t9, -0x7efc(gp)        |     t9 = sym.imp.strncpy;
    0x000020cc addiu a0, sp, 0x84        |     a0 = sp + 0x84;
    0x000020d0 jalr t9                   |     t9 ();
    0x000020d4 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000020d8 addiu s2, sp, 0x54        |     s2 = sp + 0x54;
    0x000020dc addiu a3, zero, 0x80      |     a3 = 0x80;
    0x000020e0 lw t9, -0x7fd8(gp)        |     t9 = *((gp - 8182));
    0x000020e4 move a2, s7               |     a2 = s7;
    0x000020e8 addiu a1, zero, 3         |     a1 = 3;
    0x000020ec move a0, s2               |     a0 = s2;
    0x000020f0 addiu t9, t9, 0x19d8      |     t9 += fcn.000019d8;
    0x000020f4 sw s1, 0x74(sp)           |     *(var_74h) = s1;
    0x000020f8 bal 0x19d8                |     fcn_000019d8 ();
    0x000020fc lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         | label_3:
    0x00002100 lw s7, -0x7fd8(gp)        |     s7 = *((gp - 8182));
    0x00002104 move a1, s1               |     a1 = s1;
    0x00002108 addiu s7, s7, 0x1c48      |     s7 += fcn.00001c48;
    0x0000210c move t9, s7               |     t9 = s7;
    0x00002110 move a0, s2               |     a0 = s2;
    0x00002114 bal 0x1c48                |     fcn_00001c48 ();
    0x00002118 lw v0, 0x10(s0)           |     v0 = *((s0 + 4));
    0x0000211c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002120 move fp, zero             |     fp = 0;
    0x00002124 addiu s5, zero, -1        |     s5 = -1;
                                         |     if (v0 > 0) {
    0x00002128 bgtz v0, 0x2148           |         goto label_1;
                                         |     }
    0x0000212c lw t9, -0x7fd8(gp)        |     t9 = *((gp - 8182));
    0x00002130 b 0x219c                  |     goto label_9;
                                         | label_0:
    0x00002134 lw v0, 0x10(s0)           |     v0 = *((s0 + 4));
    0x00002138 addiu fp, fp, 1           |     fp++;
                                         |     do {
    0x0000213c slt v1, fp, v0            |         v1 = (fp < v0) ? 1 : 0;
    0x00002140 lw t9, -0x7fd8(gp)        |         t9 = *((gp - 8182));
                                         |         if (v1 == 0) {
    0x00002144 beqz v1, 0x219c           |             goto label_9;
                                         |         }
                                         | label_1:
    0x00002148 lw v1, 0xc(s0)            |         v1 = *((s0 + 3));
    0x0000214c sll a0, fp, 2             |         a0 = fp << 2;
    0x00002150 lwx s4, a0(v1)            |         __asm ("lwx s4, a0(v1)");
    0x00002154 beql s1, s4, 0x213c       |         
                                         |     } while (s1 == s4);
    0x00002158 addiu fp, fp, 1           |     fp++;
    0x0000215c lw t9, -0x7f98(gp)        |     t9 = sym.trace_thread_attach;
    0x00002160 move a1, s1               |     a1 = s1;
    0x00002164 move a0, s4               |     a0 = s4;
    0x00002168 bal 0x2a48                |     sym_trace_thread_attach ();
    0x0000216c lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == s5) {
    0x00002170 beq v0, s5, 0x2134        |         goto label_0;
                                         |     }
    0x00002174 move a1, s4               |     a1 = s4;
    0x00002178 move t9, s7               |     t9 = s7;
    0x0000217c move a0, s2               |     a0 = s2;
    0x00002180 bal 0x1c48                |     fcn_00001c48 ();
    0x00002184 lw v0, 0x10(s0)           |     v0 = *((s0 + 4));
    0x00002188 addiu fp, fp, 1           |     fp++;
    0x0000218c slt v1, fp, v0            |     v1 = (fp < v0) ? 1 : 0;
    0x00002190 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v1 != 0) {
    0x00002194 bnez v1, 0x2148           |         goto label_1;
                                         |     }
    0x00002198 lw t9, -0x7fd8(gp)        |     t9 = *((gp - 8182));
                                         | label_9:
    0x0000219c move a0, s2               |     a0 = s2;
    0x000021a0 addiu t9, t9, 0x1b14      |     t9 += fcn.00001b14;
    0x000021a4 move a1, s1               |     a1 = s1;
    0x000021a8 bal 0x1b14                |     fcn_00001b14 ();
    0x000021ac lw v1, 0x54(sp)           |     v1 = *(var_54h);
    0x000021b0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000021b4 lw s4, 0x48(sp)           |     s4 = *(var_48h);
    0x000021b8 lw s2, (v1)               |     s2 = *(v1);
    0x000021bc addiu s5, zero, -4        |     s5 = -4;
    0x000021c0 addiu v0, s6, 0x37        |     v0 = s6 + 0x37;
    0x000021c4 and s6, v0, s5            |     s6 = v0 & s5;
    0x000021c8 addiu v0, zero, 4         |     v0 = 4;
    0x000021cc lw t9, -0x7f40(gp)        |     t9 = sym.imp.elf32_fsize;
    0x000021d0 move a1, s2               |     a1 = s2;
    0x000021d4 move a0, zero             |     a0 = 0;
    0x000021d8 sw s6, 0x4c(sp)           |     *(var_4ch) = s6;
    0x000021dc sw v0, (s4)               |     *(s4) = v0;
    0x000021e0 sw zero, 8(s4)            |     *((s4 + 2)) = 0;
    0x000021e4 sw zero, 0x14(s4)         |     *((s4 + 5)) = 0;
    0x000021e8 sw s6, 4(s4)              |     *((s4 + 1)) = s6;
    0x000021ec addiu a2, zero, 1         |     a2 = 1;
    0x000021f0 jalr t9                   |     t9 ();
    0x000021f4 lw v1, 0x38(sp)           |     v1 = *(var_38h);
    0x000021f8 addiu s2, s2, 3           |     s2 += 3;
    0x000021fc and s2, s2, s5            |     s2 &= s5;
    0x00002200 lw v1, 0x6610(v1)         |     v1 = *((v1 + 6532));
    0x00002204 lw s5, 0x14(s0)           |     s5 = *((s0 + 5));
    0x00002208 addiu a0, v1, -1          |     a0 = v1 + -1;
    0x0000220c addu s2, s2, a0           |     s2 += a0;
    0x00002210 negu v1, v1               |     __asm ("negu v1, v1");
    0x00002214 addu s2, s2, s6           |     s2 += s6;
    0x00002218 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x0000221c sw a0, 0x40(sp)           |     *(var_40h) = a0;
    0x00002220 sw v1, 0x3c(sp)           |     *(var_3ch) = v1;
    0x00002224 sw v0, 0x10(s4)           |     *((s4 + 4)) = v0;
    0x00002228 and s2, s2, v1            |     s2 &= v1;
    0x0000222c lw s7, 0x18(s0)           |     s7 = *((s0 + 6));
                                         |     if (s5 <= 0) {
    0x00002230 blez s5, 0x2634           |         goto label_10;
                                         |     }
    0x00002234 lw v0, 0x48(sp)           |     v0 = *(var_48h);
    0x00002238 sll s5, s5, 5             |     s5 <<= 5;
    0x0000223c move fp, v0               |     fp = v0;
    0x00002240 addu v0, s5, v0           |     v0 = s5 + v0;
    0x00002244 sw v0, 0x30(sp)           |     *(var_30h) = v0;
    0x00002248 sw s2, 0x2c(sp)           |     *(var_2ch) = s2;
    0x0000224c move t0, s2               |     t0 = s2;
    0x00002250 b 0x22a4                  |     
                                         |     while (v0 != 0) {
    0x00002254 lw t9, -0x7f40(gp)        |         t9 = sym.imp.elf32_fsize;
    0x00002258 addu v0, a1, t0           |         v0 = a1 + t0;
    0x0000225c move a0, zero             |         a0 = 0;
    0x00002260 sw v0, 0x2c(sp)           |         *(var_2ch) = v0;
    0x00002264 addiu a2, zero, 1         |         a2 = 1;
    0x00002268 jalr t9                   |         t9 ();
    0x0000226c lw a0, 0x40(sp)           |         a0 = *(var_40h);
    0x00002270 lw v1, 0x2c(sp)           |         v1 = *(var_2ch);
    0x00002274 lw gp, 0x20(sp)           |         gp = *(var_20h);
    0x00002278 sw v0, 0x30(fp)           |         *(arg_30h) = v0;
    0x0000227c lw v0, 0x3c(sp)           |         v0 = *(var_3ch);
    0x00002280 addu t0, a0, v1           |         t0 = a0 + v1;
    0x00002284 and t0, v0, t0            |         t0 = v0 & t0;
    0x00002288 lw v0, 0x30(sp)           |         v0 = *(var_30h);
    0x0000228c sw s4, 0x28(fp)           |         *(arg_28h) = s4;
    0x00002290 sw s6, 0x3c(fp)           |         *(arg_3ch) = s6;
    0x00002294 sw s5, 0x38(fp)           |         *(arg_38h) = s5;
    0x00002298 addiu fp, fp, 0x20        |         fp += 0x20;
    0x0000229c lw s7, 0x28(s7)           |         s7 = *((s7 + 10));
                                         |         if (v0 == fp) {
    0x000022a0 beq v0, fp, 0x2324        |             goto label_5;
                                         |         }
                                         | label_2:
    0x000022a4 lw s4, (s7)               |         s4 = *(s7);
    0x000022a8 lw a1, 4(s7)              |         a1 = *((s7 + 1));
    0x000022ac addiu v0, zero, 1         |         v0 = 1;
    0x000022b0 subu a1, a1, s4           |         __asm ("subu a1, a1, s4");
    0x000022b4 sw v0, 0x20(fp)           |         *(arg_20h) = v0;
    0x000022b8 sw t0, 0x24(fp)           |         *(arg_24h) = t0;
    0x000022bc sw a1, 0x34(fp)           |         *(arg_34h) = a1;
    0x000022c0 lw s5, 0x14(s7)           |         s5 = *((s7 + 5));
    0x000022c4 lw a2, 0x18(s7)           |         a2 = *((s7 + 6));
    0x000022c8 lw a0, 0x1c(s7)           |         a0 = *((s7 + 7));
    0x000022cc ext v0, s5, 1, 1          |         __asm ("ext v0, s5, 1, 1");
    0x000022d0 or v0, v0, a2             |         v0 |= a2;
    0x000022d4 sltiu a0, a0, 1           |         a0 = (a0 < 1) ? 1 : 0;
    0x000022d8 and v0, v0, a0            |         v0 &= a0;
    0x000022dc lw s6, 0x10(s7)           |         s6 = *((s7 + 4));
    0x000022e0 bnez v0, 0x2254           |         
                                         |     }
    0x000022e4 lw t9, -0x7f40(gp)        |     t9 = sym.imp.elf32_fsize;
    0x000022e8 sw t0, 0x34(sp)           |     *(var_34h) = t0;
    0x000022ec addiu a2, zero, 1         |     a2 = 1;
    0x000022f0 move a1, zero             |     a1 = 0;
    0x000022f4 addiu a0, zero, 6         |     a0 = 6;
    0x000022f8 jalr t9                   |     t9 ();
    0x000022fc lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002300 sw v0, 0x30(fp)           |     *(arg_30h) = v0;
    0x00002304 lw v0, 0x30(sp)           |     v0 = *(var_30h);
    0x00002308 sw s4, 0x28(fp)           |     *(arg_28h) = s4;
    0x0000230c sw s6, 0x3c(fp)           |     *(arg_3ch) = s6;
    0x00002310 sw s5, 0x38(fp)           |     *(arg_38h) = s5;
    0x00002314 addiu fp, fp, 0x20        |     fp += 0x20;
    0x00002318 lw t0, 0x34(sp)           |     t0 = *(var_34h);
    0x0000231c lw s7, 0x28(s7)           |     s7 = *((s7 + 10));
                                         |     if (v0 != fp) {
    0x00002320 bne v0, fp, 0x22a4        |         goto label_2;
                                         |     }
                                         | label_5:
    0x00002324 lw s5, -0x7e58(gp)        |     s5 = *((gp - 8086));
    0x00002328 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x0000232c lw t9, -0x7f1c(gp)        |     t9 = sym.imp.__fprintf_chk;
    0x00002330 lw a0, (s5)               |     a0 = *(s5);
    0x00002334 lw a3, 0x2c(sp)           |     a3 = *(var_2ch);
    0x00002338 sw s1, 0x10(sp)           |     *(var_10h_2) = s1;
    0x0000233c addiu a2, a2, 0x517c      |     a2 += str.dumping__d_bytes_core_file_for__d;
    0x00002340 addiu a1, zero, 1         |     a1 = 1;
    0x00002344 jalr t9                   |     t9 ();
    0x00002348 lw v0, 0x10(s0)           |     v0 = *((s0 + 4));
    0x0000234c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002350 lw a0, (s5)               |     a0 = *(s5);
                                         |     if (v0 <= 0) {
    0x00002354 blez v0, 0x23a4           |         goto label_11;
                                         |     }
    0x00002358 lw v1, -0x7fd8(gp)        |     v1 = *((gp - 8182));
    0x0000235c move s7, zero             |     s7 = 0;
    0x00002360 addiu s4, v1, 0x51a0      |     s4 = v1 + 0x51a0;
    0x00002364 lw a3, 0xc(s0)            |     a3 = *((s0 + 3));
                                         |     do {
    0x00002368 sll a2, s7, 2             |         a2 = s7 << 2;
    0x0000236c lwx a3, a2(a3)            |         __asm ("lwx a3, a2(a3)");
                                         |         if (a3 != s1) {
    0x00002370 beql a3, s1, 0x2398       |             
    0x00002374 addiu s7, s7, 1           |             s7++;
    0x00002378 lw t9, -0x7f1c(gp)        |             t9 = sym.imp.__fprintf_chk;
    0x0000237c move a2, s4               |             a2 = s4;
    0x00002380 addiu a1, zero, 1         |             a1 = 1;
    0x00002384 jalr t9                   |             t9 ();
    0x00002388 lw gp, 0x20(sp)           |             gp = *(var_20h);
    0x0000238c lw a0, (s5)               |             a0 = *(s5);
    0x00002390 lw v0, 0x10(s0)           |             v0 = *((s0 + 4));
    0x00002394 addiu s7, s7, 1           |             s7++;
                                         |         }
    0x00002398 slt a2, s7, v0            |         a2 = (s7 < v0) ? 1 : 0;
    0x0000239c lw a3, 0xc(s0)            |         a3 = *((s0 + 3));
    0x000023a0 bnel a2, zero, 0x2368     |         
                                         |     } while (a2 == 0);
                                         | label_11:
    0x000023a4 lw t9, -0x7f10(gp)        |     t9 = sym.imp.fputc;
    0x000023a8 move a1, a0               |     a1 = a0;
    0x000023ac addiu a0, zero, 0xa       |     a0 = 0xa;
    0x000023b0 jalr t9                   |     t9 ();
    0x000023b4 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000023b8 lw a0, 0x114(sp)          |     a0 = *(arg_114h);
    0x000023bc move a1, s3               |     a1 = s3;
    0x000023c0 lw t9, -0x7fc4(gp)        |     t9 = sym.safe_write;
    0x000023c4 addiu a2, zero, 0x34      |     a2 = 0x34;
    0x000023c8 bal 0x2fd4                |     sym_safe_write ();
    0x000023cc lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000023d0 lw a2, 0x14(s0)           |     a2 = *((s0 + 5));
    0x000023d4 lw s4, 0x48(sp)           |     s4 = *(var_48h);
    0x000023d8 lw a0, 0x114(sp)          |     a0 = *(arg_114h);
    0x000023dc lw t9, -0x7fc4(gp)        |     t9 = sym.safe_write;
    0x000023e0 addiu a2, a2, 1           |     a2++;
    0x000023e4 sll a2, a2, 5             |     a2 <<= 5;
    0x000023e8 move a1, s4               |     a1 = s4;
    0x000023ec move s5, v0               |     s5 = v0;
    0x000023f0 bal 0x2fd4                |     sym_safe_write ();
    0x000023f4 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000023f8 move a0, s3               |     a0 = s3;
    0x000023fc addu s3, s5, v0           |     s3 = s5 + v0;
    0x00002400 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00002404 move fp, s2               |     fp = s2;
    0x00002408 jalr t9                   |     t9 ();
    0x0000240c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002410 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00002414 move a0, s4               |     a0 = s4;
    0x00002418 jalr t9                   |     t9 ();
    0x0000241c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002420 lw v0, 0x4c(sp)           |     v0 = *(var_4ch);
    0x00002424 lw a0, 0x114(sp)          |     a0 = *(arg_114h);
    0x00002428 lw s5, -0x7fd8(gp)        |     s5 = *((gp - 8182));
    0x0000242c addiu s5, s5, 0x1900      |     s5 += fcn.00001900;
    0x00002430 move t9, s5               |     t9 = s5;
    0x00002434 subu a1, v0, s3           |     __asm ("subu a1, v0, s3");
    0x00002438 bal 0x1900                |     fcn_00001900 ();
    0x0000243c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002440 lw v1, 0x54(sp)           |     v1 = *(var_54h);
    0x00002444 lw a0, 0x114(sp)          |     a0 = *(arg_114h);
    0x00002448 lw t9, -0x7fc4(gp)        |     t9 = sym.safe_write;
    0x0000244c lw a2, (v1)               |     a2 = *(v1);
    0x00002450 addiu a1, v1, 8           |     a1 = v1 + 8;
    0x00002454 addu s3, s3, v0           |     s3 += v0;
    0x00002458 bal 0x2fd4                |     sym_safe_write ();
    0x0000245c addu s3, s3, v0           |     s3 += v0;
    0x00002460 lw a0, 0x114(sp)          |     a0 = *(arg_114h);
    0x00002464 move t9, s5               |     t9 = s5;
    0x00002468 subu a1, s2, s3           |     __asm ("subu a1, s2, s3");
    0x0000246c bal 0x1900                |     fcn_00001900 ();
    0x00002470 lw s3, 0x18(s0)           |     s3 = *((s0 + 6));
    0x00002474 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (s3 == 0) {
    0x00002478 beqz s3, 0x2514           |         goto label_12;
                                         |     }
    0x0000247c lw v1, 0x14(s3)           |     v1 = *((s3 + 5));
                                         |     do {
    0x00002480 lw v0, 0x18(s3)           |         v0 = *((s3 + 6));
    0x00002484 lw a0, 0x1c(s3)           |         a0 = *((s3 + 7));
    0x00002488 ext v1, v1, 1, 1          |         __asm ("ext v1, v1, 1, 1");
    0x0000248c or v1, v1, v0             |         v1 |= v0;
    0x00002490 sltiu a0, a0, 1           |         a0 = (a0 < 1) ? 1 : 0;
    0x00002494 and v1, v1, a0            |         v1 &= a0;
                                         |         if (v1 != 0) {
    0x00002498 beql v1, zero, 0x250c     |             
    0x0000249c lw s3, 0x28(s3)           |             s3 = *((s3 + 10));
    0x000024a0 lw s7, 4(s3)              |             s7 = *((s3 + 1));
    0x000024a4 lw v0, (s3)               |             v0 = *(s3);
    0x000024a8 lw a0, 0x114(sp)          |             a0 = *(arg_114h);
    0x000024ac subu a1, s2, fp           |             __asm ("subu a1, s2, fp");
    0x000024b0 move t9, s5               |             t9 = s5;
    0x000024b4 subu s7, s7, v0           |             __asm ("subu s7, s7, v0");
    0x000024b8 bal 0x1900                |             fcn_00001900 ();
    0x000024bc lw gp, 0x20(sp)           |             gp = *(var_20h);
    0x000024c0 lw v1, 0x114(sp)          |             v1 = *(arg_114h);
    0x000024c4 lw a2, (s3)               |             a2 = *(s3);
    0x000024c8 lw a0, 8(s0)              |             a0 = *((s0 + 2));
    0x000024cc lw t9, -0x7f94(gp)        |             t9 = sym.safe_copyfd;
    0x000024d0 sw v1, 0x14(sp)           |             *(var_14h) = v1;
    0x000024d4 sw s7, 0x10(sp)           |             *(var_10h_2) = s7;
    0x000024d8 move a3, zero             |             a3 = 0;
    0x000024dc addu fp, v0, fp           |             fp = v0 + fp;
    0x000024e0 bal 0x2ff0                |             sym_safe_copyfd ();
    0x000024e4 lw v0, 0x38(sp)           |             v0 = *(var_38h);
    0x000024e8 lw gp, 0x20(sp)           |             gp = *(var_20h);
    0x000024ec addu fp, fp, s7           |             fp += s7;
    0x000024f0 lw v0, 0x6610(v0)         |             v0 = *((v0 + 6532));
    0x000024f4 addiu v1, v0, -1          |             v1 = v0 + -1;
    0x000024f8 addu s2, v1, s2           |             s2 = v1 + s2;
    0x000024fc addu s2, s2, s7           |             s2 += s7;
    0x00002500 negu v0, v0               |             __asm ("negu v0, v0");
    0x00002504 and s2, v0, s2            |             s2 = v0 & s2;
    0x00002508 lw s3, 0x28(s3)           |             s3 = *((s3 + 10));
                                         |         }
    0x0000250c lw v1, 0x14(s3)           |         v1 = *((s3 + 5));
    0x00002510 bnel s3, zero, 0x2480     |         
                                         |     } while (s3 == 0);
                                         | label_12:
    0x00002514 lw v0, 0x10(s0)           |     v0 = *((s0 + 4));
    0x00002518 move s2, zero             |     s2 = 0;
                                         |     if (v0 <= 0) {
    0x0000251c blez v0, 0x2558           |         goto label_13;
                                         |     }
    0x00002520 lw a0, 0xc(s0)            |     a0 = *((s0 + 3));
                                         |     do {
    0x00002524 sll v1, s2, 2             |         v1 = s2 << 2;
    0x00002528 lwx a0, v1(a0)            |         __asm ("lwx a0, v1(a0)");
                                         |         if (s1 != a0) {
    0x0000252c beql s1, a0, 0x254c       |             
    0x00002530 addiu s2, s2, 1           |             s2++;
    0x00002534 lw t9, -0x7f90(gp)        |             t9 = sym.trace_thread_detach;
    0x00002538 move a1, s1               |             a1 = s1;
    0x0000253c bal 0x2a14                |             sym_trace_thread_detach ();
    0x00002540 lw gp, 0x20(sp)           |             gp = *(var_20h);
    0x00002544 lw v0, 0x10(s0)           |             v0 = *((s0 + 4));
    0x00002548 addiu s2, s2, 1           |             s2++;
                                         |         }
    0x0000254c slt v1, s2, v0            |         v1 = (s2 < v0) ? 1 : 0;
    0x00002550 lw a0, 0xc(s0)            |         a0 = *((s0 + 3));
    0x00002554 bnel v1, zero, 0x2524     |         
                                         |     } while (v1 == 0);
                                         | label_13:
    0x00002558 lw t9, -0x7f8c(gp)        |     t9 = sym.trace_detach;
    0x0000255c move a0, s1               |     a0 = s1;
    0x00002560 bal 0x29f8                |     sym_trace_detach ();
    0x00002564 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002568 lw t9, -0x7f88(gp)        |     t9 = sym.procmap_free;
    0x0000256c move a0, s0               |     a0 = s0;
    0x00002570 bal 0x3478                |     sym_procmap_free ();
    0x00002574 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002578 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x0000257c lw a0, 0x54(sp)           |     a0 = *(var_54h);
    0x00002580 jalr t9                   |     t9 ();
    0x00002584 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00002588 move v0, zero             |     v0 = 0;
    0x0000258c b 0x25c8                  |     goto label_14;
                                         | label_6:
    0x00002590 lw v0, -0x7e58(gp)        |     v0 = *((gp - 8086));
    0x00002594 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x00002598 lw t9, -0x7f1c(gp)        |     t9 = sym.imp.__fprintf_chk;
    0x0000259c lw a0, (v0)               |     a0 = *(v0);
    0x000025a0 move a3, s1               |     a3 = s1;
    0x000025a4 addiu a2, a2, 0x51a4      |     a2 += str.Failed_to_generate_core_file_for__d_n;
    0x000025a8 addiu a1, zero, 1         |     a1 = 1;
    0x000025ac jalr t9                   |     t9 ();
    0x000025b0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000025b4 lw t9, -0x7f8c(gp)        |     t9 = sym.trace_detach;
    0x000025b8 move a0, s1               |     a0 = s1;
    0x000025bc bal 0x29f8                |     sym_trace_detach ();
    0x000025c0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000025c4 addiu v0, zero, 1         |     v0 = 1;
                                         | label_14:
    0x000025c8 lw v1, 0x44(sp)           |     v1 = *(var_44h);
    0x000025cc lw a0, 0xe4(sp)           |     a0 = *(var_e4h);
    0x000025d0 lw v1, (v1)               |     v1 = *(v1);
    0x000025d4 lw ra, 0x10c(sp)          |     ra = *(var_10ch);
                                         |     if (a0 == v1) {
    0x000025d8 bne a0, v1, 0x263c        |         
    0x000025dc lw fp, 0x108(sp)          |         fp = *(var_108h);
    0x000025e0 lw s7, 0x104(sp)          |         s7 = *(var_104h);
    0x000025e4 lw s6, 0x100(sp)          |         s6 = *(var_100h);
    0x000025e8 lw s5, 0xfc(sp)           |         s5 = *(var_fch);
    0x000025ec lw s4, 0xf8(sp)           |         s4 = *(var_f8h);
    0x000025f0 lw s3, 0xf4(sp)           |         s3 = *(var_f4h);
    0x000025f4 lw s2, 0xf0(sp)           |         s2 = *(var_f0h);
    0x000025f8 lw s1, 0xec(sp)           |         s1 = *(var_ech);
    0x000025fc lw s0, 0xe8(sp)           |         s0 = *(var_e8h);
    0x00002600 addiu sp, sp, 0x110       |         
    0x00002604 jr ra                     |         return v0;
                                         | label_7:
    0x00002608 lw t9, -0x7e90(gp)        |         t9 = sym.imp.perror;
    0x0000260c addiu s2, sp, 0x54        |         s2 = sp + 0x54;
    0x00002610 jalr t9                   |         t9 ();
    0x00002614 lw gp, 0x20(sp)           |         gp = *(var_20h);
    0x00002618 lw t9, -0x7e5c(gp)        |         t9 = sym.imp.free;
    0x0000261c lw a0, 0x58(sp)           |         a0 = *(var_58h);
    0x00002620 jalr t9                   |         t9 ();
    0x00002624 lw gp, 0x20(sp)           |         gp = *(var_20h);
    0x00002628 b 0x2100                  |         goto label_3;
                                         | label_8:
    0x0000262c move v0, zero             |         v0 = 0;
    0x00002630 b 0x2090                  |         goto label_4;
                                         | label_10:
    0x00002634 sw s2, 0x2c(sp)           |         *(var_2ch) = s2;
    0x00002638 b 0x2324                  |         goto label_5;
                                         |     }
    0x0000263c lw t9, -0x7e7c(gp)        |     t9 = sym.imp.__stack_chk_fail;
    0x00002640 jalr t9                   |     t9 ();
    0x00002644 nop                       |     
    0x00002648 nop                       |     
    0x0000264c nop                       |     
                                         | }
    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dcore @ 0x3ff0 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) sym.nptl_update ()           | void nptl_update () {
    0x00003ff0 lui gp, 2                 |     
    0x00003ff4 addiu gp, gp, -0x5fe0     |     
    0x00003ff8 addu gp, gp, t9           |     gp += t9;
    0x00003ffc addiu sp, sp, -0x40       |     
    0x00004000 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x00004004 sw s4, 0x30(sp)           |     *(var_30h) = s4;
    0x00004008 lw s4, -0x7e68(gp)        |     s4 = *((gp - 8090));
    0x0000400c lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x00004010 lw a3, (a0)               |     a3 = *(a0);
    0x00004014 lw v0, (s4)               |     v0 = *(s4);
    0x00004018 sw gp, 0x10(sp)           |     *(var_10h_2) = gp;
    0x0000401c sw s3, 0x2c(sp)           |     *(var_2ch) = s3;
    0x00004020 sw ra, 0x3c(sp)           |     *(var_3ch) = ra;
    0x00004024 sw s6, 0x38(sp)           |     *(var_38h) = s6;
    0x00004028 sw s5, 0x34(sp)           |     *(var_34h) = s5;
    0x0000402c sw s2, 0x28(sp)           |     *(var_28h) = s2;
    0x00004030 sw s1, 0x24(sp)           |     *(var_24h_2) = s1;
    0x00004034 sw s0, 0x20(sp)           |     *(var_20h_2) = s0;
    0x00004038 move s3, a0               |     s3 = a0;
    0x0000403c addiu a2, a2, 0x532c      |     a2 += str._proc__u_task;
    0x00004040 addiu a0, sp, 0x18        |     a0 = sp + 0x18;
    0x00004044 addiu a1, zero, 1         |     a1 = 1;
    0x00004048 sw v0, 0x1c(sp)           |     *(var_1ch) = v0;
    0x0000404c jalr t9                   |     t9 ();
    0x00004050 nop                       |     
    0x00004054 lw a0, 0x18(sp)           |     a0 = *(var_18h_2);
    0x00004058 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
                                         |     if (a0 == 0) {
    0x0000405c beqz a0, 0x41c8           |         goto label_2;
                                         |     }
    0x00004060 lw t9, -0x7f34(gp)        |     t9 = sym.imp.opendir;
    0x00004064 jalr t9                   |     t9 ();
    0x00004068 nop                       |     
    0x0000406c lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00004070 lw a0, 0x18(sp)           |     a0 = *(var_18h_2);
    0x00004074 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00004078 move s1, v0               |     s1 = v0;
    0x0000407c jalr t9                   |     t9 ();
    0x00004080 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
                                         |     if (s1 == 0) {
    0x00004084 beqz s1, 0x41c8           |         goto label_2;
                                         |     }
    0x00004088 move s2, zero             |     s2 = 0;
    0x0000408c addiu s5, zero, 0x30      |     s5 = 0x30;
    0x00004090 lw t9, -0x7f08(gp)        |     t9 = sym.imp.readdir;
                                         |     do {
    0x00004094 move a0, s1               |         a0 = s1;
    0x00004098 jalr t9                   |         t9 ();
    0x0000409c move s0, v0               |         s0 = v0;
    0x000040a0 lw gp, 0x10(sp)           |         gp = *(var_10h_2);
                                         |         if (v0 == 0) {
    0x000040a4 beqz v0, 0x40ec           |             goto label_3;
                                         |         }
                                         | label_0:
    0x000040a8 lw t9, -0x7ed8(gp)        |         t9 = sym.imp.strtoul;
    0x000040ac addiu a2, zero, 0xa       |         a2 = 0xa;
    0x000040b0 move a1, zero             |         a1 = 0;
    0x000040b4 addiu a0, v0, 0xb         |         a0 = v0 + 0xb;
    0x000040b8 jalr t9                   |         t9 ();
    0x000040bc lw gp, 0x10(sp)           |         gp = *(var_10h_2);
                                         |         if (v0 != 0) {
    0x000040c0 bnez v0, 0x40d0           |             goto label_4;
                                         |         }
    0x000040c4 lb v0, 0xb(s0)            |         v0 = *((s0 + 11));
    0x000040c8 lw t9, -0x7f08(gp)        |         t9 = sym.imp.readdir;
    0x000040cc bne v0, s5, 0x4094        |         
                                         |     } while (v0 != s5);
                                         | label_4:
    0x000040d0 lw t9, -0x7f08(gp)        |     t9 = sym.imp.readdir;
    0x000040d4 move a0, s1               |     a0 = s1;
    0x000040d8 jalr t9                   |     t9 ();
    0x000040dc addiu s2, s2, 1           |     s2++;
    0x000040e0 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000040e4 move s0, v0               |     s0 = v0;
                                         |     if (v0 != 0) {
    0x000040e8 bnez v0, 0x40a8           |         goto label_0;
                                         |     }
                                         | label_3:
    0x000040ec lw t9, -0x7eb4(gp)        |     t9 = sym.imp.malloc;
    0x000040f0 sll a0, s2, 2             |     a0 = s2 << 2;
    0x000040f4 jalr t9                   |     t9 ();
    0x000040f8 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000040fc sw v0, 0xc(s3)            |     *((s3 + 3)) = v0;
                                         |     if (v0 == 0) {
    0x00004100 beqz v0, 0x4194           |         goto label_5;
                                         |     }
    0x00004104 lw t9, -0x7f44(gp)        |     t9 = sym.imp.rewinddir;
    0x00004108 move a0, s1               |     a0 = s1;
    0x0000410c jalr t9                   |     t9 ();
    0x00004110 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00004114 move s5, zero             |     s5 = 0;
    0x00004118 addiu s6, zero, 0x30      |     s6 = 0x30;
    0x0000411c lw t9, -0x7f08(gp)        |     t9 = sym.imp.readdir;
                                         |     do {
    0x00004120 move a0, s1               |         a0 = s1;
    0x00004124 jalr t9                   |         t9 ();
    0x00004128 move s0, v0               |         s0 = v0;
    0x0000412c lw gp, 0x10(sp)           |         gp = *(var_10h_2);
                                         |         if (v0 == 0) {
    0x00004130 beqz v0, 0x4188           |             goto label_6;
                                         |         }
                                         | label_1:
    0x00004134 lw t9, -0x7ed8(gp)        |         t9 = sym.imp.strtoul;
    0x00004138 addiu a2, zero, 0xa       |         a2 = 0xa;
    0x0000413c move a1, zero             |         a1 = 0;
    0x00004140 addiu a0, v0, 0xb         |         a0 = v0 + 0xb;
    0x00004144 jalr t9                   |         t9 ();
    0x00004148 lw gp, 0x10(sp)           |         gp = *(var_10h_2);
                                         |         if (v0 != 0) {
    0x0000414c bnez v0, 0x415c           |             goto label_7;
                                         |         }
    0x00004150 lb v1, 0xb(s0)            |         v1 = *((s0 + 11));
    0x00004154 lw t9, -0x7f08(gp)        |         t9 = sym.imp.readdir;
    0x00004158 bne v1, s6, 0x4120        |         
                                         |     } while (v1 != s6);
                                         | label_7:
    0x0000415c lw v1, 0xc(s3)            |     v1 = *((s3 + 3));
    0x00004160 sll a0, s5, 2             |     a0 = s5 << 2;
    0x00004164 addu v1, v1, a0           |     v1 += a0;
    0x00004168 lw t9, -0x7f08(gp)        |     t9 = sym.imp.readdir;
    0x0000416c sw v0, (v1)               |     *(v1) = v0;
    0x00004170 move a0, s1               |     a0 = s1;
    0x00004174 jalr t9                   |     t9 ();
    0x00004178 addiu s5, s5, 1           |     s5++;
    0x0000417c lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00004180 move s0, v0               |     s0 = v0;
                                         |     if (v0 != 0) {
    0x00004184 bnez v0, 0x4134           |         goto label_1;
                                         |     }
                                         | label_6:
    0x00004188 sw s2, 0x10(s3)           |     *((s3 + 4)) = s2;
    0x0000418c move v0, zero             |     v0 = 0;
    0x00004190 b 0x41cc                  |     goto label_8;
                                         | label_5:
    0x00004194 lw t9, -0x7f30(gp)        |     t9 = sym.imp.closedir;
    0x00004198 move a0, s1               |     a0 = s1;
    0x0000419c jalr t9                   |     t9 ();
    0x000041a0 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000041a4 addiu a2, zero, 0x1f      |     a2 = 0x1f;
    0x000041a8 addiu a1, zero, 1         |     a1 = 1;
    0x000041ac lw v0, -0x7e58(gp)        |     v0 = *((gp - 8086));
    0x000041b0 lw a0, -0x7fd8(gp)        |     a0 = *((gp - 8182));
    0x000041b4 lw t9, -0x7e94(gp)        |     t9 = sym.imp.fwrite;
    0x000041b8 lw a3, (v0)               |     a3 = *(v0);
    0x000041bc addiu a0, a0, 0x533c      |     a0 += str.linuxpthreads_analysis_failed._n;
    0x000041c0 jalr t9                   |     t9 ();
    0x000041c4 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
                                         | label_2:
    0x000041c8 addiu v0, zero, 1         |     v0 = 1;
                                         | label_8:
    0x000041cc lw a0, 0x1c(sp)           |     a0 = *(var_1ch);
    0x000041d0 lw v1, (s4)               |     v1 = *(s4);
    0x000041d4 lw ra, 0x3c(sp)           |     ra = *(var_3ch);
                                         |     if (a0 == v1) {
    0x000041d8 bne a0, v1, 0x4200        |         
    0x000041dc lw s6, 0x38(sp)           |         s6 = *(var_38h);
    0x000041e0 lw s5, 0x34(sp)           |         s5 = *(var_34h);
    0x000041e4 lw s4, 0x30(sp)           |         s4 = *(var_30h);
    0x000041e8 lw s3, 0x2c(sp)           |         s3 = *(var_2ch);
    0x000041ec lw s2, 0x28(sp)           |         s2 = *(var_28h);
    0x000041f0 lw s1, 0x24(sp)           |         s1 = *(var_24h_2);
    0x000041f4 lw s0, 0x20(sp)           |         s0 = *(var_20h_2);
    0x000041f8 addiu sp, sp, 0x40        |         
    0x000041fc jr ra                     |         return v1;
                                         |     }
    0x00004200 lw t9, -0x7e7c(gp)        |     t9 = sym.imp.__stack_chk_fail;
    0x00004204 jalr t9                   |     t9 ();
    0x00004208 nop                       |     
    0x0000420c nop                       |     
                                         | }
    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dcore @ 0x3570 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) sym.procmap_new ()           | void procmap_new () {
    0x00003570 lui gp, 2                 |     
    0x00003574 addiu gp, gp, -0x5560     |     
    0x00003578 addu gp, gp, t9           |     gp += t9;
    0x0000357c lw v0, -0x7e68(gp)        |     v0 = *((gp - 8090));
    0x00003580 addiu sp, sp, -0x428      |     
    0x00003584 lw t9, -0x7f3c(gp)        |     t9 = sym.imp.calloc;
    0x00003588 sw v0, 0x4c(sp)           |     *(var_4ch) = v0;
    0x0000358c lw v0, (v0)               |     v0 = *(v0);
    0x00003590 sw gp, 0x20(sp)           |     *(var_20h) = gp;
    0x00003594 sw s1, 0x404(sp)          |     *(var_404h) = s1;
    0x00003598 sw a0, 0x428(sp)          |     *(arg_428h) = a0;
    0x0000359c sw a1, 0x42c(sp)          |     *(arg_42ch) = a1;
    0x000035a0 sw ra, 0x424(sp)          |     *(var_424h) = ra;
    0x000035a4 sw fp, 0x420(sp)          |     *(var_420h) = fp;
    0x000035a8 sw s7, 0x41c(sp)          |     *(var_41ch) = s7;
    0x000035ac sw s6, 0x418(sp)          |     *(var_418h) = s6;
    0x000035b0 sw s5, 0x414(sp)          |     *(var_414h) = s5;
    0x000035b4 sw s4, 0x410(sp)          |     *(var_410h) = s4;
    0x000035b8 sw s3, 0x40c(sp)          |     *(var_40ch) = s3;
    0x000035bc sw s2, 0x408(sp)          |     *(var_408h) = s2;
    0x000035c0 sw s0, 0x400(sp)          |     *(var_400h) = s0;
    0x000035c4 addiu a0, zero, 1         |     a0 = 1;
    0x000035c8 addiu a1, zero, 0x1c      |     a1 = 0x1c;
    0x000035cc sw v0, 0x3fc(sp)          |     *(var_3fch) = v0;
    0x000035d0 sw zero, 0x5c(sp)         |     *(var_5ch) = 0;
    0x000035d4 jalr t9                   |     t9 ();
    0x000035d8 nop                       |     
    0x000035dc move s1, v0               |     s1 = v0;
    0x000035e0 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == 0) {
    0x000035e4 beqz v0, 0x3950           |         goto label_7;
                                         |     }
    0x000035e8 lw a3, 0x428(sp)          |     a3 = *(arg_428h);
    0x000035ec lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x000035f0 lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x000035f4 addiu v0, sp, 0x5c        |     v0 = sp + 0x5c;
    0x000035f8 addiu a2, a2, 0x523c      |     a2 += str._proc__lu_smaps;
    0x000035fc sw a3, (s1)               |     *(s1) = a3;
    0x00003600 addiu a1, zero, 1         |     a1 = 1;
    0x00003604 move a0, v0               |     a0 = v0;
    0x00003608 lw s0, -0x7fd8(gp)        |     s0 = *((gp - 8182));
    0x0000360c sw v0, 0x38(sp)           |     *(var_38h) = v0;
    0x00003610 jalr t9                   |     t9 ();
    0x00003614 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003618 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x0000361c lw t9, -0x7e50(gp)        |     t9 = sym.imp.fopen;
    0x00003620 addiu a1, s0, 0x5108      |     a1 = s0 + 0x5108;
    0x00003624 jalr t9                   |     t9 ();
    0x00003628 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x0000362c lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003630 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00003634 sw v0, 4(s1)              |     *((s1 + 1)) = v0;
    0x00003638 jalr t9                   |     t9 ();
    0x0000363c lw v0, 4(s1)              |     v0 = *((s1 + 1));
    0x00003640 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == 0) {
    0x00003644 beqz v0, 0x3b6c           |         goto label_11;
                                         |     }
                                         | label_6:
    0x00003648 lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x0000364c lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x00003650 lw a3, 0x428(sp)          |     a3 = *(arg_428h);
    0x00003654 lw a0, 0x38(sp)           |     a0 = *(var_38h);
    0x00003658 addiu a2, a2, 0x525c      |     a2 += str._proc__lu_exe;
    0x0000365c addiu a1, zero, 1         |     a1 = 1;
    0x00003660 jalr t9                   |     t9 ();
    0x00003664 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003668 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x0000366c lw t9, -0x7ed0(gp)        |     t9 = sym.imp.open;
    0x00003670 move a1, zero             |     a1 = 0;
    0x00003674 jalr t9                   |     t9 ();
    0x00003678 sw v0, 0x3c(sp)           |     *(var_3ch) = v0;
    0x0000367c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003680 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
                                         |     if (v0 < 0) {
    0x00003684 bltz v0, 0x3bbc           |         goto label_12;
                                         |     }
    0x00003688 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x0000368c jalr t9                   |     t9 ();
    0x00003690 nop                       |     
    0x00003694 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003698 lw a0, 0x3c(sp)           |     a0 = *(var_3ch);
    0x0000369c move a2, zero             |     a2 = 0;
    0x000036a0 lw t9, -0x7f00(gp)        |     t9 = sym.imp.elf_begin;
    0x000036a4 addiu a1, zero, 1         |     a1 = 1;
    0x000036a8 sw zero, 0x5c(sp)         |     *(var_5ch) = 0;
    0x000036ac jalr t9                   |     t9 ();
    0x000036b0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000036b4 addiu a1, sp, 0xa8        |     a1 = sp + 0xa8;
    0x000036b8 move a0, v0               |     a0 = v0;
    0x000036bc lw t9, -0x7e34(gp)        |     t9 = sym.imp.gelf_getehdr;
    0x000036c0 move s3, v0               |     s3 = v0;
    0x000036c4 jalr t9                   |     t9 ();
    0x000036c8 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 == 0) {
    0x000036cc beqz v0, 0x3c78           |         goto label_13;
                                         |     }
    0x000036d0 lhu v0, 0xe0(sp)          |     v0 = *(var_e0h_2);
    0x000036d4 move s4, zero             |     s4 = 0;
                                         |     if (v0 == 0) {
    0x000036d8 beqz v0, 0x3c40           |         goto label_14;
                                         |     }
    0x000036dc lw s2, -0x7fd8(gp)        |     s2 = *((gp - 8182));
    0x000036e0 sw zero, 0x48(sp)         |     *(var_48h) = 0;
    0x000036e4 sw zero, 0x44(sp)         |     *(var_44h) = 0;
    0x000036e8 sw zero, 0x40(sp)         |     *(var_40h) = 0;
    0x000036ec sw zero, 0x2c(sp)         |     *(var_2ch) = 0;
    0x000036f0 addiu s5, sp, 0x70        |     s5 = sp + 0x70;
    0x000036f4 addiu s2, s2, 0x5284      |     s2 += str.getphdr_failed__s_n;
    0x000036f8 addiu s0, zero, 2         |     s0 = 2;
    0x000036fc lw t9, -0x7e84(gp)        |     t9 = sym.imp.gelf_getphdr;
                                         |     do {
    0x00003700 move a2, s5               |         a2 = s5;
    0x00003704 move a1, s4               |         a1 = s4;
    0x00003708 move a0, s3               |         a0 = s3;
    0x0000370c jalr t9                   |         t9 ();
    0x00003710 lw gp, 0x20(sp)           |         gp = *(var_20h);
                                         |         if (s5 != v0) {
    0x00003714 beq s5, v0, 0x3740        |             
    0x00003718 lw t9, -0x7ee4(gp)        |             t9 = sym.imp.elf_errmsg;
    0x0000371c addiu a0, zero, -1        |             a0 = -1;
    0x00003720 jalr t9                   |             t9 ();
    0x00003724 lw gp, 0x20(sp)           |             gp = *(var_20h);
    0x00003728 move a2, v0               |             a2 = v0;
    0x0000372c move a1, s2               |             a1 = s2;
    0x00003730 lw t9, -0x7f04(gp)        |             t9 = sym.imp.__printf_chk;
    0x00003734 addiu a0, zero, 1         |             a0 = 1;
    0x00003738 jalr t9                   |             t9 ();
    0x0000373c lw gp, 0x20(sp)           |             gp = *(var_20h);
                                         |         }
    0x00003740 lw v0, 0x70(sp)           |         v0 = *(var_70h);
    0x00003744 lhu v0, 0xe0(sp)          |         v0 = *(var_e0h_2);
                                         |         if (v0 == s0) {
    0x00003748 bne v0, s0, 0x3770        |             
    0x0000374c lw v0, 0x80(sp)           |             v0 = *(var_80h);
    0x00003750 sw v0, 0x40(sp)           |             *(var_40h) = v0;
    0x00003754 lw v0, 0x98(sp)           |             v0 = *(var_98h);
    0x00003758 sw v0, 0x44(sp)           |             *(var_44h) = v0;
    0x0000375c lw v0, 0xa0(sp)           |             v0 = *(var_a0h);
    0x00003760 sw v0, 0x48(sp)           |             *(var_48h) = v0;
    0x00003764 addiu v0, zero, 1         |             v0 = 1;
    0x00003768 sw v0, 0x2c(sp)           |             *(var_2ch) = v0;
    0x0000376c lhu v0, 0xe0(sp)          |             v0 = *(var_e0h_2);
                                         |         }
    0x00003770 addiu s4, s4, 1           |         s4++;
    0x00003774 slt v0, s4, v0            |         v0 = (s4 < v0) ? 1 : 0;
    0x00003778 lw t9, -0x7e84(gp)        |         t9 = sym.imp.gelf_getphdr;
    0x0000377c bnez v0, 0x3700           |         
                                         |     } while (v0 != 0);
                                         | label_8:
    0x00003780 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00003784 lw s5, -0x7fd8(gp)        |     s5 = *((gp - 8182));
    0x00003788 addiu v0, v0, 0x52f4      |     v0 += str._vdso_;
    0x0000378c sw v0, 0x30(sp)           |     *(var_30h) = v0;
    0x00003790 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00003794 move s4, zero             |     s4 = 0;
    0x00003798 sw v0, 0x34(sp)           |     *(var_34h) = v0;
    0x0000379c lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000037a0 move s0, zero             |     s0 = 0;
    0x000037a4 addiu v0, v0, 0x52cc      |     v0 += str.Private_Dirty:__d_kB_n;
    0x000037a8 sw v0, 0x50(sp)           |     *(var_50h) = v0;
    0x000037ac lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000037b0 move s6, zero             |     s6 = 0;
    0x000037b4 addiu fp, sp, 0x1fc       |     fp = sp + 0x1fc;
    0x000037b8 addiu s5, s5, 0x5298      |     s5 += str._lx__lx__s__x__s__d__s_n;
    0x000037bc sw v0, 0x54(sp)           |     *(var_54h) = v0;
                                         |     do {
                                         | label_2:
    0x000037c0 lw t9, -0x7e6c(gp)        |         t9 = sym.imp.fgets;
                                         | label_0:
    0x000037c4 lw a2, 4(s1)              |         a2 = *((s1 + 1));
                                         | label_1:
    0x000037c8 addiu a1, zero, 0x200     |         a1 = 0x200;
    0x000037cc move a0, fp               |         a0 = fp;
    0x000037d0 jalr t9                   |         t9 ();
    0x000037d4 lw gp, 0x20(sp)           |         gp = *(var_20h);
                                         |         if (v0 == 0) {
    0x000037d8 beqz v0, 0x38bc           |             goto label_15;
                                         |         }
    0x000037dc addiu v0, sp, 0x68        |         v0 = sp + 0x68;
    0x000037e0 lw t9, -0x7f14(gp)        |         t9 = sym.imp.sscanf;
    0x000037e4 sw v0, 0x14(sp)           |         *(var_14h) = v0;
    0x000037e8 addiu s2, sp, 0xfc        |         s2 = sp + 0xfc;
    0x000037ec addiu v0, sp, 0xec        |         v0 = sp + 0xec;
    0x000037f0 sw s2, 0x18(sp)           |         *(var_18h_2) = s2;
    0x000037f4 sw v0, 0x10(sp)           |         *(var_10h_2) = v0;
    0x000037f8 addiu a3, sp, 0x64        |         a3 = sp + 0x64;
    0x000037fc addiu a2, sp, 0x60        |         a2 = sp + 0x60;
    0x00003800 move a1, s5               |         a1 = s5;
    0x00003804 move a0, fp               |         a0 = fp;
    0x00003808 jalr t9                   |         t9 ();
    0x0000380c slti v0, v0, 4            |         v0 = (v0 < 4) ? 1 : 0;
    0x00003810 lw gp, 0x20(sp)           |         gp = *(var_20h);
                                         |         if (v0 == 0) {
    0x00003814 beqz v0, 0x3994           |             goto label_16;
                                         |         }
    0x00003818 lw v0, 0x34(sp)           |         v0 = *(var_34h);
    0x0000381c lw t9, -0x7f14(gp)        |         t9 = sym.imp.sscanf;
    0x00003820 addiu s2, sp, 0x6c        |         s2 = sp + 0x6c;
    0x00003824 move a2, s2               |         a2 = s2;
    0x00003828 addiu a1, v0, 0x52b4      |         a1 = v0 + str.Shared_Dirty:__d_kB_n;
    0x0000382c move a0, fp               |         a0 = fp;
    0x00003830 jalr t9                   |         t9 ();
    0x00003834 addiu s7, zero, 1         |         s7 = 1;
    0x00003838 lw gp, 0x20(sp)           |         gp = *(var_20h);
                                         |         if (v0 == s7) {
    0x0000383c beq v0, s7, 0x3a9c        |             goto label_17;
                                         |         }
    0x00003840 lw t9, -0x7f14(gp)        |         t9 = sym.imp.sscanf;
    0x00003844 lw a1, 0x50(sp)           |         a1 = *(var_50h);
    0x00003848 move a2, s2               |         a2 = s2;
    0x0000384c move a0, fp               |         a0 = fp;
    0x00003850 jalr t9                   |         t9 ();
    0x00003854 lw gp, 0x20(sp)           |         gp = *(var_20h);
                                         |         if (v0 == s7) {
    0x00003858 beq v0, s7, 0x3a9c        |             goto label_17;
                                         |         }
    0x0000385c lw v0, 0x54(sp)           |         v0 = *(var_54h);
    0x00003860 lw t9, -0x7f14(gp)        |         t9 = sym.imp.sscanf;
    0x00003864 move a2, s2               |         a2 = s2;
    0x00003868 addiu a1, v0, 0x52e4      |         a1 = v0 + str.Swap:__d_kB_n;
    0x0000386c move a0, fp               |         a0 = fp;
    0x00003870 jalr t9                   |         t9 ();
    0x00003874 lw gp, 0x20(sp)           |         gp = *(var_20h);
    0x00003878 bne v0, s7, 0x37c0        |         
                                         |     } while (v0 != s7);
    0x0000387c lw v1, 0x6c(sp)           |     v1 = *(var_6ch);
    0x00003880 addu s4, s4, v1           |     s4 += v1;
    0x00003884 lhu a0, 0xb8(sp)          |     a0 = *(var_b8h);
                                         |     if (s4 == 0) {
    0x00003888 bnel s4, zero, 0x3c14     |         goto label_18;
                                         |     }
    0x0000388c lw t9, -0x7e6c(gp)        |     t9 = sym.imp.fgets;
                                         |     if (s0 == 0) {
    0x00003890 beqz s0, 0x37c4           |         goto label_0;
                                         |     }
    0x00003894 lw v1, 0x18(s0)           |     v1 = *((s0 + 6));
    0x00003898 lw a2, 4(s1)              |     a2 = *((s1 + 1));
                                         |     if (v1 == 0) {
    0x0000389c bnel v1, zero, 0x37c8     |         goto label_1;
                                         |     }
    0x000038a0 lw s4, 0x14(s0)           |     s4 = *((s0 + 5));
    0x000038a4 andi s4, s4, 2            |     s4 &= 2;
                                         |     if (s4 == 0) {
    0x000038a8 beql s4, zero, 0x37c8     |         goto label_1;
                                         |     }
    0x000038ac lw a2, 4(s1)              |     a2 = *((s1 + 1));
    0x000038b0 sw v0, 0x1c(s0)           |     *((s0 + 7)) = v0;
    0x000038b4 move s4, zero             |     s4 = 0;
    0x000038b8 b 0x37c4                  |     goto label_0;
                                         | label_15:
    0x000038bc lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x000038c0 lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x000038c4 lw a3, 0x428(sp)          |     a3 = *(arg_428h);
    0x000038c8 lw a0, 0x38(sp)           |     a0 = *(var_38h);
    0x000038cc addiu a2, a2, 0x5310      |     a2 += str._proc__lu_mem;
    0x000038d0 addiu a1, zero, 1         |     a1 = 1;
    0x000038d4 sw s6, 0x14(s1)           |     *((s1 + 5)) = s6;
    0x000038d8 jalr t9                   |     t9 ();
    0x000038dc lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000038e0 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x000038e4 lw t9, -0x7ed0(gp)        |     t9 = sym.imp.open;
    0x000038e8 move a1, zero             |     a1 = 0;
    0x000038ec jalr t9                   |     t9 ();
    0x000038f0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000038f4 sw v0, 8(s1)              |     *((s1 + 2)) = v0;
                                         |     if (v0 < 0) {
    0x000038f8 bltz v0, 0x3c54           |         goto label_19;
                                         |     }
                                         | label_10:
    0x000038fc lw t9, -0x7ec8(gp)        |     t9 = sym.imp.elf_end;
    0x00003900 move a0, s3               |     a0 = s3;
    0x00003904 jalr t9                   |     t9 ();
    0x00003908 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x0000390c lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00003910 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003914 jalr t9                   |     t9 ();
    0x00003918 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x0000391c lw t9, -0x7f2c(gp)        |     t9 = sym.imp.close;
    0x00003920 lw a0, 0x3c(sp)           |     a0 = *(var_3ch);
    0x00003924 jalr t9                   |     t9 ();
    0x00003928 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x0000392c lw t9, -0x7f78(gp)        |     t9 = sym.nptl_update;
    0x00003930 move a0, s1               |     a0 = s1;
    0x00003934 bal 0x3ff0                |     sym_nptl_update ();
    0x00003938 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 != 0) {
    0x0000393c beqz v0, 0x3950           |         
    0x00003940 lw t9, -0x7f74(gp)        |         t9 = sym.linuxthreads_update;
    0x00003944 move a0, s1               |         a0 = s1;
    0x00003948 bal 0x4304                |         sym_linuxthreads_update ();
    0x0000394c lw gp, 0x20(sp)           |         gp = *(var_20h);
                                         |     }
                                         | label_7:
    0x00003950 lw v0, 0x4c(sp)           |     v0 = *(var_4ch);
    0x00003954 lw a0, 0x3fc(sp)          |     a0 = *(var_3fch);
    0x00003958 lw v1, (v0)               |     v1 = *(v0);
    0x0000395c move v0, s1               |     v0 = s1;
                                         |     if (a0 != v1) {
    0x00003960 bne a0, v1, 0x3cd8        |         goto label_20;
                                         |     }
    0x00003964 lw ra, 0x424(sp)          |     ra = *(var_424h);
    0x00003968 lw fp, 0x420(sp)          |     fp = *(var_420h);
    0x0000396c lw s7, 0x41c(sp)          |     s7 = *(var_41ch);
    0x00003970 lw s6, 0x418(sp)          |     s6 = *(var_418h);
    0x00003974 lw s5, 0x414(sp)          |     s5 = *(var_414h);
    0x00003978 lw s4, 0x410(sp)          |     s4 = *(var_410h);
    0x0000397c lw s3, 0x40c(sp)          |     s3 = *(var_40ch);
    0x00003980 lw s2, 0x408(sp)          |     s2 = *(var_408h);
    0x00003984 lw s1, 0x404(sp)          |     s1 = *(var_404h);
    0x00003988 lw s0, 0x400(sp)          |     s0 = *(var_400h);
    0x0000398c addiu sp, sp, 0x428       |     
    0x00003990 jr ra                     |     return v0;
                                         | label_16:
    0x00003994 lw t9, -0x7eb4(gp)        |     t9 = sym.imp.malloc;
    0x00003998 addiu a0, zero, 0x2c      |     a0 = 0x2c;
    0x0000399c jalr t9                   |     t9 ();
    0x000039a0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000039a4 move s0, v0               |     s0 = v0;
    0x000039a8 sw zero, 0x14(v0)         |     *((v0 + 5)) = 0;
    0x000039ac sw zero, 0x18(v0)         |     *((v0 + 6)) = 0;
    0x000039b0 sw zero, 0x1c(v0)         |     *((v0 + 7)) = 0;
    0x000039b4 sw zero, 0x28(v0)         |     *((v0 + 10)) = 0;
    0x000039b8 sw zero, 0x24(v0)         |     *((v0 + 9)) = 0;
    0x000039bc lw v0, 0x42c(sp)          |     v0 = *(arg_42ch);
    0x000039c0 lw t9, -0x7e60(gp)        |     t9 = sym.imp.strdup;
    0x000039c4 move a0, s2               |     a0 = s2;
    0x000039c8 sw v0, 0x10(s0)           |     *((s0 + 4)) = v0;
    0x000039cc jalr t9                   |     t9 ();
    0x000039d0 lw s4, 0x60(sp)           |     s4 = *(var_60h);
    0x000039d4 lw s7, 0x64(sp)           |     s7 = *(var_64h);
    0x000039d8 lb a1, 0xec(sp)           |     a1 = *(var_ech_2);
    0x000039dc addiu a0, zero, 0x72      |     a0 = 0x72;
    0x000039e0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x000039e4 sw v0, 0x20(s0)           |     *((s0 + 8)) = v0;
    0x000039e8 sw s4, (s0)               |     *(s0) = s4;
    0x000039ec sw s7, 4(s0)              |     *((s0 + 1)) = s7;
                                         |     if (a1 == a0) {
    0x000039f0 bne a1, a0, 0x39fc        |         
    0x000039f4 addiu v0, zero, 4         |         v0 = 4;
    0x000039f8 sw v0, 0x14(s0)           |         *((s0 + 5)) = v0;
                                         |     }
    0x000039fc lb a0, 0xed(sp)           |     a0 = *(var_edh);
    0x00003a00 addiu v0, zero, 0x77      |     v0 = 0x77;
    0x00003a04 lb a0, 0xee(sp)           |     a0 = *(var_eeh);
                                         |     if (a0 == v0) {
    0x00003a08 bne a0, v0, 0x3a1c        |         
    0x00003a0c lw v0, 0x14(s0)           |         v0 = *((s0 + 5));
    0x00003a10 ori v0, v0, 2             |         v0 |= 2;
    0x00003a14 sw v0, 0x14(s0)           |         *((s0 + 5)) = v0;
    0x00003a18 lb a0, 0xee(sp)           |         a0 = *(var_eeh);
                                         |     }
    0x00003a1c addiu v0, zero, 0x78      |     v0 = 0x78;
    0x00003a20 lb a0, 0xef(sp)           |     a0 = *(var_efh);
                                         |     if (a0 == v0) {
    0x00003a24 bne a0, v0, 0x3a38        |         
    0x00003a28 lw v0, 0x14(s0)           |         v0 = *((s0 + 5));
    0x00003a2c ori v0, v0, 1             |         v0 |= 1;
    0x00003a30 sw v0, 0x14(s0)           |         *((s0 + 5)) = v0;
    0x00003a34 lb a0, 0xef(sp)           |         a0 = *(var_efh);
                                         |     }
    0x00003a38 addiu v0, zero, 0x73      |     v0 = 0x73;
    0x00003a3c lw t9, -0x7e38(gp)        |     t9 = sym.imp.strcmp;
                                         |     if (a0 == v0) {
    0x00003a40 bne a0, v0, 0x3a4c        |         
    0x00003a44 addiu v0, zero, 1         |         v0 = 1;
    0x00003a48 sw v0, 0x1c(s0)           |         *((s0 + 7)) = v0;
                                         |     }
    0x00003a4c lw a1, 0x30(sp)           |     a1 = *(var_30h);
    0x00003a50 move a0, s2               |     a0 = s2;
    0x00003a54 jalr t9                   |     t9 ();
    0x00003a58 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         |     if (v0 != 0) {
    0x00003a5c bnez v0, 0x3aa8           |         goto label_21;
                                         |     }
    0x00003a60 addiu v0, zero, 1         |     v0 = 1;
    0x00003a64 sw v0, 0x18(s0)           |     *((s0 + 6)) = v0;
                                         | label_4:
    0x00003a68 lw v1, 0x18(s1)           |     v1 = *((s1 + 6));
                                         | label_3:
    0x00003a6c move s4, zero             |     s4 = 0;
                                         |     if (v1 != 0) {
    0x00003a70 bnez v1, 0x3a80           |         goto label_22;
                                         |     }
    0x00003a74 sw s0, 0x18(s1)           |     *((s1 + 6)) = s0;
    0x00003a78 addiu s6, s6, 1           |     s6++;
    0x00003a7c b 0x37c0                  |     goto label_2;
                                         |     do {
                                         | label_22:
    0x00003a80 lw v0, 0x28(v1)           |         v0 = *((v1 + 10));
    0x00003a84 move v1, v0               |         v1 = v0;
    0x00003a88 bnel v0, zero, 0x3a80     |         
                                         |     } while (v0 == 0);
    0x00003a8c sw s0, 0x28(v1)           |     *((v1 + 10)) = s0;
    0x00003a90 addiu s6, s6, 1           |     s6++;
    0x00003a94 move s4, zero             |     s4 = 0;
    0x00003a98 b 0x37c0                  |     goto label_2;
                                         | label_17:
    0x00003a9c lw v0, 0x6c(sp)           |     v0 = *(var_6ch);
    0x00003aa0 addu s4, s4, v0           |     s4 += v0;
    0x00003aa4 b 0x37c0                  |     goto label_2;
                                         | label_21:
    0x00003aa8 lui v0, 0x6269            |     v0 = 0x62690000;
    0x00003aac lw a0, (s2)               |     a0 = *(s2);
    0x00003ab0 addiu v0, v0, 0x6c2f      |     v0 += 0x6c2f;
                                         |     if (a0 == v0) {
    0x00003ab4 beql a0, v0, 0x3b28       |         goto label_23;
                                         |     }
    0x00003ab8 lw v0, 4(s2)              |     v0 = *((s2 + 1));
    0x00003abc lw v0, 0x2c(sp)           |     v0 = *(var_2ch);
                                         |     if (v0 == 0) {
                                         | label_5:
    0x00003ac0 beql v0, zero, 0x3a6c     |         goto label_3;
                                         |     }
    0x00003ac4 lw v1, 0x18(s1)           |     v1 = *((s1 + 6));
    0x00003ac8 lhu a0, 0xb8(sp)          |     a0 = *(var_b8h);
    0x00003acc addiu v0, zero, 2         |     v0 = 2;
    0x00003ad0 lw v1, 0x18(s1)           |     v1 = *((s1 + 6));
                                         |     if (a0 == v0) {
    0x00003ad4 bnel a0, v0, 0x3a6c       |         goto label_3;
                                         |     }
    0x00003ad8 lw v0, 0x14(s0)           |     v0 = *((s0 + 5));
    0x00003adc andi v0, v0, 2            |     v0 &= 2;
    0x00003ae0 lw v1, 0x18(s1)           |     v1 = *((s1 + 6));
                                         |     if (v0 == 0) {
    0x00003ae4 bnel v0, zero, 0x3a6c     |         goto label_3;
                                         |     }
    0x00003ae8 lw a0, 0x40(sp)           |     a0 = *(var_40h);
    0x00003aec sltu s4, a0, s4           |     s4 = (a0 < s4) ? 1 : 0;
    0x00003af0 lw v1, 0x18(s1)           |     v1 = *((s1 + 6));
                                         |     if (s4 == 0) {
    0x00003af4 bnel s4, zero, 0x3a6c     |         goto label_3;
                                         |     }
    0x00003af8 lw v0, 0x44(sp)           |     v0 = *(var_44h);
    0x00003afc addu v0, v0, a0           |     v0 += a0;
    0x00003b00 sltu v1, s7, v0           |     v1 = (s7 < v0) ? 1 : 0;
    0x00003b04 lw v1, 0x18(s1)           |     v1 = *((s1 + 6));
                                         |     if (v1 == 0) {
    0x00003b08 bnel v1, zero, 0x3a6c     |         goto label_3;
                                         |     }
    0x00003b0c sw v0, 4(s0)              |     *((s0 + 1)) = v0;
    0x00003b10 lw v0, 0x48(sp)           |     v0 = *(var_48h);
    0x00003b14 addiu v1, zero, 1         |     v1 = 1;
    0x00003b18 sw v1, 0x18(s0)           |     *((s0 + 6)) = v1;
    0x00003b1c sw a0, (s0)               |     *(s0) = a0;
    0x00003b20 sw v0, 0x10(s0)           |     *((s0 + 4)) = v0;
    0x00003b24 b 0x3a68                  |     goto label_4;
                                         | label_23:
    0x00003b28 lw v0, 0x2c(sp)           |     v0 = *(var_2ch);
                                         |     if (v0 != a0) {
    0x00003b2c bne v0, a0, 0x3ac0        |         goto label_5;
                                         |     }
    0x00003b30 lui v0, 0x7268            |     v0 = 0x72680000;
    0x00003b34 lw a0, 8(s2)              |     a0 = *((s2 + 2));
    0x00003b38 addiu v0, v0, 0x7470      |     v0 += 0x7470;
    0x00003b3c lw v0, 0x2c(sp)           |     v0 = *(var_2ch);
                                         |     if (a0 != v0) {
    0x00003b40 bne a0, v0, 0x3ac0        |         goto label_5;
                                         |     }
    0x00003b44 lui v0, 0x2d64            |     v0 = 0x2d640000;
    0x00003b48 lw a0, 0xc(s2)            |     a0 = *((s2 + 3));
    0x00003b4c addiu v0, v0, 0x6165      |     v0 += 0x6165;
    0x00003b50 lw v0, 0x2c(sp)           |     v0 = *(var_2ch);
                                         |     if (a0 != v0) {
    0x00003b54 bne a0, v0, 0x3ac0        |         goto label_5;
                                         |     }
    0x00003b58 lw t9, -0x7f70(gp)        |     t9 = sym.procmap_vma_elf_readsyms;
    0x00003b5c move a0, s0               |     a0 = s0;
    0x00003b60 bal 0x3cf0                |     sym_procmap_vma_elf_readsyms ();
    0x00003b64 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003b68 b 0x3a68                  |     goto label_4;
                                         | label_11:
    0x00003b6c lw a2, -0x7fd8(gp)        |     a2 = *((gp - 8182));
    0x00003b70 lw t9, -0x7eb0(gp)        |     t9 = sym.imp.__asprintf_chk
    0x00003b74 lw a3, 0x428(sp)          |     a3 = *(arg_428h);
    0x00003b78 lw a0, 0x38(sp)           |     a0 = *(var_38h);
    0x00003b7c addiu a2, a2, 0x524c      |     a2 += str._proc__lu_maps;
    0x00003b80 addiu a1, zero, 1         |     a1 = 1;
    0x00003b84 jalr t9                   |     t9 ();
    0x00003b88 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003b8c lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003b90 lw t9, -0x7e50(gp)        |     t9 = sym.imp.fopen;
    0x00003b94 addiu a1, s0, 0x5108      |     a1 = s0 + 0x5108;
    0x00003b98 jalr t9                   |     t9 ();
    0x00003b9c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003ba0 sw v0, 4(s1)              |     *((s1 + 1)) = v0;
                                         |     if (v0 == 0) {
    0x00003ba4 beqz v0, 0x3ca8           |         goto label_24;
                                         |     }
    0x00003ba8 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00003bac lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003bb0 jalr t9                   |     t9 ();
    0x00003bb4 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003bb8 b 0x3648                  |     goto label_6;
                                         | label_12:
    0x00003bbc lw t9, -0x7e90(gp)        |     t9 = sym.imp.perror;
    0x00003bc0 move s3, zero             |     s3 = 0;
    0x00003bc4 jalr t9                   |     t9 ();
    0x00003bc8 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003bcc lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00003bd0 move a0, s1               |     a0 = s1;
    0x00003bd4 jalr t9                   |     t9 ();
    0x00003bd8 lw gp, 0x20(sp)           |     gp = *(var_20h);
                                         | label_9:
    0x00003bdc lw t9, -0x7ec8(gp)        |     t9 = sym.imp.elf_end;
    0x00003be0 move a0, s3               |     a0 = s3;
    0x00003be4 jalr t9                   |     t9 ();
    0x00003be8 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003bec lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003bf0 lw t9, -0x7e5c(gp)        |     t9 = sym.imp.free;
    0x00003bf4 move s1, zero             |     s1 = 0;
    0x00003bf8 jalr t9                   |     t9 ();
    0x00003bfc lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003c00 lw t9, -0x7f2c(gp)        |     t9 = sym.imp.close;
    0x00003c04 lw a0, 0x3c(sp)           |     a0 = *(var_3ch);
    0x00003c08 jalr t9                   |     t9 ();
    0x00003c0c lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003c10 b 0x3950                  |     goto label_7;
                                         | label_18:
    0x00003c14 addiu v1, zero, 3         |     v1 = 3;
    0x00003c18 lw t9, -0x7e6c(gp)        |     t9 = sym.imp.fgets;
                                         |     if (a0 != v1) {
    0x00003c1c bne a0, v1, 0x37c4        |         goto label_0;
                                         |     }
                                         |     if (s0 == 0) {
    0x00003c20 beql s0, zero, 0x37c8     |         goto label_1;
                                         |     }
    0x00003c24 lw a2, 4(s1)              |     a2 = *((s1 + 1));
    0x00003c28 lw v1, 0x14(s0)           |     v1 = *((s0 + 5));
    0x00003c2c andi v1, v1, 2            |     v1 &= 2;
                                         |     if (v1 == 0) {
    0x00003c30 beql v1, zero, 0x37c4     |         goto label_0;
                                         |     }
    0x00003c34 sw v0, 0x18(s0)           |     *((s0 + 6)) = v0;
    0x00003c38 lw a2, 4(s1)              |     a2 = *((s1 + 1));
    0x00003c3c b 0x37c8                  |     goto label_1;
                                         | label_14:
    0x00003c40 sw zero, 0x48(sp)         |     *(var_48h) = 0;
    0x00003c44 sw zero, 0x44(sp)         |     *(var_44h) = 0;
    0x00003c48 sw zero, 0x40(sp)         |     *(var_40h) = 0;
    0x00003c4c sw zero, 0x2c(sp)         |     *(var_2ch) = 0;
    0x00003c50 b 0x3780                  |     goto label_8;
                                         | label_19:
    0x00003c54 lw t9, -0x7e90(gp)        |     t9 = sym.imp.perror;
    0x00003c58 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003c5c jalr t9                   |     t9 ();
    0x00003c60 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003c64 lw t9, -0x7f88(gp)        |     t9 = sym.procmap_free;
    0x00003c68 move a0, s1               |     a0 = s1;
    0x00003c6c bal 0x3478                |     sym_procmap_free ();
    0x00003c70 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003c74 b 0x3bdc                  |     goto label_9;
                                         | label_13:
    0x00003c78 lw t9, -0x7ee4(gp)        |     t9 = sym.imp.elf_errmsg;
    0x00003c7c addiu a0, zero, -1        |     a0 = -1;
    0x00003c80 jalr t9                   |     t9 ();
    0x00003c84 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003c88 move a2, v0               |     a2 = v0;
    0x00003c8c addiu a0, zero, 1         |     a0 = 1;
    0x00003c90 lw a1, -0x7fd8(gp)        |     a1 = *((gp - 8182));
    0x00003c94 lw t9, -0x7f04(gp)        |     t9 = sym.imp.__printf_chk;
    0x00003c98 addiu a1, a1, 0x526c      |     a1 += str.getehdr___failed:__s.;
    0x00003c9c jalr t9                   |     t9 ();
    0x00003ca0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003ca4 b 0x38fc                  |     goto label_10;
                                         | label_24:
    0x00003ca8 lw t9, -0x7e90(gp)        |     t9 = sym.imp.perror;
    0x00003cac addiu v0, zero, -1        |     v0 = -1;
    0x00003cb0 lw a0, 0x5c(sp)           |     a0 = *(var_5ch);
    0x00003cb4 sw v0, 0x3c(sp)           |     *(var_3ch) = v0;
    0x00003cb8 jalr t9                   |     t9 ();
    0x00003cbc lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003cc0 move a0, s1               |     a0 = s1;
    0x00003cc4 lw t9, -0x7f88(gp)        |     t9 = sym.procmap_free;
    0x00003cc8 move s3, zero             |     s3 = 0;
    0x00003ccc bal 0x3478                |     sym_procmap_free ();
    0x00003cd0 lw gp, 0x20(sp)           |     gp = *(var_20h);
    0x00003cd4 b 0x3bdc                  |     goto label_9;
                                         | label_20:
    0x00003cd8 lw t9, -0x7e7c(gp)        |     t9 = sym.imp.__stack_chk_fail;
    0x00003cdc jalr t9                   |     t9 ();
    0x00003ce0 nop                       |     
    0x00003ce4 nop                       |     
    0x00003ce8 nop                       |     
    0x00003cec nop                       |     
                                         | }

[*] Function sprintf used 10 times dcore