[*] Binary protection state of chattr.e2fsprogs

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


[*] Function printf 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 @ 0x127c */
                                         | #include <stdint.h>
                                         |  
    ; (fcn) fcn.0000127c ()              | void fcn_0000127c () {
                                         | label_6:
    0x0000127c lui gp, 2                 |     
    0x00001280 addiu gp, gp, -0x725c     |     
    0x00001284 addu gp, gp, t9           |     gp += t9;
    0x00001288 addiu sp, sp, -0xe0       |     
    0x0000128c lw t9, -0x7fb0(gp)        |     t9 = sym.imp.__lxstat64;
    0x00001290 sw s2, 0xd4(sp)           |     *(var_d4h) = s2;
    0x00001294 lw s2, -0x7f5c(gp)        |     s2 = *((gp - 8151));
    0x00001298 sw gp, 0x10(sp)           |     *(var_10h_2) = gp;
    0x0000129c sw s3, 0xd8(sp)           |     *(var_d8h) = s3;
    0x000012a0 lw v0, (s2)               |     v0 = *(s2);
    0x000012a4 sw s1, 0xd0(sp)           |     *(var_d0h) = s1;
    0x000012a8 move a1, a0               |     a1 = a0;
    0x000012ac sw ra, 0xdc(sp)           |     *(var_dch) = ra;
    0x000012b0 sw s0, 0xcc(sp)           |     *(var_cch) = s0;
    0x000012b4 move s1, a0               |     s1 = a0;
    0x000012b8 addiu a2, sp, 0x20        |     a2 = sp + 0x20;
    0x000012bc addiu a0, zero, 3         |     a0 = 3;
    0x000012c0 sw v0, 0xc4(sp)           |     *(var_c4h) = v0;
    0x000012c4 addiu s3, zero, -1        |     s3 = -1;
    0x000012c8 jalr t9                   |     t9 ();
    0x000012cc lw gp, 0x10(sp)           |     gp = *(var_10h_2);
                                         |     if (v0 == s3) {
    0x000012d0 beq v0, s3, 0x159c        |         goto label_7;
                                         |     }
    0x000012d4 lw t9, -0x7f60(gp)        |     t9 = sym.imp.fgetflags;
    0x000012d8 addiu a1, sp, 0x1c        |     a1 = sp + 0x1c;
    0x000012dc move a0, s1               |     a0 = s1;
    0x000012e0 jalr t9                   |     t9 ();
    0x000012e4 move s0, v0               |     s0 = v0;
    0x000012e8 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
                                         |     if (v0 == s3) {
    0x000012ec beq v0, s3, 0x15ec        |         goto label_8;
                                         |     }
    0x000012f0 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000012f4 lw s3, -0x7fd8(gp)        |     s3 = *((gp - 8182));
    0x000012f8 lw v0, 0x2128(v0)         |     v0 = *((v0 + 2122));
    0x000012fc lw v1, 0x2110(s3)         |     v1 = *((s3 + 2116));
                                         |     if (v0 != 0) {
    0x00001300 bnez v0, 0x144c           |         goto label_9;
                                         |     }
    0x00001304 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001308 lw v0, 0x212c(v0)         |     v0 = *((v0 + 2123));
    0x0000130c lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
                                         |     if (v0 != 0) {
    0x00001310 beqz v0, 0x1330           |         
    0x00001314 lw v0, -0x7fd8(gp)        |         v0 = *((gp - 8182));
    0x00001318 lw v0, 0x2104(v0)         |         v0 = *((v0 + 2113));
    0x0000131c nor a0, zero, v0          |         __asm ("nor a0, zero, v0");
    0x00001320 lw v0, 0x1c(sp)           |         v0 = *(var_1ch_2);
    0x00001324 and v0, v0, a0            |         v0 &= a0;
    0x00001328 sw v0, 0x1c(sp)           |         *(var_1ch_2) = v0;
    0x0000132c lw v0, -0x7fd8(gp)        |         v0 = *((gp - 8182));
                                         |     }
    0x00001330 lw v0, 0x2130(v0)         |     v0 = *((v0 + 2124));
    0x00001334 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
                                         |     if (v0 != 0) {
    0x00001338 beqz v0, 0x134c           |         
    0x0000133c lw a0, 0x2108(v0)         |         a0 = *((v0 + 2114));
    0x00001340 lw v0, 0x1c(sp)           |         v0 = *(var_1ch_2);
    0x00001344 or v0, v0, a0             |         v0 |= a0;
    0x00001348 sw v0, 0x1c(sp)           |         *(var_1ch_2) = v0;
                                         |     }
    0x0000134c lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
                                         |     if (v1 == 0) {
    0x00001350 bnel v1, zero, 0x1504     |         goto label_10;
                                         |     }
                                         | label_3:
    0x00001354 lw v0, 0x38(sp)           |     v0 = *(var_38h);
    0x00001358 addiu v1, zero, 0x4000    |     v1 = 0x4000;
    0x0000135c andi v0, v0, 0xf000       |     v0 &= 0xf000;
    0x00001360 lw a1, 0x1c(sp)           |     a1 = *(var_1ch_2);
                                         |     if (v0 != v1) {
    0x00001364 beq v0, v1, 0x1378        |         
    0x00001368 lui v0, 0xfffe            |         v0 = 0xfffeffff;
    0x0000136c ori v0, v0, 0xffff        |         
    0x00001370 and a1, a1, v0            |         a1 &= v0;
    0x00001374 sw a1, 0x1c(sp)           |         *(var_1ch_2) = a1;
                                         |     }
    0x00001378 lw t9, -0x7f68(gp)        |     t9 = sym.imp.fsetflags;
    0x0000137c move a0, s1               |     a0 = s1;
    0x00001380 jalr t9                   |     t9 ();
    0x00001384 move s0, v0               |     s0 = v0;
    0x00001388 addiu v0, zero, -1        |     v0 = -1;
    0x0000138c lw gp, 0x10(sp)           |     gp = *(var_10h_2);
                                         |     if (s0 == v0) {
    0x00001390 beq s0, v0, 0x1634        |         goto label_11;
                                         |     }
                                         |     do {
                                         | label_0:
    0x00001394 lw v0, -0x7fd8(gp)        |         v0 = *((gp - 8182));
    0x00001398 lw v0, 0x2124(v0)         |         v0 = *((v0 + 2121));
    0x0000139c lw v0, -0x7fd8(gp)        |         v0 = *((gp - 8182));
                                         |         if (v0 != 0) {
    0x000013a0 beqz v0, 0x13d4           |             
    0x000013a4 lw s0, -0x7fd8(gp)        |             s0 = *((gp - 8182));
    0x000013a8 lw v0, 0x2110(s3)         |             v0 = *((s3 + 2116));
    0x000013ac lw a1, 0x2120(s0)         |             a1 = *((s0 + 2120));
                                         |             if (v0 != 0) {
    0x000013b0 bnez v0, 0x154c           |                 goto label_12;
                                         |             }
                                         | label_4:
    0x000013b4 lw t9, -0x7f50(gp)        |             t9 = sym.imp.fsetversion;
    0x000013b8 move a0, s1               |             a0 = s1;
    0x000013bc jalr t9                   |             t9 ();
    0x000013c0 move s0, v0               |             s0 = v0;
    0x000013c4 addiu v0, zero, -1        |             v0 = -1;
    0x000013c8 lw gp, 0x10(sp)           |             gp = *(var_10h_2);
                                         |             if (s0 == v0) {
    0x000013cc beq s0, v0, 0x16c4        |                 goto label_13;
                                         |             }
    0x000013d0 lw v0, -0x7fd8(gp)        |             v0 = *((gp - 8182));
                                         |         }
    0x000013d4 lw v0, 0x211c(v0)         |         v0 = *((v0 + 2119));
    0x000013d8 lw v0, 0x38(sp)           |         v0 = *(var_38h);
                                         |         if (v0 != 0) {
    0x000013dc beqz v0, 0x1410           |             
    0x000013e0 lw s0, -0x7fd8(gp)        |             s0 = *((gp - 8182));
    0x000013e4 lw v0, 0x2110(s3)         |             v0 = *((s3 + 2116));
    0x000013e8 lw a1, 0x2118(s0)         |             a1 = *((s0 + 2118));
                                         |             if (v0 != 0) {
    0x000013ec bnez v0, 0x1574           |                 goto label_14;
                                         |             }
                                         | label_5:
    0x000013f0 lw t9, -0x7f4c(gp)        |             t9 = sym.imp.fsetproject;
    0x000013f4 move a0, s1               |             a0 = s1;
    0x000013f8 jalr t9                   |             t9 ();
    0x000013fc move s0, v0               |             s0 = v0;
    0x00001400 addiu v0, zero, -1        |             v0 = -1;
    0x00001404 lw gp, 0x10(sp)           |             gp = *(var_10h_2);
                                         |             if (s0 == v0) {
    0x00001408 beq s0, v0, 0x167c        |                 goto label_15;
                                         |             }
    0x0000140c lw v0, 0x38(sp)           |             v0 = *(var_38h);
                                         |         }
    0x00001410 addiu v1, zero, 0x4000    |         v1 = 0x4000;
    0x00001414 andi v0, v0, 0xf000       |         v0 &= 0xf000;
    0x00001418 move s0, zero             |         s0 = 0;
                                         |         if (v0 == v1) {
    0x0000141c beq v0, v1, 0x1488        |             goto label_16;
                                         |         }
                                         | label_1:
    0x00001420 lw a0, 0xc4(sp)           |         a0 = *(var_c4h);
    0x00001424 lw v1, (s2)               |         v1 = *(s2);
    0x00001428 move v0, s0               |         v0 = s0;
                                         |         if (a0 != v1) {
    0x0000142c bne a0, v1, 0x170c        |             goto label_17;
                                         |         }
    0x00001430 lw ra, 0xdc(sp)           |         ra = *(var_dch);
    0x00001434 lw s3, 0xd8(sp)           |         s3 = *(var_d8h);
    0x00001438 lw s2, 0xd4(sp)           |         s2 = *(var_d4h);
    0x0000143c lw s1, 0xd0(sp)           |         s1 = *(var_d0h);
    0x00001440 lw s0, 0xcc(sp)           |         s0 = *(var_cch);
    0x00001444 addiu sp, sp, 0xe0        |         
    0x00001448 jr ra                     |         return v0;
                                         | label_9:
    0x0000144c lw a1, -0x7fdc(gp)        |         a1 = *((gp - 8183));
                                         |         if (v1 != 0) {
    0x00001450 bnez v1, 0x14b8           |             goto label_18;
                                         |         }
    0x00001454 lw s0, -0x7fd8(gp)        |         s0 = *((gp - 8182));
                                         | label_2:
    0x00001458 lw t9, -0x7f68(gp)        |         t9 = sym.imp.fsetflags;
    0x0000145c lw a1, 0x2100(s0)         |         a1 = *((s0 + 2112));
    0x00001460 move a0, s1               |         a0 = s1;
    0x00001464 jalr t9                   |         t9 ();
    0x00001468 addiu v1, zero, -1        |         v1 = -1;
    0x0000146c lw gp, 0x10(sp)           |         gp = *(var_10h_2);
    0x00001470 bne v0, v1, 0x1394        |         
                                         |     } while (v0 != v1);
    0x00001474 lw t9, -0x7f70(gp)        |     t9 = sym.imp.perror;
    0x00001478 move a0, s1               |     a0 = s1;
    0x0000147c jalr t9                   |     t9 ();
    0x00001480 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001484 b 0x1394                  |     goto label_0;
                                         | label_16:
    0x00001488 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x0000148c lw s0, 0x2114(v0)         |     s0 = *((v0 + 2117));
    0x00001490 lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
                                         |     if (s0 == 0) {
    0x00001494 beqz s0, 0x1420           |         goto label_1;
                                         |     }
    0x00001498 lw t9, -0x7fa0(gp)        |     t9 = sym.imp.iterate_on_dir;
    0x0000149c move a2, zero             |     a2 = 0;
    0x000014a0 addiu a1, a1, 0x1718      |     a1 += 0x1718;
    0x000014a4 move a0, s1               |     a0 = s1;
    0x000014a8 jalr t9                   |     t9 ();
    0x000014ac move s0, v0               |     s0 = v0;
    0x000014b0 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000014b4 b 0x1420                  |     goto label_1;
                                         | label_18:
    0x000014b8 lw t9, -0x7f9c(gp)        |     t9 = sym.imp.__printf_chk
    0x000014bc move a2, s1               |     a2 = s1;
    0x000014c0 addiu a1, a1, 0x1b48      |     a1 += str.Flags_of__s_set_as_;
    0x000014c4 addiu a0, zero, 1         |     a0 = 1;
    0x000014c8 jalr t9                   |     t9 ();
    0x000014cc lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000014d0 move a2, zero             |     a2 = 0;
    0x000014d4 lw v0, -0x7f98(gp)        |     v0 = *((gp - 8166));
    0x000014d8 lw s0, -0x7fd8(gp)        |     s0 = *((gp - 8182));
    0x000014dc lw t9, -0x7f80(gp)        |     t9 = sym.imp.print_flags;
    0x000014e0 lw a0, (v0)               |     a0 = *(v0);
    0x000014e4 lw a1, 0x2100(s0)         |     a1 = *((s0 + 2112));
    0x000014e8 jalr t9                   |     t9 ();
    0x000014ec lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000014f0 lw t9, -0x7f90(gp)        |     t9 = sym.imp.putchar;
    0x000014f4 addiu a0, zero, 0xa       |     a0 = 0xa;
    0x000014f8 jalr t9                   |     t9 ();
    0x000014fc lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001500 b 0x1458                  |     goto label_2;
                                         | label_10:
    0x00001504 lw t9, -0x7f9c(gp)        |     t9 = sym.imp.__printf_chk
    0x00001508 move a2, s1               |     a2 = s1;
    0x0000150c addiu a1, a1, 0x1b48      |     a1 += str.Flags_of__s_set_as_;
    0x00001510 addiu a0, zero, 1         |     a0 = 1;
    0x00001514 jalr t9                   |     t9 ();
    0x00001518 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x0000151c lw a1, 0x1c(sp)           |     a1 = *(var_1ch_2);
    0x00001520 move a2, zero             |     a2 = 0;
    0x00001524 lw v0, -0x7f98(gp)        |     v0 = *((gp - 8166));
    0x00001528 lw t9, -0x7f80(gp)        |     t9 = sym.imp.print_flags;
    0x0000152c lw a0, (v0)               |     a0 = *(v0);
    0x00001530 jalr t9                   |     t9 ();
    0x00001534 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001538 lw t9, -0x7f90(gp)        |     t9 = sym.imp.putchar;
    0x0000153c addiu a0, zero, 0xa       |     a0 = 0xa;
    0x00001540 jalr t9                   |     t9 ();
    0x00001544 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001548 b 0x1354                  |     goto label_3;
                                         | label_12:
    0x0000154c move a3, a1               |     a3 = a1;
    0x00001550 lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
    0x00001554 lw t9, -0x7f9c(gp)        |     t9 = sym.imp.__printf_chk
    0x00001558 addiu a1, a1, 0x1b78      |     a1 += str.Version_of__s_set_as__lu_n;
    0x0000155c move a2, s1               |     a2 = s1;
    0x00001560 addiu a0, zero, 1         |     a0 = 1;
    0x00001564 jalr t9                   |     t9 ();
    0x00001568 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x0000156c lw a1, 0x2120(s0)         |     a1 = *((s0 + 2120));
    0x00001570 b 0x13b4                  |     goto label_4;
                                         | label_14:
    0x00001574 move a3, a1               |     a3 = a1;
    0x00001578 lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
    0x0000157c lw t9, -0x7f9c(gp)        |     t9 = sym.imp.__printf_chk
    0x00001580 addiu a1, a1, 0x1bb0      |     a1 += str.Project_of__s_set_as__lu_n;
    0x00001584 move a2, s1               |     a2 = s1;
    0x00001588 addiu a0, zero, 1         |     a0 = 1;
    0x0000158c jalr t9                   |     t9 ();
    0x00001590 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001594 lw a1, 0x2118(s0)         |     a1 = *((s0 + 2118));
    0x00001598 b 0x13f0                  |     goto label_5;
                                         | label_7:
    0x0000159c move s0, v0               |     s0 = v0;
    0x000015a0 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000015a4 lw v0, 0x210c(v0)         |     v0 = *((v0 + 2115));
                                         |     if (v0 != 0) {
    0x000015a8 beql v0, zero, 0x15b8     |         
    0x000015ac lw v0, -0x7fd8(gp)        |         v0 = *((gp - 8182));
    0x000015b0 addiu s0, zero, -1        |         s0 = -1;
    0x000015b4 b 0x1420                  |         goto label_1;
                                         |     }
    0x000015b8 lw t9, -0x7f94(gp)        |     t9 = sym.imp.__errno_location;
    0x000015bc lw s3, 0x2010(v0)         |     s3 = *((v0 + 2052));
    0x000015c0 jalr t9                   |     t9 ();
    0x000015c4 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000015c8 lw a1, (v0)               |     a1 = *(v0);
    0x000015cc move a3, s1               |     a3 = s1;
    0x000015d0 lw a2, -0x7fdc(gp)        |     a2 = *((gp - 8183));
    0x000015d4 lw t9, -0x7f6c(gp)        |     t9 = sym.imp.com_err;
    0x000015d8 addiu a2, a2, 0x1b14      |     a2 += str.while_trying_to_stat__s;
    0x000015dc move a0, s3               |     a0 = s3;
    0x000015e0 jalr t9                   |     t9 ();
    0x000015e4 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000015e8 b 0x1420                  |     goto label_1;
                                         | label_8:
    0x000015ec lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000015f0 lw v0, 0x210c(v0)         |     v0 = *((v0 + 2115));
    0x000015f4 addiu s0, zero, -1        |     s0 = -1;
                                         |     if (v0 == 0) {
    0x000015f8 bnel v0, zero, 0x1420     |         goto label_1;
                                         |     }
    0x000015fc lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001600 lw t9, -0x7f94(gp)        |     t9 = sym.imp.__errno_location;
    0x00001604 lw s3, 0x2010(v0)         |     s3 = *((v0 + 2052));
    0x00001608 jalr t9                   |     t9 ();
    0x0000160c lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001610 lw a1, (v0)               |     a1 = *(v0);
    0x00001614 move a3, s1               |     a3 = s1;
    0x00001618 lw a2, -0x7fdc(gp)        |     a2 = *((gp - 8183));
    0x0000161c lw t9, -0x7f6c(gp)        |     t9 = sym.imp.com_err;
    0x00001620 addiu a2, a2, 0x1b2c      |     a2 += str.while_reading_flags_on__s;
    0x00001624 move a0, s3               |     a0 = s3;
    0x00001628 jalr t9                   |     t9 ();
    0x0000162c lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001630 b 0x1420                  |     goto label_1;
                                         | label_11:
    0x00001634 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001638 lw v0, 0x210c(v0)         |     v0 = *((v0 + 2115));
    0x0000163c addiu s0, zero, -1        |     s0 = -1;
                                         |     if (v0 == 0) {
    0x00001640 bnel v0, zero, 0x1420     |         goto label_1;
                                         |     }
    0x00001644 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001648 lw t9, -0x7f94(gp)        |     t9 = sym.imp.__errno_location;
    0x0000164c lw s3, 0x2010(v0)         |     s3 = *((v0 + 2052));
    0x00001650 jalr t9                   |     t9 ();
    0x00001654 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001658 lw a1, (v0)               |     a1 = *(v0);
    0x0000165c move a3, s1               |     a3 = s1;
    0x00001660 lw a2, -0x7fdc(gp)        |     a2 = *((gp - 8183));
    0x00001664 lw t9, -0x7f6c(gp)        |     t9 = sym.imp.com_err;
    0x00001668 addiu a2, a2, 0x1b5c      |     a2 += str.while_setting_flags_on__s;
    0x0000166c move a0, s3               |     a0 = s3;
    0x00001670 jalr t9                   |     t9 ();
    0x00001674 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001678 b 0x1420                  |     goto label_1;
                                         | label_15:
    0x0000167c lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001680 lw v0, 0x210c(v0)         |     v0 = *((v0 + 2115));
    0x00001684 addiu s0, zero, -1        |     s0 = -1;
                                         |     if (v0 == 0) {
    0x00001688 bnel v0, zero, 0x1420     |         goto label_1;
                                         |     }
    0x0000168c lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x00001690 lw t9, -0x7f94(gp)        |     t9 = sym.imp.__errno_location;
    0x00001694 lw s3, 0x2010(v0)         |     s3 = *((v0 + 2052));
    0x00001698 jalr t9                   |     t9 ();
    0x0000169c lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000016a0 lw a1, (v0)               |     a1 = *(v0);
    0x000016a4 move a3, s1               |     a3 = s1;
    0x000016a8 lw a2, -0x7fdc(gp)        |     a2 = *((gp - 8183));
    0x000016ac lw t9, -0x7f6c(gp)        |     t9 = sym.imp.com_err;
    0x000016b0 addiu a2, a2, 0x1bcc      |     a2 += str.while_setting_project_on__s;
    0x000016b4 move a0, s3               |     a0 = s3;
    0x000016b8 jalr t9                   |     t9 ();
    0x000016bc lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000016c0 b 0x1420                  |     goto label_1;
                                         | label_13:
    0x000016c4 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000016c8 lw v0, 0x210c(v0)         |     v0 = *((v0 + 2115));
    0x000016cc addiu s0, zero, -1        |     s0 = -1;
                                         |     if (v0 == 0) {
    0x000016d0 bnel v0, zero, 0x1420     |         goto label_1;
                                         |     }
    0x000016d4 lw v0, -0x7fd8(gp)        |     v0 = *((gp - 8182));
    0x000016d8 lw t9, -0x7f94(gp)        |     t9 = sym.imp.__errno_location;
    0x000016dc lw s3, 0x2010(v0)         |     s3 = *((v0 + 2052));
    0x000016e0 jalr t9                   |     t9 ();
    0x000016e4 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x000016e8 lw a1, (v0)               |     a1 = *(v0);
    0x000016ec move a3, s1               |     a3 = s1;
    0x000016f0 lw a2, -0x7fdc(gp)        |     a2 = *((gp - 8183));
    0x000016f4 lw t9, -0x7f6c(gp)        |     t9 = sym.imp.com_err;
    0x000016f8 addiu a2, a2, 0x1b94      |     a2 += str.while_setting_version_on__s;
    0x000016fc move a0, s3               |     a0 = s3;
    0x00001700 jalr t9                   |     t9 ();
    0x00001704 lw gp, 0x10(sp)           |     gp = *(var_10h_2);
    0x00001708 b 0x1420                  |     goto label_1;
                                         | label_17:
    0x0000170c lw t9, -0x7f64(gp)        |     t9 = sym.imp.__stack_chk_fail;
    0x00001710 jalr t9                   |     t9 ();
    0x00001714 nop                       |     
    0x00001718 lui gp, 2                 |     
    0x0000171c addiu gp, gp, -0x76f8     |     
    0x00001720 addu gp, gp, t9           |     gp += t9;
    0x00001724 addiu sp, sp, -0x38       |     
    0x00001728 lw t9, -0x7f40(gp)        |     t9 = sym.imp.strcmp;
    0x0000172c sw s0, 0x28(sp)           |     *(var_28h) = s0;
    0x00001730 addiu s0, a1, 0xb         |     s0 = a1 + 0xb;
    0x00001734 lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
    0x00001738 sw gp, 0x18(sp)           |     *(var_18h) = gp;
    0x0000173c sw s1, 0x2c(sp)           |     *(var_2ch) = s1;
    0x00001740 sw ra, 0x34(sp)           |     *(var_34h) = ra;
    0x00001744 sw s2, 0x30(sp)           |     *(var_30h) = s2;
    0x00001748 move s1, a0               |     s1 = a0;
    0x0000174c addiu a1, a1, 0x1be8      |     a1 += 0x1be8;
    0x00001750 move a0, s0               |     a0 = s0;
    0x00001754 jalr t9                   |     t9 ();
    0x00001758 lw gp, 0x18(sp)           |     gp = *(var_18h);
                                         |     if (v0 == 0) {
    0x0000175c beqz v0, 0x177c           |         goto label_19;
                                         |     }
    0x00001760 lw a1, -0x7fdc(gp)        |     a1 = *((gp - 8183));
    0x00001764 lw t9, -0x7f40(gp)        |     t9 = sym.imp.strcmp;
    0x00001768 addiu a1, a1, 0x1bec      |     a1 += 0x1bec;
    0x0000176c move a0, s0               |     a0 = s0;
    0x00001770 jalr t9                   |     t9 ();
    0x00001774 lw gp, 0x18(sp)           |     gp = *(var_18h);
    0x00001778 bnez v0, 0x1794           |     
                                         |     while (1) {
                                         | label_19:
    0x0000177c lw ra, 0x34(sp)           |         ra = *(var_34h);
    0x00001780 lw s2, 0x30(sp)           |         s2 = *(var_30h);
    0x00001784 lw s1, 0x2c(sp)           |         s1 = *(var_2ch);
    0x00001788 lw s0, 0x28(sp)           |         s0 = *(var_28h);
    0x0000178c addiu sp, sp, 0x38        |         
    0x00001790 jr ra                     |         return v0;
    0x00001794 lw t9, -0x7f88(gp)        |         t9 = sym.imp.strlen;
    0x00001798 move a0, s1               |         a0 = s1;
    0x0000179c jalr t9                   |         t9 ();
    0x000017a0 lw gp, 0x18(sp)           |         gp = *(var_18h);
    0x000017a4 move a0, s0               |         a0 = s0;
    0x000017a8 lw t9, -0x7f88(gp)        |         t9 = sym.imp.strlen;
    0x000017ac move s2, v0               |         s2 = v0;
    0x000017b0 jalr t9                   |         t9 ();
    0x000017b4 lw gp, 0x18(sp)           |         gp = *(var_18h);
    0x000017b8 addu v0, s2, v0           |         v0 = s2 + v0;
    0x000017bc lw t9, -0x7f78(gp)        |         t9 = sym.imp.malloc;
    0x000017c0 addiu a0, v0, 2           |         a0 = v0 + 2;
    0x000017c4 jalr t9                   |         t9 ();
    0x000017c8 move s2, v0               |         s2 = v0;
    0x000017cc lw gp, 0x18(sp)           |         gp = *(var_18h);
                                         |         if (v0 != 0) {
    0x000017d0 beqz v0, 0x183c           |             
    0x000017d4 lw a3, -0x7fdc(gp)        |             a3 = *((gp - 8183));
    0x000017d8 lw t9, -0x7fb4(gp)        |             t9 = sym.imp.__sprintf_chk
    0x000017dc addiu a3, a3, 0x1c24      |             a3 += str._s__s;
    0x000017e0 addiu a2, zero, -1        |             a2 = -1;
    0x000017e4 addiu a1, zero, 1         |             a1 = 1;
    0x000017e8 sw s0, 0x14(sp)           |             *(var_14h) = s0;
    0x000017ec sw s1, 0x10(sp)           |             *(var_10h_3) = s1;
    0x000017f0 move a0, v0               |             a0 = v0;
    0x000017f4 jalr t9                   |             t9 ();
    0x000017f8 lw gp, 0x18(sp)           |             gp = *(var_18h);
    0x000017fc lw t9, -0x7fdc(gp)        |             t9 = *((gp - 8183));
    0x00001800 addiu t9, t9, 0x127c      |             t9 += fcn.0000127c;
    0x00001804 move a0, s2               |             a0 = s2;
    0x00001808 bal 0x127c                |             fcn_0000127c ();
                                         |             goto label_6;
    0x0000180c lw gp, 0x18(sp)           |             gp = *(var_18h);
    0x00001810 move a0, s2               |             a0 = s2;
    0x00001814 lw t9, -0x7f58(gp)        |             t9 = sym.imp.free;
    0x00001818 sw v0, 0x24(sp)           |             *(var_24h) = v0;
    0x0000181c jalr t9                   |             t9 ();
    0x00001820 lw ra, 0x34(sp)           |             ra = *(var_34h);
    0x00001824 lw v0, 0x24(sp)           |             v0 = *(var_24h);
    0x00001828 lw s2, 0x30(sp)           |             s2 = *(var_30h);
    0x0000182c lw s1, 0x2c(sp)           |             s1 = *(var_2ch);
    0x00001830 lw s0, 0x28(sp)           |             s0 = *(var_28h);
    0x00001834 addiu sp, sp, 0x38        |             
    0x00001838 jr ra                     |             return v0;
                                         |         }
    0x0000183c lw v0, -0x7f54(gp)        |         v0 = *((gp - 8149));
    0x00001840 lw a0, -0x7fdc(gp)        |         a0 = *((gp - 8183));
    0x00001844 lw t9, -0x7f74(gp)        |         t9 = sym.imp.fwrite;
    0x00001848 lw a3, (v0)               |         a3 = *(v0);
    0x0000184c addiu a2, zero, 0x32      |         a2 = 0x32;
    0x00001850 addiu a1, zero, 1         |         a1 = 1;
    0x00001854 addiu a0, a0, 0x1bf0      |         a0 += str.Couldnt_allocate_path_variable_in_chattr_dir_proc;
    0x00001858 jalr t9                   |         t9 ();
    0x0000185c addiu v0, zero, -1        |         v0 = -1;
    0x00001860 b 0x177c                  |         
                                         |     }
                                         | }

[*] Function printf used 6 times chattr.e2fsprogs