[*] Binary protection state of libsysutils.so
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH Symbols
[*] Function strcat tear down of libsysutils.so
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/lib/libsysutils.so @ 0x45c0 */
| #include <stdint.h>
|
; (fcn) sym.update_disabled_keys () | void update_disabled_keys () {
0x000045c0 lui gp, 2 |
0x000045c4 addiu gp, gp, -0x55a0 |
0x000045c8 addu gp, gp, t9 | gp += t9;
0x000045cc lw t9, -0x7f80(gp) | t9 = sym.imp.memset;
0x000045d0 addiu sp, sp, -0x168 |
0x000045d4 addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x000045d8 move a1, zero | a1 = 0;
0x000045dc sw gp, 0x30(sp) | *(var_30h) = gp;
0x000045e0 sw ra, 0x164(sp) | *(var_164h) = ra;
0x000045e4 sw s2, 0x14c(sp) | *(var_14ch) = s2;
0x000045e8 sw s7, 0x160(sp) | *(var_160h) = s7;
0x000045ec sw s6, 0x15c(sp) | *(var_15ch) = s6;
0x000045f0 sw s5, 0x158(sp) | *(var_158h) = s5;
0x000045f4 sw s4, 0x154(sp) | *(var_154h) = s4;
0x000045f8 sw s3, 0x150(sp) | *(var_150h) = s3;
0x000045fc sw s1, 0x148(sp) | *(var_148h) = s1;
0x00004600 sw s0, 0x144(sp) | *(var_144h) = s0;
0x00004604 addiu a2, zero, 0x80 | a2 = 0x80;
0x00004608 jalr t9 | t9 ();
0x0000460c lw gp, 0x30(sp) | gp = *(var_30h);
0x00004610 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004614 move a1, zero | a1 = 0;
0x00004618 lw s2, -0x7fe4(gp) | s2 = *((gp - 8185));
0x0000461c lw t9, -0x7f80(gp) | t9 = sym.imp.memset;
0x00004620 addiu a2, zero, 0x80 | a2 = 0x80;
0x00004624 jalr t9 | t9 ();
0x00004628 lw v0, 0x7684(s2) | v0 = *((s2 + 7585));
0x0000462c lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 <= 0) {
0x00004630 blez v0, 0x498c | goto label_6;
| }
0x00004634 lw s1, -0x7fd8(gp) | s1 = *((gp - 8182));
0x00004638 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x0000463c move s0, zero | s0 = 0;
0x00004640 addiu s1, s1, 0x66f4 | s1 += 0x66f4;
0x00004644 b 0x4658 |
| while (v1 == 0) {
0x00004648 lw v0, 0x7684(s2) | v0 = *((s2 + 7585));
0x0000464c slt v0, s0, v0 | v0 = (s0 < v0) ? 1 : 0;
0x00004650 lb v0, 0xb8(sp) | v0 = *(var_b8h);
| if (v0 == 0) {
0x00004654 beqz v0, 0x46b0 | goto label_7;
| }
| label_0:
0x00004658 lw v1, 0x7680(s3) | v1 = *((s3 + 7584));
0x0000465c sll v0, s0, 2 | v0 = s0 << 2;
0x00004660 addu v0, v1, v0 | v0 = v1 + v0;
0x00004664 lhu v1, 2(v0) | v1 = *((v0 + 1));
0x00004668 addiu s0, s0, 1 | s0++;
0x0000466c beqz v1, 0x4648 |
| }
0x00004670 sw zero, 0x138(sp) | *(var_138h) = 0;
0x00004674 lw t9, -0x7f9c(gp) | t9 = sym.imp.sprintf;
0x00004678 lhu a2, (v0) | a2 = *(v0);
0x0000467c addiu a0, sp, 0x138 | a0 = sp + aav.0x00000138;
0x00004680 move a1, s1 | a1 = s1;
0x00004684 jalr t9 | t9 ();
0x00004688 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000468c addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x00004690 lw t9, -0x7f40(gp) | t9 = sym.imp.strcat
0x00004694 addiu a1, sp, 0x138 | a1 = sp + aav.0x00000138;
0x00004698 jalr t9 | t9 ();
0x0000469c lw v0, 0x7684(s2) | v0 = *((s2 + 7585));
0x000046a0 slt v0, s0, v0 | v0 = (s0 < v0) ? 1 : 0;
0x000046a4 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x000046a8 bnez v0, 0x4658 | goto label_0;
| }
0x000046ac lb v0, 0xb8(sp) | v0 = *(var_b8h);
| label_7:
0x000046b0 lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
| if (v0 == 0) {
0x000046b4 beqz v0, 0x498c | goto label_6;
| }
0x000046b8 addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x000046bc addiu a1, zero, 0x2c | a1 = 0x2c;
0x000046c0 jalr t9 | t9 ();
0x000046c4 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 == 0) {
0x000046c8 beqz v0, 0x49bc | goto label_8;
| }
0x000046cc lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x000046d0 lw s4, -0x7fd8(gp) | s4 = *((gp - 8182));
0x000046d4 sb zero, (v0) | *(v0) = 0;
0x000046d8 jalr t9 | t9 ();
0x000046dc lw gp, 0x30(sp) | gp = *(var_30h);
0x000046e0 addiu v1, zero, 0xda | v1 = 0xda;
0x000046e4 sw v1, 0x14(sp) | *(var_14h) = v1;
0x000046e8 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000046ec lw s5, -0x7fd8(gp) | s5 = *((gp - 8182));
0x000046f0 lw s3, -0x7fd8(gp) | s3 = *((gp - 8182));
0x000046f4 addiu v1, v1, 0x66f8 | v1 += str.disabled_key_buf:_s_n;
0x000046f8 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x000046fc sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x00004700 addiu s5, s5, 0x6634 | s5 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x00004704 addiu v1, sp, 0xb8 | v1 = sp + 0xb8;
0x00004708 addiu s3, s3, 0x69b8 | s3 += obj.__func__.4674;
0x0000470c sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004710 sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004714 sw v1, 0x20(sp) | *(var_20h) = v1;
0x00004718 addiu a0, zero, 3 | a0 = 3;
0x0000471c move a1, v0 | a1 = v0;
0x00004720 addiu a2, zero, 2 | a2 = 2;
0x00004724 addiu a3, s4, 0x662c | a3 = s4 + str.SU_Key;
0x00004728 jalr t9 | t9 ();
0x0000472c lw gp, 0x30(sp) | gp = *(var_30h);
| label_2:
0x00004730 lw s0, -0x7fd8(gp) | s0 = *((gp - 8182));
0x00004734 lw t9, -0x7fb4(gp) | t9 = sym.imp.open;
0x00004738 addiu a1, zero, 2 | a1 = 2;
0x0000473c addiu a0, s0, 0x6710 | a0 = s0 + str._sys_devices_platform_gpio_keys_disabled_keys;
0x00004740 jalr t9 | t9 ();
0x00004744 move s2, v0 | s2 = v0;
0x00004748 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x0000474c bltz v0, 0x4a48 | goto label_9;
| }
0x00004750 lw t9, -0x7f5c(gp) | t9 = sym.imp.read;
0x00004754 move a0, v0 | a0 = v0;
0x00004758 addiu a1, sp, 0x38 | a1 = sp + 0x38;
0x0000475c addiu a2, zero, 0x80 | a2 = 0x80;
0x00004760 jalr t9 | t9 ();
0x00004764 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x00004768 bltz v0, 0x4b3c | goto label_10;
| }
0x0000476c lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x00004770 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004774 addiu a1, zero, 0xa | a1 = 0xa;
0x00004778 jalr t9 | t9 ();
0x0000477c lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004780 beqz v0, 0x4788 |
0x00004784 sb zero, (v0) | *(v0) = 0;
| }
0x00004788 lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x0000478c addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004790 addiu a1, zero, 0xd | a1 = 0xd;
0x00004794 jalr t9 | t9 ();
0x00004798 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x0000479c beqz v0, 0x47a4 |
0x000047a0 sb zero, (v0) | *(v0) = 0;
| }
0x000047a4 lb v0, 0x38(sp) | v0 = *(var_38h);
0x000047a8 move s6, zero | s6 = 0;
| if (v0 == 0) {
0x000047ac beqz v0, 0x49d4 | goto label_11;
| }
0x000047b0 addiu s1, sp, 0xb8 | s1 = sp + 0xb8;
0x000047b4 addiu s7, zero, 0x2c | s7 = 0x2c;
0x000047b8 b 0x47cc |
| while (v0 != 0) {
0x000047bc addiu s1, s0, 1 | s1 = s0 + 1;
| if (s0 == 0) {
0x000047c0 beqz s0, 0x4858 | goto label_12;
| }
| if (s1 == 0) {
| label_1:
0x000047c4 beqz s1, 0x4858 | goto label_12;
| }
0x000047c8 nop |
0x000047cc lw t9, -0x7fb8(gp) | t9 = sym.imp.strchr;
0x000047d0 move a0, s1 | a0 = s1;
0x000047d4 addiu a1, zero, 0x2c | a1 = 0x2c;
0x000047d8 jalr t9 | t9 ();
0x000047dc lw gp, 0x30(sp) | gp = *(var_30h);
0x000047e0 move a1, s1 | a1 = s1;
0x000047e4 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x000047e8 move s0, v0 | s0 = v0;
0x000047ec lw t9, -0x7f50(gp) | t9 = sym.imp.strstr;
| if (v0 != 0) {
0x000047f0 beqz v0, 0x4804 |
0x000047f4 lb v0, (v0) | v0 = *(v0);
| if (v0 == 0) {
0x000047f8 beqz v0, 0x4804 | goto label_13;
| }
0x000047fc nop |
0x00004800 sb zero, (s0) | *(s0) = 0;
| }
| label_13:
0x00004804 jalr t9 | t9 ();
0x00004808 nop |
0x0000480c lw gp, 0x30(sp) | gp = *(var_30h);
0x00004810 bnez v0, 0x47bc |
| }
0x00004814 lw t9, -0x7fb0(gp) | t9 = sym.imp.strlen;
0x00004818 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x0000481c addiu s6, s6, 1 | s6++;
0x00004820 jalr t9 | t9 ();
0x00004824 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004828 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x0000482c addu v1, a0, v0 | v1 = a0 + v0;
0x00004830 lw t9, -0x7ef8(gp) | t9 = sym._MIPS_STUBS_;
0x00004834 addiu a0, v0, 1 | a0 = v0 + 1;
0x00004838 addiu v0, sp, 0x38 | v0 = sp + 0x38;
0x0000483c move a1, s1 | a1 = s1;
0x00004840 sb s7, (v1) | *(v1) = s7;
0x00004844 addu a0, v0, a0 | a0 = v0 + a0;
0x00004848 jalr t9 | t9 ();
0x0000484c addiu s1, s0, 1 | s1 = s0 + 1;
0x00004850 lw gp, 0x30(sp) | gp = *(var_30h);
| if (s0 != 0) {
0x00004854 bnez s0, 0x47c4 | goto label_1;
| }
| label_12:
0x00004858 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
| if (s6 == 0) {
0x0000485c beqz s6, 0x49ec | goto label_14;
| }
| do {
0x00004860 lw t9, -0x7fb0(gp) | t9 = sym.imp.strlen;
0x00004864 addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x00004868 jalr t9 | t9 ();
0x0000486c lw gp, 0x30(sp) | gp = *(var_30h);
0x00004870 move a0, s2 | a0 = s2;
0x00004874 addiu a1, sp, 0x38 | a1 = sp + 0x38;
0x00004878 lw t9, -0x7f38(gp) | t9 = sym.imp.write;
0x0000487c addiu a2, v0, 1 | a2 = v0 + 1;
0x00004880 jalr t9 | t9 ();
0x00004884 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x00004888 bltz v0, 0x4abc | goto label_15;
| }
0x0000488c lw t9, -0x7f80(gp) | t9 = sym.imp.memset;
0x00004890 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004894 move a1, zero | a1 = 0;
0x00004898 addiu a2, zero, 0x80 | a2 = 0x80;
0x0000489c jalr t9 | t9 ();
0x000048a0 lw gp, 0x30(sp) | gp = *(var_30h);
0x000048a4 move a0, s2 | a0 = s2;
0x000048a8 addiu a1, sp, 0x38 | a1 = sp + 0x38;
0x000048ac lw t9, -0x7f5c(gp) | t9 = sym.imp.read;
0x000048b0 addiu a2, zero, 0x80 | a2 = 0x80;
0x000048b4 jalr t9 | t9 ();
0x000048b8 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x000048bc bltz v0, 0x4b8c | goto label_16;
| }
0x000048c0 lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x000048c4 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x000048c8 addiu a1, zero, 0xa | a1 = 0xa;
0x000048cc jalr t9 | t9 ();
0x000048d0 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x000048d4 beqz v0, 0x48dc |
0x000048d8 sb zero, (v0) | *(v0) = 0;
| }
0x000048dc lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x000048e0 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x000048e4 addiu a1, zero, 0xd | a1 = 0xd;
0x000048e8 jalr t9 | t9 ();
0x000048ec lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x000048f0 beqz v0, 0x48f8 |
0x000048f4 sb zero, (v0) | *(v0) = 0;
| }
0x000048f8 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x000048fc jalr t9 | t9 ();
0x00004900 nop |
0x00004904 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004908 addiu v1, zero, 0x11f | v1 = 0x11f;
0x0000490c sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004910 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00004914 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004918 sw v1, 0x14(sp) | *(var_14h) = v1;
0x0000491c addiu a0, a0, 0x67e8 | a0 += str._s__d_:disabled_keys___s_n;
0x00004920 sw a0, 0x1c(sp) | *(var_1ch) = a0;
0x00004924 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004928 sw a0, 0x28(sp) | *(var_28h) = a0;
0x0000492c sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004930 sw s3, 0x20(sp) | *(var_20h) = s3;
0x00004934 sw v1, 0x24(sp) | *(var_24h) = v1;
0x00004938 addiu a0, zero, 3 | a0 = 3;
0x0000493c move a1, v0 | a1 = v0;
0x00004940 addiu a2, zero, 2 | a2 = 2;
0x00004944 addiu a3, s4, 0x662c | a3 = s4 + str.SU_Key;
0x00004948 jalr t9 | t9 ();
0x0000494c lw gp, 0x30(sp) | gp = *(var_30h);
| label_3:
0x00004950 lw t9, -0x7fc4(gp) | t9 = sym.imp.close;
0x00004954 move a0, s2 | a0 = s2;
0x00004958 jalr t9 | t9 ();
0x0000495c move v0, zero | v0 = 0;
| label_4:
0x00004960 lw ra, 0x164(sp) | ra = *(var_164h);
0x00004964 lw s7, 0x160(sp) | s7 = *(var_160h);
0x00004968 lw s6, 0x15c(sp) | s6 = *(var_15ch);
0x0000496c lw s5, 0x158(sp) | s5 = *(var_158h);
0x00004970 lw s4, 0x154(sp) | s4 = *(var_154h);
0x00004974 lw s3, 0x150(sp) | s3 = *(var_150h);
0x00004978 lw s2, 0x14c(sp) | s2 = *(var_14ch);
0x0000497c lw s1, 0x148(sp) | s1 = *(var_148h);
0x00004980 lw s0, 0x144(sp) | s0 = *(var_144h);
0x00004984 addiu sp, sp, 0x168 |
0x00004988 jr ra | return v1;
| label_6:
0x0000498c lw ra, 0x164(sp) | ra = *(var_164h);
0x00004990 lw s7, 0x160(sp) | s7 = *(var_160h);
0x00004994 lw s6, 0x15c(sp) | s6 = *(var_15ch);
0x00004998 lw s5, 0x158(sp) | s5 = *(var_158h);
0x0000499c lw s4, 0x154(sp) | s4 = *(var_154h);
0x000049a0 lw s3, 0x150(sp) | s3 = *(var_150h);
0x000049a4 lw s2, 0x14c(sp) | s2 = *(var_14ch);
0x000049a8 lw s1, 0x148(sp) | s1 = *(var_148h);
0x000049ac lw s0, 0x144(sp) | s0 = *(var_144h);
0x000049b0 move v0, zero | v0 = 0;
0x000049b4 addiu sp, sp, 0x168 |
0x000049b8 jr ra | return v1;
| label_8:
0x000049bc lw s5, -0x7fd8(gp) | s5 = *((gp - 8182));
0x000049c0 lw s3, -0x7fd8(gp) | s3 = *((gp - 8182));
0x000049c4 lw s4, -0x7fd8(gp) | s4 = *((gp - 8182));
0x000049c8 addiu s5, s5, 0x6634 | s5 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x000049cc addiu s3, s3, 0x69b8 | s3 += obj.__func__.4674;
0x000049d0 b 0x4730 | goto label_2;
| label_11:
0x000049d4 lw t9, -0x7f40(gp) | t9 = sym.imp.strcat
0x000049d8 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x000049dc addiu a1, sp, 0xb8 | a1 = sp + 0xb8;
0x000049e0 jalr t9 | t9 ();
0x000049e4 lw gp, 0x30(sp) | gp = *(var_30h);
0x000049e8 b 0x4860 |
| } while (1);
| label_14:
0x000049ec jalr t9 | t9 ();
0x000049f0 nop |
0x000049f4 lw gp, 0x30(sp) | gp = *(var_30h);
0x000049f8 addiu v1, zero, 0x105 | v1 = 0x105;
0x000049fc sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004a00 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00004a04 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004a08 sw v1, 0x24(sp) | *(var_24h) = v1;
0x00004a0c addiu a0, a0, 0x6774 | a0 += str._s__d_:disabled_keys___s__needdisablecnt___d_n;
0x00004a10 addiu v1, sp, 0x38 | v1 = sp + 0x38;
0x00004a14 sw a0, 0x1c(sp) | *(var_1ch) = a0;
0x00004a18 sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004a1c sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004a20 sw s3, 0x20(sp) | *(var_20h) = s3;
0x00004a24 sw v1, 0x28(sp) | *(var_28h) = v1;
0x00004a28 sw zero, 0x2c(sp) | *(var_2ch) = 0;
0x00004a2c addiu a0, zero, 3 | a0 = 3;
0x00004a30 move a1, v0 | a1 = v0;
0x00004a34 addiu a2, zero, 2 | a2 = 2;
0x00004a38 addiu a3, s4, 0x662c | a3 = s4 + str.SU_Key;
0x00004a3c jalr t9 | t9 ();
0x00004a40 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004a44 b 0x4950 | goto label_3;
| label_9:
0x00004a48 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004a4c addiu s0, s0, 0x6710 | s0 += str._sys_devices_platform_gpio_keys_disabled_keys;
0x00004a50 jalr t9 | t9 ();
0x00004a54 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004a58 lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x00004a5c move s1, v0 | s1 = v0;
0x00004a60 jalr t9 | t9 ();
0x00004a64 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004a68 lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x00004a6c lw a0, (v0) | a0 = *(v0);
0x00004a70 jalr t9 | t9 ();
0x00004a74 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004a78 addiu v1, zero, 0xdf | v1 = 0xdf;
0x00004a7c sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004a80 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004a84 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004a88 sw v0, 0x24(sp) | *(var_24h) = v0;
0x00004a8c addiu v1, v1, 0x6740 | v1 += str.open__s_error:_s_n;
0x00004a90 sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004a94 sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004a98 sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x00004a9c sw s0, 0x20(sp) | *(var_20h) = s0;
0x00004aa0 addiu a0, zero, 6 | a0 = 6;
0x00004aa4 move a1, s1 | a1 = s1;
0x00004aa8 addiu a2, zero, 2 | a2 = 2;
0x00004aac addiu a3, s4, 0x662c | a3 = s4 + str.SU_Key;
0x00004ab0 jalr t9 | t9 ();
0x00004ab4 addiu v0, zero, -1 | v0 = -1;
0x00004ab8 b 0x4960 | goto label_4;
| label_15:
0x00004abc lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004ac0 jalr t9 | t9 ();
0x00004ac4 nop |
0x00004ac8 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004acc lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x00004ad0 move s0, v0 | s0 = v0;
0x00004ad4 jalr t9 | t9 ();
0x00004ad8 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004adc lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x00004ae0 lw a0, (v0) | a0 = *(v0);
0x00004ae4 jalr t9 | t9 ();
0x00004ae8 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004aec addiu v1, zero, 0x10c | v1 = obj._DYNAMIC;
0x00004af0 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004af4 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004af8 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004afc sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004b00 sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004b04 addiu v1, v1, 0x67a4 | v1 += str.write_disabled_keys_error:__s_n;
| do {
| label_5:
0x00004b08 sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x00004b0c sw v0, 0x20(sp) | *(var_20h) = v0;
0x00004b10 addiu a0, zero, 6 | a0 = 6;
0x00004b14 move a1, s0 | a1 = s0;
0x00004b18 addiu a2, zero, 2 | a2 = 2;
0x00004b1c addiu a3, s4, 0x662c | a3 = s4 + str.SU_Key;
0x00004b20 jalr t9 | t9 ();
0x00004b24 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004b28 lw t9, -0x7fc4(gp) | t9 = sym.imp.close;
0x00004b2c move a0, s2 | a0 = s2;
0x00004b30 jalr t9 | t9 ();
0x00004b34 addiu v0, zero, -1 | v0 = -1;
0x00004b38 b 0x4960 | goto label_4;
| label_10:
0x00004b3c lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004b40 jalr t9 | t9 ();
0x00004b44 nop |
0x00004b48 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004b4c lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x00004b50 move s0, v0 | s0 = v0;
0x00004b54 jalr t9 | t9 ();
0x00004b58 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004b5c lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x00004b60 lw a0, (v0) | a0 = *(v0);
0x00004b64 jalr t9 | t9 ();
0x00004b68 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004b6c addiu v1, zero, 0xe5 | v1 = 0xe5;
0x00004b70 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004b74 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004b78 sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004b7c lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004b80 sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004b84 addiu v1, v1, 0x6754 | v1 += str.read_disabled_keys_error:__s_n;
0x00004b88 b 0x4b08 |
| } while (1);
| label_16:
0x00004b8c lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004b90 jalr t9 | t9 ();
0x00004b94 nop |
0x00004b98 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004b9c lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x00004ba0 move s0, v0 | s0 = v0;
0x00004ba4 jalr t9 | t9 ();
0x00004ba8 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004bac lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x00004bb0 lw a0, (v0) | a0 = *(v0);
0x00004bb4 jalr t9 | t9 ();
0x00004bb8 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004bbc addiu v1, zero, 0x113 | v1 = 0x113;
0x00004bc0 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004bc4 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004bc8 sw s5, 0x10(sp) | *(var_10h) = s5;
0x00004bcc lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004bd0 sw s3, 0x18(sp) | *(var_18h) = s3;
0x00004bd4 addiu v1, v1, 0x67c4 | v1 += str.read_back_disabled_keys_error:__s_n;
0x00004bd8 b 0x4b08 | goto label_5;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/unblob_extracted/firmware_extract/6225984-11075644.jffs2_new_extract/lib/libsysutils.so @ 0x4bdc */
| #include <stdint.h>
|
; (fcn) sym.update_enabled_keys () | void update_enabled_keys () {
0x00004bdc lui gp, 2 |
0x00004be0 addiu gp, gp, -0x5bbc |
0x00004be4 addu gp, gp, t9 | gp += t9;
0x00004be8 lw t9, -0x7f80(gp) | t9 = sym.imp.memset;
0x00004bec addiu sp, sp, -0x158 |
0x00004bf0 addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x00004bf4 move a1, zero | a1 = 0;
0x00004bf8 sw gp, 0x30(sp) | *(var_30h) = gp;
0x00004bfc sw ra, 0x154(sp) | *(var_154h) = ra;
0x00004c00 sw s2, 0x148(sp) | *(var_148h) = s2;
0x00004c04 sw s4, 0x150(sp) | *(var_150h) = s4;
0x00004c08 sw s3, 0x14c(sp) | *(var_14ch) = s3;
0x00004c0c sw s1, 0x144(sp) | *(var_144h) = s1;
0x00004c10 sw s0, 0x140(sp) | *(var_140h) = s0;
0x00004c14 addiu a2, zero, 0x80 | a2 = 0x80;
0x00004c18 jalr t9 | t9 ();
0x00004c1c lw gp, 0x30(sp) | gp = *(var_30h);
0x00004c20 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004c24 move a1, zero | a1 = 0;
0x00004c28 lw s2, -0x7fe4(gp) | s2 = *((gp - 8185));
0x00004c2c lw t9, -0x7f80(gp) | t9 = sym.imp.memset;
0x00004c30 addiu a2, zero, 0x80 | a2 = 0x80;
0x00004c34 jalr t9 | t9 ();
0x00004c38 lw v0, 0x7684(s2) | v0 = *((s2 + 7585));
0x00004c3c lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 <= 0) {
0x00004c40 blez v0, 0x4f00 | goto label_3;
| }
0x00004c44 lw s1, -0x7fd8(gp) | s1 = *((gp - 8182));
0x00004c48 lw s3, -0x7fe4(gp) | s3 = *((gp - 8185));
0x00004c4c move s0, zero | s0 = 0;
0x00004c50 addiu s1, s1, 0x66f4 | s1 += 0x66f4;
0x00004c54 b 0x4c68 |
| while (v1 != 0) {
0x00004c58 lw v0, 0x7684(s2) | v0 = *((s2 + 7585));
0x00004c5c slt v0, s0, v0 | v0 = (s0 < v0) ? 1 : 0;
0x00004c60 lb v0, 0xb8(sp) | v0 = *(var_b8h);
| if (v0 == 0) {
0x00004c64 beqz v0, 0x4cc0 | goto label_4;
| }
| label_0:
0x00004c68 lw v1, 0x7680(s3) | v1 = *((s3 + 7584));
0x00004c6c sll v0, s0, 2 | v0 = s0 << 2;
0x00004c70 addu v0, v1, v0 | v0 = v1 + v0;
0x00004c74 lhu v1, 2(v0) | v1 = *((v0 + 1));
0x00004c78 addiu s0, s0, 1 | s0++;
0x00004c7c bnez v1, 0x4c58 |
| }
0x00004c80 sw zero, 0x138(sp) | *(var_138h) = 0;
0x00004c84 lw t9, -0x7f9c(gp) | t9 = sym.imp.sprintf;
0x00004c88 lhu a2, (v0) | a2 = *(v0);
0x00004c8c addiu a0, sp, 0x138 | a0 = sp + aav.0x00000138;
0x00004c90 move a1, s1 | a1 = s1;
0x00004c94 jalr t9 | t9 ();
0x00004c98 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004c9c addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x00004ca0 lw t9, -0x7f40(gp) | t9 = sym.imp.strcat
0x00004ca4 addiu a1, sp, 0x138 | a1 = sp + aav.0x00000138;
0x00004ca8 jalr t9 | t9 ();
0x00004cac lw v0, 0x7684(s2) | v0 = *((s2 + 7585));
0x00004cb0 slt v0, s0, v0 | v0 = (s0 < v0) ? 1 : 0;
0x00004cb4 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004cb8 bnez v0, 0x4c68 | goto label_0;
| }
0x00004cbc lb v0, 0xb8(sp) | v0 = *(var_b8h);
| label_4:
0x00004cc0 lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
| if (v0 == 0) {
0x00004cc4 beqz v0, 0x4f00 | goto label_3;
| }
0x00004cc8 addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x00004ccc addiu a1, zero, 0x2c | a1 = 0x2c;
0x00004cd0 jalr t9 | t9 ();
0x00004cd4 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004cd8 beqz v0, 0x4d40 |
0x00004cdc lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004ce0 sb zero, (v0) | *(v0) = 0;
0x00004ce4 jalr t9 | t9 ();
0x00004ce8 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004cec addiu a0, zero, 3 | a0 = 3;
0x00004cf0 move a1, v0 | a1 = v0;
0x00004cf4 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004cf8 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00004cfc lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004d00 addiu v1, v1, 0x6634 | v1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x00004d04 sw v1, 0x10(sp) | *(var_10h) = v1;
0x00004d08 addiu v1, zero, 0x147 | v1 = 0x147;
0x00004d0c sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004d10 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004d14 addiu a2, zero, 2 | a2 = 2;
0x00004d18 addiu a3, a3, 0x662c | a3 += str.SU_Key;
0x00004d1c addiu v1, v1, 0x6990 | v1 += obj.__func__.4702;
0x00004d20 sw v1, 0x18(sp) | *(var_18h) = v1;
0x00004d24 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00004d28 addiu v1, v1, 0x6804 | v1 += str.enabled_key_buf:_s_n;
0x00004d2c sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x00004d30 addiu v1, sp, 0xb8 | v1 = sp + 0xb8;
0x00004d34 sw v1, 0x20(sp) | *(var_20h) = v1;
0x00004d38 jalr t9 | t9 ();
0x00004d3c lw gp, 0x30(sp) | gp = *(var_30h);
| }
0x00004d40 lw s0, -0x7fd8(gp) | s0 = *((gp - 8182));
0x00004d44 lw t9, -0x7fb4(gp) | t9 = sym.imp.open;
0x00004d48 addiu a1, zero, 2 | a1 = 2;
0x00004d4c addiu a0, s0, 0x6710 | a0 = s0 + str._sys_devices_platform_gpio_keys_disabled_keys;
0x00004d50 jalr t9 | t9 ();
0x00004d54 move s4, v0 | s4 = v0;
0x00004d58 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x00004d5c bltz v0, 0x5010 | goto label_5;
| }
0x00004d60 lw t9, -0x7f5c(gp) | t9 = sym.imp.read;
0x00004d64 move a0, v0 | a0 = v0;
0x00004d68 addiu a1, sp, 0x38 | a1 = sp + 0x38;
0x00004d6c addiu a2, zero, 0x80 | a2 = 0x80;
0x00004d70 jalr t9 | t9 ();
0x00004d74 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x00004d78 bltz v0, 0x512c | goto label_6;
| }
0x00004d7c lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x00004d80 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004d84 addiu a1, zero, 0xa | a1 = 0xa;
0x00004d88 jalr t9 | t9 ();
0x00004d8c lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004d90 beqz v0, 0x4d98 |
0x00004d94 sb zero, (v0) | *(v0) = 0;
| }
0x00004d98 lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x00004d9c addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004da0 addiu a1, zero, 0xd | a1 = 0xd;
0x00004da4 jalr t9 | t9 ();
0x00004da8 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004dac beqz v0, 0x4db4 |
0x00004db0 sb zero, (v0) | *(v0) = 0;
| }
0x00004db4 lb v0, 0x38(sp) | v0 = *(var_38h);
0x00004db8 move s3, zero | s3 = 0;
| if (v0 == 0) {
0x00004dbc beqz v0, 0x4ed0 | goto label_7;
| }
0x00004dc0 addiu s1, sp, 0xb8 | s1 = sp + 0xb8;
0x00004dc4 lw t9, -0x7fb8(gp) | t9 = sym.imp.strchr;
| do {
0x00004dc8 move a0, s1 | a0 = s1;
0x00004dcc addiu a1, zero, 0x2c | a1 = 0x2c;
0x00004dd0 jalr t9 | t9 ();
0x00004dd4 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004dd8 move a1, s1 | a1 = s1;
0x00004ddc addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004de0 move s0, v0 | s0 = v0;
0x00004de4 addiu s1, v0, 1 | s1 = v0 + 1;
0x00004de8 lw t9, -0x7f50(gp) | t9 = sym.imp.strstr;
| if (v0 != 0) {
0x00004dec beqz v0, 0x4e00 |
0x00004df0 lb v0, (v0) | v0 = *(v0);
| if (v0 == 0) {
0x00004df4 beqz v0, 0x4e00 | goto label_8;
| }
0x00004df8 nop |
0x00004dfc sb zero, (s0) | *(s0) = 0;
| }
| label_8:
0x00004e00 jalr t9 | t9 ();
0x00004e04 nop |
0x00004e08 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004e0c addiu a1, zero, 0x2c | a1 = 0x2c;
0x00004e10 move s2, v0 | s2 = v0;
0x00004e14 move a0, v0 | a0 = v0;
0x00004e18 lw t9, -0x7fb8(gp) | t9 = sym.imp.strchr;
| if (v0 != 0) {
0x00004e1c beqz v0, 0x4e48 |
0x00004e20 addiu s3, s3, 1 | s3++;
0x00004e24 jalr t9 | t9 ();
0x00004e28 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004e2c sb zero, (s2) | *(s2) = 0;
0x00004e30 lw t9, -0x7f40(gp) | t9 = sym.imp.strcat
| if (v0 == 0) {
0x00004e34 beqz v0, 0x4e48 | goto label_9;
| }
0x00004e38 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004e3c addiu a1, v0, 1 | a1 = v0 + 1;
0x00004e40 jalr t9 | t9 ();
0x00004e44 lw gp, 0x30(sp) | gp = *(var_30h);
| }
| if (s0 == 0) {
| label_9:
0x00004e48 beqz s0, 0x4e58 | goto label_10;
| }
0x00004e4c nop |
0x00004e50 lw t9, -0x7fb8(gp) | t9 = sym.imp.strchr;
0x00004e54 bnez s1, 0x4dc8 |
| } while (s1 != 0);
| label_10:
0x00004e58 lw t9, -0x7fb0(gp) | t9 = sym.imp.strlen;
| if (s3 != 0) {
0x00004e5c bnez s3, 0x4f24 | goto label_11;
| }
0x00004e60 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004e64 jalr t9 | t9 ();
0x00004e68 nop |
0x00004e6c lw gp, 0x30(sp) | gp = *(var_30h);
0x00004e70 addiu v1, zero, 0x174 | v1 = 0x174;
0x00004e74 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004e78 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00004e7c lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00004e80 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004e84 addiu a1, a1, 0x6634 | a1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x00004e88 sw a1, 0x10(sp) | *(var_10h) = a1;
0x00004e8c lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00004e90 addiu a0, a0, 0x6990 | a0 += obj.__func__.4702;
0x00004e94 sw v1, 0x24(sp) | *(var_24h) = v1;
0x00004e98 addiu a1, a1, 0x6818 | a1 += str._s__d_:disabled_keys___s__needenablecnt___d_n;
0x00004e9c addiu v1, sp, 0x38 | v1 = sp + 0x38;
0x00004ea0 sw a0, 0x18(sp) | *(var_18h) = a0;
0x00004ea4 sw a1, 0x1c(sp) | *(var_1ch) = a1;
0x00004ea8 sw a0, 0x20(sp) | *(var_20h) = a0;
0x00004eac sw v1, 0x28(sp) | *(var_28h) = v1;
0x00004eb0 sw zero, 0x2c(sp) | *(var_2ch) = 0;
| do {
0x00004eb4 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00004eb8 addiu a0, zero, 3 | a0 = 3;
0x00004ebc move a1, v0 | a1 = v0;
0x00004ec0 addiu a2, zero, 2 | a2 = 2;
0x00004ec4 addiu a3, a3, 0x662c | a3 += str.SU_Key;
0x00004ec8 jalr t9 | t9 ();
0x00004ecc lw gp, 0x30(sp) | gp = *(var_30h);
| label_7:
0x00004ed0 lw t9, -0x7fc4(gp) | t9 = sym.imp.close;
0x00004ed4 move a0, s4 | a0 = s4;
0x00004ed8 jalr t9 | t9 ();
0x00004edc move v0, zero | v0 = 0;
| label_1:
0x00004ee0 lw ra, 0x154(sp) | ra = *(var_154h);
0x00004ee4 lw s4, 0x150(sp) | s4 = *(var_150h);
0x00004ee8 lw s3, 0x14c(sp) | s3 = *(var_14ch);
0x00004eec lw s2, 0x148(sp) | s2 = *(var_148h);
0x00004ef0 lw s1, 0x144(sp) | s1 = *(var_144h);
0x00004ef4 lw s0, 0x140(sp) | s0 = *(var_140h);
0x00004ef8 addiu sp, sp, 0x158 |
0x00004efc jr ra | return v1;
| label_3:
0x00004f00 lw ra, 0x154(sp) | ra = *(var_154h);
0x00004f04 lw s4, 0x150(sp) | s4 = *(var_150h);
0x00004f08 lw s3, 0x14c(sp) | s3 = *(var_14ch);
0x00004f0c lw s2, 0x148(sp) | s2 = *(var_148h);
0x00004f10 lw s1, 0x144(sp) | s1 = *(var_144h);
0x00004f14 lw s0, 0x140(sp) | s0 = *(var_140h);
0x00004f18 move v0, zero | v0 = 0;
0x00004f1c addiu sp, sp, 0x158 |
0x00004f20 jr ra | return v1;
| label_11:
0x00004f24 addiu a0, sp, 0xb8 | a0 = sp + 0xb8;
0x00004f28 jalr t9 | t9 ();
0x00004f2c lw gp, 0x30(sp) | gp = *(var_30h);
0x00004f30 move a0, s4 | a0 = s4;
0x00004f34 addiu a1, sp, 0x38 | a1 = sp + 0x38;
0x00004f38 lw t9, -0x7f38(gp) | t9 = sym.imp.write;
0x00004f3c addiu a2, v0, 1 | a2 = v0 + 1;
0x00004f40 jalr t9 | t9 ();
0x00004f44 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x00004f48 bltz v0, 0x5098 | goto label_12;
| }
0x00004f4c lw t9, -0x7f80(gp) | t9 = sym.imp.memset;
0x00004f50 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004f54 move a1, zero | a1 = 0;
0x00004f58 addiu a2, zero, 0x80 | a2 = 0x80;
0x00004f5c jalr t9 | t9 ();
0x00004f60 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004f64 move a0, s4 | a0 = s4;
0x00004f68 addiu a1, sp, 0x38 | a1 = sp + 0x38;
0x00004f6c lw t9, -0x7f5c(gp) | t9 = sym.imp.read;
0x00004f70 addiu a2, zero, 0x80 | a2 = 0x80;
0x00004f74 jalr t9 | t9 ();
0x00004f78 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 < 0) {
0x00004f7c bltz v0, 0x518c | goto label_13;
| }
0x00004f80 lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x00004f84 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004f88 addiu a1, zero, 0xa | a1 = 0xa;
0x00004f8c jalr t9 | t9 ();
0x00004f90 lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004f94 beqz v0, 0x4f9c |
0x00004f98 sb zero, (v0) | *(v0) = 0;
| }
0x00004f9c lw t9, -0x7f2c(gp) | t9 = sym.imp.strrchr;
0x00004fa0 addiu a0, sp, 0x38 | a0 = sp + 0x38;
0x00004fa4 addiu a1, zero, 0xd | a1 = 0xd;
0x00004fa8 jalr t9 | t9 ();
0x00004fac lw gp, 0x30(sp) | gp = *(var_30h);
| if (v0 != 0) {
0x00004fb0 beqz v0, 0x4fb8 |
0x00004fb4 sb zero, (v0) | *(v0) = 0;
| }
0x00004fb8 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00004fbc jalr t9 | t9 ();
0x00004fc0 nop |
0x00004fc4 lw gp, 0x30(sp) | gp = *(var_30h);
0x00004fc8 addiu v1, zero, 0x18d | v1 = 0x18d;
0x00004fcc sw v1, 0x14(sp) | *(var_14h) = v1;
0x00004fd0 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00004fd4 lw a0, -0x7fd8(gp) | a0 = *((gp - 8182));
0x00004fd8 sw v1, 0x24(sp) | *(var_24h) = v1;
0x00004fdc addiu a1, a1, 0x6634 | a1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x00004fe0 sw a1, 0x10(sp) | *(var_10h) = a1;
0x00004fe4 lw a1, -0x7fd8(gp) | a1 = *((gp - 8182));
0x00004fe8 addiu a0, a0, 0x6990 | a0 += obj.__func__.4702;
0x00004fec addiu v1, sp, 0x38 | v1 = sp + 0x38;
0x00004ff0 addiu a1, a1, 0x6818 | a1 += str._s__d_:disabled_keys___s__needenablecnt___d_n;
0x00004ff4 sw a0, 0x18(sp) | *(var_18h) = a0;
0x00004ff8 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00004ffc sw a1, 0x1c(sp) | *(var_1ch) = a1;
0x00005000 sw a0, 0x20(sp) | *(var_20h) = a0;
0x00005004 sw v1, 0x28(sp) | *(var_28h) = v1;
0x00005008 sw s3, 0x2c(sp) | *(var_2ch) = s3;
0x0000500c b 0x4eb4 |
| } while (1);
| label_5:
0x00005010 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00005014 addiu s0, s0, 0x6710 | s0 += str._sys_devices_platform_gpio_keys_disabled_keys;
0x00005018 jalr t9 | t9 ();
0x0000501c lw gp, 0x30(sp) | gp = *(var_30h);
0x00005020 lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x00005024 move s1, v0 | s1 = v0;
0x00005028 jalr t9 | t9 ();
0x0000502c lw gp, 0x30(sp) | gp = *(var_30h);
0x00005030 lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x00005034 lw a0, (v0) | a0 = *(v0);
0x00005038 jalr t9 | t9 ();
0x0000503c lw gp, 0x30(sp) | gp = *(var_30h);
0x00005040 sw v0, 0x24(sp) | *(var_24h) = v0;
0x00005044 sw s0, 0x20(sp) | *(var_20h) = s0;
0x00005048 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x0000504c lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x00005050 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00005054 addiu v1, v1, 0x6634 | v1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x00005058 sw v1, 0x10(sp) | *(var_10h) = v1;
0x0000505c addiu v1, zero, 0x14c | v1 = 0x14c;
0x00005060 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00005064 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00005068 addiu a0, zero, 6 | a0 = 6;
0x0000506c move a1, s1 | a1 = s1;
0x00005070 addiu v1, v1, 0x6990 | v1 += obj.__func__.4702;
0x00005074 sw v1, 0x18(sp) | *(var_18h) = v1;
0x00005078 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x0000507c addiu a2, zero, 2 | a2 = 2;
0x00005080 addiu a3, a3, 0x662c | a3 += str.SU_Key;
0x00005084 addiu v1, v1, 0x6740 | v1 += str.open__s_error:_s_n;
0x00005088 sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x0000508c jalr t9 | t9 ();
0x00005090 addiu v0, zero, -1 | v0 = -1;
0x00005094 b 0x4ee0 | goto label_1;
| label_12:
0x00005098 lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x0000509c jalr t9 | t9 ();
0x000050a0 nop |
0x000050a4 lw gp, 0x30(sp) | gp = *(var_30h);
0x000050a8 lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x000050ac move s0, v0 | s0 = v0;
0x000050b0 jalr t9 | t9 ();
0x000050b4 lw gp, 0x30(sp) | gp = *(var_30h);
0x000050b8 lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x000050bc lw a0, (v0) | a0 = *(v0);
0x000050c0 jalr t9 | t9 ();
0x000050c4 lw gp, 0x30(sp) | gp = *(var_30h);
0x000050c8 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000050cc lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x000050d0 addiu v1, v1, 0x6634 | v1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x000050d4 sw v1, 0x10(sp) | *(var_10h) = v1;
0x000050d8 addiu v1, zero, 0x17a | v1 = 0x17a;
0x000050dc sw v1, 0x14(sp) | *(var_14h) = v1;
0x000050e0 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000050e4 addiu v1, v1, 0x6990 | v1 += obj.__func__.4702;
0x000050e8 sw v1, 0x18(sp) | *(var_18h) = v1;
0x000050ec lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000050f0 addiu v1, v1, 0x67a4 | v1 += str.write_disabled_keys_error:__s_n;
| do {
| label_2:
0x000050f4 lw a3, -0x7fd8(gp) | a3 = *((gp - 8182));
0x000050f8 sw v1, 0x1c(sp) | *(var_1ch) = v1;
0x000050fc sw v0, 0x20(sp) | *(var_20h) = v0;
0x00005100 addiu a0, zero, 6 | a0 = 6;
0x00005104 move a1, s0 | a1 = s0;
0x00005108 addiu a2, zero, 2 | a2 = 2;
0x0000510c addiu a3, a3, 0x662c | a3 += str.SU_Key;
0x00005110 jalr t9 | t9 ();
0x00005114 lw gp, 0x30(sp) | gp = *(var_30h);
0x00005118 lw t9, -0x7fc4(gp) | t9 = sym.imp.close;
0x0000511c move a0, s4 | a0 = s4;
0x00005120 jalr t9 | t9 ();
0x00005124 addiu v0, zero, -1 | v0 = -1;
0x00005128 b 0x4ee0 | goto label_1;
| label_6:
0x0000512c lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00005130 jalr t9 | t9 ();
0x00005134 nop |
0x00005138 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000513c lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x00005140 move s0, v0 | s0 = v0;
0x00005144 jalr t9 | t9 ();
0x00005148 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000514c lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x00005150 lw a0, (v0) | a0 = *(v0);
0x00005154 jalr t9 | t9 ();
0x00005158 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000515c lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00005160 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x00005164 addiu v1, v1, 0x6634 | v1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x00005168 sw v1, 0x10(sp) | *(var_10h) = v1;
0x0000516c addiu v1, zero, 0x152 | v1 = 0x152;
0x00005170 sw v1, 0x14(sp) | *(var_14h) = v1;
0x00005174 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00005178 addiu v1, v1, 0x6990 | v1 += obj.__func__.4702;
0x0000517c sw v1, 0x18(sp) | *(var_18h) = v1;
0x00005180 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x00005184 addiu v1, v1, 0x6754 | v1 += str.read_disabled_keys_error:__s_n;
0x00005188 b 0x50f4 |
| } while (1);
| label_13:
0x0000518c lw t9, -0x7f78(gp) | t9 = sym.imp.IMP_Log_Get_Option;
0x00005190 jalr t9 | t9 ();
0x00005194 nop |
0x00005198 lw gp, 0x30(sp) | gp = *(var_30h);
0x0000519c lw t9, -0x7fa4(gp) | t9 = sym.imp.__errno_location;
0x000051a0 move s0, v0 | s0 = v0;
0x000051a4 jalr t9 | t9 ();
0x000051a8 lw gp, 0x30(sp) | gp = *(var_30h);
0x000051ac lw t9, -0x7f08(gp) | t9 = sym.imp.strerror;
0x000051b0 lw a0, (v0) | a0 = *(v0);
0x000051b4 jalr t9 | t9 ();
0x000051b8 lw gp, 0x30(sp) | gp = *(var_30h);
0x000051bc lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000051c0 lw t9, -0x7f58(gp) | t9 = sym.imp.imp_log_fun;
0x000051c4 addiu v1, v1, 0x6634 | v1 += str._home_b_xbyu_work_isvp_w_proj_sdk_lv3_src_sysutils_misc_key.c;
0x000051c8 sw v1, 0x10(sp) | *(var_10h) = v1;
0x000051cc addiu v1, zero, 0x181 | v1 = 0x181;
0x000051d0 sw v1, 0x14(sp) | *(var_14h) = v1;
0x000051d4 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000051d8 addiu v1, v1, 0x6990 | v1 += obj.__func__.4702;
0x000051dc sw v1, 0x18(sp) | *(var_18h) = v1;
0x000051e0 lw v1, -0x7fd8(gp) | v1 = *((gp - 8182));
0x000051e4 addiu v1, v1, 0x67c4 | v1 += str.read_back_disabled_keys_error:__s_n;
0x000051e8 b 0x50f4 | goto label_2;
| }
[*] Function strcat used 5 times libsysutils.so