[*] Binary protection state of dcore

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


[*] Function printf tear down of dcore

    ; assembly                           | /* r2dec pseudo code output */
                                         | /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/dcore @ 0x4210 */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) fcn.00004210 ()              | void fcn_00004210 () {
    0x00004210 lui gp, 2                 |     
    0x00004214 addiu gp, gp, -0x6200     |     
    0x00004218 addu gp, gp, t9           |     gp += t9;
    0x0000421c addiu sp, sp, -0x40       |     
    0x00004220 lw t9, -0x7f64(gp)        |     t9 = sym.procmap_sym_lookup_byname;
    0x00004224 sw s0, 0x2c(sp)           |     *(var_2ch_2) = s0;
    0x00004228 lw s0, -0x7e68(gp)        |     s0 = *((gp - 8090));
    0x0000422c sw gp, 0x18(sp)           |     *(var_18h_3) = gp;
    0x00004230 sw s3, 0x38(sp)           |     *(var_38h_2) = s3;
    0x00004234 lw v0, (s0)               |     v0 = *(s0);
    0x00004238 sw s2, 0x34(sp)           |     *(var_34h_2) = s2;
    0x0000423c sw s1, 0x30(sp)           |     *(var_30h_2) = s1;
    0x00004240 sw ra, 0x3c(sp)           |     *(var_3ch_2) = ra;
    0x00004244 move s2, a2               |     s2 = a2;
    0x00004248 sw v0, 0x24(sp)           |     *(var_24h_3) = v0;
    0x0000424c addiu a2, sp, 0x20        |     a2 = sp + 0x20;
    0x00004250 move s1, a0               |     s1 = a0;
    0x00004254 move s3, a1               |     s3 = a1;
    0x00004258 bal 0x3270                |     sym_procmap_sym_lookup_byname ();
    0x0000425c lw gp, 0x18(sp)           |     gp = *(var_18h_3);
                                         |     if (v0 == 0) {
    0x00004260 beqz v0, 0x42cc           |         goto label_0;
                                         |     }
    0x00004264 lw v1, 0x20(sp)           |     v1 = *(var_20h_3);
    0x00004268 lw a0, (v0)               |     a0 = *(v0);
    0x0000426c lw t9, -0x7f60(gp)        |     t9 = sym.procmap_mem_pread;
    0x00004270 lw v0, (v1)               |     v0 = *(v1);
    0x00004274 lw v1, 8(v1)              |     v1 = *((v1 + 2));
    0x00004278 addiu a2, zero, 4         |     a2 = 4;
    0x0000427c subu v0, v0, v1           |     __asm ("subu v0, v0, v1");
    0x00004280 addu v0, v0, a0           |     v0 += a0;
    0x00004284 sw v0, 0x10(sp)           |     *(var_10h_5) = v0;
    0x00004288 sw zero, 0x14(sp)         |     *(var_14h_2) = 0;
    0x0000428c move a1, s2               |     a1 = s2;
    0x00004290 move a0, s1               |     a0 = s1;
    0x00004294 bal 0x3398                |     sym_procmap_mem_pread ();
    0x00004298 xori v0, v0, 4            |     v0 ^= 4;
    0x0000429c lw gp, 0x18(sp)           |     gp = *(var_18h_3);
    0x000042a0 sltiu v0, v0, 1           |     v0 = (v0 < 1) ? 1 : 0;
                                         |     do {
    0x000042a4 lw a0, 0x24(sp)           |         a0 = *(var_24h_3);
    0x000042a8 lw v1, (s0)               |         v1 = *(s0);
    0x000042ac lw ra, 0x3c(sp)           |         ra = *(var_3ch_2);
                                         |         if (a0 != v1) {
    0x000042b0 bne a0, v1, 0x42f8        |             goto label_1;
                                         |         }
    0x000042b4 lw s3, 0x38(sp)           |         s3 = *(var_38h_2);
    0x000042b8 lw s2, 0x34(sp)           |         s2 = *(var_34h_2);
    0x000042bc lw s1, 0x30(sp)           |         s1 = *(var_30h_2);
    0x000042c0 lw s0, 0x2c(sp)           |         s0 = *(var_2ch_2);
    0x000042c4 addiu sp, sp, 0x40        |         
    0x000042c8 jr ra                     |         return v0;
                                         | label_0:
    0x000042cc lw v0, -0x7e58(gp)        |         v0 = *((gp - 8086));
    0x000042d0 lw a2, -0x7fd8(gp)        |         a2 = *((gp - 8182));
    0x000042d4 lw t9, -0x7f1c(gp)        |         t9 = sym.imp.__fprintf_chk
    0x000042d8 lw a0, (v0)               |         a0 = *(v0);
    0x000042dc move a3, s3               |         a3 = s3;
    0x000042e0 addiu a2, a2, 0x535c      |         a2 += str._s_not_found_n;
    0x000042e4 addiu a1, zero, 1         |         a1 = 1;
    0x000042e8 jalr t9                   |         t9 ();
    0x000042ec lw gp, 0x18(sp)           |         gp = *(var_18h_3);
    0x000042f0 move v0, zero             |         v0 = 0;
    0x000042f4 b 0x42a4                  |         
                                         |     } while (1);
                                         | label_1:
    0x000042f8 lw t9, -0x7e7c(gp)        |     t9 = sym.imp.__stack_chk_fail;
    0x000042fc jalr t9                   |     t9 ();
    0x00004300 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 @ 0x4304 */
                                             | #include <stdint.h>
                                             |  
    ; (fcn) sym.linuxthreads_update ()       | void linuxthreads_update () {
    0x00004304 lui gp, 2                     |     
    0x00004308 addiu gp, gp, -0x62f4         |     
    0x0000430c addu gp, gp, t9               |     gp += t9;
    0x00004310 addiu sp, sp, -0x70           |     
    0x00004314 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x00004318 sw s4, 0x58(sp)               |     *(var_58h) = s4;
    0x0000431c lw s4, -0x7e68(gp)            |     s4 = *((gp - 8090));
    0x00004320 lw t9, -0x7f64(gp)            |     t9 = sym.procmap_sym_lookup_byname;
    0x00004324 sw gp, 0x18(sp)               |     *(var_18h_4) = gp;
    0x00004328 lw v0, (s4)                   |     v0 = *(s4);
    0x0000432c sw s0, 0x48(sp)               |     *(var_48h) = s0;
    0x00004330 sw ra, 0x6c(sp)               |     *(var_6ch) = ra;
    0x00004334 sw fp, 0x68(sp)               |     *(var_68h) = fp;
    0x00004338 sw s7, 0x64(sp)               |     *(var_64h) = s7;
    0x0000433c sw s6, 0x60(sp)               |     *(var_60h) = s6;
    0x00004340 sw s5, 0x5c(sp)               |     *(var_5ch) = s5;
    0x00004344 sw s3, 0x54(sp)               |     *(var_54h) = s3;
    0x00004348 sw s2, 0x50(sp)               |     *(var_50h) = s2;
    0x0000434c sw s1, 0x4c(sp)               |     *(var_4ch) = s1;
    0x00004350 move a2, zero                 |     a2 = 0;
    0x00004354 addiu a1, a1, 0x536c          |     a1 += str.__pthread_threads_debug;
    0x00004358 sw v0, 0x44(sp)               |     *(var_44h) = v0;
    0x0000435c move s0, a0                   |     s0 = a0;
    0x00004360 bal 0x3270                    |     sym_procmap_sym_lookup_byname ();
    0x00004364 lw gp, 0x18(sp)               |     gp = *(var_18h_4);
                                             |     if (v0 == 0) {
    0x00004368 beqz v0, 0x4604               |         goto label_4;
                                             |     }
    0x0000436c lw s1, -0x7fd8(gp)            |     s1 = *((gp - 8182));
    0x00004370 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x00004374 addiu s1, s1, 0x4210          |     s1 += fcn.00004210;
    0x00004378 addiu a2, sp, 0x28            |     a2 = sp + 0x28;
    0x0000437c addiu a1, a1, 0x5384          |     a1 += str.__pthread_sizeof_handle;
    0x00004380 move t9, s1                   |     t9 = s1;
    0x00004384 move a0, s0                   |     a0 = s0;
    0x00004388 bal 0x4210                    |     fcn_00004210 ();
    0x0000438c lw gp, 0x18(sp)               |     gp = *(var_18h_4);
    0x00004390 addiu a2, sp, 0x2c            |     a2 = sp + 0x2c;
    0x00004394 move a0, s0                   |     a0 = s0;
    0x00004398 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x0000439c move t9, s1                   |     t9 = s1;
    0x000043a0 addiu a1, a1, 0x539c          |     a1 += str.__pthread_offsetof_descr;
    0x000043a4 sw v0, 0x24(sp)               |     *(var_24h_5) = v0;
    0x000043a8 bal 0x4210                    |     fcn_00004210 ();
    0x000043ac lw gp, 0x18(sp)               |     gp = *(var_18h_4);
    0x000043b0 addiu a2, sp, 0x30            |     a2 = sp + 0x30;
    0x000043b4 move a0, s0                   |     a0 = s0;
    0x000043b8 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x000043bc move t9, s1                   |     t9 = s1;
    0x000043c0 addiu a1, a1, 0x53b8          |     a1 += str.__pthread_offsetof_pid;
    0x000043c4 move s2, v0                   |     s2 = v0;
    0x000043c8 bal 0x4210                    |     fcn_00004210 ();
    0x000043cc lw gp, 0x18(sp)               |     gp = *(var_18h_4);
    0x000043d0 addiu s6, sp, 0x40            |     s6 = sp + 0x40;
    0x000043d4 addiu a2, sp, 0x34            |     a2 = sp + 0x34;
    0x000043d8 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x000043dc move a0, s0                   |     a0 = s0;
    0x000043e0 addiu a1, a1, 0x53d0          |     a1 += str.__pthread_threads_max;
    0x000043e4 move t9, s1                   |     t9 = s1;
    0x000043e8 sw s6, 0x20(sp)               |     *(var_20h_5) = s6;
    0x000043ec lw s5, -0x7fd8(gp)            |     s5 = *((gp - 8182));
    0x000043f0 move s3, v0                   |     s3 = v0;
    0x000043f4 bal 0x4210                    |     fcn_00004210 ();
    0x000043f8 lw gp, 0x18(sp)               |     gp = *(var_18h_4);
    0x000043fc move a2, s6                   |     a2 = s6;
    0x00004400 addiu a1, s5, 0x53e8          |     a1 = s5 + str.__pthread_handles;
    0x00004404 lw t9, -0x7f64(gp)            |     t9 = sym.procmap_sym_lookup_byname;
    0x00004408 move a0, s0                   |     a0 = s0;
    0x0000440c move fp, v0                   |     fp = v0;
    0x00004410 bal 0x3270                    |     sym_procmap_sym_lookup_byname ();
    0x00004414 lw gp, 0x18(sp)               |     gp = *(var_18h_4);
                                             |     if (v0 == 0) {
    0x00004418 beqz v0, 0x458c               |         goto label_5;
                                             |     }
    0x0000441c lw v1, 0x40(sp)               |     v1 = *(var_40h);
    0x00004420 lw a1, -0x7fd8(gp)            |     a1 = *((gp - 8182));
    0x00004424 addiu a2, sp, 0x38            |     a2 = sp + 0x38;
    0x00004428 addiu a1, a1, 0x53fc          |     a1 += str.__pthread_handles_num;
    0x0000442c move a0, s0                   |     a0 = s0;
    0x00004430 move t9, s1                   |     t9 = s1;
    0x00004434 lw s6, (v1)                   |     s6 = *(v1);
    0x00004438 lw s7, 8(v1)                  |     s7 = *((v1 + 2));
    0x0000443c lw s5, (v0)                   |     s5 = *(v0);
    0x00004440 sltiu s3, s3, 1               |     s3 = (s3 < 1) ? 1 : 0;
    0x00004444 bal 0x4210                    |     fcn_00004210 ();
    0x00004448 sltiu fp, fp, 1               |     fp = (fp < 1) ? 1 : 0;
    0x0000444c lw v1, 0x24(sp)               |     v1 = *(var_24h_5);
    0x00004450 sltiu s2, s2, 1               |     s2 = (s2 < 1) ? 1 : 0;
    0x00004454 or s3, s3, fp                 |     s3 |= fp;
    0x00004458 or s3, s2, s3                 |     s3 = s2 | s3;
    0x0000445c sltiu s2, v1, 1               |     s2 = (v1 < 1) ? 1 : 0;
    0x00004460 or s2, s2, s3                 |     s2 |= s3;
    0x00004464 lw gp, 0x18(sp)               |     gp = *(var_18h_4);
                                             |     if (s2 != 0) {
    0x00004468 bnez s2, 0x460c               |         goto label_6;
                                             |     }
    0x0000446c lw t9, -0x7eb4(gp)            |     t9 = sym.imp.malloc;
                                             |     if (v0 == 0) {
    0x00004470 beqz v0, 0x460c               |         goto label_6;
                                             |     }
    0x00004474 lw a0, 0x38(sp)               |     a0 = *(var_38h_3);
    0x00004478 sll a0, a0, 2                 |     a0 <<= 2;
    0x0000447c jalr t9                       |     t9 ();
    0x00004480 lw gp, 0x18(sp)               |     gp = *(var_18h_4);
    0x00004484 sw v0, 0xc(s0)                |     *((s0 + 3)) = v0;
                                             |     if (v0 == 0) {
    0x00004488 beqz v0, 0x4618               |         goto label_7;
                                             |     }
    0x0000448c lw v1, 0x38(sp)               |     v1 = *(var_38h_3);
                                             |     if (v1 <= 0) {
    0x00004490 blezl v1, 0x44fc              |         goto label_8;
                                             |     }
    0x00004494 sw v1, 0x10(s0)               |     *((s0 + 4)) = v1;
    0x00004498 move s2, zero                 |     s2 = 0;
    0x0000449c move s1, zero                 |     s1 = 0;
    0x000044a0 addiu s3, sp, 0x3c            |     s3 = sp + 0x3c;
                                             |     do {
    0x000044a4 lw v1, 0x28(sp)               |         v1 = *(var_28h_3);
    0x000044a8 lw v0, 0x2c(sp)               |         v0 = *(var_2ch_4);
    0x000044ac mul a0, s2, v1                |         __asm ("mul a0, s2, v1");
    0x000044b0 addu v0, s6, v0               |         v0 = s6 + v0;
    0x000044b4 subu v0, v0, s7               |         __asm ("subu v0, v0, s7");
    0x000044b8 addu v0, v0, s5               |         v0 += s5;
    0x000044bc lw t9, -0x7f60(gp)            |         t9 = sym.procmap_mem_pread;
    0x000044c0 addu v0, a0, v0               |         v0 = a0 + v0;
    0x000044c4 sw v0, 0x10(sp)               |         *(var_10h_4) = v0;
    0x000044c8 sw zero, 0x14(sp)             |         *(var_14h) = 0;
    0x000044cc addiu a2, zero, 4             |         a2 = 4;
    0x000044d0 move a1, s3                   |         a1 = s3;
    0x000044d4 move a0, s0                   |         a0 = s0;
    0x000044d8 bal 0x3398                    |         sym_procmap_mem_pread ();
    0x000044dc lw v0, 0x3c(sp)               |         v0 = *(var_3ch_3);
    0x000044e0 lw gp, 0x18(sp)               |         gp = *(var_18h_4);
                                             |         if (v0 != 0) {
    0x000044e4 bnez v0, 0x4540               |             goto label_9;
                                             |         }
                                             | label_0:
    0x000044e8 lw v1, 0x38(sp)               |         v1 = *(var_38h_3);
                                             | label_1:
    0x000044ec slt v0, s1, v1                |         v0 = (s1 < v1) ? 1 : 0;
    0x000044f0 addiu s2, s2, 1               |         s2++;
    0x000044f4 bnez v0, 0x44a4               |         
                                             |     } while (v0 != 0);
    0x000044f8 sw v1, 0x10(s0)               |     *((s0 + 4)) = v1;
                                             | label_8:
    0x000044fc move s0, zero                 |     s0 = 0;
                                             |     do {
                                             | label_2:
    0x00004500 lw a0, 0x44(sp)               |         a0 = *(var_44h);
    0x00004504 lw v1, (s4)                   |         v1 = *(s4);
    0x00004508 move v0, s0                   |         v0 = s0;
                                             |         if (a0 != v1) {
    0x0000450c bne a0, v1, 0x4624            |             goto label_10;
                                             |         }
    0x00004510 lw ra, 0x6c(sp)               |         ra = *(var_6ch);
    0x00004514 lw fp, 0x68(sp)               |         fp = *(var_68h);
    0x00004518 lw s7, 0x64(sp)               |         s7 = *(var_64h);
    0x0000451c lw s6, 0x60(sp)               |         s6 = *(var_60h);
    0x00004520 lw s5, 0x5c(sp)               |         s5 = *(var_5ch);
    0x00004524 lw s4, 0x58(sp)               |         s4 = *(var_58h);
    0x00004528 lw s3, 0x54(sp)               |         s3 = *(var_54h);
    0x0000452c lw s2, 0x50(sp)               |         s2 = *(var_50h);
    0x00004530 lw s1, 0x4c(sp)               |         s1 = *(var_4ch);
    0x00004534 lw s0, 0x48(sp)               |         s0 = *(var_48h);
    0x00004538 addiu sp, sp, 0x70            |         
    0x0000453c jr ra                         |         return v1;
                                             | label_9:
    0x00004540 lw v1, 0x30(sp)               |         v1 = *(var_30h_3);
    0x00004544 lw t9, -0x7f60(gp)            |         t9 = sym.procmap_mem_pread;
    0x00004548 addu v0, v0, v1               |         v0 += v1;
    0x0000454c lw a1, 0x20(sp)               |         a1 = *(var_20h_5);
    0x00004550 sw v0, 0x10(sp)               |         *(var_10h_4) = v0;
    0x00004554 sw zero, 0x14(sp)             |         *(var_14h) = 0;
    0x00004558 addiu a2, zero, 4             |         a2 = 4;
    0x0000455c move a0, s0                   |         a0 = s0;
    0x00004560 sw v0, 0x3c(sp)               |         *(var_3ch_3) = v0;
    0x00004564 bal 0x3398                    |         sym_procmap_mem_pread ();
    0x00004568 lw v0, 0x40(sp)               |         v0 = *(var_40h);
    0x0000456c lw gp, 0x18(sp)               |         gp = *(var_18h_4);
                                             |         if (v0 == 0) {
    0x00004570 beqz v0, 0x45f4               |             goto label_11;
                                             |         }
    0x00004574 lw v1, 0xc(s0)                |         v1 = *((s0 + 3));
    0x00004578 sll a0, s1, 2                 |         a0 = s1 << 2;
    0x0000457c addu v1, v1, a0               |         v1 += a0;
    0x00004580 addiu s1, s1, 1               |         s1++;
    0x00004584 sw v0, (v1)                   |         *(v1) = v0;
    0x00004588 b 0x44e8                      |         goto label_0;
                                             | label_5:
    0x0000458c lw s2, -0x7e58(gp)            |         s2 = *((gp - 8086));
    0x00004590 lw a2, -0x7fd8(gp)            |         a2 = *((gp - 8182));
    0x00004594 lw t9, -0x7f1c(gp)            |         t9 = sym.imp.__fprintf_chk
    0x00004598 lw a0, (s2)                   |         a0 = *(s2);
    0x0000459c addiu a3, s5, 0x53e8          |         a3 = s5 + str.__pthread_handles;
    0x000045a0 addiu a2, a2, 0x535c          |         a2 += str._s_not_found_n;
    0x000045a4 addiu a1, zero, 1             |         a1 = 1;
    0x000045a8 jalr t9                       |         t9 ();
    0x000045ac lw gp, 0x18(sp)               |         gp = *(var_18h_4);
    0x000045b0 move a0, s0                   |         a0 = s0;
    0x000045b4 addiu a2, sp, 0x38            |         a2 = sp + 0x38;
    0x000045b8 lw a1, -0x7fd8(gp)            |         a1 = *((gp - 8182));
    0x000045bc move t9, s1                   |         t9 = s1;
    0x000045c0 addiu a1, a1, 0x53fc          |         a1 += str.__pthread_handles_num;
    0x000045c4 bal 0x4210                    |         fcn_00004210 ();
    0x000045c8 lw gp, 0x18(sp)               |         gp = *(var_18h_4);
    0x000045cc addiu s0, zero, 1             |         s0 = 1;
                                             | label_3:
    0x000045d0 lw a0, -0x7fd8(gp)            |         a0 = *((gp - 8182));
    0x000045d4 lw t9, -0x7e94(gp)            |         t9 = sym.imp.fwrite;
    0x000045d8 lw a3, (s2)                   |         a3 = *(s2);
    0x000045dc addiu a2, zero, 0x1f          |         a2 = 0x1f;
    0x000045e0 addiu a1, zero, 1             |         a1 = 1;
    0x000045e4 addiu a0, a0, 0x533c          |         a0 += str.linuxpthreads_analysis_failed._n;
    0x000045e8 jalr t9                       |         t9 ();
    0x000045ec lw gp, 0x18(sp)               |         gp = *(var_18h_4);
    0x000045f0 b 0x4500                      |         
                                             |     } while (1);
                                             | label_11:
    0x000045f4 lw v1, 0x38(sp)               |     v1 = *(var_38h_3);
    0x000045f8 addiu v1, v1, -1              |     v1 += -1;
    0x000045fc sw v1, 0x38(sp)               |     *(var_38h_3) = v1;
    0x00004600 b 0x44ec                      |     goto label_1;
                                             | label_4:
    0x00004604 addiu s0, zero, 1             |     s0 = 1;
    0x00004608 b 0x4500                      |     goto label_2;
                                             | label_6:
    0x0000460c addiu s0, zero, 1             |     s0 = 1;
    0x00004610 lw s2, -0x7e58(gp)            |     s2 = *((gp - 8086));
    0x00004614 b 0x45d0                      |     goto label_3;
                                             | label_7:
    0x00004618 lw s2, -0x7e58(gp)            |     s2 = *((gp - 8086));
    0x0000461c move s0, zero                 |     s0 = 0;
    0x00004620 b 0x45d0                      |     goto label_3;
                                             | label_10:
    0x00004624 lw t9, -0x7e7c(gp)            |     t9 = sym.imp.__stack_chk_fail;
    0x00004628 jalr t9                       |     t9 ();
    0x0000462c nop                           |     
                                             | }

[*] Function printf used 11 times dcore