[*] Binary protection state of chattr.e2fsprogs
Full RELRO Canary found NX disabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of chattr.e2fsprogs
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/chattr.e2fsprogs @ 0x1230 */
| #include <stdint.h>
|
; (fcn) fcn.00001230 () | void fcn_00001230 () {
0x00001230 lui gp, 2 |
0x00001234 addiu gp, gp, -0x7210 |
0x00001238 addu gp, gp, t9 | gp += t9;
0x0000123c lw v0, -0x7f54(gp) | v0 = *((gp - 8149));
0x00001240 addiu sp, sp, -0x20 |
0x00001244 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00001248 lw a0, (v0) | a0 = *(v0);
0x0000124c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001250 lw t9, -0x7fa4(gp) | t9 = sym.imp.__fprintf_chk
0x00001254 addiu a2, a2, 0x1ad4 | a2 += str.Usage:__s___pRVf____aAcCdDeijPsStTuF____v_version__files..._n;
0x00001258 lw a3, 0x2010(v0) | a3 = *((v0 + 2052));
0x0000125c sw gp, 0x10(sp) | *(var_10h) = gp;
0x00001260 sw ra, 0x1c(sp) | *(var_1ch) = ra;
0x00001264 addiu a1, zero, 1 | a1 = 1;
0x00001268 jalr t9 | t9 ();
0x0000126c lw gp, 0x10(sp) | gp = *(var_10h);
0x00001270 lw t9, -0x7f84(gp) | t9 = sym.imp.exit;
0x00001274 addiu a0, zero, 1 | a0 = 1;
0x00001278 jalr t9 | return t9 ();
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/bin/chattr.e2fsprogs @ 0xb50 */
| #include <stdint.h>
|
; (fcn) main () | int32_t main () {
| /* [13] -r-x section size 3536 named .text */
0x00000b50 lui gp, 2 |
0x00000b54 addiu gp, gp, -0x6b30 |
0x00000b58 addu gp, gp, t9 | gp += t9;
0x00000b5c lw v0, -0x7f5c(gp) | v0 = *((gp - 8151));
0x00000b60 addiu sp, sp, -0x60 |
0x00000b64 lw v0, (v0) | v0 = *(v0);
0x00000b68 sw gp, 0x18(sp) | *(var_18h) = gp;
0x00000b6c sw ra, 0x5c(sp) | *(var_5ch) = ra;
0x00000b70 sw fp, 0x58(sp) | *(var_58h) = fp;
0x00000b74 sw s7, 0x54(sp) | *(var_54h) = s7;
0x00000b78 sw s6, 0x50(sp) | *(var_50h) = s6;
0x00000b7c sw s5, 0x4c(sp) | *(var_4ch) = s5;
0x00000b80 sw s4, 0x48(sp) | *(var_48h) = s4;
0x00000b84 sw s3, 0x44(sp) | *(var_44h) = s3;
0x00000b88 sw s2, 0x40(sp) | *(var_40h) = s2;
0x00000b8c sw s1, 0x3c(sp) | *(var_3ch) = s1;
0x00000b90 sw s0, 0x38(sp) | *(var_38h) = s0;
0x00000b94 sw v0, 0x34(sp) | *(var_34h) = v0;
0x00000b98 lw v0, (a1) | v0 = *(a1);
0x00000b9c bnel a0, zero, 0xbb0 |
| while (v1 != 0) {
| label_1:
0x00000ba0 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
| label_0:
0x00000ba4 addiu t9, t9, 0x1230 | t9 += fcn.00001230;
0x00000ba8 bal 0x1230 | fcn_00001230 ();
0x00000bac nop |
0x00000bb0 move s1, a0 | s1 = a0;
0x00000bb4 move s2, a1 | s2 = a1;
| if (v0 == 0) {
0x00000bb8 beqz v0, 0x1058 | goto label_17;
| }
0x00000bbc slti v1, a0, 2 | v1 = (a0 < 2) ? 1 : 0;
0x00000bc0 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00000bc4 sw v0, 0x2010(a0) | *((a0 + 2052)) = v0;
0x00000bc8 bnez v1, 0xba0 |
| }
0x00000bcc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| label_15:
0x00000bd0 lw s4, -0x7fdc(gp) | s4 = *((gp - 8183));
0x00000bd4 sw v0, 0x20(sp) | *(var_20h) = v0;
0x00000bd8 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000bdc lw s6, -0x7fd8(gp) | s6 = *((gp - 8182));
0x00000be0 lw s3, -0x7fd8(gp) | s3 = *((gp - 8182));
0x00000be4 addiu fp, zero, 1 | fp = 1;
0x00000be8 sw v0, 0x28(sp) | *(var_28h) = v0;
0x00000bec addiu s0, zero, 1 | s0 = 1;
0x00000bf0 sll v1, fp, 2 | v1 = fp << 2;
| label_4:
0x00000bf4 lw t9, -0x7f40(gp) | t9 = sym.imp.strcmp;
0x00000bf8 lwx s7, v1(s2) | __asm ("lwx s7, v1(s2)");
0x00000bfc addiu a1, s4, 0x1c2c | a1 = s4 + 0x1c2c;
0x00000c00 move a0, s7 | a0 = s7;
0x00000c04 jalr t9 | t9 ();
0x00000c08 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000c0c bnez v0, 0xc7c | goto label_18;
| }
0x00000c10 addiu fp, fp, 1 | fp++;
0x00000c14 slt v0, fp, s1 | v0 = (fp < s1) ? 1 : 0;
0x00000c18 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
| if (v0 == 0) {
0x00000c1c beqz v0, 0xba4 | goto label_0;
| }
0x00000c20 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| do {
0x00000c24 lw v0, 0x2128(v0) | v0 = *((v0 + 2122));
0x00000c28 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 == 0) {
0x00000c2c beqz v0, 0xf28 | goto label_19;
| }
0x00000c30 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000c34 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00000c38 lw v0, 0x2130(v0) | v0 = *((v0 + 2124));
0x00000c3c lw v1, 0x212c(v1) | v1 = *((v1 + 2123));
0x00000c40 or v0, v0, v1 | v0 |= v1;
0x00000c44 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 == 0) {
0x00000c48 beqz v0, 0xfb4 | goto label_20;
| }
0x00000c4c lw v0, -0x7f54(gp) | v0 = *((gp - 8149));
0x00000c50 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000c54 lw t9, -0x7f74(gp) | t9 = sym.imp.fwrite;
0x00000c58 lw a3, (v0) | a3 = *(v0);
0x00000c5c addiu a0, a0, 0x1c58 | a0 += str._is_incompatible_with___and__n;
0x00000c60 addiu a2, zero, 0x1f | a2 = 0x1f;
| label_12:
0x00000c64 addiu a1, zero, 1 | a1 = 1;
0x00000c68 jalr t9 | t9 ();
0x00000c6c lw gp, 0x18(sp) | gp = *(var_18h);
0x00000c70 lw t9, -0x7f84(gp) | t9 = sym.imp.exit;
0x00000c74 addiu a0, zero, 1 | a0 = 1;
0x00000c78 jalr t9 | t9 ();
| label_18:
0x00000c7c lb v0, (s7) | v0 = *(s7);
0x00000c80 addiu v1, zero, 0x2d | v1 = 0x2d;
0x00000c84 addiu v1, zero, 0x3d | v1 = 0x3d;
| if (v0 == v1) {
0x00000c88 beq v0, v1, 0xcac | goto label_21;
| }
0x00000c8c addiu v1, zero, 0x2b | v1 = 0x2b;
| if (v0 == v1) {
0x00000c90 beq v0, v1, 0xea4 | goto label_22;
| }
0x00000c94 slt v0, fp, s1 | v0 = (fp < s1) ? 1 : 0;
| if (v0 == v1) {
0x00000c98 beq v0, v1, 0xe20 | goto label_23;
| }
0x00000c9c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000ca0 bnez v0, 0xc24 |
| } while (v0 != 0);
0x00000ca4 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000ca8 b 0xba4 | goto label_0;
| label_21:
0x00000cac lb v0, 1(s7) | v0 = *((s7 + 1));
0x00000cb0 addiu s5, s7, 1 | s5 = s7 + 1;
| if (v0 == 0) {
0x00000cb4 beqz v0, 0xd64 | goto label_7;
| }
0x00000cb8 lw v1, -0x7fdc(gp) | v1 = *((gp - 8183));
0x00000cbc sw v1, 0x2c(sp) | *(var_2ch) = v1;
0x00000cc0 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00000cc4 sw v1, 0x24(sp) | *(var_24h) = v1;
0x00000cc8 b 0xd40 | goto label_3;
| label_2:
0x00000ccc addiu a0, zero, 0x66 | a0 = 0x66;
| if (v0 == a0) {
0x00000cd0 beq v0, a0, 0xdcc | goto label_24;
| }
0x00000cd4 addiu a0, zero, 0x70 | a0 = 0x70;
| if (v0 == a0) {
0x00000cd8 beq v0, a0, 0xe14 | goto label_25;
| }
0x00000cdc addiu a0, zero, 0x76 | a0 = 0x76;
| if (v0 == a0) {
0x00000ce0 beq v0, a0, 0xd7c | goto label_26;
| }
0x00000ce4 addiu a0, zero, 0x41 | a0 = 0x41;
| if (v0 != a0) {
0x00000ce8 bne v0, a0, 0xdd8 | goto label_27;
| }
0x00000cec addiu fp, fp, 1 | fp++;
0x00000cf0 slt v0, fp, s1 | v0 = (fp < s1) ? 1 : 0;
0x00000cf4 sll a3, fp, 2 | a3 = fp << 2;
| if (v0 == 0) {
0x00000cf8 beqz v0, 0xba0 | goto label_1;
| }
0x00000cfc addu s7, s2, a3 | s7 = s2 + a3;
0x00000d00 lw t9, -0x7fac(gp) | t9 = sym.imp.strtol;
0x00000d04 lw a0, (s7) | a0 = *(s7);
0x00000d08 move a2, zero | a2 = 0;
0x00000d0c addiu a1, sp, 0x30 | a1 = sp + 0x30;
0x00000d10 jalr t9 | t9 ();
0x00000d14 sw v0, 0x2120(s6) | *((s6 + 2120)) = v0;
0x00000d18 lw v0, 0x30(sp) | v0 = *(var_30h);
0x00000d1c lb v0, (v0) | v0 = *(v0);
0x00000d20 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 != 0) {
0x00000d24 bnez v0, 0x1074 | goto label_28;
| }
0x00000d28 lw v0, 0x20(sp) | v0 = *(var_20h);
0x00000d2c sw s0, 0x2124(v0) | *((v0 + 2121)) = s0;
| label_5:
0x00000d30 addiu s5, s5, 1 | s5++;
0x00000d34 lb v0, (s5) | v0 = *(s5);
| if (v0 == 0) {
0x00000d38 beql v0, zero, 0xd68 | goto label_29;
| }
0x00000d3c addiu fp, fp, 1 | fp++;
| label_3:
0x00000d40 addiu a0, zero, 0x52 | a0 = 0x52;
0x00000d44 addiu a0, zero, 0x56 | a0 = 0x56;
| if (v0 == a0) {
0x00000d48 bnel v0, a0, 0xccc | goto label_2;
| }
0x00000d4c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000d50 addiu s5, s5, 1 | s5++;
0x00000d54 sw s0, 0x2114(v0) | *((v0 + 2117)) = s0;
0x00000d58 lb v0, (s5) | v0 = *(s5);
| if (v0 != 0) {
0x00000d5c bnez v0, 0xd40 | goto label_3;
| }
0x00000d60 nop |
| label_7:
0x00000d64 addiu fp, fp, 1 | fp++;
| label_29:
0x00000d68 slt v0, fp, s1 | v0 = (fp < s1) ? 1 : 0;
0x00000d6c sll v1, fp, 2 | v1 = fp << 2;
| if (v0 != 0) {
0x00000d70 bnez v0, 0xbf4 | goto label_4;
| }
0x00000d74 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000d78 b 0xba4 | goto label_0;
| label_26:
0x00000d7c addiu fp, fp, 1 | fp++;
0x00000d80 slt v0, fp, s1 | v0 = (fp < s1) ? 1 : 0;
0x00000d84 sll a3, fp, 2 | a3 = fp << 2;
| if (v0 == 0) {
0x00000d88 beqz v0, 0xba0 | goto label_1;
| }
0x00000d8c addu s7, s2, a3 | s7 = s2 + a3;
0x00000d90 lw t9, -0x7fac(gp) | t9 = sym.imp.strtol;
0x00000d94 lw a0, (s7) | a0 = *(s7);
0x00000d98 move a2, zero | a2 = 0;
0x00000d9c addiu a1, sp, 0x30 | a1 = sp + 0x30;
0x00000da0 jalr t9 | t9 ();
0x00000da4 lw v1, 0x24(sp) | v1 = *(var_24h);
0x00000da8 lw gp, 0x18(sp) | gp = *(var_18h);
0x00000dac sw v0, 0x2118(v1) | *((v1 + 2118)) = v0;
0x00000db0 lw v0, 0x30(sp) | v0 = *(var_30h);
0x00000db4 lb v0, (v0) | v0 = *(v0);
0x00000db8 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 != 0) {
0x00000dbc bnez v0, 0x109c | goto label_30;
| }
0x00000dc0 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000dc4 sw s0, 0x211c(v0) | *((v0 + 2119)) = s0;
0x00000dc8 b 0xd30 | goto label_5;
| label_24:
0x00000dcc lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000dd0 sw s0, 0x2110(v0) | *((v0 + 2116)) = s0;
0x00000dd4 b 0xd30 | goto label_5;
| label_27:
0x00000dd8 lw v1, 0x2c(sp) | v1 = *(var_2ch);
| if (v0 == a0) {
0x00000ddc beq v0, a0, 0xfac | goto label_31;
| }
0x00000de0 addiu a1, zero, 8 | a1 = 8;
0x00000de4 addiu a0, v1, 0x1cf0 | a0 = v1 + 0x1cf0;
| label_6:
0x00000de8 addiu a0, a0, 8 | a0 += 8;
| if (a1 == 0) {
0x00000dec beqz a1, 0xba0 | goto label_1;
| }
0x00000df0 lb a2, 4(a0) | a2 = *((a0 + 4));
0x00000df4 lw a1, 8(a0) | a1 = *((a0 + 2));
| if (a2 == v0) {
0x00000df8 bnel a2, v0, 0xde8 | goto label_6;
| }
| label_10:
0x00000dfc lw v0, 0x2104(s3) | v0 = *((s3 + 2113));
0x00000e00 lw v1, 0x28(sp) | v1 = *(var_28h);
0x00000e04 or a1, v0, a1 | a1 = v0 | a1;
0x00000e08 sw a1, 0x2104(s3) | *((s3 + 2113)) = a1;
0x00000e0c sw s0, 0x212c(v1) | *((v1 + 2123)) = s0;
0x00000e10 b 0xd30 | goto label_5;
| label_25:
0x00000e14 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e18 sw s0, 0x210c(v0) | *((v0 + 2115)) = s0;
0x00000e1c b 0xd30 | goto label_5;
| label_23:
0x00000e20 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000e24 lb a0, 1(s7) | a0 = *((s7 + 1));
0x00000e28 addiu a1, zero, 1 | a1 = 1;
0x00000e2c addiu v1, s7, 1 | v1 = s7 + 1;
0x00000e30 sw a1, 0x2130(v0) | *((v0 + 2124)) = a1;
| if (a0 == 0) {
0x00000e34 beqz a0, 0xd64 | goto label_7;
| }
0x00000e38 lw t4, -0x7fd8(gp) | t4 = *((gp - 8182));
0x00000e3c lw t3, -0x7fdc(gp) | t3 = *((gp - 8183));
0x00000e40 move t1, zero | t1 = 0;
0x00000e44 lw a2, 0x2108(t4) | a2 = *((t4 + 2114));
0x00000e48 addiu t2, zero, 0x41 | t2 = 0x41;
| label_8:
0x00000e4c addiu a1, zero, 8 | a1 = 8;
| if (a0 == t2) {
0x00000e50 beq a0, t2, 0xe84 | goto label_32;
| }
0x00000e54 addiu v0, t3, 0x1cf0 | v0 = t3 + 0x1cf0;
0x00000e58 b 0xe6c |
| while (a1 != 0) {
0x00000e5c lb a3, 4(v0) | a3 = *((v0 + 4));
| if (a3 == a0) {
0x00000e60 beql a3, a0, 0xe8c | goto label_33;
| }
0x00000e64 addiu v1, v1, 1 | v1++;
0x00000e68 lw a1, 8(v0) | a1 = *((v0 + 2));
0x00000e6c addiu v0, v0, 8 | v0 += 8;
0x00000e70 bnez a1, 0xe5c |
| }
0x00000e74 sw a2, 0x2108(t4) | *((t4 + 2114)) = a2;
| if (t1 == 0) {
0x00000e78 bnel t1, zero, 0xba0 | goto label_1;
| }
0x00000e7c lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000e80 b 0xba4 | goto label_0;
| label_32:
0x00000e84 addiu a1, zero, 0x80 | a1 = 0x80;
0x00000e88 addiu v1, v1, 1 | v1++;
| label_33:
0x00000e8c lb a0, (v1) | a0 = *(v1);
0x00000e90 or a2, a2, a1 | a2 |= a1;
0x00000e94 addiu t1, zero, 1 | t1 = 1;
| if (a0 != 0) {
0x00000e98 bnez a0, 0xe4c | goto label_8;
| }
0x00000e9c sw a2, 0x2108(t4) | *((t4 + 2114)) = a2;
0x00000ea0 b 0xd64 | goto label_7;
| label_22:
0x00000ea4 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00000ea8 lb a0, 1(s7) | a0 = *((s7 + 1));
0x00000eac addiu a1, zero, 1 | a1 = 1;
0x00000eb0 addiu v1, s7, 1 | v1 = s7 + 1;
0x00000eb4 sw a1, 0x2128(v0) | *((v0 + 2122)) = a1;
| if (a0 == 0) {
0x00000eb8 beqz a0, 0xd64 | goto label_7;
| }
0x00000ebc lw t4, -0x7fd8(gp) | t4 = *((gp - 8182));
0x00000ec0 lw t3, -0x7fdc(gp) | t3 = *((gp - 8183));
0x00000ec4 move t1, zero | t1 = 0;
0x00000ec8 lw a2, 0x2100(t4) | a2 = *((t4 + 2112));
0x00000ecc addiu t2, zero, 0x41 | t2 = 0x41;
| label_9:
0x00000ed0 addiu a1, zero, 8 | a1 = 8;
| if (a0 == t2) {
0x00000ed4 beq a0, t2, 0xf08 | goto label_34;
| }
0x00000ed8 addiu v0, t3, 0x1cf0 | v0 = t3 + 0x1cf0;
0x00000edc b 0xef0 |
| while (a1 != 0) {
0x00000ee0 lb a3, 4(v0) | a3 = *((v0 + 4));
| if (a3 == a0) {
0x00000ee4 beql a3, a0, 0xf10 | goto label_35;
| }
0x00000ee8 addiu v1, v1, 1 | v1++;
0x00000eec lw a1, 8(v0) | a1 = *((v0 + 2));
0x00000ef0 addiu v0, v0, 8 | v0 += 8;
0x00000ef4 bnez a1, 0xee0 |
| }
0x00000ef8 sw a2, 0x2100(t4) | *((t4 + 2112)) = a2;
| if (t1 == 0) {
0x00000efc bnel t1, zero, 0xba0 | goto label_1;
| }
0x00000f00 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00000f04 b 0xba4 | goto label_0;
| label_34:
0x00000f08 addiu a1, zero, 0x80 | a1 = 0x80;
0x00000f0c addiu v1, v1, 1 | v1++;
| label_35:
0x00000f10 lb a0, (v1) | a0 = *(v1);
0x00000f14 or a2, a2, a1 | a2 |= a1;
0x00000f18 addiu t1, zero, 1 | t1 = 1;
| if (a0 != 0) {
0x00000f1c bnez a0, 0xed0 | goto label_9;
| }
0x00000f20 sw a2, 0x2100(t4) | *((t4 + 2112)) = a2;
0x00000f24 b 0xd64 | goto label_7;
| label_19:
0x00000f28 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00000f2c lw v0, 0x2104(v0) | v0 = *((v0 + 2113));
0x00000f30 lw v1, 0x2108(v1) | v1 = *((v1 + 2114));
0x00000f34 and v0, v0, v1 | v0 &= v1;
0x00000f38 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 != 0) {
0x00000f3c bnez v0, 0xfcc | goto label_36;
| }
0x00000f40 lw v0, 0x2130(v0) | v0 = *((v0 + 2124));
0x00000f44 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
| if (v0 == 0) {
0x00000f48 beqz v0, 0x101c | goto label_37;
| }
| label_14:
0x00000f4c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| label_11:
0x00000f50 lw v0, 0x2110(v0) | v0 = *((v0 + 2116));
0x00000f54 lw v0, -0x7f54(gp) | v0 = *((gp - 8149));
| if (v0 != 0) {
0x00000f58 bnez v0, 0xfe8 | goto label_38;
| }
| label_13:
0x00000f5c slt v0, fp, s1 | v0 = (fp < s1) ? 1 : 0;
0x00000f60 sll t0, fp, 2 | t0 = fp << 2;
| if (v0 == 0) {
0x00000f64 beqz v0, 0x106c | goto label_39;
| }
0x00000f68 lw s4, -0x7fdc(gp) | s4 = *((gp - 8183));
0x00000f6c sll s1, s1, 2 | s1 <<= 2;
0x00000f70 addu s0, s2, t0 | s0 = s2 + t0;
0x00000f74 move s3, zero | s3 = 0;
0x00000f78 addu s2, s2, s1 | s2 += s1;
0x00000f7c addiu s4, s4, 0x127c | s4 += fcn.0000127c;
0x00000f80 addiu s1, zero, 1 | s1 = 1;
| do {
0x00000f84 move t9, s4 | t9 = s4;
0x00000f88 lw a0, (s0) | a0 = *(s0);
0x00000f8c bal 0x127c | fcn_0000127c ();
0x00000f90 addiu s0, s0, 4 | s0 += 4;
0x00000f94 lw gp, 0x18(sp) | gp = *(var_18h);
| if (v0 == 0) {
0x00000f98 movn s3, s1, v0 | s3 = s1;
| }
0x00000f9c bne s2, s0, 0xf84 |
| } while (s2 != s0);
| label_16:
0x00000fa0 lw t9, -0x7f84(gp) | t9 = sym.imp.exit;
0x00000fa4 move a0, s3 | a0 = s3;
0x00000fa8 jalr t9 | t9 ();
| label_31:
0x00000fac addiu a1, zero, 0x80 | a1 = 0x80;
0x00000fb0 b 0xdfc | goto label_10;
| label_20:
0x00000fb4 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00000fb8 lw v0, 0x2108(v0) | v0 = *((v0 + 2114));
0x00000fbc lw v1, 0x2104(v1) | v1 = *((v1 + 2113));
0x00000fc0 and v0, v0, v1 | v0 &= v1;
0x00000fc4 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 == 0) {
0x00000fc8 beqz v0, 0xf50 | goto label_11;
| }
| label_36:
0x00000fcc lw v0, -0x7f54(gp) | v0 = *((gp - 8149));
0x00000fd0 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00000fd4 lw t9, -0x7f74(gp) | t9 = sym.imp.fwrite;
0x00000fd8 lw a3, (v0) | a3 = *(v0);
0x00000fdc addiu a0, a0, 0x1c78 | a0 += str.Cant_both_set_and_unset_same_flag._n;
0x00000fe0 addiu a2, zero, 0x24 | a2 = 0x24;
0x00000fe4 b 0xc64 | goto label_12;
| label_38:
0x00000fe8 lw a3, -0x7fdc(gp) | a3 = *((gp - 8183));
0x00000fec lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x00000ff0 lw a0, (v0) | a0 = *(v0);
0x00000ff4 lw v0, -0x7fdc(gp) | v0 = *((gp - 8183));
0x00000ff8 lw t9, -0x7fa4(gp) | t9 = sym.imp.__fprintf_chk
0x00000ffc addiu v0, v0, 0x1cd4 | v0 += str.14_Jul_2019;
0x00001000 sw v0, 0x10(sp) | *(var_10h) = v0;
0x00001004 addiu a3, a3, 0x1cbc | a3 += str.1.45.3;
0x00001008 addiu a2, a2, 0x1cc4 | a2 += str.chattr__s___s__n;
0x0000100c addiu a1, zero, 1 | a1 = 1;
0x00001010 jalr t9 | t9 ();
0x00001014 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001018 b 0xf5c | goto label_13;
| label_37:
0x0000101c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001020 lw a0, 0x2124(v1) | a0 = *((v1 + 2121));
0x00001024 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00001028 lw v0, 0x212c(v0) | v0 = *((v0 + 2123));
0x0000102c lw v1, 0x211c(v1) | v1 = *((v1 + 2119));
0x00001030 or v0, v0, a0 | v0 |= a0;
0x00001034 or v0, v0, v1 | v0 |= v1;
0x00001038 lw v0, -0x7f54(gp) | v0 = *((gp - 8149));
| if (v0 != 0) {
0x0000103c bnez v0, 0xf4c | goto label_14;
| }
0x00001040 lw a0, -0x7fdc(gp) | a0 = *((gp - 8183));
0x00001044 lw t9, -0x7f74(gp) | t9 = sym.imp.fwrite;
0x00001048 lw a3, (v0) | a3 = *(v0);
0x0000104c addiu a0, a0, 0x1ca0 | a0 += str.Must_use__v______or__n;
0x00001050 addiu a2, zero, 0x19 | a2 = 0x19;
0x00001054 b 0xc64 | goto label_12;
| label_17:
0x00001058 slti v0, a0, 2 | v0 = (a0 < 2) ? 1 : 0;
0x0000105c lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
| if (v0 == 0) {
0x00001060 beqz v0, 0xbd0 | goto label_15;
| }
0x00001064 lw t9, -0x7fdc(gp) | t9 = *((gp - 8183));
0x00001068 b 0xba4 | goto label_0;
| label_39:
0x0000106c move s3, zero | s3 = 0;
0x00001070 b 0xfa0 | goto label_16;
| label_28:
0x00001074 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x00001078 lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x0000107c lw t9, -0x7f6c(gp) | t9 = sym.imp.com_err;
0x00001080 lw a3, (s7) | a3 = *(s7);
0x00001084 lw a0, 0x2010(v0) | a0 = *((v0 + 2052));
0x00001088 addiu a2, a2, 0x1c44 | a2 += str.bad_version____s_n;
| do {
0x0000108c move a1, zero | a1 = 0;
0x00001090 jalr t9 | t9 ();
0x00001094 lw gp, 0x18(sp) | gp = *(var_18h);
0x00001098 b 0xba0 | goto label_1;
| label_30:
0x0000109c lw a2, -0x7fdc(gp) | a2 = *((gp - 8183));
0x000010a0 lw t9, -0x7f6c(gp) | t9 = sym.imp.com_err;
0x000010a4 lw a3, (s7) | a3 = *(s7);
0x000010a8 lw a0, 0x2010(v0) | a0 = *((v0 + 2052));
0x000010ac addiu a2, a2, 0x1c30 | a2 += str.bad_project____s_n;
0x000010b0 b 0x108c |
| } while (1);
| }
[*] Function fprintf used 3 times chattr.e2fsprogs