[*] Binary protection state of libgio-2.0.so.0.6000.7
Full RELRO No Canary found NX disabled DSO RPATH No RUNPATH No Symbols
[*] Function system tear down of libgio-2.0.so.0.6000.7
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/4325012-58052244.squashfs_v4_le_extract/usr/lib/libgio-2.0.so.0.6000.7 @ 0xfa448 */
| #include <stdint.h>
|
; (fcn) fcn.000fa448 () | void fcn_000fa448 () {
0x000fa448 lui gp, 0xf |
0x000fa44c addiu gp, gp, -0x148 |
0x000fa450 addu gp, gp, t9 | gp += t9;
0x000fa454 addiu sp, sp, -0x478 |
0x000fa458 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x000fa45c lw a0, -0x7fac(gp) | a0 = *((gp - 8171));
0x000fa460 lw t9, -0x5864(gp) | t9 = *((gp - 5657));
0x000fa464 addiu a1, a1, -0x147c | a1 += -0x147c;
0x000fa468 sw gp, 0x10(sp) | *(var_10h_2) = gp;
0x000fa46c sw ra, 0x474(sp) | *(var_1ch) = ra;
0x000fa470 sw fp, 0x470(sp) | *(var_18h) = fp;
0x000fa474 sw s7, 0x46c(sp) | *(var_46ch) = s7;
0x000fa478 sw s6, 0x468(sp) | *(var_10h) = s6;
0x000fa47c sw s5, 0x464(sp) | *(var_464h) = s5;
0x000fa480 sw s4, 0x460(sp) | *(var_460h) = s4;
0x000fa484 sw s3, 0x45c(sp) | *(var_45ch) = s3;
0x000fa488 sw s2, 0x458(sp) | *(var_458h) = s2;
0x000fa48c sw s1, 0x454(sp) | *(var_454h) = s1;
0x000fa490 sw s0, 0x450(sp) | *(var_450h) = s0;
0x000fa494 addiu a0, a0, -0x6c08 | a0 += -0x6c08;
0x000fa498 jalr t9 | t9 ();
0x000fa49c sw v0, 0x430(sp) | *(var_430h) = v0;
0x000fa4a0 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 == 0) {
0x000fa4a4 beqz v0, 0xfa744 | goto label_4;
| }
0x000fa4a8 lw t9, -0x5e70(gp) | t9 = *((gp - 6044));
0x000fa4ac lw a1, -0x65e0(gp) | a1 = *((gp - 6520));
0x000fa4b0 lw a0, -0x59b0(gp) | a0 = *((gp - 5740));
0x000fa4b4 move s1, zero | s1 = 0;
0x000fa4b8 jalr t9 | t9 ();
0x000fa4bc lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa4c0 sw v0, 0x434(sp) | *(var_434h) = v0;
0x000fa4c4 addiu s5, sp, 0x418 | s5 = sp + aav.0x00000418;
0x000fa4c8 lw v0, -0x7fac(gp) | v0 = *((gp - 8171));
0x000fa4cc addiu fp, sp, 0x18 | fp = sp + 0x18;
0x000fa4d0 sw v0, 0x438(sp) | *(var_438h) = v0;
0x000fa4d4 lw v0, -0x7fac(gp) | v0 = *((gp - 8171));
0x000fa4d8 addiu v0, v0, -0x666c | v0 += -aav.0x0000666c;
0x000fa4dc sw v0, 0x43c(sp) | *(var_43ch) = v0;
0x000fa4e0 lw v0, -0x7fd8(gp) | v0 = *((gp - 8182));
0x000fa4e4 sw v0, 0x448(sp) | *(var_448h) = v0;
0x000fa4e8 lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000fa4ec addiu v0, v0, 0x57a4 | v0 += 0x57a4;
0x000fa4f0 sw v0, 0x440(sp) | *(var_440h) = v0;
0x000fa4f4 lw v0, -0x7068(gp) | v0 = *((gp - 7194));
0x000fa4f8 addiu v0, v0, -0x6338 | v0 += -0x6338;
0x000fa4fc sw v0, 0x444(sp) | *(var_444h) = v0;
0x000fa500 b 0xfa580 |
| while (v0 == 0) {
0x000fa504 lw t9, -0x7020(gp) | t9 = *((gp - 7176));
0x000fa508 move a0, s3 | a0 = s3;
0x000fa50c bal 0xfa388 | sym_g_unix_is_system_device_path ()
0x000fa510 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 != 0) {
0x000fa514 bnez v0, 0xfa6bc | goto label_5;
| }
0x000fa518 lw t9, -0x701c(gp) | t9 = *((gp - 7175));
0x000fa51c move a0, s7 | a0 = s7;
0x000fa520 bal 0xfa1b8 | sym_g_unix_is_mount_path_system_internal ()
0x000fa524 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 != 0) {
0x000fa528 bnez v0, 0xfa6bc | goto label_5;
| }
0x000fa52c lw t9, -0x5a84(gp) | t9 = *((gp - 5793));
| if (s6 != 0) {
0x000fa530 beqz s6, 0xfa54c |
0x000fa534 lw v0, 0x448(sp) | v0 = *(var_448h);
0x000fa538 addiu a1, v0, 0x6838 | a1 = v0 + 0x6838;
0x000fa53c move a0, s6 | a0 = s6;
0x000fa540 jalr t9 | t9 ();
0x000fa544 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa548 sltu v0, zero, v0 | v0 = (0 < v0) ? 1 : 0;
| }
| label_0:
0x000fa54c lw a2, 4(s0) | a2 = *((s0 + 1));
0x000fa550 lw t9, -0x5b1c(gp) | t9 = *((gp - 5831));
0x000fa554 lw a0, 0x434(sp) | a0 = *(var_434h);
0x000fa558 move a1, a2 | a1 = a2;
0x000fa55c sw v0, 0x18(s0) | *((s0 + 6)) = v0;
0x000fa560 jalr t9 | t9 ();
0x000fa564 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa568 move a0, s1 | a0 = s1;
0x000fa56c lw t9, -0x6348(gp) | t9 = *((gp - 6354));
0x000fa570 move a1, s0 | a1 = s0;
0x000fa574 jalr t9 | t9 ();
0x000fa578 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa57c move s1, v0 | s1 = v0;
| label_2:
0x000fa580 lw t9, -0x6128(gp) | t9 = *((gp - 6218));
0x000fa584 lw a0, 0x430(sp) | a0 = *(var_430h);
0x000fa588 addiu a3, zero, 0x400 | a3 = aav.0x00000400;
0x000fa58c move a2, fp | a2 = fp;
0x000fa590 move a1, s5 | a1 = s5;
0x000fa594 jalr t9 | t9 ();
0x000fa598 move s0, v0 | s0 = v0;
0x000fa59c lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 == 0) {
0x000fa5a0 beqz v0, 0xfa6e8 | goto label_6;
| }
0x000fa5a4 lw a0, (s0) | a0 = *(s0);
0x000fa5a8 addiu v0, zero, 0x2f | v0 = 0x2f;
| if (a0 != 0) {
0x000fa5ac beqz a0, 0xfa5bc |
0x000fa5b0 lb a1, (a0) | a1 = *(a0);
0x000fa5b4 lw t9, -0x62bc(gp) | t9 = *((gp - 6319));
| if (a1 == v0) {
0x000fa5b8 beq a1, v0, 0xfa6cc | goto label_7;
| }
| }
| label_3:
0x000fa5bc lw v0, 0x438(sp) | v0 = *(var_438h);
0x000fa5c0 lw t9, -0x5a84(gp) | t9 = *((gp - 5793));
0x000fa5c4 addiu a1, v0, -0x69ec | a1 = v0 + -0x69ec;
0x000fa5c8 jalr t9 | t9 ();
0x000fa5cc lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 != 0) {
0x000fa5d0 bnez v0, 0xfa6c4 | goto label_8;
| }
0x000fa5d4 lw v0, -0x7fe4(gp) | v0 = *((gp - 8185));
0x000fa5d8 lw v0, 0x58a4(v0) | v0 = *((v0 + 5673));
0x000fa5dc lw s2, 0x440(sp) | s2 = *(var_440h);
| if (v0 == 0) {
0x000fa5e0 bnez v0, 0xfa5f8 |
0x000fa5e4 lw t9, 0x444(sp) | t9 = *(var_444h);
0x000fa5e8 jalr t9 | t9 ();
0x000fa5ec nop |
0x000fa5f0 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa5f4 lw s2, 0x440(sp) | s2 = *(var_440h);
| }
| label_1:
0x000fa5f8 lw a1, 0x43c(sp) | a1 = *(var_43ch);
0x000fa5fc lw t9, -0x5874(gp) | t9 = *((gp - 5661));
0x000fa600 move a0, s0 | a0 = s0;
0x000fa604 jalr t9 | t9 ();
0x000fa608 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa60c addiu a0, zero, 0x1c | a0 = 0x1c;
0x000fa610 lw s7, 8(s0) | s7 = *((s0 + 2));
0x000fa614 lw t9, -0x630c(gp) | t9 = *((gp - 6339));
0x000fa618 lw s6, 0xc(s0) | s6 = *((s0 + 3));
0x000fa61c lw s4, 4(s0) | s4 = *((s0 + 1));
0x000fa620 move s3, v0 | s3 = v0;
0x000fa624 jalr t9 | t9 ();
0x000fa628 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa62c move a0, s2 | a0 = s2;
0x000fa630 move s0, v0 | s0 = v0;
0x000fa634 lw t9, -0x5aa8(gp) | t9 = *((gp - 5802));
0x000fa638 sltu s3, zero, s3 | s3 = (0 < s3) ? 1 : 0;
0x000fa63c jalr t9 | t9 ();
0x000fa640 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa644 move a0, s4 | a0 = s4;
0x000fa648 lw t9, -0x5aa8(gp) | t9 = *((gp - 5802));
0x000fa64c sw v0, 4(s0) | *((s0 + 1)) = v0;
0x000fa650 jalr t9 | t9 ();
0x000fa654 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa658 move a0, zero | a0 = 0;
0x000fa65c lw t9, -0x5aa8(gp) | t9 = *((gp - 5802));
0x000fa660 sw v0, (s0) | *(s0) = v0;
0x000fa664 jalr t9 | t9 ();
0x000fa668 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa66c move a0, s7 | a0 = s7;
0x000fa670 lw t9, -0x5aa8(gp) | t9 = *((gp - 5802));
0x000fa674 sw v0, 8(s0) | *((s0 + 2)) = v0;
0x000fa678 jalr t9 | t9 ();
0x000fa67c lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa680 move a0, s6 | a0 = s6;
0x000fa684 lw t9, -0x5aa8(gp) | t9 = *((gp - 5802));
0x000fa688 sw v0, 0xc(s0) | *((s0 + 3)) = v0;
0x000fa68c jalr t9 | t9 ();
0x000fa690 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa694 lw a0, 0xc(s0) | a0 = *((s0 + 3));
0x000fa698 sw s3, 0x14(s0) | *((s0 + 5)) = s3;
0x000fa69c lw t9, -0x7018(gp) | t9 = *((gp - 7174));
0x000fa6a0 sw v0, 0x10(s0) | *((s0 + 4)) = v0;
0x000fa6a4 lw s7, (s0) | s7 = *(s0);
0x000fa6a8 lw s3, 4(s0) | s3 = *((s0 + 1));
0x000fa6ac lw s6, 8(s0) | s6 = *((s0 + 2));
0x000fa6b0 bal 0xfa2bc | sym_g_unix_is_system_fs_type ()
0x000fa6b4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa6b8 beqz v0, 0xfa504 |
| }
| label_5:
0x000fa6bc addiu v0, zero, 1 | v0 = 1;
0x000fa6c0 b 0xfa54c | goto label_0;
| label_8:
0x000fa6c4 lw s2, (s0) | s2 = *(s0);
0x000fa6c8 b 0xfa5f8 | goto label_1;
| label_7:
0x000fa6cc move a1, a0 | a1 = a0;
0x000fa6d0 lw a0, 0x434(sp) | a0 = *(var_434h);
0x000fa6d4 jalr t9 | t9 ();
0x000fa6d8 lw gp, 0x10(sp) | gp = *(var_10h_2);
| if (v0 != 0) {
0x000fa6dc bnez v0, 0xfa580 | goto label_2;
| }
0x000fa6e0 lw a0, (s0) | a0 = *(s0);
0x000fa6e4 b 0xfa5bc | goto label_3;
| label_6:
0x000fa6e8 lw t9, -0x59ac(gp) | t9 = *((gp - 5739));
0x000fa6ec lw a0, 0x434(sp) | a0 = *(var_434h);
0x000fa6f0 jalr t9 | t9 ();
0x000fa6f4 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa6f8 lw t9, -0x61f0(gp) | t9 = *((gp - 6268));
0x000fa6fc lw a0, 0x430(sp) | a0 = *(var_430h);
0x000fa700 jalr t9 | t9 ();
0x000fa704 lw gp, 0x10(sp) | gp = *(var_10h_2);
0x000fa708 lw t9, -0x628c(gp) | t9 = *((gp - 6307));
0x000fa70c move a0, s1 | a0 = s1;
0x000fa710 jalr t9 | t9 ();
0x000fa714 lw ra, 0x474(sp) | ra = *(var_1ch);
0x000fa718 lw fp, 0x470(sp) | fp = *(var_18h);
0x000fa71c lw s7, 0x46c(sp) | s7 = *(var_46ch);
0x000fa720 lw s6, 0x468(sp) | s6 = *(var_10h);
0x000fa724 lw s5, 0x464(sp) | s5 = *(var_464h);
0x000fa728 lw s4, 0x460(sp) | s4 = *(var_460h);
0x000fa72c lw s3, 0x45c(sp) | s3 = *(var_45ch);
0x000fa730 lw s2, 0x458(sp) | s2 = *(var_458h);
0x000fa734 lw s1, 0x454(sp) | s1 = *(var_454h);
0x000fa738 lw s0, 0x450(sp) | s0 = *(var_450h);
0x000fa73c addiu sp, sp, 0x478 |
0x000fa740 jr ra | return v0;
| label_4:
0x000fa744 lw ra, 0x474(sp) | ra = *(var_1ch);
0x000fa748 lw fp, 0x470(sp) | fp = *(var_18h);
0x000fa74c lw s7, 0x46c(sp) | s7 = *(var_46ch);
0x000fa750 lw s6, 0x468(sp) | s6 = *(var_10h);
0x000fa754 lw s5, 0x464(sp) | s5 = *(var_464h);
0x000fa758 lw s4, 0x460(sp) | s4 = *(var_460h);
0x000fa75c lw s3, 0x45c(sp) | s3 = *(var_45ch);
0x000fa760 lw s2, 0x458(sp) | s2 = *(var_458h);
0x000fa764 lw s1, 0x454(sp) | s1 = *(var_454h);
0x000fa768 lw s0, 0x450(sp) | s0 = *(var_450h);
0x000fa76c move v0, zero | v0 = 0;
0x000fa770 addiu sp, sp, 0x478 |
0x000fa774 jr ra | return v0;
| }
[*] Function system used 4 times libgio-2.0.so.0.6000.7