[*] Binary protection state of pidstat
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function printf tear down of pidstat
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/pidstat @ 0x599c */
| #include <stdint.h>
|
; (fcn) sym.write_pid_task_all_stats () | void write_pid_task_all_stats () {
0x0000599c lui gp, 2 |
0x000059a0 addiu gp, gp, 0x4714 |
0x000059a4 addu gp, gp, t9 | gp += t9;
0x000059a8 addiu sp, sp, -0x120 |
0x000059ac lw v0, -0x7cd8(gp) | v0 = *((gp - 7990));
0x000059b0 lw v1, 0x130(sp) | v1 = *(arg_130h);
0x000059b4 sw v0, 0xb0(sp) | *(var_b0h) = v0;
0x000059b8 sw v1, 0x78(sp) | *(var_78h) = v1;
0x000059bc lw v1, 0x138(sp) | v1 = *(arg_138h);
0x000059c0 lw v0, (v0) | v0 = *(v0);
0x000059c4 sw v1, 0x6c(sp) | *(var_6ch) = v1;
0x000059c8 lw v1, 0x13c(sp) | v1 = *(arg_13ch);
0x000059cc sw gp, 0x38(sp) | *(var_38h) = gp;
0x000059d0 sw ra, 0x11c(sp) | *(var_11ch) = ra;
0x000059d4 sw fp, 0x118(sp) | *(var_118h) = fp;
0x000059d8 sw s7, 0x114(sp) | *(var_114h) = s7;
0x000059dc sw s6, 0x110(sp) | *(var_110h) = s6;
0x000059e0 sw s5, 0x10c(sp) | *(var_10ch) = s5;
0x000059e4 sw s4, 0x108(sp) | *(var_108h) = s4;
0x000059e8 sw s3, 0x104(sp) | *(var_104h) = s3;
0x000059ec sw s2, 0x100(sp) | *(var_100h) = s2;
0x000059f0 sw s1, 0xfc(sp) | *(var_fch) = s1;
0x000059f4 sw s0, 0xf8(sp) | *(var_f8h) = s0;
0x000059f8 sw a0, 0x120(sp) | *(arg_120h) = a0;
0x000059fc sw a1, 0x124(sp) | *(arg_124h) = a1;
0x00005a00 sw v1, 0x70(sp) | *(var_70h) = v1;
0x00005a04 sw v0, 0xf4(sp) | *(var_f4h) = v0;
0x00005a08 lw s5, -0x7fc4(gp) | s5 = *(gp);
| if (a2 != 0) {
0x00005a0c bnez a2, 0x673c | goto label_19;
| }
0x00005a10 lw v0, (s5) | v0 = *(s5);
0x00005a14 move s0, zero | s0 = 0;
| if (v0 == 0) {
0x00005a18 beqz v0, 0x6248 | goto label_9;
| }
0x00005a1c lw v0, -0x7f38(gp) | v0 = sym.get_pid_to_display;
| label_8:
0x00005a20 lw fp, -0x7fd4(gp) | fp = *(gp);
0x00005a24 sw v0, 0x4c(sp) | *(var_4ch) = v0;
0x00005a28 lw v0, -0x7fd4(gp) | v0 = *(gp);
0x00005a2c lw v1, 0x1534(fp) | v1 = *(arg_1534h);
0x00005a30 sw v0, 0x7c(sp) | *(var_7ch) = v0;
0x00005a34 lw v0, -0x7fd4(gp) | v0 = *(gp);
0x00005a38 lw a0, -0x7fd4(gp) | a0 = *(gp);
0x00005a3c sw v0, 0xa4(sp) | *(var_a4h) = v0;
0x00005a40 lw v0, 0x1530(fp) | v0 = *(arg_1530h);
0x00005a44 sw v1, 0xac(sp) | *(var_ach) = v1;
0x00005a48 sw v0, 0xa8(sp) | *(var_a8h) = v0;
0x00005a4c lw v0, -0x7fd4(gp) | v0 = *(gp);
0x00005a50 lw s4, -0x7fc0(gp) | s4 = *(gp);
0x00005a54 sw a0, 0xb4(sp) | *(var_b4h) = a0;
0x00005a58 lw v1, 0x1544(v0) | v1 = *((v0 + 1361));
0x00005a5c lw v0, 0x1540(v0) | v0 = *((v0 + 1360));
0x00005a60 sw v1, 0xc4(sp) | *(var_c4h) = v1;
0x00005a64 sw v0, 0xc0(sp) | *(var_c0h) = v0;
0x00005a68 lw v0, 0x1538(a0) | v0 = *((a0 + 1358));
0x00005a6c lw v1, 0x153c(a0) | v1 = *((a0 + 1359));
0x00005a70 sw v0, 0xb8(sp) | *(var_b8h) = v0;
0x00005a74 addiu v0, sp, 0xd0 | v0 = sp + 0xd0;
0x00005a78 sw v0, 0x54(sp) | *(var_54h) = v0;
0x00005a7c addiu v0, sp, 0xcc | v0 = sp + 0xcc;
0x00005a80 sw v1, 0xbc(sp) | *(var_bch) = v1;
0x00005a84 move s0, zero | s0 = 0;
0x00005a88 move s6, zero | s6 = 0;
0x00005a8c sw v0, 0x50(sp) | *(var_50h) = v0;
0x00005a90 lw v0, 0x54(sp) | v0 = *(var_54h);
| do {
0x00005a94 lw a3, (s4) | a3 = *(s4);
0x00005a98 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00005a9c lw v0, 0x50(sp) | v0 = *(var_50h);
0x00005aa0 lw a1, 0x124(sp) | a1 = *(arg_124h);
0x00005aa4 sw v0, 0x14(sp) | *(var_14h) = v0;
0x00005aa8 lw a0, 0x120(sp) | a0 = *(arg_120h);
0x00005aac addiu v0, zero, 1 | v0 = 1;
0x00005ab0 lw t9, 0x4c(sp) | t9 = *(var_4ch);
0x00005ab4 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00005ab8 move a2, s6 | a2 = s6;
0x00005abc jalr t9 | t9 ();
0x00005ac0 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v0 > 0) {
0x00005ac4 blez v0, 0x6234 |
0x00005ac8 lw v0, 0x7c(sp) | v0 = *(var_7ch);
0x00005acc lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x00005ad0 lw a2, 0x78(sp) | a2 = *(var_78h);
0x00005ad4 addiu a1, v0, 0x10c8 | a1 = v0 + 0x10c8;
0x00005ad8 addiu a0, zero, 1 | a0 = 1;
0x00005adc lw s0, 0xcc(sp) | s0 = *(var_cch);
0x00005ae0 jalr t9 | t9 ();
0x00005ae4 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005ae8 addiu a1, zero, 0x2d | a1 = 0x2d;
0x00005aec lw t9, -0x7f3c(gp) | t9 = sym.__print_line_id;
0x00005af0 move a0, s0 | a0 = s0;
0x00005af4 bal 0x57d0 | sym_print_line_id ();
0x00005af8 lw v0, (s4) | v0 = *(s4);
0x00005afc andi v1, v0, 1 | v1 = v0 & 1;
0x00005b00 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v1 != 0) {
0x00005b04 beqz v1, 0x5f08 |
0x00005b08 lw v0, -0x7fa0(gp) | v0 = *(gp);
0x00005b0c lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00005b10 lw v1, 0x6c(sp) | v1 = *(var_6ch);
0x00005b14 lw v0, (v0) | v0 = *(v0);
0x00005b18 lw t0, 0x94(s7) | t0 = *((s7 + 37));
0x00005b1c multu v0, v1 | __asm ("multu v0, v1");
0x00005b20 lw a2, 0x70(sp) | a2 = *(var_70h);
0x00005b24 lw v1, 0x74(s7) | v1 = *((s7 + 29));
0x00005b28 mflo a0 | __asm ("mflo a0");
0x00005b2c subu t1, v1, t0 | __asm ("subu t1, v1, t0");
0x00005b30 mfhi a1 | __asm ("mfhi a1");
0x00005b34 lw s1, 0x70(s7) | s1 = *((s7 + 28));
0x00005b38 mul a3, a2, v0 | __asm ("mul a3, a2, v0");
0x00005b3c lw s2, 0x90(s7) | s2 = *((s7 + 36));
0x00005b40 sw v1, 0x8c(sp) | *(var_8ch_6) = v1;
0x00005b44 lw v1, -0x7fbc(gp) | v1 = *(gp);
0x00005b48 subu t2, s1, s2 | __asm ("subu t2, s1, s2");
0x00005b4c lw s3, 0xd0(sp) | s3 = *(var_d0h);
0x00005b50 sltu v0, s1, t2 | v0 = (s1 < t2) ? 1 : 0;
0x00005b54 lw v1, (v1) | v1 = *(v1);
0x00005b58 lw t9, -0x7f9c(gp) | t9 = *(gp);
0x00005b5c subu t1, t1, v0 | __asm ("subu t1, t1, v0");
0x00005b60 sw t0, 0x90(sp) | *(var_90h_6) = t0;
0x00005b64 addu a1, a3, a1 | a1 = a3 + a1;
0x00005b68 sw t1, 0x40(sp) | *(var_40h_6) = t1;
0x00005b6c move a3, zero | a3 = 0;
0x00005b70 addiu a2, zero, 0x64 | a2 = 0x64;
0x00005b74 sw t2, 0x80(sp) | *(var_80h_5) = t2;
0x00005b78 sw v1, 0x74(sp) | *(var_74h_7) = v1;
0x00005b7c lw s0, 0x70(s3) | s0 = *((s3 + 28));
0x00005b80 bal 0xefe0 | fcn_0000efe0 ();
0x00005b84 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005b88 lw a0, 0x90(s3) | a0 = *((s3 + 36));
0x00005b8c lw a1, 0x74(s3) | a1 = *((s3 + 29));
0x00005b90 lw a2, 0x94(s3) | a2 = *((s3 + 37));
0x00005b94 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005b98 sw a0, 0x58(sp) | *(var_58h_6) = a0;
0x00005b9c sw a1, 0x68(sp) | *(var_68h_7) = a1;
0x00005ba0 sw a2, 0x60(sp) | *(var_60h_6) = a2;
0x00005ba4 move a0, v0 | a0 = v0;
0x00005ba8 move a1, v1 | a1 = v1;
0x00005bac bal 0x104e0 | fcn_000104e0 ();
0x00005bb0 lw a0, 0x58(sp) | a0 = *(var_58h_6);
0x00005bb4 lw t0, 0x60(sp) | t0 = *(var_60h_6);
0x00005bb8 subu a1, s0, a0 | __asm ("subu a1, s0, a0");
0x00005bbc lw a0, 0x68(sp) | a0 = *(var_68h_7);
0x00005bc0 sltu a2, s0, a1 | a2 = (s0 < a1) ? 1 : 0;
0x00005bc4 lw t1, 0x40(sp) | t1 = *(var_40h_6);
0x00005bc8 subu a0, a0, t0 | __asm ("subu a0, a0, t0");
0x00005bcc lw a3, 0x74(sp) | a3 = *(var_74h_7);
0x00005bd0 subu a0, a0, a2 | __asm ("subu a0, a0, a2");
0x00005bd4 ext a3, a3, 0xb, 1 | __asm ("ext a3, a3, 0xb, 1");
0x00005bd8 sltu a2, t1, a0 | a2 = (t1 < a0) ? 1 : 0;
0x00005bdc lw gp, 0x38(sp) | gp = *(var_38h);
0x00005be0 sw a3, 0x88(sp) | *(var_88h_4) = a3;
0x00005be4 sw v0, 0x40(sp) | *(var_40h_6) = v0;
0x00005be8 sw v1, 0x44(sp) | *(var_44h_6) = v1;
| if (a2 != 0) {
0x00005bec bnez a2, 0x628c | goto label_20;
| }
0x00005bf0 lw t2, 0x80(sp) | t2 = *(var_80h_5);
| if (a0 == t1) {
0x00005bf4 bne a0, t1, 0x5c04 |
0x00005bf8 sltu a1, t2, a1 | a1 = (t2 < a1) ? 1 : 0;
0x00005bfc sw zero, 0x80(sp) | *(var_80h_5) = 0;
| if (a1 == 0) {
0x00005c00 bnel a1, zero, 0x6290 | goto label_21;
| }
| }
0x00005c04 lw v0, 0x68(sp) | v0 = *(var_68h_7);
0x00005c08 subu a1, t2, s0 | __asm ("subu a1, t2, s0");
0x00005c0c subu t1, t1, v0 | __asm ("subu t1, t1, v0");
0x00005c10 lw v0, 0x58(sp) | v0 = *(var_58h_6);
0x00005c14 sltu t2, t2, a1 | t2 = (t2 < a1) ? 1 : 0;
0x00005c18 addu a0, a1, v0 | a0 = a1 + v0;
0x00005c1c lw v0, 0x60(sp) | v0 = *(var_60h_6);
0x00005c20 subu t1, t1, t2 | __asm ("subu t1, t1, t2");
0x00005c24 addu t1, t1, v0 | t1 += v0;
0x00005c28 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005c2c sltu a1, a0, a1 | a1 = (a0 < a1) ? 1 : 0;
0x00005c30 addu a1, a1, t1 | a1 += t1;
0x00005c34 bal 0x104e0 | fcn_000104e0 ();
0x00005c38 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005c3c lw a2, 0x40(sp) | a2 = *(var_40h_6);
0x00005c40 lw a3, 0x44(sp) | a3 = *(var_44h_6);
0x00005c44 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00005c48 move a0, v0 | a0 = v0;
0x00005c4c move a1, v1 | a1 = v1;
0x00005c50 bal 0xf440 | fcn_0000f440 ();
0x00005c54 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005c58 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00005c5c lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00005c60 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00005c64 move a0, v0 | a0 = v0;
0x00005c68 move a1, v1 | a1 = v1;
0x00005c6c bal 0xfea0 | fcn_0000fea0 ();
0x00005c70 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005c74 sw v0, 0x80(sp) | *(var_80h_5) = v0;
0x00005c78 sw v1, 0x84(sp) | *(var_84h_6) = v1;
| label_0:
0x00005c7c lw t1, 0x80(s7) | t1 = *((s7 + 32));
0x00005c80 lw t2, 0x80(s3) | t2 = *((s3 + 32));
0x00005c84 lw t3, 0x84(s3) | t3 = *((s3 + 33));
0x00005c88 lw t4, 0x84(s7) | t4 = *((s7 + 33));
0x00005c8c subu a0, t1, t2 | __asm ("subu a0, t1, t2");
0x00005c90 sltu v0, t1, a0 | v0 = (t1 < a0) ? 1 : 0;
0x00005c94 subu a1, t4, t3 | __asm ("subu a1, t4, t3");
0x00005c98 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005c9c sw t2, 0xa0(sp) | *(var_a0h_4) = t2;
0x00005ca0 sw t1, 0x9c(sp) | *(var_9ch_5) = t1;
0x00005ca4 sw t3, 0x98(sp) | *(var_98h_5) = t3;
0x00005ca8 sw t4, 0x94(sp) | *(var_94h_7) = t4;
0x00005cac subu a1, a1, v0 | __asm ("subu a1, a1, v0");
0x00005cb0 bal 0x104e0 | fcn_000104e0 ();
0x00005cb4 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005cb8 lw a2, 0x40(sp) | a2 = *(var_40h_6);
0x00005cbc lw a3, 0x44(sp) | a3 = *(var_44h_6);
0x00005cc0 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00005cc4 move a0, v0 | a0 = v0;
0x00005cc8 move a1, v1 | a1 = v1;
0x00005ccc bal 0xf440 | fcn_0000f440 ();
0x00005cd0 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005cd4 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00005cd8 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00005cdc lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00005ce0 move a0, v0 | a0 = v0;
0x00005ce4 move a1, v1 | a1 = v1;
0x00005ce8 bal 0xfea0 | fcn_0000fea0 ();
0x00005cec lw gp, 0x38(sp) | gp = *(var_38h);
0x00005cf0 lw a0, 0x58(sp) | a0 = *(var_58h_6);
0x00005cf4 lw a2, 0x60(sp) | a2 = *(var_60h_6);
0x00005cf8 lw a1, 0x90(sp) | a1 = *(var_90h_6);
0x00005cfc subu a0, s2, a0 | __asm ("subu a0, s2, a0");
0x00005d00 sltu s2, s2, a0 | s2 = (s2 < a0) ? 1 : 0;
0x00005d04 subu a1, a1, a2 | __asm ("subu a1, a1, a2");
0x00005d08 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005d0c subu a1, a1, s2 | __asm ("subu a1, a1, s2");
0x00005d10 sw v0, 0x58(sp) | *(var_58h_6) = v0;
0x00005d14 sw v1, 0x5c(sp) | *(var_5ch_7) = v1;
0x00005d18 bal 0x104e0 | fcn_000104e0 ();
0x00005d1c lw gp, 0x38(sp) | gp = *(var_38h);
0x00005d20 lw a2, 0x40(sp) | a2 = *(var_40h_6);
0x00005d24 lw a3, 0x44(sp) | a3 = *(var_44h_6);
0x00005d28 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00005d2c move a0, v0 | a0 = v0;
0x00005d30 move a1, v1 | a1 = v1;
0x00005d34 bal 0xf440 | fcn_0000f440 ();
0x00005d38 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005d3c lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00005d40 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00005d44 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00005d48 move a0, v0 | a0 = v0;
0x00005d4c move a1, v1 | a1 = v1;
0x00005d50 bal 0xfea0 | fcn_0000fea0 ();
0x00005d54 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005d58 lw a3, 0xa0(s7) | a3 = *((s7 + 40));
0x00005d5c lw a0, 0xa0(s3) | a0 = *((s3 + 40));
0x00005d60 lw a2, 0xa4(s7) | a2 = *((s7 + 41));
0x00005d64 lw a1, 0xa4(s3) | a1 = *((s3 + 41));
0x00005d68 subu a0, a3, a0 | __asm ("subu a0, a3, a0");
0x00005d6c sltu a3, a3, a0 | a3 = (a3 < a0) ? 1 : 0;
0x00005d70 subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x00005d74 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005d78 subu a1, a1, a3 | __asm ("subu a1, a1, a3");
0x00005d7c sw v0, 0x60(sp) | *(var_60h_6) = v0;
0x00005d80 sw v1, 0x64(sp) | *(var_64h_7) = v1;
0x00005d84 bal 0x104e0 | fcn_000104e0 ();
0x00005d88 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005d8c lw a2, 0x40(sp) | a2 = *(var_40h_6);
0x00005d90 lw a3, 0x44(sp) | a3 = *(var_44h_6);
0x00005d94 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00005d98 move a0, v0 | a0 = v0;
0x00005d9c move a1, v1 | a1 = v1;
0x00005da0 bal 0xf440 | fcn_0000f440 ();
0x00005da4 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005da8 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00005dac lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00005db0 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00005db4 move a0, v0 | a0 = v0;
0x00005db8 move a1, v1 | a1 = v1;
0x00005dbc bal 0xfea0 | fcn_0000fea0 ();
0x00005dc0 lw t1, 0x9c(sp) | t1 = *(var_9ch_5);
0x00005dc4 lw a1, 0x8c(sp) | a1 = *(var_8ch_6);
0x00005dc8 addu a0, s1, t1 | a0 = s1 + t1;
0x00005dcc lw t4, 0x94(sp) | t4 = *(var_94h_7);
0x00005dd0 subu s0, a0, s0 | __asm ("subu s0, a0, s0");
0x00005dd4 sltu t0, a0, s1 | t0 = (a0 < s1) ? 1 : 0;
0x00005dd8 addu t1, a1, t4 | t1 = a1 + t4;
0x00005ddc sltu a1, a0, s0 | a1 = (a0 < s0) ? 1 : 0;
0x00005de0 lw a0, 0x68(sp) | a0 = *(var_68h_7);
0x00005de4 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005de8 addu t1, t0, t1 | t1 = t0 + t1;
0x00005dec lw t2, 0xa0(sp) | t2 = *(var_a0h_4);
0x00005df0 subu t1, t1, a0 | __asm ("subu t1, t1, a0");
0x00005df4 lw t3, 0x98(sp) | t3 = *(var_98h_5);
0x00005df8 subu a0, s0, t2 | __asm ("subu a0, s0, t2");
0x00005dfc subu t1, t1, a1 | __asm ("subu t1, t1, a1");
0x00005e00 sltu s0, s0, a0 | s0 = (s0 < a0) ? 1 : 0;
0x00005e04 subu t3, t1, t3 | __asm ("subu t3, t1, t3");
0x00005e08 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005e0c subu a1, t3, s0 | __asm ("subu a1, t3, s0");
0x00005e10 move s1, v1 | s1 = v1;
0x00005e14 move s0, v0 | s0 = v0;
0x00005e18 bal 0x104e0 | fcn_000104e0 ();
0x00005e1c lw a0, 0x74(sp) | a0 = *(var_74h_7);
0x00005e20 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005e24 andi a0, a0, 4 | a0 &= 4;
0x00005e28 move s2, v0 | s2 = v0;
0x00005e2c move s3, v1 | s3 = v1;
| if (a0 == 0) {
0x00005e30 beqz a0, 0x665c | goto label_22;
| }
0x00005e34 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005e38 lw a0, 0x140(sp) | a0 = *(arg_140h);
0x00005e3c lw a1, 0x144(sp) | a1 = *(arg_144h);
0x00005e40 bal 0x104e0 | fcn_000104e0 ();
0x00005e44 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005e48 move a2, v0 | a2 = v0;
0x00005e4c move a3, v1 | a3 = v1;
0x00005e50 lw t9, -0x7f30(gp) | t9 = *(gp);
| label_4:
0x00005e54 move a0, s2 | a0 = s2;
0x00005e58 move a1, s3 | a1 = s3;
0x00005e5c bal 0xf440 | fcn_0000f440 ();
0x00005e60 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005e64 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00005e68 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00005e6c lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00005e70 move a0, v0 | a0 = v0;
0x00005e74 move a1, v1 | a1 = v1;
0x00005e78 bal 0xfea0 | fcn_0000fea0 ();
0x00005e7c sw v0, 0x30(sp) | *(var_30h_4) = v0;
0x00005e80 sw v1, 0x34(sp) | *(var_34h_6) = v1;
0x00005e84 lw v0, 0x60(sp) | v0 = *(var_60h_6);
0x00005e88 lw v1, 0x64(sp) | v1 = *(var_64h_7);
0x00005e8c lw gp, 0x38(sp) | gp = *(var_38h);
0x00005e90 sw v0, 0x20(sp) | *(var_20h_6) = v0;
0x00005e94 sw v1, 0x24(sp) | *(var_24h_3) = v1;
0x00005e98 lw v0, 0x58(sp) | v0 = *(var_58h_6);
0x00005e9c lw v1, 0x5c(sp) | v1 = *(var_5ch_7);
0x00005ea0 sw v0, 0x18(sp) | *(var_18h) = v0;
0x00005ea4 sw v1, 0x1c(sp) | *(var_1ch_4) = v1;
0x00005ea8 lw v0, 0x80(sp) | v0 = *(var_80h_5);
0x00005eac lw zero, 0x84(t8) | 0 = *((t8 + 33));
0x00005eb0 lw a0, 0x88(sp) | a0 = *(var_88h_4);
0x00005eb4 lw t9, -0x7f28(gp) | t9 = sym.cprintf_pc
0x00005eb8 addiu a3, zero, 2 | a3 = 2;
0x00005ebc addiu a2, zero, 7 | a2 = 7;
0x00005ec0 addiu a1, zero, 5 | a1 = 5;
0x00005ec4 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00005ec8 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00005ecc sw s0, 0x28(sp) | *(var_28h_5) = s0;
0x00005ed0 sw s1, 0x2c(sp) | *(var_2ch_4) = s1;
0x00005ed4 bal 0xe7b4 | sym_cprintf_pc ()
0x00005ed8 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005edc lw v0, 0xcc(sp) | v0 = *(var_cch);
0x00005ee0 move a0, zero | a0 = 0;
0x00005ee4 lw a2, -0x7fd4(gp) | a2 = *(gp);
0x00005ee8 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00005eec lw t9, -0x7f40(gp) | t9 = sym.cprintf_in
0x00005ef0 lw a3, 0xe8(v0) | a3 = *((v0 + 58));
0x00005ef4 addiu a2, a2, 0xd9c | a2 += 0xd9c;
| /* str.____3d */
0x00005ef8 addiu a1, a1, 0x1218 | a1 += 0x1218;
0x00005efc bal 0xea90 | sym_cprintf_in ()
0x00005f00 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005f04 lw v0, (s4) | v0 = *(s4);
| }
0x00005f08 andi v1, v0, 2 | v1 = v0 & 2;
0x00005f0c lw s7, 0xcc(sp) | s7 = *(var_cch);
| if (v1 != 0) {
0x00005f10 bnez v1, 0x644c | goto label_23;
| }
| label_3:
0x00005f14 andi v1, v0, 0x10 | v1 = v0 & 0x10;
0x00005f18 andi v1, v0, 4 | v1 = v0 & 4;
| if (v1 != 0) {
0x00005f1c beqz v1, 0x5f70 |
0x00005f20 lw v0, -0x7fbc(gp) | v0 = *(gp);
0x00005f24 lw v1, 0xc4(s7) | v1 = *((s7 + 49));
0x00005f28 sw zero, 0x1c(sp) | *(var_1ch_4) = 0;
0x00005f2c lw v0, (v0) | v0 = *(v0);
0x00005f30 sw v1, 0x18(sp) | *(var_18h) = v1;
0x00005f34 lw v1, 0xc0(s7) | v1 = *((s7 + 48));
0x00005f38 andi v0, v0, 0x800 | v0 &= 0x800;
0x00005f3c lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x00005f40 sw v1, 0x10(sp) | *(var_10h) = v1;
0x00005f44 addiu a0, zero, 2 | a0 = 2;
0x00005f48 addiu v1, zero, -1 | v1 = -1;
| if (v0 != 0) {
0x00005f4c movz a0, v1, v0 | a0 = v1;
| }
0x00005f50 sw zero, 0x14(sp) | *(var_14h) = 0;
0x00005f54 addiu a2, zero, 7 | a2 = 7;
0x00005f58 addiu a1, zero, 2 | a1 = 2;
0x00005f5c bal 0xe240 | sym_cprintf_u64 ()
0x00005f60 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005f64 lw v0, (s4) | v0 = *(s4);
0x00005f68 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00005f6c andi v1, v0, 4 | v1 = v0 & 4;
| }
0x00005f70 andi v1, v0, 8 | v1 = v0 & 8;
| if (v1 != 0) {
0x00005f74 beqz v1, 0x6200 |
0x00005f78 lw v0, 0xf4(s7) | v0 = *((s7 + 61));
0x00005f7c andi v0, v0, 1 | v0 &= 1;
0x00005f80 lw t9, -0x7f34(gp) | t9 = *(gp);
| if (v0 != 0) {
0x00005f84 bnez v0, 0x6680 | goto label_24;
| }
0x00005f88 lw s0, 0xd0(sp) | s0 = *(var_d0h);
0x00005f8c lw a0, 0x6c(sp) | a0 = *(var_6ch);
0x00005f90 lw a1, 0x70(sp) | a1 = *(var_70h);
0x00005f94 bal 0x104e0 | fcn_000104e0 ();
0x00005f98 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005f9c lw a1, (s7) | a1 = *(s7);
0x00005fa0 lw a0, (s0) | a0 = *(s0);
0x00005fa4 lw a3, 4(s0) | a3 = *((s0 + 1));
0x00005fa8 lw a2, 4(s7) | a2 = *((s7 + 1));
0x00005fac subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x00005fb0 subu a2, a2, a3 | __asm ("subu a2, a2, a3");
0x00005fb4 sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x00005fb8 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00005fbc subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x00005fc0 move s2, v0 | s2 = v0;
0x00005fc4 move s3, v1 | s3 = v1;
0x00005fc8 bal 0x104e0 | fcn_000104e0 ();
0x00005fcc lw gp, 0x38(sp) | gp = *(var_38h);
0x00005fd0 move a2, s2 | a2 = s2;
0x00005fd4 move a3, s3 | a3 = s3;
0x00005fd8 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00005fdc move a0, v0 | a0 = v0;
0x00005fe0 move a1, v1 | a1 = v1;
0x00005fe4 bal 0xf440 | fcn_0000f440 ();
0x00005fe8 lw gp, 0x38(sp) | gp = *(var_38h);
0x00005fec lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00005ff0 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00005ff4 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00005ff8 move a0, v0 | a0 = v0;
0x00005ffc move a1, v1 | a1 = v1;
0x00006000 bal 0xfea0 | fcn_0000fea0 ();
0x00006004 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006008 lw a1, 8(s7) | a1 = *((s7 + 2));
0x0000600c lw a0, 8(s0) | a0 = *((s0 + 2));
0x00006010 lw a3, 0xc(s0) | a3 = *((s0 + 3));
0x00006014 lw a2, 0xc(s7) | a2 = *((s7 + 3));
0x00006018 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x0000601c subu a2, a2, a3 | __asm ("subu a2, a2, a3");
0x00006020 sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x00006024 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00006028 subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x0000602c sw v0, 0x40(sp) | *(var_40h_6) = v0;
0x00006030 sw v1, 0x44(sp) | *(var_44h_6) = v1;
0x00006034 bal 0x104e0 | fcn_000104e0 ();
0x00006038 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000603c move a2, s2 | a2 = s2;
0x00006040 move a3, s3 | a3 = s3;
0x00006044 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00006048 move a0, v0 | a0 = v0;
0x0000604c move a1, v1 | a1 = v1;
0x00006050 bal 0xf440 | fcn_0000f440 ();
0x00006054 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006058 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x0000605c lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00006060 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00006064 move a0, v0 | a0 = v0;
0x00006068 move a1, v1 | a1 = v1;
0x0000606c bal 0xfea0 | fcn_0000fea0 ();
0x00006070 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006074 lw a1, 0x10(s7) | a1 = *((s7 + 4));
0x00006078 lw a0, 0x10(s0) | a0 = *((s0 + 4));
0x0000607c lw a3, 0x14(s0) | a3 = *((s0 + 5));
0x00006080 lw a2, 0x14(s7) | a2 = *((s7 + 5));
0x00006084 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x00006088 subu a2, a2, a3 | __asm ("subu a2, a2, a3");
0x0000608c sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x00006090 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00006094 subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x00006098 move s0, v0 | s0 = v0;
0x0000609c move s1, v1 | s1 = v1;
0x000060a0 bal 0x104e0 | fcn_000104e0 ();
0x000060a4 lw gp, 0x38(sp) | gp = *(var_38h);
0x000060a8 move a2, s2 | a2 = s2;
0x000060ac move a3, s3 | a3 = s3;
0x000060b0 lw t9, -0x7f30(gp) | t9 = *(gp);
0x000060b4 move a0, v0 | a0 = v0;
0x000060b8 move a1, v1 | a1 = v1;
0x000060bc bal 0xf440 | fcn_0000f440 ();
0x000060c0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000060c4 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x000060c8 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x000060cc lw t9, -0x7f2c(gp) | t9 = *(gp);
0x000060d0 move a0, v0 | a0 = v0;
0x000060d4 move a1, v1 | a1 = v1;
0x000060d8 bal 0xfea0 | fcn_0000fea0 ();
0x000060dc lw gp, 0x38(sp) | gp = *(var_38h);
0x000060e0 move s2, v0 | s2 = v0;
0x000060e4 move s3, v1 | s3 = v1;
0x000060e8 lw v0, -0x7fbc(gp) | v0 = *(gp);
0x000060ec lw t0, 0x40(sp) | t0 = *(var_40h_6);
0x000060f0 lw v0, (v0) | v0 = *(v0);
0x000060f4 andi v0, v0, 0x800 | v0 &= 0x800;
0x000060f8 lw t1, 0x44(sp) | t1 = *(var_44h_6);
| if (v0 != 0) {
0x000060fc bnez v0, 0x666c | goto label_25;
| }
0x00006100 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00006104 lw a2, 0xb8(sp) | a2 = *(var_b8h);
0x00006108 lw a3, 0xbc(sp) | a3 = *(var_bch);
0x0000610c move a0, t0 | a0 = t0;
0x00006110 move a1, t1 | a1 = t1;
0x00006114 bal 0xfea0 | fcn_0000fea0 ();
0x00006118 lw s7, 0xb4(sp) | s7 = *(var_b4h);
0x0000611c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006120 move a0, s0 | a0 = s0;
0x00006124 lw a2, 0x1538(s7) | a2 = *((s7 + 1358));
0x00006128 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x0000612c lw a3, 0x153c(s7) | a3 = *((s7 + 1359));
0x00006130 move a1, s1 | a1 = s1;
0x00006134 sw v0, 0x40(sp) | *(var_40h_6) = v0;
0x00006138 sw v1, 0x44(sp) | *(var_44h_6) = v1;
0x0000613c bal 0xfea0 | fcn_0000fea0 ();
0x00006140 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006144 lw a2, 0x1538(s7) | a2 = *((s7 + 1358));
0x00006148 lw a3, 0x153c(s7) | a3 = *((s7 + 1359));
0x0000614c lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00006150 move a0, s2 | a0 = s2;
0x00006154 move a1, s3 | a1 = s3;
0x00006158 move s0, v0 | s0 = v0;
0x0000615c move s1, v1 | s1 = v1;
0x00006160 bal 0xfea0 | fcn_0000fea0 ();
0x00006164 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006168 lw t0, 0x40(sp) | t0 = *(var_40h_6);
0x0000616c lw t1, 0x44(sp) | t1 = *(var_44h_6);
0x00006170 move s2, v0 | s2 = v0;
0x00006174 move s3, v1 | s3 = v1;
0x00006178 addiu a0, zero, -1 | a0 = -1;
| label_5:
0x0000617c lw t9, -0x7f20(gp) | t9 = sym.cprintf_f
0x00006180 sw s2, 0x20(sp) | *(var_20h_6) = s2;
0x00006184 sw s3, 0x24(sp) | *(var_24h_3) = s3;
0x00006188 sw s0, 0x18(sp) | *(var_18h) = s0;
0x0000618c sw s1, 0x1c(sp) | *(var_1ch_4) = s1;
0x00006190 sw t0, 0x10(sp) | *(var_10h) = t0;
0x00006194 sw t1, 0x14(sp) | *(var_14h) = t1;
0x00006198 addiu a3, zero, 2 | a3 = 2;
0x0000619c addiu a2, zero, 9 | a2 = 9;
0x000061a0 addiu a1, zero, 3 | a1 = 3;
0x000061a4 bal 0xe518 | sym_cprintf_f ()
0x000061a8 lw gp, 0x38(sp) | gp = *(var_38h);
| label_6:
0x000061ac lw v0, 0xcc(sp) | v0 = *(var_cch);
0x000061b0 lw a1, 0xd0(sp) | a1 = *(var_d0h);
0x000061b4 lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x000061b8 lw a0, 0x48(v0) | a0 = *((v0 + 18));
0x000061bc lw v1, 0x48(a1) | v1 = *((a1 + 18));
0x000061c0 lw v0, 0x4c(v0) | v0 = *((v0 + 19));
0x000061c4 lw a1, 0x4c(a1) | a1 = *((a1 + 19));
0x000061c8 subu v1, a0, v1 | __asm ("subu v1, a0, v1");
0x000061cc sltu a0, a0, v1 | a0 = (a0 < v1) ? 1 : 0;
0x000061d0 subu v0, v0, a1 | __asm ("subu v0, v0, a1");
0x000061d4 subu v0, v0, a0 | __asm ("subu v0, v0, a0");
0x000061d8 sw v0, 0x14(sp) | *(var_14h) = v0;
0x000061dc sw v1, 0x10(sp) | *(var_10h) = v1;
0x000061e0 addiu a2, zero, 7 | a2 = 7;
0x000061e4 addiu a1, zero, 1 | a1 = 1;
0x000061e8 addiu a0, zero, -1 | a0 = -1;
0x000061ec bal 0xe240 | sym_cprintf_u64 ()
0x000061f0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000061f4 lw v0, (s4) | v0 = *(s4);
0x000061f8 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x000061fc andi v1, v0, 8 | v1 = v0 & 8;
| }
0x00006200 lw t9, -0x7f34(gp) | t9 = *(gp);
| if (v1 == 0) {
0x00006204 bnel v1, zero, 0x6358 | goto label_26;
| }
| label_2:
0x00006208 andi v1, v0, 0x20 | v1 = v0 & 0x20;
0x0000620c lw v0, 0xfc(s7) | v0 = *((s7 + 63));
| if (v1 == 0) {
0x00006210 bnel v1, zero, 0x62fc | goto label_27;
| }
| label_1:
0x00006214 andi v0, v0, 0x40 | v0 &= 0x40;
0x00006218 lw v0, 0xec(s7) | v0 = *((s7 + 59));
| if (v0 == 0) {
0x0000621c bnel v0, zero, 0x6298 | goto label_28;
| }
| label_7:
0x00006220 lw t9, -0x7f1c(gp) | t9 = sym.print_comm;
0x00006224 move a0, s7 | a0 = s7;
0x00006228 bal 0x34b4 | sym_print_comm ();
0x0000622c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006230 addiu s0, zero, 1 | s0 = 1;
| }
0x00006234 lw v0, (s5) | v0 = *(s5);
0x00006238 addiu s6, s6, 1 | s6++;
0x0000623c sltu v0, s6, v0 | v0 = (s6 < v0) ? 1 : 0;
0x00006240 lw v0, 0x54(sp) | v0 = *(var_54h);
0x00006244 bnel v0, zero, 0x5a94 |
| } while (v0 == 0);
| label_9:
0x00006248 lw v0, 0xb0(sp) | v0 = *(var_b0h);
0x0000624c lw a0, 0xf4(sp) | a0 = *(var_f4h);
0x00006250 lw v1, (v0) | v1 = *(v0);
0x00006254 move v0, s0 | v0 = s0;
| if (a0 != v1) {
0x00006258 bne a0, v1, 0x69a4 | goto label_29;
| }
0x0000625c lw ra, 0x11c(sp) | ra = *(var_11ch);
0x00006260 lw fp, 0x118(sp) | fp = *(var_118h);
0x00006264 lw s7, 0x114(sp) | s7 = *(var_114h);
0x00006268 lw s6, 0x110(sp) | s6 = *(var_110h);
0x0000626c lw s5, 0x10c(sp) | s5 = *(var_10ch);
0x00006270 lw s4, 0x108(sp) | s4 = *(var_108h);
0x00006274 lw s3, 0x104(sp) | s3 = *(var_104h);
0x00006278 lw s2, 0x100(sp) | s2 = *(var_100h);
0x0000627c lw s1, 0xfc(sp) | s1 = *(var_fch);
0x00006280 lw s0, 0xf8(sp) | s0 = *(var_f8h);
0x00006284 addiu sp, sp, 0x120 |
0x00006288 jr ra | return v0;
| label_20:
0x0000628c sw zero, 0x80(sp) | *(var_80h_5) = 0;
| label_21:
0x00006290 sw zero, 0x84(sp) | *(var_84h_6) = 0;
0x00006294 b 0x5c7c | goto label_0;
| label_28:
0x00006298 lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x0000629c sw v0, 0x10(sp) | *(var_10h) = v0;
0x000062a0 sw zero, 0x14(sp) | *(var_14h) = 0;
0x000062a4 addiu a2, zero, 4 | a2 = 4;
0x000062a8 addiu a1, zero, 1 | a1 = 1;
0x000062ac addiu a0, zero, -1 | a0 = -1;
0x000062b0 bal 0xe240 | sym_cprintf_u64 ()
0x000062b4 lw v0, 0xcc(sp) | v0 = *(var_cch);
0x000062b8 lw v0, 0xf0(v0) | v0 = *((v0 + 60));
0x000062bc lw gp, 0x38(sp) | gp = *(var_38h);
| if (v0 == 0) {
0x000062c0 beqz v0, 0x66e4 | goto label_30;
| }
0x000062c4 addiu v1, zero, 1 | v1 = 1;
0x000062c8 addiu v1, zero, 2 | v1 = 2;
| if (v0 == v1) {
0x000062cc beq v0, v1, 0x682c | goto label_31;
| }
0x000062d0 addiu v1, zero, 3 | v1 = 3;
| if (v0 == v1) {
0x000062d4 beq v0, v1, 0x6838 | goto label_32;
| }
0x000062d8 addiu v1, zero, 5 | v1 = 5;
| if (v0 == v1) {
0x000062dc beq v0, v1, 0x6990 | goto label_33;
| }
0x000062e0 addiu v1, zero, 6 | v1 = 6;
| if (v0 == v1) {
0x000062e4 beq v0, v1, 0x6984 | goto label_34;
| }
| if (v0 == v1) {
0x000062e8 beql v0, v1, 0x699c | goto label_35;
| }
0x000062ec lw a2, -0x7fd4(gp) | a2 = *(gp);
0x000062f0 lw a2, -0x7fd4(gp) | a2 = *(gp);
0x000062f4 addiu a2, a2, 0x1868 | a2 += 0x1868;
0x000062f8 b 0x66ec | goto label_10;
| label_27:
0x000062fc lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x00006300 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00006304 sw zero, 0x14(sp) | *(var_14h) = 0;
0x00006308 addiu a2, zero, 7 | a2 = 7;
0x0000630c addiu a1, zero, 1 | a1 = 1;
0x00006310 addiu a0, zero, -1 | a0 = -1;
0x00006314 bal 0xe240 | sym_cprintf_u64 ()
0x00006318 lw v1, 0xcc(sp) | v1 = *(var_cch);
0x0000631c lw v0, 0xf4(v1) | v0 = *((v1 + 61));
0x00006320 andi v0, v0, 2 | v0 &= 2;
0x00006324 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v0 == 0) {
0x00006328 beqz v0, 0x670c | goto label_36;
| }
0x0000632c lw a2, -0x7fd4(gp) | a2 = *(gp);
0x00006330 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00006334 lw t9, -0x7fb4(gp) | t9 = sym.cprintf_s
| /* esilref: '-1' */
0x00006338 addiu a2, a2, 0x1238 | a2 += 0x1238;
| /* str.__7s */
0x0000633c addiu a1, a1, 0x123c | a1 += 0x123c;
0x00006340 addiu a0, zero, 4 | a0 = 4;
0x00006344 bal 0xeb78 | sym_cprintf_s ()
0x00006348 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000634c lw v0, (s4) | v0 = *(s4);
0x00006350 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00006354 b 0x6214 | goto label_1;
| label_26:
0x00006358 lw a1, 0x70(sp) | a1 = *(var_70h);
0x0000635c lw a0, 0x6c(sp) | a0 = *(var_6ch);
0x00006360 lw s2, 0xd0(sp) | s2 = *(var_d0h);
0x00006364 bal 0x104e0 | fcn_000104e0 ();
0x00006368 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000636c lw a1, 0xbc(s7) | a1 = *((s7 + 47));
0x00006370 lw a0, 0xbc(s2) | a0 = *((s2 + 47));
0x00006374 lw t9, -0x7f18(gp) | t9 = *(gp);
0x00006378 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x0000637c move s0, v0 | s0 = v0;
0x00006380 move s1, v1 | s1 = v1;
0x00006384 bal 0x10440 | fcn_00010440 ();
0x00006388 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000638c move a2, s0 | a2 = s0;
0x00006390 move a3, s1 | a3 = s1;
0x00006394 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00006398 move a0, v0 | a0 = v0;
0x0000639c move a1, v1 | a1 = v1;
0x000063a0 bal 0xf440 | fcn_0000f440 ();
0x000063a4 lw gp, 0x38(sp) | gp = *(var_38h);
0x000063a8 lw a2, 0xa8(sp) | a2 = *(var_a8h);
0x000063ac lw a3, 0xac(sp) | a3 = *(var_ach);
0x000063b0 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x000063b4 move a1, v1 | a1 = v1;
0x000063b8 move a0, v0 | a0 = v0;
0x000063bc bal 0xfea0 | fcn_0000fea0 ();
0x000063c0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000063c4 sw v0, 0x18(sp) | *(var_18h) = v0;
0x000063c8 sw v1, 0x1c(sp) | *(var_1ch_4) = v1;
0x000063cc lw a0, 0xb8(s7) | a0 = *((s7 + 46));
0x000063d0 lw v0, 0xb8(s2) | v0 = *((s2 + 46));
0x000063d4 lw t9, -0x7f18(gp) | t9 = *(gp);
0x000063d8 subu a0, a0, v0 | __asm ("subu a0, a0, v0");
0x000063dc bal 0x10440 | fcn_00010440 ();
0x000063e0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000063e4 move a2, s0 | a2 = s0;
0x000063e8 move a3, s1 | a3 = s1;
0x000063ec lw t9, -0x7f30(gp) | t9 = *(gp);
0x000063f0 move a0, v0 | a0 = v0;
0x000063f4 move a1, v1 | a1 = v1;
0x000063f8 bal 0xf440 | fcn_0000f440 ();
0x000063fc lw gp, 0x38(sp) | gp = *(var_38h);
0x00006400 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00006404 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00006408 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x0000640c move a0, v0 | a0 = v0;
0x00006410 move a1, v1 | a1 = v1;
0x00006414 bal 0xfea0 | fcn_0000fea0 ();
0x00006418 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000641c sw v0, 0x10(sp) | *(var_10h) = v0;
0x00006420 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00006424 lw t9, -0x7f20(gp) | t9 = sym.cprintf_f
0x00006428 addiu a3, zero, 2 | a3 = 2;
0x0000642c addiu a2, zero, 9 | a2 = 9;
0x00006430 addiu a1, zero, 2 | a1 = 2;
0x00006434 addiu a0, zero, -1 | a0 = -1;
0x00006438 bal 0xe518 | sym_cprintf_f ()
0x0000643c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006440 lw v0, (s4) | v0 = *(s4);
0x00006444 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00006448 b 0x6208 | goto label_2;
| label_23:
0x0000644c lw s2, 0xd0(sp) | s2 = *(var_d0h);
0x00006450 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00006454 lw a0, 0x6c(sp) | a0 = *(var_6ch);
0x00006458 lw a1, 0x70(sp) | a1 = *(var_70h);
0x0000645c bal 0x104e0 | fcn_000104e0 ();
0x00006460 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006464 lw a1, 0x60(s7) | a1 = *((s7 + 24));
0x00006468 lw a0, 0x60(s2) | a0 = *((s2 + 24));
0x0000646c lw a3, 0x64(s2) | a3 = *((s2 + 25));
0x00006470 lw a2, 0x64(s7) | a2 = *((s7 + 25));
0x00006474 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x00006478 subu a2, a2, a3 | __asm ("subu a2, a2, a3");
0x0000647c sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x00006480 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00006484 subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x00006488 move s0, v0 | s0 = v0;
0x0000648c move s1, v1 | s1 = v1;
0x00006490 bal 0x104e0 | fcn_000104e0 ();
0x00006494 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006498 move a2, s0 | a2 = s0;
0x0000649c move a3, s1 | a3 = s1;
0x000064a0 lw t9, -0x7f30(gp) | t9 = *(gp);
0x000064a4 move a0, v0 | a0 = v0;
0x000064a8 move a1, v1 | a1 = v1;
0x000064ac bal 0xf440 | fcn_0000f440 ();
0x000064b0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000064b4 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x000064b8 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x000064bc lw t9, -0x7f2c(gp) | t9 = *(gp);
0x000064c0 move a0, v0 | a0 = v0;
0x000064c4 move a1, v1 | a1 = v1;
0x000064c8 bal 0xfea0 | fcn_0000fea0 ();
0x000064cc sw v0, 0x18(sp) | *(var_18h) = v0;
0x000064d0 sw v1, 0x1c(sp) | *(var_1ch_4) = v1;
0x000064d4 lw gp, 0x38(sp) | gp = *(var_38h);
0x000064d8 lw a1, 0x50(s7) | a1 = *((s7 + 20));
0x000064dc lw a0, 0x50(s2) | a0 = *((s2 + 20));
0x000064e0 lw v0, 0x54(s7) | v0 = *((s7 + 21));
0x000064e4 lw v1, 0x54(s2) | v1 = *((s2 + 21));
0x000064e8 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x000064ec sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x000064f0 lw t9, -0x7f34(gp) | t9 = *(gp);
0x000064f4 subu v0, v0, v1 | __asm ("subu v0, v0, v1");
0x000064f8 subu a1, v0, a1 | __asm ("subu a1, v0, a1");
0x000064fc bal 0x104e0 | fcn_000104e0 ();
0x00006500 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006504 move a2, s0 | a2 = s0;
0x00006508 move a3, s1 | a3 = s1;
0x0000650c lw t9, -0x7f30(gp) | t9 = *(gp);
0x00006510 move a0, v0 | a0 = v0;
0x00006514 move a1, v1 | a1 = v1;
0x00006518 bal 0xf440 | fcn_0000f440 ();
0x0000651c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006520 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00006524 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00006528 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x0000652c move a0, v0 | a0 = v0;
0x00006530 move a1, v1 | a1 = v1;
0x00006534 bal 0xfea0 | fcn_0000fea0 ();
0x00006538 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000653c sw v0, 0x10(sp) | *(var_10h) = v0;
0x00006540 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00006544 lw t9, -0x7f20(gp) | t9 = sym.cprintf_f
0x00006548 addiu a3, zero, 2 | a3 = 2;
0x0000654c addiu a2, zero, 9 | a2 = 9;
0x00006550 addiu a1, zero, 2 | a1 = 2;
0x00006554 addiu a0, zero, -1 | a0 = -1;
0x00006558 bal 0xe518 | sym_cprintf_f ()
0x0000655c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006560 lw v1, 0xcc(sp) | v1 = *(var_cch);
0x00006564 addiu a2, zero, 7 | a2 = 7;
0x00006568 lw s0, -0x7fbc(gp) | s0 = *(gp);
0x0000656c lw a0, 0xb0(v1) | a0 = *((v1 + 44));
0x00006570 lw a1, 0xb4(v1) | a1 = *((v1 + 45));
0x00006574 lw v0, (s0) | v0 = *(s0);
0x00006578 sw a0, 0x18(sp) | *(var_18h) = a0;
0x0000657c sw a1, 0x1c(sp) | *(var_1ch_4) = a1;
0x00006580 lw a0, 0xa8(v1) | a0 = *((v1 + 42));
0x00006584 lw a1, 0xac(v1) | a1 = *((v1 + 43));
0x00006588 andi v0, v0, 0x800 | v0 &= 0x800;
0x0000658c lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x00006590 sw a0, 0x10(sp) | *(var_10h) = a0;
0x00006594 addiu v1, zero, -1 | v1 = -1;
0x00006598 addiu a0, zero, 2 | a0 = 2;
0x0000659c sw a1, 0x14(sp) | *(var_14h) = a1;
| if (v0 != 0) {
0x000065a0 movz a0, v1, v0 | a0 = v1;
| }
0x000065a4 addiu a1, zero, 2 | a1 = 2;
0x000065a8 bal 0xe240 | sym_cprintf_u64 ()
0x000065ac lw gp, 0x38(sp) | gp = *(var_38h);
0x000065b0 lw s0, (s0) | s0 = *(s0);
0x000065b4 lw v0, -0x7fac(gp) | v0 = *(gp);
0x000065b8 lw s1, (v0) | s1 = *(v0);
0x000065bc ext s0, s0, 0xb, 1 | __asm ("ext s0, s0, 0xb, 1");
| if (s1 == 0) {
0x000065c0 beqz s1, 0x6674 | goto label_37;
| }
0x000065c4 lw v0, 0xcc(sp) | v0 = *(var_cch);
0x000065c8 lw t9, -0x7f34(gp) | t9 = *(gp);
0x000065cc lw a1, 0xb4(v0) | a1 = *((v0 + 45));
0x000065d0 lw a0, 0xb0(v0) | a0 = *((v0 + 44));
0x000065d4 bal 0x104e0 | fcn_000104e0 ();
0x000065d8 lw gp, 0x38(sp) | gp = *(var_38h);
0x000065dc move a0, s1 | a0 = s1;
0x000065e0 move s2, v0 | s2 = v0;
0x000065e4 lw t9, -0x7f18(gp) | t9 = *(gp);
0x000065e8 move s3, v1 | s3 = v1;
0x000065ec bal 0x10440 | fcn_00010440 ();
0x000065f0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000065f4 move a2, v0 | a2 = v0;
0x000065f8 move a3, v1 | a3 = v1;
0x000065fc lw t9, -0x7f30(gp) | t9 = *(gp);
0x00006600 move a0, s2 | a0 = s2;
0x00006604 move a1, s3 | a1 = s3;
0x00006608 bal 0xf440 | fcn_0000f440 ();
0x0000660c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006610 lw a2, 0x1530(fp) | a2 = *(arg_1530h);
0x00006614 lw a3, 0x1534(fp) | a3 = *(arg_1534h);
0x00006618 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x0000661c move a0, v0 | a0 = v0;
0x00006620 move a1, v1 | a1 = v1;
0x00006624 bal 0xfea0 | fcn_0000fea0 ();
0x00006628 lw gp, 0x38(sp) | gp = *(var_38h);
| do {
0x0000662c lw t9, -0x7f28(gp) | t9 = sym.cprintf_pc
0x00006630 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00006634 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00006638 addiu a3, zero, 2 | a3 = 2;
0x0000663c addiu a2, zero, 6 | a2 = 6;
0x00006640 addiu a1, zero, 1 | a1 = 1;
0x00006644 move a0, s0 | a0 = s0;
0x00006648 bal 0xe7b4 | sym_cprintf_pc ()
0x0000664c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006650 lw v0, (s4) | v0 = *(s4);
0x00006654 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00006658 b 0x5f14 | goto label_3;
| label_22:
0x0000665c lw t9, -0x7f30(gp) | t9 = *(gp);
0x00006660 lw a2, 0x40(sp) | a2 = *(var_40h_6);
0x00006664 lw a3, 0x44(sp) | a3 = *(var_44h_6);
0x00006668 b 0x5e54 | goto label_4;
| label_25:
0x0000666c addiu a0, zero, 1 | a0 = 1;
0x00006670 b 0x617c | goto label_5;
| label_37:
0x00006674 move v0, zero | v0 = 0;
0x00006678 move v1, zero | v1 = 0;
0x0000667c b 0x662c |
| } while (1);
| label_24:
0x00006680 lw v1, 0xc4(sp) | v1 = *(var_c4h);
0x00006684 lw v0, 0xc0(sp) | v0 = *(var_c0h);
0x00006688 lw a3, -0x7fd4(gp) | a3 = *(gp);
0x0000668c lw t9, -0x7de4(gp) | t9 = sym.imp.__sprintf_chk
0x00006690 addiu s0, sp, 0xd4 | s0 = sp + 0xd4;
| /* str.__9.2f__9.2f__9.2f */
0x00006694 addiu a3, a3, 0x1220 | a3 += 0x1220;
0x00006698 addiu a2, zero, 0x20 | a2 = 0x20;
0x0000669c addiu a1, zero, 1 | a1 = 1;
0x000066a0 move a0, s0 | a0 = s0;
0x000066a4 sw v1, 0x24(sp) | *(var_24h_3) = v1;
0x000066a8 sw v1, 0x1c(sp) | *(var_1ch_4) = v1;
0x000066ac sw v1, 0x14(sp) | *(var_14h) = v1;
0x000066b0 movf zero, zero, fcc0 | __asm ("movf zero, zero, fcc0");
0x000066b4 sw v0, 0x18(sp) | *(var_18h) = v0;
0x000066b8 sw v0, 0x10(sp) | *(var_10h) = v0;
0x000066bc jalr t9 | t9 ();
0x000066c0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000066c4 move a2, s0 | a2 = s0;
0x000066c8 addiu a0, zero, 4 | a0 = 4;
0x000066cc lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000066d0 lw t9, -0x7fb4(gp) | t9 = sym.cprintf_s
| /* esilref: '&s' */
0x000066d4 addiu a1, a1, 0x1234 | a1 += 0x1234;
0x000066d8 bal 0xeb78 | sym_cprintf_s ()
0x000066dc lw gp, 0x38(sp) | gp = *(var_38h);
0x000066e0 b 0x61ac | goto label_6;
| label_30:
0x000066e4 lw a2, -0x7fd4(gp) | a2 = *(gp);
| /* str.NORMAL */
0x000066e8 addiu a2, a2, 0x10f0 | a2 += 0x10f0;
| label_10:
0x000066ec lw v0, 0xa4(sp) | v0 = *(var_a4h);
0x000066f0 lw t9, -0x7fb4(gp) | t9 = sym.cprintf_s
0x000066f4 addiu a1, v0, 0x1244 | a1 = v0 + 0x1244;
0x000066f8 addiu a0, zero, 1 | a0 = 1;
0x000066fc bal 0xeb78 | sym_cprintf_s ()
0x00006700 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006704 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00006708 b 0x6220 | goto label_7;
| label_36:
0x0000670c lw v0, 0x100(v1) | v0 = *(v1);
0x00006710 lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x00006714 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00006718 sw zero, 0x14(sp) | *(var_14h) = 0;
0x0000671c addiu a2, zero, 7 | a2 = 7;
0x00006720 addiu a1, zero, 1 | a1 = 1;
0x00006724 addiu a0, zero, -1 | a0 = -1;
0x00006728 bal 0xe240 | sym_cprintf_u64 ()
0x0000672c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006730 lw v0, (s4) | v0 = *(s4);
0x00006734 lw s7, 0xcc(sp) | s7 = *(var_cch);
0x00006738 b 0x6214 | goto label_1;
| label_19:
0x0000673c lw s0, -0x7fbc(gp) | s0 = *(gp);
0x00006740 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00006744 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x00006748 move a2, a3 | a2 = a3;
| /* str._n__11s */
0x0000674c addiu a1, a1, 0x10fc | a1 += 0x10fc;
0x00006750 addiu a0, zero, 1 | a0 = 1;
0x00006754 jalr t9 | t9 ();
0x00006758 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000675c lw v0, (s0) | v0 = *(s0);
0x00006760 andi v0, v0, 0x100 | v0 &= aav.0x00000100;
0x00006764 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 != 0) {
0x00006768 bnez v0, 0x6844 | goto label_38;
| }
0x0000676c lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00006770 addiu a0, zero, 1 | a0 = 1;
| /* str.___UID */
0x00006774 addiu a1, a1, 0x1110 | a1 += 0x1110;
0x00006778 jalr t9 | t9 ();
0x0000677c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006780 lw v0, (s0) | v0 = *(s0);
0x00006784 andi v0, v0, 0x20 | v0 &= 0x20;
0x00006788 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 == 0) {
0x0000678c beqz v0, 0x6868 | goto label_39;
| }
| label_11:
0x00006790 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00006794 addiu a0, zero, 1 | a0 = 1;
| /* str.______TGID_______TID */
0x00006798 addiu a1, a1, 0x1118 | a1 += 0x1118;
0x0000679c jalr t9 | t9 ();
0x000067a0 lw gp, 0x38(sp) | gp = *(var_38h);
0x000067a4 lw s4, -0x7fc0(gp) | s4 = *(gp);
0x000067a8 lw v0, (s4) | v0 = *(s4);
0x000067ac andi v1, v0, 1 | v1 = v0 & 1;
0x000067b0 lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v1 == 0) {
0x000067b4 bnel v1, zero, 0x6894 | goto label_40;
| }
0x000067b8 andi v1, v0, 2 | v1 = v0 & 2;
| label_12:
0x000067bc lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v1 == 0) {
0x000067c0 bnel v1, zero, 0x68b8 | goto label_41;
| }
| label_13:
0x000067c4 andi v1, v0, 0x10 | v1 = v0 & 0x10;
0x000067c8 lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v1 == 0) {
0x000067cc bnel v1, zero, 0x68dc | goto label_42;
| }
| label_14:
0x000067d0 andi v1, v0, 4 | v1 = v0 & 4;
0x000067d4 lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v1 == 0) {
0x000067d8 bnel v1, zero, 0x6900 | goto label_43;
| }
| label_15:
0x000067dc andi v1, v0, 8 | v1 = v0 & 8;
0x000067e0 lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v1 == 0) {
0x000067e4 bnel v1, zero, 0x6924 | goto label_44;
| }
| label_16:
0x000067e8 andi v1, v0, 0x20 | v1 = v0 & 0x20;
0x000067ec lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v1 != 0) {
0x000067f0 bnez v1, 0x6948 | goto label_45;
| }
| label_17:
0x000067f4 andi v0, v0, 0x40 | v0 &= 0x40;
0x000067f8 lw a1, -0x7fd4(gp) | a1 = *(gp);
| if (v0 != 0) {
0x000067fc bnez v0, 0x696c | goto label_46;
| }
| label_18:
0x00006800 lw a0, -0x7fd4(gp) | a0 = *(gp);
0x00006804 lw t9, -0x7d34(gp) | t9 = sym.imp.puts;
| /* esilref: ' Command' */
0x00006808 addiu a0, a0, 0x135c | a0 += 0x135c;
0x0000680c jalr t9 | t9 ();
0x00006810 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006814 lw s5, -0x7fc4(gp) | s5 = *(gp);
0x00006818 lw v0, (s5) | v0 = *(s5);
0x0000681c lw v0, -0x7f38(gp) | v0 = sym.get_pid_to_display;
| if (v0 == 0) {
0x00006820 bnel v0, zero, 0x5a20 | goto label_8;
| }
0x00006824 move s0, zero | s0 = 0;
0x00006828 b 0x6248 | goto label_9;
| label_31:
0x0000682c lw a2, -0x7fd4(gp) | a2 = *(gp);
| /* str.FIFO */
0x00006830 addiu a2, a2, 0x10d8 | a2 += 0x10d8;
0x00006834 b 0x66ec | goto label_10;
| label_32:
0x00006838 lw a2, -0x7fd4(gp) | a2 = *(gp);
| /* esilref: 'RR' */
0x0000683c addiu a2, a2, 0x10f8 | a2 += 0x10f8;
0x00006840 b 0x66ec | goto label_10;
| label_38:
0x00006844 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00006848 addiu a0, zero, 1 | a0 = 1;
| /* str._____USER */
0x0000684c addiu a1, a1, 0x1104 | a1 += 0x1104;
0x00006850 jalr t9 | t9 ();
0x00006854 lw gp, 0x38(sp) | gp = *(var_38h);
0x00006858 lw v0, (s0) | v0 = *(s0);
0x0000685c andi v0, v0, 0x20 | v0 &= 0x20;
0x00006860 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 != 0) {
0x00006864 bnez v0, 0x6790 | goto label_11;
| }
| label_39:
0x00006868 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x0000686c addiu a0, zero, 1 | a0 = 1;
| /* str._______PID */
0x00006870 addiu a1, a1, 0x1130 | a1 += 0x1130;
0x00006874 jalr t9 | t9 ();
0x00006878 lw gp, 0x38(sp) | gp = *(var_38h);
0x0000687c lw s4, -0x7fc0(gp) | s4 = *(gp);
0x00006880 lw v0, (s4) | v0 = *(s4);
0x00006884 andi v1, v0, 1 | v1 = v0 & 1;
0x00006888 andi v1, v0, 2 | v1 = v0 & 2;
| if (v1 == 0) {
0x0000688c beqz v1, 0x67bc | goto label_12;
| }
0x00006890 lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_40:
0x00006894 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str.______usr___system____guest_____wait______CPU___CPU */
0x00006898 addiu a1, a1, 0x113c | a1 += 0x113c;
0x0000689c addiu a0, zero, 1 | a0 = 1;
0x000068a0 jalr t9 | t9 ();
0x000068a4 lw v0, (s4) | v0 = *(s4);
0x000068a8 andi v1, v0, 2 | v1 = v0 & 2;
0x000068ac lw gp, 0x38(sp) | gp = *(var_38h);
| if (v1 == 0) {
0x000068b0 beqz v1, 0x67c4 | goto label_13;
| }
0x000068b4 lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_41:
0x000068b8 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str.__minflt_s__majflt_s_____VSZ_____RSS_____MEM */
0x000068bc addiu a1, a1, 0x1170 | a1 += 0x1170;
0x000068c0 addiu a0, zero, 1 | a0 = 1;
0x000068c4 jalr t9 | t9 ();
0x000068c8 lw v0, (s4) | v0 = *(s4);
0x000068cc andi v1, v0, 0x10 | v1 = v0 & 0x10;
0x000068d0 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v1 == 0) {
0x000068d4 beqz v1, 0x67d0 | goto label_14;
| }
0x000068d8 lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_42:
0x000068dc lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str._StkSize__StkRef */
0x000068e0 addiu a1, a1, 0x11a0 | a1 += 0x11a0;
0x000068e4 addiu a0, zero, 1 | a0 = 1;
0x000068e8 jalr t9 | t9 ();
0x000068ec lw v0, (s4) | v0 = *(s4);
0x000068f0 andi v1, v0, 4 | v1 = v0 & 4;
0x000068f4 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v1 == 0) {
0x000068f8 beqz v1, 0x67dc | goto label_15;
| }
0x000068fc lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_43:
0x00006900 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str.___kB_rd_s___kB_wr_s_kB_ccwr_s_iodelay */
0x00006904 addiu a1, a1, 0x11b4 | a1 += 0x11b4;
0x00006908 addiu a0, zero, 1 | a0 = 1;
0x0000690c jalr t9 | t9 ();
0x00006910 lw v0, (s4) | v0 = *(s4);
0x00006914 andi v1, v0, 8 | v1 = v0 & 8;
0x00006918 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v1 == 0) {
0x0000691c beqz v1, 0x67e8 | goto label_16;
| }
0x00006920 lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_44:
0x00006924 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str.___cswch_s_nvcswch_s */
0x00006928 addiu a1, a1, 0x11dc | a1 += 0x11dc;
0x0000692c addiu a0, zero, 1 | a0 = 1;
0x00006930 jalr t9 | t9 ();
0x00006934 lw v0, (s4) | v0 = *(s4);
0x00006938 andi v1, v0, 0x20 | v1 = v0 & 0x20;
0x0000693c lw gp, 0x38(sp) | gp = *(var_38h);
| if (v1 == 0) {
0x00006940 beqz v1, 0x67f4 | goto label_17;
| }
0x00006944 lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_45:
0x00006948 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str._threads___fd_nr */
0x0000694c addiu a1, a1, 0x11f4 | a1 += 0x11f4;
0x00006950 addiu a0, zero, 1 | a0 = 1;
0x00006954 jalr t9 | t9 ();
0x00006958 lw v0, (s4) | v0 = *(s4);
0x0000695c andi v0, v0, 0x40 | v0 &= 0x40;
0x00006960 lw gp, 0x38(sp) | gp = *(var_38h);
| if (v0 == 0) {
0x00006964 beqz v0, 0x6800 | goto label_18;
| }
0x00006968 lw a1, -0x7fd4(gp) | a1 = *(gp);
| label_46:
0x0000696c lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str._prio_policy */
0x00006970 addiu a1, a1, 0x1208 | a1 += 0x1208;
0x00006974 addiu a0, zero, 1 | a0 = 1;
0x00006978 jalr t9 | t9 ();
0x0000697c lw gp, 0x38(sp) | gp = *(var_38h);
0x00006980 b 0x6800 | goto label_18;
| label_34:
0x00006984 lw a2, -0x7fd4(gp) | a2 = *(gp);
| /* str.IDLE */
0x00006988 addiu a2, a2, 0x10e0 | a2 += 0x10e0;
0x0000698c b 0x66ec | goto label_10;
| label_33:
0x00006990 lw a2, -0x7fd4(gp) | a2 = *(gp);
| /* str.BATCH */
0x00006994 addiu a2, a2, 0x10d0 | a2 += 0x10d0;
0x00006998 b 0x66ec | goto label_10;
| /* str.DEADLN */
| label_35:
0x0000699c addiu a2, a2, 0x10e8 | a2 += 0x10e8;
0x000069a0 b 0x66ec | goto label_10;
| label_29:
0x000069a4 lw t9, -0x7cf0(gp) | t9 = sym.imp.__stack_chk_fail;
0x000069a8 jalr t9 | t9 ();
0x000069ac nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/pidstat @ 0x7094 */
| #include <stdint.h>
|
; (fcn) sym.write_pid_task_cpu_stats () | void write_pid_task_cpu_stats () {
0x00007094 lui gp, 2 |
0x00007098 addiu gp, gp, 0x301c |
0x0000709c addu gp, gp, t9 | gp += t9;
0x000070a0 addiu sp, sp, -0xf0 |
0x000070a4 lw v0, -0x7cd8(gp) | v0 = *((gp - 7990));
0x000070a8 sw a0, 0xf0(sp) | *(var_f0h) = a0;
0x000070ac lw a0, 0x104(sp) | a0 = *(var_14h_2);
0x000070b0 sw v0, 0xb4(sp) | *(var_b4h_3) = v0;
0x000070b4 sw a0, 0x90(sp) | *(var_90h_2) = a0;
0x000070b8 lw a0, 0x108(sp) | a0 = *(var_18h_2);
0x000070bc lw v0, (v0) | v0 = *(v0);
0x000070c0 sw a0, 0x94(sp) | *(var_94h_2) = a0;
0x000070c4 lw a0, 0x10c(sp) | a0 = *(var_10ch_2);
0x000070c8 sw gp, 0x38(sp) | *(var_38h_3) = gp;
0x000070cc sw ra, 0xec(sp) | *(var_ech) = ra;
0x000070d0 sw fp, 0xe8(sp) | *(var_e8h) = fp;
0x000070d4 sw s7, 0xe4(sp) | *(var_e4h) = s7;
0x000070d8 sw s6, 0xe0(sp) | *(var_e0h) = s6;
0x000070dc sw s5, 0xdc(sp) | *(var_dch) = s5;
0x000070e0 sw s4, 0xd8(sp) | *(var_d8h) = s4;
0x000070e4 sw s3, 0xd4(sp) | *(var_d4h) = s3;
0x000070e8 sw s2, 0xd0(sp) | *(var_d0h_2) = s2;
0x000070ec sw s1, 0xcc(sp) | *(var_cch_2) = s1;
0x000070f0 sw s0, 0xc8(sp) | *(var_c8h) = s0;
0x000070f4 sw a1, 0xf4(sp) | *(var_f4h_2) = a1;
0x000070f8 sw a3, 0xfc(sp) | *(var_fch_2) = a3;
0x000070fc lw v1, 0x100(sp) | v1 = *(var_10h_2);
0x00007100 sw a0, 0x98(sp) | *(var_98h_2) = a0;
0x00007104 sw v0, 0xc4(sp) | *(var_c4h_2) = v0;
0x00007108 lw s0, -0x7fbc(gp) | s0 = *(gp);
| if (a2 != 0) {
0x0000710c bnez a2, 0x76e4 | goto label_6;
| }
| label_4:
0x00007110 lw v0, -0x7fc4(gp) | v0 = *(gp);
0x00007114 sw v0, 0x80(sp) | *(var_80h) = v0;
0x00007118 lw v0, (v0) | v0 = *(v0);
0x0000711c lw v1, -0x7f38(gp) | v1 = sym.get_pid_to_display;
| if (v0 == 0) {
0x00007120 beqz v0, 0x769c | goto label_7;
| }
0x00007124 lw v0, -0x7fd4(gp) | v0 = *(gp);
0x00007128 sw v1, 0x8c(sp) | *(var_8ch_5) = v1;
0x0000712c lw v1, -0x7fd4(gp) | v1 = *(gp);
0x00007130 sw v0, 0x48(sp) | *(var_48h_4) = v0;
0x00007134 sw v1, 0xa0(sp) | *(var_a0h_3) = v1;
0x00007138 lw v1, -0x7fd4(gp) | v1 = *(gp);
0x0000713c move s0, zero | s0 = 0;
0x00007140 sw v1, 0xb0(sp) | *(var_b0h_4) = v1;
0x00007144 lw v1, 0x1534(v0) | v1 = *((v0 + 1357));
0x00007148 lw v0, 0x1530(v0) | v0 = *((v0 + 1356));
0x0000714c sw v1, 0xac(sp) | *(var_ach_4) = v1;
0x00007150 sw v0, 0xa8(sp) | *(var_a8h_4) = v0;
0x00007154 addiu v0, sp, 0xc0 | v0 = sp + 0xc0;
0x00007158 sw v0, 0x88(sp) | *(var_88h_3) = v0;
0x0000715c addiu v0, sp, 0xbc | v0 = sp + 0xbc;
0x00007160 sw v0, 0x84(sp) | *(var_84h_5) = v0;
0x00007164 lw v0, -0x7fd4(gp) | v0 = *(gp);
0x00007168 move fp, zero | fp = 0;
| /* str.__11s */
0x0000716c addiu v0, v0, 0x10c8 | v0 += 0x10c8;
0x00007170 sw v0, 0x9c(sp) | *(var_9ch_4) = v0;
0x00007174 lw v0, -0x7fd4(gp) | v0 = *(gp);
| /* esilref: '&s' */
0x00007178 addiu v0, v0, 0x1234 | v0 += 0x1234;
0x0000717c sw v0, 0xa4(sp) | *(var_a4h_4) = v0;
0x00007180 b 0x7288 | goto label_8;
| label_0:
0x00007184 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00007188 lw a0, 0x110(sp) | a0 = *(var_110h_2);
0x0000718c lw a1, 0x114(sp) | a1 = *(var_114h_2);
0x00007190 bal 0x104e0 | fcn_000104e0 ();
0x00007194 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007198 move a2, v0 | a2 = v0;
0x0000719c move a3, v1 | a3 = v1;
0x000071a0 lw t9, -0x7f30(gp) | t9 = *(gp);
0x000071a4 move a0, s4 | a0 = s4;
0x000071a8 move a1, s5 | a1 = s5;
0x000071ac bal 0xf440 | fcn_0000f440 ();
0x000071b0 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000071b4 lw a2, 0x1530(s6) | a2 = *((s6 + 1356));
0x000071b8 lw a3, 0x1534(s6) | a3 = *((s6 + 1357));
| label_1:
0x000071bc lw t9, -0x7f2c(gp) | t9 = *(gp);
0x000071c0 move a0, v0 | a0 = v0;
0x000071c4 move a1, v1 | a1 = v1;
0x000071c8 bal 0xfea0 | fcn_0000fea0 ();
0x000071cc sw v0, 0x30(sp) | *(var_30h_3) = v0;
0x000071d0 sw v1, 0x34(sp) | *(var_34h_5) = v1;
0x000071d4 lw v0, 0x58(sp) | v0 = *(var_58h_4);
0x000071d8 lw v1, 0x5c(sp) | v1 = *(var_5ch_5);
0x000071dc lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000071e0 sw v0, 0x20(sp) | *(var_20h_5) = v0;
0x000071e4 sw v1, 0x24(sp) | *(var_24h_2) = v1;
0x000071e8 lw v0, 0x50(sp) | v0 = *(var_50h_6);
0x000071ec lw v1, 0x54(sp) | v1 = *(var_54h_5);
0x000071f0 sw v0, 0x18(sp) | *(var_18h_6) = v0;
0x000071f4 sw v1, 0x1c(sp) | *(var_1ch_3) = v1;
0x000071f8 lw v0, 0x78(sp) | v0 = *(var_78h_7);
0x000071fc lw v1, 0x7c(sp) | v1 = *(var_7ch_7);
0x00007200 lw a0, 0x60(sp) | a0 = *(var_60h_4);
0x00007204 lw t9, -0x7f28(gp) | t9 = sym.cprintf_pc
0x00007208 sw v0, 0x10(sp) | *(var_d0h_3) = v0;
0x0000720c sw s0, 0x28(sp) | *(var_28h_4) = s0;
0x00007210 sw s1, 0x2c(sp) | *(var_2ch_3) = s1;
0x00007214 sw v1, 0x14(sp) | *(var_d4h_2) = v1;
0x00007218 addiu a3, zero, 2 | a3 = 2;
0x0000721c addiu a2, zero, 7 | a2 = 7;
0x00007220 addiu a1, zero, 5 | a1 = 5;
0x00007224 bal 0xe7b4 | sym_cprintf_pc ()
0x00007228 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x0000722c lw v0, 0xfc(sp) | v0 = *(var_fch_2);
0x00007230 lw t9, -0x7f40(gp) | t9 = sym.cprintf_in
| if (v0 != 0) {
0x00007234 bnez v0, 0x75ac | goto label_9;
| }
0x00007238 lw v0, 0xbc(sp) | v0 = *(var_bch_3);
0x0000723c lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00007240 move a0, zero | a0 = 0;
0x00007244 lw a3, 0xe8(v0) | a3 = *((v0 + 58));
0x00007248 lw v0, 0xb0(sp) | v0 = *(var_b0h_4);
| /* str.____3d */
0x0000724c addiu a1, a1, 0x1218 | a1 += 0x1218;
0x00007250 addiu a2, v0, 0xd9c | a2 = v0 + 0xd9c;
0x00007254 bal 0xea90 | sym_cprintf_in ()
0x00007258 lw gp, 0x38(sp) | gp = *(var_38h_3);
| label_2:
0x0000725c lw t9, -0x7f1c(gp) | t9 = sym.print_comm;
0x00007260 lw a0, 0xbc(sp) | a0 = *(var_bch_3);
0x00007264 addiu s0, zero, 1 | s0 = 1;
0x00007268 bal 0x34b4 | sym_print_comm ();
0x0000726c lw gp, 0x38(sp) | gp = *(var_38h_3);
| do {
0x00007270 lw v0, 0x80(sp) | v0 = *(var_80h);
0x00007274 addiu fp, fp, 1 | fp++;
0x00007278 lw v0, (v0) | v0 = *(v0);
0x0000727c sltu v0, fp, v0 | v0 = (fp < v0) ? 1 : 0;
0x00007280 lw v0, 0xb4(sp) | v0 = *(var_b4h_3);
| if (v0 == 0) {
0x00007284 beqz v0, 0x76a4 | goto label_10;
| }
| label_8:
0x00007288 lw v0, 0x88(sp) | v0 = *(var_88h_3);
0x0000728c lw a1, 0xf4(sp) | a1 = *(var_f4h_2);
0x00007290 sw v0, 0x18(sp) | *(var_18h_6) = v0;
0x00007294 lw v0, 0x84(sp) | v0 = *(var_84h_5);
0x00007298 lw a0, 0xf0(sp) | a0 = *(var_f0h);
0x0000729c sw v0, 0x14(sp) | *(var_d4h_2) = v0;
0x000072a0 lw t9, 0x8c(sp) | t9 = *(var_8ch_5);
0x000072a4 addiu v0, zero, 1 | v0 = 1;
0x000072a8 sw v0, 0x10(sp) | *(var_d0h_3) = v0;
0x000072ac addiu a3, zero, 1 | a3 = 1;
0x000072b0 move a2, fp | a2 = fp;
0x000072b4 jalr t9 | t9 ();
0x000072b8 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000072bc blez v0, 0x7270 |
| } while (v0 <= 0);
0x000072c0 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x000072c4 lw a2, 0x90(sp) | a2 = *(var_90h_2);
0x000072c8 lw a1, 0x9c(sp) | a1 = *(var_9ch_4);
0x000072cc addiu a0, zero, 1 | a0 = 1;
0x000072d0 lw s0, 0xbc(sp) | s0 = *(var_bch_3);
0x000072d4 jalr t9 | t9 ();
0x000072d8 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000072dc move a0, s0 | a0 = s0;
0x000072e0 lw t9, -0x7f3c(gp) | t9 = sym.__print_line_id;
0x000072e4 addiu a1, zero, 0x2d | a1 = 0x2d;
0x000072e8 bal 0x57d0 | sym_print_line_id ();
0x000072ec lw s2, 0xbc(sp) | s2 = *(var_bch_3);
0x000072f0 lw s4, 0xc0(sp) | s4 = *(var_c0h_2);
0x000072f4 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000072f8 lw s7, 0x70(s2) | s7 = *((s2 + 28));
0x000072fc lw s0, 0x70(s4) | s0 = *((s4 + 28));
0x00007300 lw s3, 0x90(s2) | s3 = *((s2 + 36));
0x00007304 lw s1, 0x90(s4) | s1 = *((s4 + 36));
0x00007308 lw a2, -0x7fbc(gp) | a2 = *(gp);
0x0000730c lw v0, 0x74(s2) | v0 = *((s2 + 29));
0x00007310 lw a0, 0x94(s2) | a0 = *((s2 + 37));
0x00007314 lw s5, 0x74(s4) | s5 = *((s4 + 29));
0x00007318 lw s6, 0x94(s4) | s6 = *((s4 + 37));
0x0000731c subu t3, s7, s3 | __asm ("subu t3, s7, s3");
0x00007320 subu v1, s0, s1 | __asm ("subu v1, s0, s1");
0x00007324 subu t0, v0, a0 | __asm ("subu t0, v0, a0");
0x00007328 sltu a1, s7, t3 | a1 = (s7 < t3) ? 1 : 0;
0x0000732c lw a2, (a2) | a2 = *(a2);
0x00007330 sw v0, 0x64(sp) | *(var_64h_5) = v0;
0x00007334 sw a0, 0x50(sp) | *(var_50h_6) = a0;
0x00007338 subu v0, s5, s6 | __asm ("subu v0, s5, s6");
0x0000733c sltu a0, s0, v1 | a0 = (s0 < v1) ? 1 : 0;
0x00007340 subu t0, t0, a1 | __asm ("subu t0, t0, a1");
0x00007344 subu v0, v0, a0 | __asm ("subu v0, v0, a0");
0x00007348 ext a1, a2, 0xb, 1 | __asm ("ext a1, a2, 0xb, 1");
0x0000734c sltu a0, t0, v0 | a0 = (t0 < v0) ? 1 : 0;
0x00007350 sw a2, 0x4c(sp) | *(var_4ch_7) = a2;
0x00007354 sw a1, 0x60(sp) | *(var_60h_4) = a1;
| if (a0 == 0) {
0x00007358 bnez a0, 0x7370 |
0x0000735c lw v0, -0x7fa0(gp) | v0 = *(gp);
| if (v0 != t0) {
0x00007360 bne v0, t0, 0x75cc | goto label_11;
| }
0x00007364 sltu v1, t3, v1 | v1 = (t3 < v1) ? 1 : 0;
0x00007368 lw v1, 0x94(sp) | v1 = *(var_94h_2);
| if (v1 == 0) {
0x0000736c beqz v1, 0x75d0 | goto label_12;
| }
| }
0x00007370 lw v0, -0x7fa0(gp) | v0 = *(gp);
0x00007374 lw v1, 0x94(sp) | v1 = *(var_94h_2);
0x00007378 lw t9, -0x7f9c(gp) | t9 = *(gp);
0x0000737c lw v0, (v0) | v0 = *(v0);
0x00007380 addiu a2, zero, 0x64 | a2 = 0x64;
0x00007384 multu v0, v1 | __asm ("multu v0, v1");
0x00007388 lw v1, 0x98(sp) | v1 = *(var_98h_2);
0x0000738c mflo a0 | __asm ("mflo a0");
0x00007390 mfhi a1 | __asm ("mfhi a1");
0x00007394 mul t0, v1, v0 | __asm ("mul t0, v1, v0");
0x00007398 move a3, zero | a3 = 0;
0x0000739c sw zero, 0x78(sp) | *(var_78h_7) = 0;
0x000073a0 sw zero, 0x7c(sp) | *(var_7ch_7) = 0;
0x000073a4 addu a1, t0, a1 | a1 = t0 + a1;
0x000073a8 bal 0xefe0 | fcn_0000efe0 ();
0x000073ac lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000073b0 move a0, v0 | a0 = v0;
0x000073b4 lw t9, -0x7f34(gp) | t9 = *(gp);
0x000073b8 move a1, v1 | a1 = v1;
0x000073bc bal 0x104e0 | fcn_000104e0 ();
0x000073c0 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000073c4 sw v0, 0x40(sp) | *(var_40h_4) = v0;
0x000073c8 sw v1, 0x44(sp) | *(var_44h_4) = v1;
| label_3:
0x000073cc lw t0, 0x80(s2) | t0 = *((s2 + 32));
0x000073d0 lw t3, 0x80(s4) | t3 = *((s4 + 32));
0x000073d4 lw t6, 0x84(s2) | t6 = *((s2 + 33));
0x000073d8 lw t5, 0x84(s4) | t5 = *((s4 + 33));
0x000073dc subu a0, t0, t3 | __asm ("subu a0, t0, t3");
0x000073e0 sltu v0, t0, a0 | v0 = (t0 < a0) ? 1 : 0;
0x000073e4 subu a1, t6, t5 | __asm ("subu a1, t6, t5");
0x000073e8 lw t9, -0x7f34(gp) | t9 = *(gp);
0x000073ec sw t3, 0x74(sp) | *(var_74h_6) = t3;
0x000073f0 sw t0, 0x70(sp) | *(var_70h_7) = t0;
0x000073f4 sw t5, 0x6c(sp) | *(var_6ch_6) = t5;
0x000073f8 sw t6, 0x68(sp) | *(var_68h_5) = t6;
0x000073fc subu a1, a1, v0 | __asm ("subu a1, a1, v0");
0x00007400 bal 0x104e0 | fcn_000104e0 ();
0x00007404 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007408 lw a2, 0x40(sp) | a2 = *(var_40h_4);
0x0000740c lw a3, 0x44(sp) | a3 = *(var_44h_4);
0x00007410 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00007414 move a0, v0 | a0 = v0;
0x00007418 move a1, v1 | a1 = v1;
0x0000741c bal 0xf440 | fcn_0000f440 ();
0x00007420 lw a0, 0x48(sp) | a0 = *(var_48h_4);
0x00007424 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007428 move a1, v1 | a1 = v1;
0x0000742c lw a2, 0x1530(a0) | a2 = *((a0 + 1356));
0x00007430 lw a3, 0x1534(a0) | a3 = *((a0 + 1357));
0x00007434 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00007438 move a0, v0 | a0 = v0;
0x0000743c bal 0xfea0 | fcn_0000fea0 ();
0x00007440 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007444 lw a1, 0x50(sp) | a1 = *(var_50h_6);
0x00007448 subu a0, s3, s1 | __asm ("subu a0, s3, s1");
0x0000744c sltu t4, s3, a0 | t4 = (s3 < a0) ? 1 : 0;
0x00007450 subu a1, a1, s6 | __asm ("subu a1, a1, s6");
0x00007454 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00007458 subu a1, a1, t4 | __asm ("subu a1, a1, t4");
0x0000745c sw v0, 0x50(sp) | *(var_50h_6) = v0;
0x00007460 sw v1, 0x54(sp) | *(var_54h_5) = v1;
0x00007464 bal 0x104e0 | fcn_000104e0 ();
0x00007468 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x0000746c lw a2, 0x40(sp) | a2 = *(var_40h_4);
0x00007470 lw a3, 0x44(sp) | a3 = *(var_44h_4);
0x00007474 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00007478 move a0, v0 | a0 = v0;
0x0000747c move a1, v1 | a1 = v1;
0x00007480 bal 0xf440 | fcn_0000f440 ();
0x00007484 lw s6, 0x48(sp) | s6 = *(var_48h_4);
0x00007488 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x0000748c move a0, v0 | a0 = v0;
0x00007490 lw a2, 0x1530(s6) | a2 = *((s6 + 1356));
0x00007494 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00007498 lw a3, 0x1534(s6) | a3 = *((s6 + 1357));
0x0000749c move a1, v1 | a1 = v1;
0x000074a0 bal 0xfea0 | fcn_0000fea0 ();
0x000074a4 lw a3, 0xa0(s2) | a3 = *((s2 + 40));
0x000074a8 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000074ac lw a0, 0xa0(s4) | a0 = *((s4 + 40));
0x000074b0 lw a2, 0xa4(s2) | a2 = *((s2 + 41));
0x000074b4 lw a1, 0xa4(s4) | a1 = *((s4 + 41));
0x000074b8 subu a0, a3, a0 | __asm ("subu a0, a3, a0");
0x000074bc sltu a3, a3, a0 | a3 = (a3 < a0) ? 1 : 0;
0x000074c0 subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x000074c4 lw t9, -0x7f34(gp) | t9 = *(gp);
0x000074c8 subu a1, a1, a3 | __asm ("subu a1, a1, a3");
0x000074cc sw v0, 0x58(sp) | *(var_58h_4) = v0;
0x000074d0 sw v1, 0x5c(sp) | *(var_5ch_5) = v1;
0x000074d4 bal 0x104e0 | fcn_000104e0 ();
0x000074d8 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000074dc lw a2, 0x40(sp) | a2 = *(var_40h_4);
0x000074e0 lw a3, 0x44(sp) | a3 = *(var_44h_4);
0x000074e4 lw t9, -0x7f30(gp) | t9 = *(gp);
0x000074e8 move a0, v0 | a0 = v0;
0x000074ec move a1, v1 | a1 = v1;
0x000074f0 bal 0xf440 | fcn_0000f440 ();
0x000074f4 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000074f8 lw a2, 0x1530(s6) | a2 = *((s6 + 1356));
0x000074fc lw a3, 0x1534(s6) | a3 = *((s6 + 1357));
0x00007500 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00007504 move a0, v0 | a0 = v0;
0x00007508 move a1, v1 | a1 = v1;
0x0000750c bal 0xfea0 | fcn_0000fea0 ();
0x00007510 lw t0, 0x70(sp) | t0 = *(var_70h_7);
0x00007514 lw a0, 0x64(sp) | a0 = *(var_64h_5);
0x00007518 lw t6, 0x68(sp) | t6 = *(var_68h_5);
0x0000751c addu t0, s7, t0 | t0 = s7 + t0;
0x00007520 addu s3, a0, t6 | s3 = a0 + t6;
0x00007524 sltu s7, t0, s7 | s7 = (t0 < s7) ? 1 : 0;
0x00007528 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x0000752c subu s0, t0, s0 | __asm ("subu s0, t0, s0");
0x00007530 lw t3, 0x74(sp) | t3 = *(var_74h_6);
0x00007534 addu s3, s7, s3 | s3 = s7 + s3;
0x00007538 sltu t0, t0, s0 | t0 = (t0 < s0) ? 1 : 0;
0x0000753c lw t5, 0x6c(sp) | t5 = *(var_6ch_6);
0x00007540 subu s5, s3, s5 | __asm ("subu s5, s3, s5");
0x00007544 subu a0, s0, t3 | __asm ("subu a0, s0, t3");
0x00007548 subu s5, s5, t0 | __asm ("subu s5, s5, t0");
0x0000754c sltu s0, s0, a0 | s0 = (s0 < a0) ? 1 : 0;
0x00007550 subu t5, s5, t5 | __asm ("subu t5, s5, t5");
0x00007554 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00007558 subu a1, t5, s0 | __asm ("subu a1, t5, s0");
0x0000755c move s1, v1 | s1 = v1;
0x00007560 move s0, v0 | s0 = v0;
0x00007564 bal 0x104e0 | fcn_000104e0 ();
0x00007568 lw a0, 0x4c(sp) | a0 = *(var_4ch_7);
0x0000756c lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007570 andi s2, a0, 4 | s2 = a0 & 4;
0x00007574 move s4, v0 | s4 = v0;
0x00007578 move s5, v1 | s5 = v1;
| if (s2 != 0) {
0x0000757c bnez s2, 0x7184 | goto label_0;
| }
0x00007580 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00007584 lw a2, 0x40(sp) | a2 = *(var_40h_4);
0x00007588 lw a3, 0x44(sp) | a3 = *(var_44h_4);
0x0000758c move a0, v0 | a0 = v0;
0x00007590 move a1, v1 | a1 = v1;
0x00007594 bal 0xf440 | fcn_0000f440 ();
0x00007598 lw a0, 0x48(sp) | a0 = *(var_48h_4);
0x0000759c lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000075a0 lw a2, 0x1530(a0) | a2 = *((a0 + 1356));
0x000075a4 lw a3, 0x1534(a0) | a3 = *((a0 + 1357));
0x000075a8 b 0x71bc | goto label_1;
| label_9:
0x000075ac lw v0, 0xa0(sp) | v0 = *(var_a0h_3);
0x000075b0 lw a1, 0xa4(sp) | a1 = *(var_a4h_4);
0x000075b4 move a3, zero | a3 = 0;
0x000075b8 addiu a2, v0, 0x12c4 | a2 = v0 + 0x12c4;
0x000075bc addiu a0, zero, 1 | a0 = 1;
0x000075c0 bal 0xea90 | sym_cprintf_in ()
0x000075c4 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x000075c8 b 0x725c | goto label_2;
| label_11:
0x000075cc lw v1, 0x94(sp) | v1 = *(var_94h_2);
| label_12:
0x000075d0 sw t0, 0x40(sp) | *(var_40h_4) = t0;
0x000075d4 lw v0, (v0) | v0 = *(v0);
0x000075d8 lw t9, -0x7f9c(gp) | t9 = *(gp);
0x000075dc multu v0, v1 | __asm ("multu v0, v1");
0x000075e0 lw v1, 0x98(sp) | v1 = *(var_98h_2);
0x000075e4 mflo a0 | __asm ("mflo a0");
0x000075e8 mfhi a1 | __asm ("mfhi a1");
0x000075ec mul t0, v1, v0 | __asm ("mul t0, v1, v0");
0x000075f0 move a3, zero | a3 = 0;
0x000075f4 sw t3, 0x58(sp) | *(var_58h_4) = t3;
0x000075f8 addiu a2, zero, 0x64 | a2 = 0x64;
0x000075fc addu a1, t0, a1 | a1 = t0 + a1;
0x00007600 bal 0xefe0 | fcn_0000efe0 ();
0x00007604 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007608 move a0, v0 | a0 = v0;
0x0000760c lw t9, -0x7f34(gp) | t9 = *(gp);
0x00007610 move a1, v1 | a1 = v1;
0x00007614 bal 0x104e0 | fcn_000104e0 ();
0x00007618 lw t3, 0x58(sp) | t3 = *(var_58h_4);
0x0000761c lw t0, 0x40(sp) | t0 = *(var_40h_4);
0x00007620 subu a2, t3, s0 | __asm ("subu a2, t3, s0");
0x00007624 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007628 sltu a1, t3, a2 | a1 = (t3 < a2) ? 1 : 0;
0x0000762c subu t0, t0, s5 | __asm ("subu t0, t0, s5");
0x00007630 addu a0, a2, s1 | a0 = a2 + s1;
0x00007634 subu t0, t0, a1 | __asm ("subu t0, t0, a1");
0x00007638 addu t0, t0, s6 | t0 += s6;
0x0000763c sltu a1, a0, a2 | a1 = (a0 < a2) ? 1 : 0;
0x00007640 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00007644 addu a1, a1, t0 | a1 += t0;
0x00007648 sw v0, 0x40(sp) | *(var_40h_4) = v0;
0x0000764c sw v1, 0x44(sp) | *(var_44h_4) = v1;
0x00007650 bal 0x104e0 | fcn_000104e0 ();
0x00007654 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007658 lw a2, 0x40(sp) | a2 = *(var_40h_4);
0x0000765c lw a3, 0x44(sp) | a3 = *(var_44h_4);
0x00007660 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00007664 move a0, v0 | a0 = v0;
0x00007668 move a1, v1 | a1 = v1;
0x0000766c bal 0xf440 | fcn_0000f440 ();
0x00007670 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007674 lw a2, 0xa8(sp) | a2 = *(var_a8h_4);
0x00007678 lw a3, 0xac(sp) | a3 = *(var_ach_4);
0x0000767c lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00007680 move a0, v0 | a0 = v0;
0x00007684 move a1, v1 | a1 = v1;
0x00007688 bal 0xfea0 | fcn_0000fea0 ();
0x0000768c sw v0, 0x78(sp) | *(var_78h_7) = v0;
0x00007690 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007694 sw v1, 0x7c(sp) | *(var_7ch_7) = v1;
0x00007698 b 0x73cc | goto label_3;
| label_7:
0x0000769c move s0, zero | s0 = 0;
0x000076a0 lw v0, 0xb4(sp) | v0 = *(var_b4h_3);
| label_10:
0x000076a4 lw a0, 0xc4(sp) | a0 = *(var_c4h_2);
0x000076a8 lw v1, (v0) | v1 = *(v0);
0x000076ac move v0, s0 | v0 = s0;
| if (a0 != v1) {
0x000076b0 bne a0, v1, 0x77a0 | goto label_13;
| }
0x000076b4 lw ra, 0xec(sp) | ra = *(var_ech);
0x000076b8 lw fp, 0xe8(sp) | fp = *(var_e8h);
0x000076bc lw s7, 0xe4(sp) | s7 = *(var_e4h);
0x000076c0 lw s6, 0xe0(sp) | s6 = *(var_e0h);
0x000076c4 lw s5, 0xdc(sp) | s5 = *(var_dch);
0x000076c8 lw s4, 0xd8(sp) | s4 = *(var_d8h);
0x000076cc lw s3, 0xd4(sp) | s3 = *(var_d4h);
0x000076d0 lw s2, 0xd0(sp) | s2 = *(var_d0h_2);
0x000076d4 lw s1, 0xcc(sp) | s1 = *(var_cch_2);
0x000076d8 lw s0, 0xc8(sp) | s0 = *(var_c8h);
0x000076dc addiu sp, sp, 0xf0 |
0x000076e0 jr ra | return v0;
| label_6:
0x000076e4 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000076e8 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x000076ec move a2, v1 | a2 = v1;
| /* str._n__11s */
0x000076f0 addiu a1, a1, 0x10fc | a1 += 0x10fc;
0x000076f4 addiu a0, zero, 1 | a0 = 1;
0x000076f8 jalr t9 | t9 ();
0x000076fc lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007700 lw v0, (s0) | v0 = *(s0);
0x00007704 andi v0, v0, 0x100 | v0 &= aav.0x00000100;
0x00007708 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 != 0) {
0x0000770c bnez v0, 0x7764 | goto label_14;
| }
0x00007710 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00007714 addiu a0, zero, 1 | a0 = 1;
| /* str.___UID */
0x00007718 addiu a1, a1, 0x1110 | a1 += 0x1110;
0x0000771c jalr t9 | t9 ();
0x00007720 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007724 lw v0, (s0) | v0 = *(s0);
0x00007728 andi v0, v0, 0x20 | v0 &= 0x20;
0x0000772c lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 == 0) {
0x00007730 beqz v0, 0x7788 | goto label_15;
| }
| do {
0x00007734 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00007738 addiu a0, zero, 1 | a0 = 1;
| /* str.______TGID_______TID */
0x0000773c addiu a1, a1, 0x1118 | a1 += 0x1118;
0x00007740 jalr t9 | t9 ();
0x00007744 lw gp, 0x38(sp) | gp = *(var_38h_3);
| label_5:
0x00007748 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x0000774c lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str.______usr___system____guest_____wait______CPU___CPU__Command_n */
0x00007750 addiu a1, a1, 0x1284 | a1 += 0x1284;
0x00007754 addiu a0, zero, 1 | a0 = 1;
0x00007758 jalr t9 | t9 ();
0x0000775c lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007760 b 0x7110 | goto label_4;
| label_14:
0x00007764 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00007768 addiu a0, zero, 1 | a0 = 1;
| /* str._____USER */
0x0000776c addiu a1, a1, 0x1104 | a1 += 0x1104;
0x00007770 jalr t9 | t9 ();
0x00007774 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x00007778 lw v0, (s0) | v0 = *(s0);
0x0000777c andi v0, v0, 0x20 | v0 &= 0x20;
0x00007780 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x00007784 bnez v0, 0x7734 |
| } while (v0 != 0);
| label_15:
0x00007788 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x0000778c addiu a0, zero, 1 | a0 = 1;
| /* str._______PID */
0x00007790 addiu a1, a1, 0x1130 | a1 += 0x1130;
0x00007794 jalr t9 | t9 ();
0x00007798 lw gp, 0x38(sp) | gp = *(var_38h_3);
0x0000779c b 0x7748 | goto label_5;
| label_13:
0x000077a0 lw t9, -0x7cf0(gp) | t9 = sym.imp.__stack_chk_fail;
0x000077a4 jalr t9 | t9 ();
0x000077a8 nop |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/pidstat @ 0x8134 */
| #include <stdint.h>
|
; (fcn) sym.write_pid_task_memory_stats () | void write_pid_task_memory_stats () {
0x00008134 lui gp, 2 |
0x00008138 addiu gp, gp, 0x1f7c |
0x0000813c addu gp, gp, t9 | gp += t9;
0x00008140 lw v0, -0x7cd8(gp) | v0 = *((gp - 7990));
0x00008144 addiu sp, sp, -0x98 |
0x00008148 sw s3, 0x7c(sp) | *(var_7ch_3) = s3;
0x0000814c sw v0, 0x5c(sp) | *(var_5ch_2) = v0;
0x00008150 move s3, a0 | s3 = a0;
0x00008154 lw v0, (v0) | v0 = *(v0);
0x00008158 lw a0, 0xac(sp) | a0 = *(var_14h_3);
0x0000815c sw gp, 0x20(sp) | *(var_20h) = gp;
0x00008160 sw s6, 0x88(sp) | *(var_88h_2) = s6;
0x00008164 sw s2, 0x78(sp) | *(var_78h_3) = s2;
0x00008168 sw ra, 0x94(sp) | *(var_94h_4) = ra;
0x0000816c sw fp, 0x90(sp) | *(var_90h_4) = fp;
0x00008170 sw s7, 0x8c(sp) | *(var_8ch_3) = s7;
0x00008174 sw s5, 0x84(sp) | *(var_84h_2) = s5;
0x00008178 sw s4, 0x80(sp) | *(var_80h_2) = s4;
0x0000817c sw s1, 0x74(sp) | *(var_74h_2) = s1;
0x00008180 sw s0, 0x70(sp) | *(var_70h_3) = s0;
0x00008184 move s6, a1 | s6 = a1;
0x00008188 move s2, a3 | s2 = a3;
0x0000818c lw v1, 0xa8(sp) | v1 = *(var_10h_3);
0x00008190 sw a0, 0x40(sp) | *(var_40h_2) = a0;
0x00008194 sw v0, 0x6c(sp) | *(var_6ch_2) = v0;
0x00008198 lw s4, -0x7fbc(gp) | s4 = *(gp);
| if (a2 != 0) {
0x0000819c bnez a2, 0x8670 | goto label_6;
| }
| label_4:
0x000081a0 lw s1, -0x7fc4(gp) | s1 = *(gp);
0x000081a4 lw v0, (s1) | v0 = *(s1);
0x000081a8 lw v1, -0x7f38(gp) | v1 = sym.get_pid_to_display;
| if (v0 == 0) {
0x000081ac beqz v0, 0x8628 | goto label_7;
| }
0x000081b0 lw v0, -0x7fd4(gp) | v0 = *(gp);
0x000081b4 sw v0, 0x58(sp) | *(var_58h_3) = v0;
0x000081b8 lw a0, 0x1534(v0) | a0 = *((v0 + 1357));
0x000081bc sw v1, 0x34(sp) | *(var_34h_4) = v1;
0x000081c0 lw v1, 0x1530(v0) | v1 = *((v0 + 1356));
0x000081c4 addiu v0, sp, 0x68 | v0 = sp + 0x68;
0x000081c8 sw v0, 0x30(sp) | *(var_30h_2) = v0;
0x000081cc addiu v0, sp, 0x64 | v0 = sp + 0x64;
0x000081d0 sw v0, 0x2c(sp) | *(var_2ch_2) = v0;
0x000081d4 lw v0, -0x7fd4(gp) | v0 = *(gp);
0x000081d8 sw v1, 0x48(sp) | *(var_48h_3) = v1;
| /* str.__11s */
0x000081dc addiu v0, v0, 0x10c8 | v0 += 0x10c8;
0x000081e0 sw a0, 0x4c(sp) | *(var_4ch_5) = a0;
0x000081e4 move s4, zero | s4 = 0;
0x000081e8 move s0, zero | s0 = 0;
0x000081ec sw v0, 0x44(sp) | *(var_44h_3) = v0;
0x000081f0 sw v1, 0x50(sp) | *(var_50h_4) = v1;
0x000081f4 sw a0, 0x54(sp) | *(var_54h_4) = a0;
0x000081f8 b 0x83b4 | goto label_8;
| label_1:
0x000081fc lw s4, -0x7fbc(gp) | s4 = *(gp);
0x00008200 lw s5, 0x64(sp) | s5 = *(var_64h_4);
0x00008204 lw t9, -0x7f18(gp) | t9 = *(gp);
0x00008208 lw t1, (s4) | t1 = *(s4);
0x0000820c lw a0, 0xd0(s5) | a0 = *((s5 + 52));
0x00008210 andi t1, t1, 0x800 | t1 &= 0x800;
0x00008214 addiu v1, zero, 2 | v1 = 2;
0x00008218 addiu v0, zero, -1 | v0 = -1;
| if (t1 == 0) {
0x0000821c movn v0, v1, t1 | v0 = v1;
| }
0x00008220 move s7, v0 | s7 = v0;
0x00008224 bal 0x10440 | fcn_00010440 ();
0x00008228 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000822c lw a0, 0x20(s5) | a0 = *((s5 + 8));
0x00008230 lw a1, 0x24(s5) | a1 = *((s5 + 9));
0x00008234 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00008238 sw v0, 0x38(sp) | *(var_38h_7) = v0;
0x0000823c sw v1, 0x3c(sp) | *(var_3ch_4) = v1;
0x00008240 bal 0x104e0 | fcn_000104e0 ();
0x00008244 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008248 lw a2, 0x38(sp) | a2 = *(var_38h_7);
0x0000824c lw a3, 0x3c(sp) | a3 = *(var_3ch_4);
0x00008250 lw t9, -0x7f30(gp) | t9 = *(gp);
0x00008254 move a0, v0 | a0 = v0;
0x00008258 move a1, v1 | a1 = v1;
0x0000825c bal 0xf440 | fcn_0000f440 ();
0x00008260 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008264 sw v0, 0x18(sp) | *(var_18h_5) = v0;
0x00008268 sw v1, 0x1c(sp) | *(var_1ch_2) = v1;
0x0000826c lw a0, 0x18(s5) | a0 = *((s5 + 6));
0x00008270 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00008274 lw a1, 0x1c(s5) | a1 = *((s5 + 7));
0x00008278 bal 0x104e0 | fcn_000104e0 ();
0x0000827c lw gp, 0x20(sp) | gp = *(var_20h);
0x00008280 lw a2, 0x38(sp) | a2 = *(var_38h_7);
0x00008284 lw a3, 0x3c(sp) | a3 = *(var_3ch_4);
0x00008288 lw t9, -0x7f30(gp) | t9 = *(gp);
0x0000828c move a0, v0 | a0 = v0;
0x00008290 move a1, v1 | a1 = v1;
0x00008294 bal 0xf440 | fcn_0000f440 ();
0x00008298 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000829c sw v0, 0x10(sp) | *(var_90h_5) = v0;
0x000082a0 sw v1, 0x14(sp) | *(var_94h_5) = v1;
0x000082a4 lw t9, -0x7f20(gp) | t9 = sym.cprintf_f
0x000082a8 move a3, zero | a3 = 0;
0x000082ac addiu a2, zero, 7 | a2 = 7;
0x000082b0 addiu a1, zero, 2 | a1 = 2;
0x000082b4 move a0, s7 | a0 = s7;
0x000082b8 bal 0xe518 | sym_cprintf_f ()
0x000082bc lw gp, 0x20(sp) | gp = *(var_20h);
0x000082c0 lw s4, (s4) | s4 = *(s4);
0x000082c4 lw v0, -0x7fac(gp) | v0 = *(gp);
0x000082c8 lw s5, (v0) | s5 = *(v0);
0x000082cc ext s4, s4, 0xb, 1 | __asm ("ext s4, s4, 0xb, 1");
| if (s5 == 0) {
0x000082d0 beqz s5, 0x861c | goto label_9;
| }
0x000082d4 lw v0, 0x64(sp) | v0 = *(var_64h_4);
0x000082d8 lw t9, -0x7f9c(gp) | t9 = *(gp);
0x000082dc move a3, zero | a3 = 0;
0x000082e0 lw a0, 0x20(v0) | a0 = *((v0 + 8));
0x000082e4 lw a1, 0x24(v0) | a1 = *((v0 + 9));
0x000082e8 lw a2, 0xd0(v0) | a2 = *((v0 + 52));
0x000082ec bal 0xefe0 | fcn_0000efe0 ();
0x000082f0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000082f4 move a0, v0 | a0 = v0;
0x000082f8 move a1, v1 | a1 = v1;
0x000082fc lw t9, -0x7f34(gp) | t9 = *(gp);
| label_2:
0x00008300 bal 0x104e0 | fcn_000104e0 ();
0x00008304 nop |
0x00008308 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000830c move a0, s5 | a0 = s5;
0x00008310 sw v0, 0x38(sp) | *(var_38h_7) = v0;
0x00008314 lw t9, -0x7f18(gp) | t9 = *(gp);
0x00008318 sw v1, 0x3c(sp) | *(var_3ch_4) = v1;
0x0000831c bal 0x10440 | fcn_00010440 ();
0x00008320 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008324 lw t0, 0x38(sp) | t0 = *(var_38h_7);
0x00008328 lw t1, 0x3c(sp) | t1 = *(var_3ch_4);
0x0000832c lw t9, -0x7f30(gp) | t9 = *(gp);
0x00008330 move a0, t0 | a0 = t0;
0x00008334 move a1, t1 | a1 = t1;
0x00008338 move a2, v0 | a2 = v0;
0x0000833c move a3, v1 | a3 = v1;
0x00008340 bal 0xf440 | fcn_0000f440 ();
0x00008344 lw a0, 0x58(sp) | a0 = *(var_58h_3);
0x00008348 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000834c move a1, v1 | a1 = v1;
0x00008350 lw a2, 0x1530(a0) | a2 = *((a0 + 1356));
0x00008354 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00008358 lw a3, 0x1534(a0) | a3 = *((a0 + 1357));
0x0000835c move a0, v0 | a0 = v0;
0x00008360 bal 0xfea0 | fcn_0000fea0 ();
0x00008364 lw gp, 0x20(sp) | gp = *(var_20h);
| label_3:
0x00008368 lw t9, -0x7f28(gp) | t9 = sym.cprintf_pc
0x0000836c move a0, s4 | a0 = s4;
0x00008370 sw v0, 0x10(sp) | *(var_90h_5) = v0;
0x00008374 sw v1, 0x14(sp) | *(var_94h_5) = v1;
0x00008378 addiu a3, zero, 2 | a3 = 2;
0x0000837c addiu a2, zero, 6 | a2 = 6;
0x00008380 addiu a1, zero, 1 | a1 = 1;
0x00008384 bal 0xe7b4 | sym_cprintf_pc ()
0x00008388 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000838c lw a0, 0x64(sp) | a0 = *(var_64h_4);
0x00008390 lw t9, -0x7f1c(gp) | t9 = sym.print_comm;
0x00008394 addiu s4, zero, 1 | s4 = 1;
0x00008398 bal 0x34b4 | sym_print_comm ();
0x0000839c lw gp, 0x20(sp) | gp = *(var_20h);
| do {
| label_0:
0x000083a0 lw v0, (s1) | v0 = *(s1);
0x000083a4 addiu s0, s0, 1 | s0++;
0x000083a8 sltu v0, s0, v0 | v0 = (s0 < v0) ? 1 : 0;
0x000083ac lw v0, 0x5c(sp) | v0 = *(var_5ch_2);
| if (v0 == 0) {
0x000083b0 beqz v0, 0x8630 | goto label_10;
| }
| label_8:
0x000083b4 lw v0, 0x30(sp) | v0 = *(var_30h_2);
0x000083b8 lw t9, 0x34(sp) | t9 = *(var_34h_4);
0x000083bc sw v0, 0x18(sp) | *(var_18h_5) = v0;
0x000083c0 lw v0, 0x2c(sp) | v0 = *(var_2ch_2);
0x000083c4 addiu a3, zero, 2 | a3 = 2;
0x000083c8 sw v0, 0x14(sp) | *(var_94h_5) = v0;
0x000083cc addiu v0, zero, 1 | v0 = 1;
0x000083d0 sw v0, 0x10(sp) | *(var_90h_5) = v0;
0x000083d4 move a2, s0 | a2 = s0;
0x000083d8 move a1, s6 | a1 = s6;
0x000083dc move a0, s3 | a0 = s3;
0x000083e0 jalr t9 | t9 ();
0x000083e4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000083e8 beqz v0, 0x83a0 |
| } while (v0 == 0);
0x000083ec lw v1, 0x64(sp) | v1 = *(var_64h_4);
| if (s2 == 0) {
0x000083f0 bnez s2, 0x8454 |
0x000083f4 lw a1, 0x68(sp) | a1 = *(var_68h_3);
0x000083f8 lw a3, 0xa8(v1) | a3 = *((v1 + 42));
0x000083fc lw a0, 0x18(a1) | a0 = *((a1 + 6));
0x00008400 lw a2, 0x1c(a1) | a2 = *((a1 + 7));
0x00008404 lw t0, 0xac(v1) | t0 = *((v1 + 43));
0x00008408 addu a3, a0, a3 | a3 = a0 + a3;
0x0000840c addu a2, a2, t0 | a2 += t0;
0x00008410 sltu a0, a3, a0 | a0 = (a3 < a0) ? 1 : 0;
0x00008414 addu a0, a0, a2 | a0 += a2;
0x00008418 sw a0, 0x1c(v1) | *((v1 + 7)) = a0;
0x0000841c lw a0, 0x20(a1) | a0 = *((a1 + 8));
0x00008420 lw a2, 0xb0(v1) | a2 = *((v1 + 44));
0x00008424 lw t0, 0x24(a1) | t0 = *((a1 + 9));
0x00008428 lw t1, 0xb4(v1) | t1 = *((v1 + 45));
0x0000842c lw a1, 0xd0(a1) | a1 = *((a1 + 52));
0x00008430 addu a2, a0, a2 | a2 = a0 + a2;
0x00008434 sltu a0, a2, a0 | a0 = (a2 < a0) ? 1 : 0;
0x00008438 addu t0, t0, t1 | t0 += t1;
0x0000843c addu a0, a0, t0 | a0 += t0;
0x00008440 addiu a1, a1, 1 | a1++;
0x00008444 sw a3, 0x18(v1) | *((v1 + 6)) = a3;
0x00008448 sw a2, 0x20(v1) | *((v1 + 8)) = a2;
0x0000844c sw a0, 0x24(v1) | *((v1 + 9)) = a0;
0x00008450 sw a1, 0xd0(v1) | *((v1 + 52)) = a1;
| }
0x00008454 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 < 0) {
0x00008458 bltz v0, 0x83a0 | goto label_0;
| }
0x0000845c lw a2, 0x40(sp) | a2 = *(var_40h_2);
0x00008460 lw a1, 0x44(sp) | a1 = *(var_44h_3);
0x00008464 addiu a0, zero, 1 | a0 = 1;
0x00008468 lw s4, 0x64(sp) | s4 = *(var_64h_4);
0x0000846c jalr t9 | t9 ();
0x00008470 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008474 move a0, s4 | a0 = s4;
0x00008478 lw t9, -0x7f3c(gp) | t9 = sym.__print_line_id;
0x0000847c addiu a1, zero, 0x2d | a1 = 0x2d;
0x00008480 bal 0x57d0 | sym_print_line_id ();
0x00008484 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008488 lw fp, 0x64(sp) | fp = *(var_64h_4);
0x0000848c lw s7, 0x68(sp) | s7 = *(var_68h_3);
0x00008490 lw a0, 0xb0(sp) | a0 = *(var_18h_3);
0x00008494 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00008498 lw a1, 0xb4(sp) | a1 = *(var_b4h_5);
0x0000849c bal 0x104e0 | fcn_000104e0 ();
0x000084a0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000084a4 lw a1, 0x60(fp) | a1 = *(arg_60h);
0x000084a8 lw a0, 0x60(s7) | a0 = *((s7 + 24));
0x000084ac lw a3, 0x64(s7) | a3 = *((s7 + 25));
0x000084b0 lw a2, 0x64(fp) | a2 = *(var_64h_4);
0x000084b4 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x000084b8 subu a2, a2, a3 | __asm ("subu a2, a2, a3");
0x000084bc sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x000084c0 lw t9, -0x7f34(gp) | t9 = *(gp);
0x000084c4 subu a1, a2, a1 | __asm ("subu a1, a2, a1");
0x000084c8 move s4, v0 | s4 = v0;
0x000084cc move s5, v1 | s5 = v1;
0x000084d0 bal 0x104e0 | fcn_000104e0 ();
0x000084d4 lw gp, 0x20(sp) | gp = *(var_20h);
0x000084d8 move a2, s4 | a2 = s4;
0x000084dc move a3, s5 | a3 = s5;
0x000084e0 lw t9, -0x7f30(gp) | t9 = *(gp);
0x000084e4 move a0, v0 | a0 = v0;
0x000084e8 move a1, v1 | a1 = v1;
0x000084ec bal 0xf440 | fcn_0000f440 ();
0x000084f0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000084f4 lw a2, 0x48(sp) | a2 = *(var_48h_3);
0x000084f8 lw a3, 0x4c(sp) | a3 = *(var_4ch_5);
0x000084fc lw t9, -0x7f2c(gp) | t9 = *(gp);
0x00008500 move a0, v0 | a0 = v0;
0x00008504 move a1, v1 | a1 = v1;
0x00008508 bal 0xfea0 | fcn_0000fea0 ();
0x0000850c sw v0, 0x18(sp) | *(var_18h_5) = v0;
0x00008510 sw v1, 0x1c(sp) | *(var_1ch_2) = v1;
0x00008514 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008518 lw a1, 0x50(fp) | a1 = *(var_50h_4);
0x0000851c lw a0, 0x50(s7) | a0 = *((s7 + 20));
0x00008520 lw v0, 0x54(fp) | v0 = *(var_54h_4);
0x00008524 lw v1, 0x54(s7) | v1 = *((s7 + 21));
0x00008528 subu a0, a1, a0 | __asm ("subu a0, a1, a0");
0x0000852c sltu a1, a1, a0 | a1 = (a1 < a0) ? 1 : 0;
0x00008530 lw t9, -0x7f34(gp) | t9 = *(gp);
0x00008534 subu v0, v0, v1 | __asm ("subu v0, v0, v1");
0x00008538 subu a1, v0, a1 | __asm ("subu a1, v0, a1");
0x0000853c bal 0x104e0 | fcn_000104e0 ();
0x00008540 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008544 move a2, s4 | a2 = s4;
0x00008548 move a3, s5 | a3 = s5;
0x0000854c lw t9, -0x7f30(gp) | t9 = *(gp);
0x00008550 move a0, v0 | a0 = v0;
0x00008554 move a1, v1 | a1 = v1;
0x00008558 bal 0xf440 | fcn_0000f440 ();
0x0000855c lw gp, 0x20(sp) | gp = *(var_20h);
0x00008560 lw a2, 0x50(sp) | a2 = *(var_50h_4);
0x00008564 lw a3, 0x54(sp) | a3 = *(var_54h_4);
0x00008568 lw t9, -0x7f2c(gp) | t9 = *(gp);
0x0000856c move a0, v0 | a0 = v0;
0x00008570 move a1, v1 | a1 = v1;
0x00008574 bal 0xfea0 | fcn_0000fea0 ();
0x00008578 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000857c sw v0, 0x10(sp) | *(var_90h_5) = v0;
0x00008580 sw v1, 0x14(sp) | *(var_94h_5) = v1;
0x00008584 lw t9, -0x7f20(gp) | t9 = sym.cprintf_f
0x00008588 addiu a3, zero, 2 | a3 = 2;
0x0000858c addiu a2, zero, 9 | a2 = 9;
0x00008590 addiu a1, zero, 2 | a1 = 2;
0x00008594 addiu a0, zero, -1 | a0 = -1;
0x00008598 bal 0xe518 | sym_cprintf_f ()
0x0000859c lw gp, 0x20(sp) | gp = *(var_20h);
| if (s2 != 0) {
0x000085a0 bnez s2, 0x81fc | goto label_1;
| }
0x000085a4 lw v1, 0x64(sp) | v1 = *(var_64h_4);
0x000085a8 lw s4, -0x7fbc(gp) | s4 = *(gp);
0x000085ac lw t9, -0x7f24(gp) | t9 = sym.cprintf_u64
0x000085b0 lw a0, 0xb0(v1) | a0 = *((v1 + 44));
0x000085b4 lw a1, 0xb4(v1) | a1 = *((v1 + 45));
0x000085b8 lw v0, (s4) | v0 = *(s4);
0x000085bc sw a0, 0x18(sp) | *(var_18h_5) = a0;
0x000085c0 sw a1, 0x1c(sp) | *(var_1ch_2) = a1;
0x000085c4 lw a0, 0xa8(v1) | a0 = *((v1 + 42));
0x000085c8 lw a1, 0xac(v1) | a1 = *((v1 + 43));
0x000085cc andi v0, v0, 0x800 | v0 &= 0x800;
0x000085d0 sw a0, 0x10(sp) | *(var_90h_5) = a0;
0x000085d4 addiu v1, zero, -1 | v1 = -1;
0x000085d8 addiu a0, zero, 2 | a0 = 2;
0x000085dc sw a1, 0x14(sp) | *(var_94h_5) = a1;
| if (v0 != 0) {
0x000085e0 movz a0, v1, v0 | a0 = v1;
| }
0x000085e4 addiu a2, zero, 7 | a2 = 7;
0x000085e8 addiu a1, zero, 2 | a1 = 2;
0x000085ec bal 0xe240 | sym_cprintf_u64 ()
0x000085f0 lw gp, 0x20(sp) | gp = *(var_20h);
0x000085f4 lw s4, (s4) | s4 = *(s4);
0x000085f8 lw v0, -0x7fac(gp) | v0 = *(gp);
0x000085fc lw s5, (v0) | s5 = *(v0);
0x00008600 ext s4, s4, 0xb, 1 | __asm ("ext s4, s4, 0xb, 1");
| if (s5 != 0) {
0x00008604 beqz s5, 0x861c |
0x00008608 lw v0, 0x64(sp) | v0 = *(var_64h_4);
0x0000860c lw t9, -0x7f34(gp) | t9 = *(gp);
0x00008610 lw a0, 0xb0(v0) | a0 = *((v0 + 44));
0x00008614 lw a1, 0xb4(v0) | a1 = *((v0 + 45));
0x00008618 b 0x8300 | goto label_2;
| }
| label_9:
0x0000861c move v0, zero | v0 = 0;
0x00008620 move v1, zero | v1 = 0;
0x00008624 b 0x8368 | goto label_3;
| label_7:
0x00008628 move s4, zero | s4 = 0;
0x0000862c lw v0, 0x5c(sp) | v0 = *(var_5ch_2);
| label_10:
0x00008630 lw a0, 0x6c(sp) | a0 = *(var_6ch_2);
0x00008634 lw v1, (v0) | v1 = *(v0);
0x00008638 move v0, s4 | v0 = s4;
| if (a0 != v1) {
0x0000863c bne a0, v1, 0x872c | goto label_11;
| }
0x00008640 lw ra, 0x94(sp) | ra = *(var_94h_4);
0x00008644 lw fp, 0x90(sp) | fp = *(var_90h_4);
0x00008648 lw s7, 0x8c(sp) | s7 = *(var_8ch_3);
0x0000864c lw s6, 0x88(sp) | s6 = *(var_88h_2);
0x00008650 lw s5, 0x84(sp) | s5 = *(var_84h_2);
0x00008654 lw s4, 0x80(sp) | s4 = *(var_80h_2);
0x00008658 lw s3, 0x7c(sp) | s3 = *(var_7ch_3);
0x0000865c lw s2, 0x78(sp) | s2 = *(var_78h_3);
0x00008660 lw s1, 0x74(sp) | s1 = *(var_74h_2);
0x00008664 lw s0, 0x70(sp) | s0 = *(var_70h_3);
0x00008668 addiu sp, sp, 0x98 |
0x0000866c jr ra | return v0;
| label_6:
0x00008670 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00008674 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x00008678 move a2, v1 | a2 = v1;
| /* str._n__11s */
0x0000867c addiu a1, a1, 0x10fc | a1 += 0x10fc;
0x00008680 addiu a0, zero, 1 | a0 = 1;
0x00008684 jalr t9 | t9 ();
0x00008688 lw gp, 0x20(sp) | gp = *(var_20h);
0x0000868c lw v0, (s4) | v0 = *(s4);
0x00008690 andi v0, v0, 0x100 | v0 &= aav.0x00000100;
0x00008694 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 != 0) {
0x00008698 bnez v0, 0x86f0 | goto label_12;
| }
0x0000869c lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000086a0 addiu a0, zero, 1 | a0 = 1;
| /* str.___UID */
0x000086a4 addiu a1, a1, 0x1110 | a1 += 0x1110;
0x000086a8 jalr t9 | t9 ();
0x000086ac lw gp, 0x20(sp) | gp = *(var_20h);
0x000086b0 lw v0, (s4) | v0 = *(s4);
0x000086b4 andi v0, v0, 0x20 | v0 &= 0x20;
0x000086b8 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| if (v0 == 0) {
0x000086bc beqz v0, 0x8714 | goto label_13;
| }
| do {
0x000086c0 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000086c4 addiu a0, zero, 1 | a0 = 1;
| /* str.______TGID_______TID */
0x000086c8 addiu a1, a1, 0x1118 | a1 += 0x1118;
0x000086cc jalr t9 | t9 ();
0x000086d0 lw gp, 0x20(sp) | gp = *(var_20h);
| label_5:
0x000086d4 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000086d8 lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
| /* str.__minflt_s__majflt_s_____VSZ_____RSS_____MEM__Command_n */
0x000086dc addiu a1, a1, 0x12f4 | a1 += 0x12f4;
0x000086e0 addiu a0, zero, 1 | a0 = 1;
0x000086e4 jalr t9 | t9 ();
0x000086e8 lw gp, 0x20(sp) | gp = *(var_20h);
0x000086ec b 0x81a0 | goto label_4;
| label_12:
0x000086f0 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x000086f4 addiu a0, zero, 1 | a0 = 1;
| /* str._____USER */
0x000086f8 addiu a1, a1, 0x1104 | a1 += 0x1104;
0x000086fc jalr t9 | t9 ();
0x00008700 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008704 lw v0, (s4) | v0 = *(s4);
0x00008708 andi v0, v0, 0x20 | v0 &= 0x20;
0x0000870c lw t9, -0x7d8c(gp) | t9 = sym.imp.__printf_chk
0x00008710 bnez v0, 0x86c0 |
| } while (v0 != 0);
| label_13:
0x00008714 lw a1, -0x7fd4(gp) | a1 = *(gp);
0x00008718 addiu a0, zero, 1 | a0 = 1;
| /* str._______PID */
0x0000871c addiu a1, a1, 0x1130 | a1 += 0x1130;
0x00008720 jalr t9 | t9 ();
0x00008724 lw gp, 0x20(sp) | gp = *(var_20h);
0x00008728 b 0x86d4 | goto label_5;
| label_11:
0x0000872c lw t9, -0x7cf0(gp) | t9 = sym.imp.__stack_chk_fail;
0x00008730 jalr t9 | t9 ();
0x00008734 nop |
| }
[*] Function printf used 69 times pidstat