[*] Binary protection state of xfrm_user.ko
No RELRO No Canary found NX disabled REL No RPATH No RUNPATH Symbols
[*] Function popen tear down of xfrm_user.ko
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis9/kernel/net/xfrm/xfrm_user.ko @ 0x8001b70 */
| #include <stdint.h>
|
; (fcn) sym.xfrm_add_acquire () | void xfrm_add_acquire (int32_t arg1, int32_t arg2) {
| int32_t var_4h;
| int32_t var_ch;
| int32_t var_10h;
| int32_t var_10h_2;
| int32_t var_1ch;
| r0 = arg1;
| r1 = arg2;
0x08001b70 push {r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x08001b74 mov r7, r2 | r7 = r2;
0x08001b78 mov r5, r1 | r5 = r1;
0x08001b7c ldr r3, [r0, 0xc] | r3 = *((r0 + 0xc));
0x08001b80 sub sp, sp, 0x1c |
0x08001b84 ldr r8, [r2, 0x14] | r8 = *((r2 + 0x14));
0x08001b88 mvn r6, 0xb | r6 = ~0xb;
0x08001b8c ldr sl, [r3, 0x24] | sl = *((r3 + 0x24));
0x08001b90 mov r0, sl | r0 = sl;
0x08001b94 stmdaeq r0, {r1, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001b98 subs r4, r0, 0 | r4 = r0 - 0;
0x08001b9c str r6, [sp, 0xc] | var_ch = r6;
| if (r4 == r0) {
0x08001ba0 beq 0x8001d9c | goto label_1;
| }
0x08001ba4 ldr sb, [r7, 0x54] | sb = *((r7 + 0x54));
0x08001ba8 cmp sb, 0 |
| if (sb == 0) {
0x08001bac beq 0x8001da8 | goto label_2;
| }
0x08001bb0 ldr r0, [sb, 4] | r0 = *((sb + 4));
0x08001bb4 add r3, sp, 0x10 | r3 += var_10h;
0x08001bb8 ldr r1, [sb, 8] | r1 = *((sb + 8));
0x08001bbc mov fp, r0 |
0x08001bc0 mov sb, r1 | sb = r1;
0x08001bc4 stm r3!, {r0, r1} | *(r3!) = r0;
| *((r3! + 4)) = r1;
| label_0:
0x08001bc8 add r1, r5, 0x70 | r1 = r5 + 0x70;
0x08001bcc mov r0, r1 | r0 = r1;
0x08001bd0 bl 0x8000070 | r0 = verify_newpolicy_info ();
0x08001bd4 mov r6, r0 | r6 = r0;
0x08001bd8 cmp r0, 0 |
0x08001bdc str r0, [sp, 0xc] | var_ch = r0;
| if (r0 != 0) {
0x08001be0 bne 0x8001dc0 | goto label_3;
| }
0x08001be4 ldr r3, [r7, 0x20] | r3 = *((r7 + 0x20));
0x08001be8 cmp r3, 0 |
| if (r3 != 0) {
0x08001bec beq 0x8001c14 |
0x08001bf0 ldrh r2, [r3] | r2 = *(r3);
0x08001bf4 ldrh r0, [r3, 4] | r0 = *((r3 + 4));
0x08001bf8 sub r2, r2, 4 | r2 -= 4;
0x08001bfc cmp r0, r2 |
| if (r0 > r2) {
0x08001c00 bgt 0x8001dbc | goto label_4;
| }
0x08001c04 ldrh r3, [r3, 0xa] | r3 = *((r3 + 0xa));
0x08001c08 add r3, r3, 8 | r3 += 8;
0x08001c0c cmp r0, r3 |
| if (r0 != r3) {
0x08001c10 bne 0x8001dbc | goto label_4;
| }
| }
0x08001c14 mov r0, sl | r0 = sl;
0x08001c18 mov r2, r7 | r2 = r7;
0x08001c1c add r3, sp, 0xc | r3 += var_ch;
0x08001c20 bl 0x80019a0 | r0 = xfrm_policy_construct ();
0x08001c24 subs sl, r0, 0 | sl = r0 - 0;
| if (sl != r0) {
0x08001c28 ldreq r6, [sp, 0xc] | r6 = var_ch;
| }
| if (sl == r0) {
0x08001c2c beq 0x8001dc0 | goto label_3;
| }
0x08001c30 ldr r2, [r5, 0x10] | r2 = *((r5 + 0x10));
0x08001c34 add r7, r4, 0x20 | r7 = r4 + 0x20;
0x08001c38 ldr r1, [r5, 0x14] | r1 = *((r5 + 0x14));
0x08001c3c ldr r3, [r5, 0x18] | r3 = *((r5 + 0x18));
0x08001c40 ldr r0, [r5, 0x1c] | r0 = *((r5 + 0x1c));
0x08001c44 str r0, [r4, 0x2c] | *((r4 + 0x2c)) = r0;
0x08001c48 str r3, [r4, 0x28] | *((r4 + 0x28)) = r3;
0x08001c4c add r3, r5, 0x38 | r3 = r5 + 0x38;
0x08001c50 str r2, [r4, 0x20] | *((r4 + 0x20)) = r2;
0x08001c54 str r1, [r4, 0x24] | *((r4 + 0x24)) = r1;
0x08001c58 ldr r2, [r5, 0x20] | r2 = *((r5 + 0x20));
0x08001c5c ldr r1, [r5, 0x24] | r1 = *((r5 + 0x24));
0x08001c60 str r1, [r4, 0x34] | *((r4 + 0x34)) = r1;
0x08001c64 add r1, r5, 0x68 | r1 = r5 + 0x68;
0x08001c68 str r2, [r4, 0x30] | *((r4 + 0x30)) = r2;
0x08001c6c add r2, r4, 0x38 | r2 = r4 + 0x38;
0x08001c70 str r1, [sp, 4] | var_4h = r1;
0x08001c74 ldr ip, [r5, 0x28] | ip = *((r5 + 0x28));
0x08001c78 ldr r0, [r5, 0x2c] | r0 = *((r5 + 0x2c));
0x08001c7c ldr r1, [r5, 0x30] | r1 = *((r5 + 0x30));
0x08001c80 ldr lr, [r5, 0x34] |
0x08001c84 str lr, [r4, 0xb0] |
0x08001c88 str ip, [r4, 0xa4] | *((r4 + 0xa4)) = ip;
0x08001c8c str r0, [r4, 0xa8] | *((r4 + 0xa8)) = r0;
0x08001c90 str r1, [r4, 0xac] | *((r4 + 0xac)) = r1;
| do {
0x08001c94 ldr r1, [r3, 8] | r1 = *((r3 + 8));
0x08001c98 add r3, r3, 0x10 | r3 += 0x10;
0x08001c9c ldr ip, [r3, -0x10] | ip = *((r3 - 0x10));
0x08001ca0 add r2, r2, 0x10 | r2 += 0x10;
0x08001ca4 ldr r0, [r3, -0xc] | r0 = *((r3 - 0xc));
0x08001ca8 ldr lr, [r3, -4] |
0x08001cac str lr, [r2, -4] |
0x08001cb0 str ip, [r2, -0x10] | *((r2 - 0x10)) = ip;
0x08001cb4 str r0, [r2, -0xc] | *((r2 - 0xc)) = r0;
0x08001cb8 str r1, [r2, -8] | *((r2 - 8)) = r1;
0x08001cbc ldr r1, [sp, 4] | r1 = var_4h;
0x08001cc0 cmp r3, r1 |
0x08001cc4 bne 0x8001c94 |
| } while (r3 != r1);
0x08001cc8 ldr r1, [r3] | r1 = *(r3);
0x08001ccc add r8, r8, 4 | r8 += 4;
0x08001cd0 ldr r3, [r3, 4] | r3 = *((r3 + 4));
0x08001cd4 str r3, [r2, 4] | *((r2 + 4)) = r3;
0x08001cd8 str r1, [r2] | *(r2) = r1;
0x08001cdc str sb, [r4, 0x74] | *((r4 + 0x74)) = sb;
0x08001ce0 str sb, [sl, 0x44] | *((sl + 0x44)) = sb;
0x08001ce4 str fp, [r4, 0x70] | *((r4 + 0x70)) = fp;
0x08001ce8 str fp, [sl, 0x40] | *((sl + 0x40)) = fp;
0x08001cec ldrb r3, [sl, 0x114] | r3 = *((sl + 0x114));
0x08001cf0 cmp r3, 0 |
| if (r3 == 0) {
0x08001cf4 addne sb, sl, 0x11c | sb = sl + 0x11c;
| }
| if (r3 == 0) {
0x08001cf8 movne fp, 0 |
| }
| if (r3 == 0) {
0x08001cfc beq 0x8001d8c | goto label_5;
| }
| do {
0x08001d00 ldr r3, [sb] | r3 = *(sb);
0x08001d04 add r8, r8, 0x40 | r8 += 0x40;
0x08001d08 ldr ip, [sb, 4] | ip = *((sb + 4));
0x08001d0c mov r0, r4 | r0 = r4;
0x08001d10 ldr r1, [sb, 8] | r1 = *((sb + 8));
0x08001d14 add fp, fp, 1 |
0x08001d18 ldr r2, [sb, 0xc] | r2 = *((sb + 0xc));
0x08001d1c str r2, [r7, 0xc] | *((r7 + 0xc)) = r2;
0x08001d20 mov r2, sl | r2 = sl;
0x08001d24 str r1, [r7, 8] | *((r7 + 8)) = r1;
0x08001d28 mov r1, sb | r1 = sb;
0x08001d2c str r3, [r7] | *(r7) = r3;
0x08001d30 add sb, sb, 0x40 | sb += 0x40;
0x08001d34 str ip, [r7, 4] | *((r7 + 4)) = ip;
0x08001d38 ldr ip, [sb, -0x2c] | ip = *((sb - 0x2c));
0x08001d3c ldr r3, [sb, -0x30] | r3 = *((sb - 0x30));
0x08001d40 str r3, [r7, 0x10] | *((r7 + 0x10)) = r3;
0x08001d44 str ip, [r7, 0x14] | *((r7 + 0x14)) = ip;
0x08001d48 ldrb r3, [sb, -0x10] | r3 = *((sb - 0x10));
0x08001d4c strb r3, [r4, 0x9c] | *((r4 + 0x9c)) = r3;
0x08001d50 ldr r3, [sb, -0x14] | r3 = *((sb - 0x14));
0x08001d54 str r3, [r4, 0x98] | *((r4 + 0x98)) = r3;
0x08001d58 ldrh r3, [r8, -0x28] | r3 = *((r8 - 0x28));
0x08001d5c strh r3, [r4, 0xa2] | *((r4 + 0xa2)) = r3;
0x08001d60 ldr r3, [r5, 0x118] | r3 = *((r5 + 0x118));
0x08001d64 str r3, [sb, -0xc] | *((sb - 0xc)) = r3;
0x08001d68 ldr r3, [r5, 0x11c] | r3 = *((r5 + 0x11c));
0x08001d6c str r3, [sb, -8] | *((sb - 8)) = r3;
0x08001d70 ldr r3, [r5, 0x120] | r3 = *((r5 + 0x120));
0x08001d74 str r3, [sb, -4] | *((sb - 4)) = r3;
0x08001d78 stmdaeq r0, {r1, r2, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001d7c ldrb r3, [sl, 0x114] | r3 = *((sl + 0x114));
0x08001d80 str r0, [sp, 0xc] | var_ch = r0;
0x08001d84 cmp r3, fp |
0x08001d88 bgt 0x8001d00 |
| } while (r3 > fp);
| label_5:
0x08001d8c mov r0, r4 | r0 = r4;
0x08001d90 stmdaeq r0, {r1, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001d94 mov r0, sl | r0 = sl;
0x08001d98 stmdaeq r0, {r1, r2, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
| label_1:
0x08001d9c mov r0, r6 | r0 = r6;
0x08001da0 add sp, sp, 0x1c |
0x08001da4 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_2:
0x08001da8 mov r2, 0 | r2 = 0;
0x08001dac mov r3, 0 | r3 = 0;
0x08001db0 mov fp, sb |
0x08001db4 strd r2, r3, [sp, 0x10] | __asm ("strd r2, r3, [var_10h]");
0x08001db8 b 0x8001bc8 | goto label_0;
| label_4:
0x08001dbc mvn r6, 0x15 | r6 = ~0x15;
| label_3:
0x08001dc0 mov r0, r4 | r0 = r4;
0x08001dc4 stmdaeq r0, {r1, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001dc8 mov r0, r6 | r0 = r6;
0x08001dcc add sp, sp, 0x1c |
0x08001dd0 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis9/kernel/net/xfrm/xfrm_user.ko @ 0x8001dd4 */
| #include <stdint.h>
|
; (fcn) sym.xfrm_add_policy () | void xfrm_add_policy (int32_t arg1, int32_t arg2) {
| int32_t var_0h;
| int32_t var_4h;
| int32_t var_8h;
| int32_t var_ch;
| int32_t var_10h;
| int32_t var_18h;
| r0 = arg1;
| r1 = arg2;
0x08001dd4 push {r4, r5, r6, lr} |
0x08001dd8 mov r5, r1 | r5 = r1;
0x08001ddc add r1, r1, 0x10 | r1 += 0x10;
0x08001de0 sub sp, sp, 0x18 |
0x08001de4 mov r6, r0 | r6 = r0;
0x08001de8 mov r0, r1 | r0 = r1;
0x08001dec bl 0x8000070 | r0 = verify_newpolicy_info ();
0x08001df0 subs r4, r0, 0 | r4 = r0 - 0;
| if (r4 != r0) {
0x08001df4 bne 0x8001edc | goto label_0;
| }
0x08001df8 ldr r3, [r2, 0x20] | r3 = *((r2 + 0x20));
0x08001dfc cmp r3, 0 |
| if (r3 != 0) {
0x08001e00 beq 0x8001e28 |
0x08001e04 ldrh r0, [r3] | r0 = *(r3);
0x08001e08 ldrh ip, [r3, 4] | ip = *((r3 + 4));
0x08001e0c sub r0, r0, 4 | r0 -= 4;
0x08001e10 cmp ip, r0 |
| if (ip > r0) {
0x08001e14 bgt 0x8001f1c | goto label_1;
| }
0x08001e18 ldrh r3, [r3, 0xa] | r3 = *((r3 + 0xa));
0x08001e1c add r3, r3, 8 | r3 += 8;
0x08001e20 cmp ip, r3 |
| if (ip != r3) {
0x08001e24 bne 0x8001f1c | goto label_1;
| }
| }
0x08001e28 ldr r0, [r6, 0xc] | r0 = *((r6 + 0xc));
0x08001e2c mov r3, 0 | r3 = 0;
0x08001e30 str r3, [sp] | *(sp) = r3;
0x08001e34 mov r3, sp | r3 = sp;
0x08001e38 ldr r0, [r0, 0x24] | r0 = *((r0 + 0x24));
0x08001e3c bl 0x80019a0 | r0 = xfrm_policy_construct ();
0x08001e40 subs r6, r0, 0 | r6 = r0 - 0;
| if (r6 == r0) {
0x08001e44 beq 0x8001ee8 | goto label_2;
| }
0x08001e48 ldrh r2, [r5, 4] | r2 = *((r5 + 4));
0x08001e4c mov r1, r6 | r1 = r6;
0x08001e50 ldrb r0, [r5, 0xb0] | r0 = *((r5 + 0xb0));
0x08001e54 sub r2, r2, 0x13 | r2 -= 0x13;
0x08001e58 clz r2, r2 | r2 &= r2;
0x08001e5c lsr r2, r2, 5 | r2 >>= 5;
0x08001e60 stmdaeq r0, {r1, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001e64 clz r1, r0 | r1 &= r0;
0x08001e68 mov r4, r0 | r4 = r0;
0x08001e6c str r0, [sp] | *(sp) = r0;
0x08001e70 lsr r1, r1, 5 | r1 >>= 5;
0x08001e74 mov r0, r6 | r0 = r6;
0x08001e78 mov r2, 1 | r2 = 1;
0x08001e7c stmdaeq r0, {r1, r2, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001e80 cmp r4, 0 |
| if (r4 != 0) {
0x08001e84 bne 0x8001ef0 | goto label_3;
| }
0x08001e88 ldrh r3, [r5, 4] | r3 = *((r5 + 4));
0x08001e8c mov r0, r6 | r0 = r6;
0x08001e90 ldr r2, [r5, 0xc] | r2 = *((r5 + 0xc));
0x08001e94 ldrb r1, [r5, 0xb0] | r1 = *((r5 + 0xb0));
0x08001e98 str r2, [sp, 0xc] | var_ch = r2;
0x08001e9c add r2, sp, 4 | r2 += var_4h;
0x08001ea0 str r3, [sp, 0x10] | var_10h = r3;
0x08001ea4 ldr r3, [r5, 8] | r3 = *((r5 + 8));
0x08001ea8 str r3, [sp, 8] | var_8h = r3;
0x08001eac stmdaeq r0, {r1, r3, r4, r6, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r3, r4, r6, r8, sb, sl, fp, ip, sp, lr}");
0x08001eb0 add r0, r6, 0x14 | r0 = r6 + 0x14;
0x08001eb4 pld [r0] | __asm ("pld [r0]");
| do {
0x08001eb8 ldrex r3, [r0] | __asm ("ldrex r3, [r0]");
0x08001ebc sub r2, r3, 1 | r2 = r3 - 1;
0x08001ec0 strex r1, r2, [r0] | __asm ("strex r1, r2, [r0]");
0x08001ec4 teq r1, 0 | __asm ("teq r1, 0");
0x08001ec8 bne 0x8001eb8 |
| } while (r4 != 0);
0x08001ecc cmp r3, 1 |
| if (r3 == 1) {
0x08001ed0 beq 0x8001f10 | goto label_4;
| }
0x08001ed4 cmp r3, 0 |
| if (r3 <= 0) {
0x08001ed8 ble 0x8001f04 | goto label_5;
| }
| do {
| label_0:
0x08001edc mov r0, r4 | r0 = r4;
0x08001ee0 add sp, sp, 0x18 |
0x08001ee4 pop {r4, r5, r6, pc} |
| label_2:
0x08001ee8 ldr r4, [sp] | r4 = *(sp);
0x08001eec b 0x8001edc |
| } while (1);
| label_3:
0x08001ef0 ldr r0, [r6, 0x118] | r0 = *((r6 + 0x118));
0x08001ef4 stmdaeq r0, {r1, r2, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001ef8 mov r0, r6 | r0 = r6;
0x08001efc stmdaeq r0, {r1, r2, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001f00 b 0x8001edc | goto label_0;
| label_5:
0x08001f04 mov r1, 3 | r1 = 3;
0x08001f08 stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001f0c b 0x8001edc | goto label_0;
| label_4:
0x08001f10 mov r0, r6 | r0 = r6;
0x08001f14 stmdaeq r0, {r1, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001f18 b 0x8001edc | goto label_0;
| label_1:
0x08001f1c mvn r4, 0x15 | r4 = ~0x15;
0x08001f20 b 0x8001edc | goto label_0;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis9/kernel/net/xfrm/xfrm_user.ko @ 0x8001f24 */
| #include <stdint.h>
|
| #define BIT_MASK(t,v) ((t)(-((v)!= 0)))&(((t)-1)>>((sizeof(t)*CHAR_BIT)-(v)))
|
; (fcn) sym.xfrm_add_sa_expire () | void xfrm_add_sa_expire (int32_t arg1, int32_t arg2) {
| int32_t var_0h;
| int32_t var_4h;
| int32_t var_8h;
| int32_t var_ch;
| int32_t var_14h;
| r0 = arg1;
| r1 = arg2;
0x08001f24 push {r4, r5, lr} |
0x08001f28 mov r4, r1 | r4 = r1;
0x08001f2c ldr r3, [r0, 0xc] | r3 = *((r0 + 0xc));
0x08001f30 sub sp, sp, 0x14 |
0x08001f34 ldr r1, [r2, 0x54] | r1 = *((r2 + 0x54));
0x08001f38 ldr ip, [r3, 0x24] | ip = *((r3 + 0x24));
0x08001f3c cmp r1, 0 |
| if (r1 == 0) {
0x08001f40 beq 0x8001ff8 | goto label_3;
| }
0x08001f44 add r3, sp, 8 | r3 += var_8h;
0x08001f48 ldr r0, [r1, 4] | r0 = *((r1 + 4));
0x08001f4c ldr r1, [r1, 8] | r1 = *((r1 + 8));
0x08001f50 stm r3!, {r0, r1} | *(r3!) = r0;
| *((r3! + 4)) = r1;
0x08001f54 mov r1, r0 | r1 = r0;
0x08001f58 ldr r3, [sp, 0xc] | r3 = var_ch;
0x08001f5c and r1, r1, r3 | r1 &= r3;
| label_0:
0x08001f60 ldrh r2, [r4, 0xe4] | r2 = *((r4 + 0xe4));
0x08001f64 mov r0, ip | r0 = ip;
0x08001f68 ldrb r3, [r4, 0x5c] | r3 = *((r4 + 0x5c));
0x08001f6c str r3, [sp] | *(sp) = r3;
0x08001f70 str r2, [sp, 4] | var_4h = r2;
0x08001f74 add r2, r4, 0x48 | r2 = r4 + 0x48;
0x08001f78 ldr r3, [r4, 0x58] | r3 = *((r4 + 0x58));
0x08001f7c stmdaeq r0, {r1, r2, r3, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001f80 subs r5, r0, 0 | r5 = r0 - 0;
| if (r5 == r0) {
0x08001f84 beq 0x8002070 | goto label_4;
| }
0x08001f88 mov r3, sp | r3 = sp;
0x08001f8c bic r2, r3, 0x1fc0 | r2 = BIT_MASK (r3, 0x1fc0);
0x08001f90 bic r2, r2, 0x3f | r2 = BIT_MASK (r2, 0x3f);
0x08001f94 ldr r3, [r2, 4] | r3 = *((r2 + 4));
0x08001f98 add r3, r3, 0x200 | r3 += 0x200;
0x08001f9c add r3, r3, 1 | r3++;
0x08001fa0 str r3, [r2, 4] | *((r2 + 4)) = r3;
0x08001fa4 ldrb r3, [r5, 0x8c] | r3 = *((r5 + 0x8c));
0x08001fa8 cmp r3, 2 |
| if (r3 == 2) {
0x08001fac mvnne r4, 0x15 | r4 = ~0x15;
| }
| if (r3 == 2) {
0x08001fb0 beq 0x8002020 | goto label_5;
| }
| label_1:
0x08001fb4 ldr r0, [pc, 0xbc] | r0 = *(0x8002074);
0x08001fb8 movw r1, 0x201 | r1 = 0x201;
0x08001fbc stmdaeq r0, {r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001fc0 add r0, r5, 0x1c | r0 = r5 + 0x1c;
0x08001fc4 pld [r0] | __asm ("pld [r0]");
| do {
0x08001fc8 ldrex r3, [r0] | __asm ("ldrex r3, [r0]");
0x08001fcc sub r2, r3, 1 | r2 = r3 - 1;
0x08001fd0 strex r1, r2, [r0] | __asm ("strex r1, r2, [r0]");
0x08001fd4 teq r1, 0 | __asm ("teq r1, 0");
0x08001fd8 bne 0x8001fc8 |
| } while (r3 != 2);
0x08001fdc cmp r3, 1 |
| if (r3 != 1) {
0x08001fe0 beq 0x8002008 |
0x08001fe4 cmp r3, 0 |
| if (r3 <= 0) {
0x08001fe8 ble 0x8002040 | goto label_6;
| }
| label_2:
0x08001fec mov r0, r4 | r0 = r4;
0x08001ff0 add sp, sp, 0x14 |
0x08001ff4 pop {r4, r5, pc} |
| label_3:
0x08001ff8 mov r2, 0 | r2 = 0;
0x08001ffc mov r3, 0 | r3 = 0;
0x08002000 strd r2, r3, [sp, 8] | __asm ("strd r2, r3, [var_8h]");
0x08002004 b 0x8001f60 | goto label_0;
| }
0x08002008 mov r1, 0 | r1 = 0;
0x0800200c mov r0, r5 | r0 = r5;
0x08002010 stmdaeq r0, {r1, r2, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08002014 mov r0, r4 | r0 = r4;
0x08002018 add sp, sp, 0x14 |
0x0800201c pop {r4, r5, pc} |
| label_5:
0x08002020 ldr r2, [r4, 0xc] | r2 = *((r4 + 0xc));
0x08002024 ldrb r1, [r4, 0xf0] | r1 = *((r4 + 0xf0));
0x08002028 stmdaeq r0, {r1, pc} | __asm ("stmdaeq r0, {r1, pc}");
0x0800202c ldrb r3, [r4, 0xf0] | r3 = *((r4 + 0xf0));
0x08002030 cmp r3, 0 |
0x08002034 bne 0x8002054 |
| while (1) {
0x08002038 mov r4, 0 | r4 = 0;
0x0800203c b 0x8001fb4 | goto label_1;
| label_6:
0x08002040 mov r1, 3 | r1 = 3;
0x08002044 stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08002048 mov r0, r4 | r0 = r4;
0x0800204c add sp, sp, 0x14 |
0x08002050 pop {r4, r5, pc} |
0x08002054 mov r0, r5 | r0 = r5;
0x08002058 stmdaeq r0, {r1, r2, pc} | __asm ("stmdaeq r0, {r1, r2, pc}");
0x0800205c mov r2, 1 | r2 = 1;
0x08002060 mov r0, r5 | r0 = r5;
0x08002064 mov r1, r2 | r1 = r2;
0x08002068 stmdaeq r0, {r1, r3, pc} | __asm ("stmdaeq r0, {r1, r3, pc}");
0x0800206c b 0x8002038 |
| }
| label_4:
0x08002070 mvn r4, 1 | r4 = ~1;
0x08002074 b 0x8001fec | goto label_2;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis9/kernel/net/xfrm/xfrm_user.ko @ 0x8004160 */
| #include <stdint.h>
|
| #define SWAP32(n) ((uint32_t) (((n & 0x000000ff) << 24) | \
| ((n & 0x0000ff00) << 8) | \
| ((n & 0x00ff0000) >> 8) | \
| ((n & 0xff000000) >> 24)))
|
; (fcn) sym.xfrm_add_sa () | void xfrm_add_sa (int32_t arg1, int32_t arg2) {
| int32_t var_4h;
| int32_t var_8h;
| int32_t var_ch;
| int32_t var_10h;
| int32_t var_1ch;
| r0 = arg1;
| r1 = arg2;
0x08004160 push {r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x08004164 mov r4, r1 | r4 = r1;
0x08004168 mov r7, r2 | r7 = r2;
0x0800416c ldrh r1, [r1, 0xe4] | r1 = *((r1 + 0xe4));
0x08004170 movw r3, 0xfff7 | r3 = 0xfff7;
0x08004174 ldr r2, [r0, 0xc] | r2 = *((r0 + 0xc));
0x08004178 sub sp, sp, 0x1c |
0x0800417c and r3, r3, r1 | r3 &= r1;
0x08004180 cmp r3, 2 |
0x08004184 ldr r6, [r2, 0x24] | r6 = *((r2 + 0x24));
0x08004188 beq 0x800419c |
| while (r3 != 0) {
| label_0:
0x0800418c mvn r8, 0x15 | r8 = ~0x15;
| label_1:
0x08004190 mov r0, r8 | r0 = r8;
0x08004194 add sp, sp, 0x1c |
0x08004198 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
0x0800419c ldrh r3, [r4, 0x38] | r3 = *((r4 + 0x38));
0x080041a0 cmp r3, 2 |
| if (r3 == 2) {
0x080041a4 beq 0x80049a8 | goto label_9;
| }
0x080041a8 cmp r3, 0xa |
| if (r3 == 0xa) {
0x080041ac beq 0x800498c | goto label_10;
| }
0x080041b0 cmp r3, 0 |
0x080041b4 bne 0x800418c |
| }
| label_2:
0x080041b8 ldrb r3, [r4, 0x5c] | r3 = *((r4 + 0x5c));
0x080041bc cmp r3, 0x3c |
| if (r3 > 0x3c) {
0x080041c0 bhi 0x8004224 | goto label_11;
| }
0x080041c4 cmp r3, 0x2a |
| if (r3 < 0x2a) {
0x080041c8 bls 0x800418c | goto label_0;
| }
0x080041cc sub r3, r3, 0x2b | r3 -= 0x2b;
0x080041d0 cmp r3, 0x11 |
| if (r3 > 0x11) {
| /* switch table (18 cases) at 0x80041dc */
0x080041d4 ldrls pc, [pc, r3, lsl 2] | offset_0 = r3 << 2;
| pc = *((pc + offset_0));
| }
0x080041d8 b 0x800418c | goto label_0;
| label_11:
0x08004224 cmp r3, 0x6c |
| if (r3 != 0x6c) {
0x08004228 bne 0x800418c | goto label_0;
| }
0x0800422c ldr r3, [r7, 0xc] | r3 = *((r7 + 0xc));
0x08004230 cmp r3, 0 |
| if (r3 == 0) {
0x08004234 beq 0x800418c | goto label_0;
| }
0x08004238 ldr r3, [r7, 0x48] | r3 = *((r7 + 0x48));
0x0800423c cmp r3, 0 |
| if (r3 != 0) {
0x08004240 bne 0x800418c | goto label_0;
| }
0x08004244 ldr r3, [r7, 4] | r3 = *((r7 + 4));
0x08004248 cmp r3, 0 |
| if (r3 != 0) {
0x0800424c bne 0x800418c | goto label_0;
| }
0x08004250 ldr r3, [r7, 0x50] | r3 = *((r7 + 0x50));
0x08004254 cmp r3, 0 |
| if (r3 != 0) {
0x08004258 bne 0x800418c | goto label_0;
| }
0x0800425c ldr r3, [r7, 8] | r3 = *((r7 + 8));
0x08004260 cmp r3, 0 |
| if (r3 != 0) {
0x08004264 bne 0x800418c | goto label_0;
| }
0x08004268 ldr r3, [r7, 0x58] | r3 = *((r7 + 0x58));
0x0800426c cmp r3, 0 |
| if (r3 != 0) {
0x08004270 bne 0x800418c | goto label_0;
| }
0x08004274 ldr r3, [r4, 0x58] | r3 = *((r4 + 0x58));
0x08004278 rev r3, r3 | r3 = SWAP32 (r3);
0x0800427c cmp r3, 0x10000 |
| if (r3 >= 0x10000) {
0x08004280 bhs 0x800418c | goto label_0;
| }
0x08004284 ldr r2, [r7, 8] | r2 = *((r7 + 8));
0x08004288 cmp r2, 0 |
| if (r2 == 0) {
0x0800428c beq 0x80042b8 | goto label_12;
| }
0x08004290 ldr r3, [r2, 0x44] | r3 = *((r2 + 0x44));
0x08004294 ldrh r1, [r2] | r1 = *(r2);
0x08004298 add r3, r3, 7 | r3 += 7;
0x0800429c sub r1, r1, 4 | r1 -= 4;
0x080042a0 lsr r3, r3, 3 | r3 >>= 3;
0x080042a4 add r3, r3, 0x44 | r3 += 0x44;
0x080042a8 cmp r1, r3 |
| if (r1 < r3) {
0x080042ac blt 0x800418c | goto label_0;
| }
0x080042b0 mov r3, 0 | r3 = 0;
0x080042b4 strb r3, [r2, 0x43] | *((r2 + 0x43)) = r3;
| label_12:
0x080042b8 ldr r2, [r7, 0xc] | r2 = *((r7 + 0xc));
0x080042bc cmp r2, 0 |
| if (r2 == 0) {
0x080042c0 beq 0x80042ec | goto label_13;
| }
0x080042c4 ldr r3, [r2, 0x44] | r3 = *((r2 + 0x44));
0x080042c8 ldrh r1, [r2] | r1 = *(r2);
0x080042cc add r3, r3, 7 | r3 += 7;
0x080042d0 sub r1, r1, 4 | r1 -= 4;
0x080042d4 lsr r3, r3, 3 | r3 >>= 3;
0x080042d8 add r3, r3, 0x44 | r3 += 0x44;
0x080042dc cmp r1, r3 |
| if (r1 < r3) {
0x080042e0 blt 0x800418c | goto label_0;
| }
0x080042e4 mov r3, 0 | r3 = 0;
0x080042e8 strb r3, [r2, 0x43] | *((r2 + 0x43)) = r3;
| label_13:
0x080042ec ldr r3, [r7, 0x20] | r3 = *((r7 + 0x20));
0x080042f0 cmp r3, 0 |
| if (r3 == 0) {
0x080042f4 beq 0x800431c | goto label_14;
| }
0x080042f8 ldrh r2, [r3] | r2 = *(r3);
0x080042fc ldrh r1, [r3, 4] | r1 = *((r3 + 4));
0x08004300 sub r2, r2, 4 | r2 -= 4;
0x08004304 cmp r1, r2 |
| if (r1 > r2) {
0x08004308 bgt 0x800418c | goto label_0;
| }
0x0800430c ldrh r3, [r3, 0xa] | r3 = *((r3 + 0xa));
0x08004310 add r3, r3, 8 | r3 += 8;
0x08004314 cmp r1, r3 |
| if (r1 != r3) {
0x08004318 bne 0x800418c | goto label_0;
| }
| label_14:
0x0800431c ldr r2, [r7, 0x5c] | r2 = *((r7 + 0x5c));
0x08004320 cmp r2, 0 |
| if (r2 == 0) {
0x08004324 beq 0x8004c4c | goto label_15;
| }
0x08004328 ldr r3, [r2, 4] | r3 = *((r2 + 4));
0x0800432c cmp r3, 0x80 |
| if (r3 > 0x80) {
0x08004330 bhi 0x800418c | goto label_0;
| }
0x08004334 ldrh r2, [r2] | r2 = *(r2);
0x08004338 add r3, r3, 6 | r3 += 6;
0x0800433c sub r1, r2, 4 | r1 = r2 - 4;
0x08004340 lsl r3, r3, 2 | r3 <<= 2;
0x08004344 cmp r2, 0x1c |
0x08004348 cmpne r3, r1 | __asm ("cmpne r3, r1");
| if (r2 > 0x1c) {
0x0800434c bgt 0x800418c | goto label_0;
| }
0x08004350 ldrb r3, [r4, 0x5c] | r3 = *((r4 + 0x5c));
0x08004354 sub r3, r3, 0x32 | r3 -= 0x32;
0x08004358 cmp r3, 1 |
| if (r3 > 1) {
0x0800435c bhi 0x800418c | goto label_0;
| }
0x08004360 ldrb r3, [r4, 0xe7] | r3 = *((r4 + 0xe7));
0x08004364 cmp r3, 0 |
| if (r3 != 0) {
0x08004368 bne 0x800418c | goto label_0;
| }
| label_8:
0x0800436c ldrb r3, [r4, 0xe6] | r3 = *((r4 + 0xe6));
0x08004370 cmp r3, 2 |
| if (r3 < 2) {
0x08004374 bls 0x8004380 | goto label_16;
| }
0x08004378 cmp r3, 4 |
| if (r3 != 4) {
0x0800437c bne 0x800418c | goto label_0;
| }
| label_16:
0x08004380 mov r0, r6 | r0 = r6;
0x08004384 stmdaeq r0, {r1, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004388 subs r5, r0, 0 | r5 = r0 - 0;
| if (r5 == r0) {
0x0800438c mvneq r8, 0xb | r8 = ~0xb;
| goto label_17;
| }
| if (r5 == r0) {
| label_17:
0x08004390 beq 0x8004190 | goto label_1;
| }
0x08004394 ldr r3, [r4, 0x48] | r3 = *((r4 + 0x48));
0x08004398 add r8, r4, 0x40 | r8 = r4 + 0x40;
0x0800439c ldr r2, [r4, 0x4c] | r2 = *((r4 + 0x4c));
0x080043a0 ldr r1, [r4, 0x50] | r1 = *((r4 + 0x50));
0x080043a4 ldr r0, [r4, 0x54] | r0 = *((r4 + 0x54));
0x080043a8 str r0, [r5, 0x2c] | *((r5 + 0x2c)) = r0;
0x080043ac str r3, [r5, 0x20] | *((r5 + 0x20)) = r3;
0x080043b0 str r2, [r5, 0x24] | *((r5 + 0x24)) = r2;
0x080043b4 str r1, [r5, 0x28] | *((r5 + 0x28)) = r1;
0x080043b8 ldr r3, [r4, 0x58] | r3 = *((r4 + 0x58));
0x080043bc ldr r2, [r4, 0x5c] | r2 = *((r4 + 0x5c));
0x080043c0 str r2, [r5, 0x34] | *((r5 + 0x34)) = r2;
0x080043c4 add r2, r5, 0x38 | r2 = r5 + 0x38;
0x080043c8 str r3, [r5, 0x30] | *((r5 + 0x30)) = r3;
0x080043cc add r3, r4, 0x10 | r3 = r4 + 0x10;
| do {
0x080043d0 ldr ip, [r3] | ip = *(r3);
0x080043d4 add r3, r3, 0x10 | r3 += 0x10;
0x080043d8 ldr r0, [r3, -0xc] | r0 = *((r3 - 0xc));
0x080043dc add r2, r2, 0x10 | r2 += 0x10;
0x080043e0 ldr r1, [r3, -8] | r1 = *((r3 - 8));
0x080043e4 ldr lr, [r3, -4] |
0x080043e8 cmp r3, r8 |
0x080043ec str lr, [r2, -4] |
0x080043f0 str ip, [r2, -0x10] | *((r2 - 0x10)) = ip;
0x080043f4 str r0, [r2, -0xc] | *((r2 - 0xc)) = r0;
0x080043f8 str r1, [r2, -8] | *((r2 - 8)) = r1;
0x080043fc bne 0x80043d0 |
| } while (r3 != r8);
0x08004400 ldr r1, [r3] | r1 = *(r3);
0x08004404 add r8, r4, 0xb0 | r8 = r4 + 0xb0;
0x08004408 ldr r3, [r3, 4] | r3 = *((r3 + 4));
0x0800440c str r3, [r2, 4] | *((r2 + 4)) = r3;
0x08004410 add r3, r4, 0x70 | r3 = r4 + 0x70;
0x08004414 str r1, [r2] | *(r2) = r1;
0x08004418 add r2, r5, 0xc8 | r2 = r5 + 0xc8;
| do {
0x0800441c ldr ip, [r3] | ip = *(r3);
0x08004420 add r3, r3, 0x10 | r3 += 0x10;
0x08004424 ldr r0, [r3, -0xc] | r0 = *((r3 - 0xc));
0x08004428 add r2, r2, 0x10 | r2 += 0x10;
0x0800442c ldr r1, [r3, -8] | r1 = *((r3 - 8));
0x08004430 ldr lr, [r3, -4] |
0x08004434 cmp r3, r8 |
0x08004438 str lr, [r2, -4] |
0x0800443c str ip, [r2, -0x10] | *((r2 - 0x10)) = ip;
0x08004440 str r0, [r2, -0xc] | *((r2 - 0xc)) = r0;
0x08004444 str r1, [r2, -8] | *((r2 - 8)) = r1;
0x08004448 bne 0x800441c |
| } while (r3 != r8);
0x0800444c ldrb r3, [r4, 0xe6] | r3 = *((r4 + 0xe6));
0x08004450 strb r3, [r5, 0x9c] | *((r5 + 0x9c)) = r3;
0x08004454 ldrb r3, [r4, 0xe7] | r3 = *((r4 + 0xe7));
0x08004458 cmp r3, 0x20 |
| if (r3 < 0x20) {
0x0800445c movhs r3, 0x20 | r3 = 0x20;
| }
0x08004460 strb r3, [r5, 0x9d] | *((r5 + 0x9d)) = r3;
0x08004464 ldr r3, [r4, 0xe0] | r3 = *((r4 + 0xe0));
0x08004468 str r3, [r5, 0x98] | *((r5 + 0x98)) = r3;
0x0800446c ldrh r3, [r4, 0xe4] | r3 = *((r4 + 0xe4));
0x08004470 strh r3, [r5, 0xa2] | *((r5 + 0xa2)) = r3;
0x08004474 ldr r2, [r4, 0x64] | r2 = *((r4 + 0x64));
0x08004478 ldr r3, [r4, 0x68] | r3 = *((r4 + 0x68));
0x0800447c ldr r1, [r4, 0x60] | r1 = *((r4 + 0x60));
0x08004480 ldr r0, [r4, 0x6c] | r0 = *((r4 + 0x6c));
0x08004484 str r0, [r5, 0xb0] | *((r5 + 0xb0)) = r0;
0x08004488 str r2, [r5, 0xa8] | *((r5 + 0xa8)) = r2;
0x0800448c str r1, [r5, 0xa4] | *((r5 + 0xa4)) = r1;
0x08004490 str r3, [r5, 0xac] | *((r5 + 0xac)) = r3;
0x08004494 ldrh r2, [r5, 0x60] | r2 = *((r5 + 0x60));
0x08004498 ldrb r3, [r4, 0xe8] | r3 = *((r4 + 0xe8));
0x0800449c cmp r2, 0 |
0x080044a0 strb r3, [r5, 0xa1] | *((r5 + 0xa1)) = r3;
| if (r2 == 0) {
0x080044a4 bne 0x80044b4 |
0x080044a8 tst r3, 0x20 |
0x080044ac ldrheq r3, [r4, 0xe4] | __asm ("ldrheq r3, [r4, 0xe4]");
0x080044b0 strheq r3, [r5, 0x60] | __asm ("strheq r3, [r5, 0x60]");
| }
0x080044b4 ldr r0, [r7, 0x10] | r0 = *((r7 + 0x10));
0x080044b8 cmp r0, 0 |
| if (r0 != 0) {
0x080044bc beq 0x80044dc |
0x080044c0 add r0, r0, 4 | r0 += 4;
0x080044c4 mov r2, 0xcc0 | r2 = 0xcc0;
0x080044c8 mov r1, 0x18 | r1 = 0x18;
0x080044cc stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x080044d0 cmp r0, 0 |
0x080044d4 str r0, [r5, 0x11c] | *((r5 + 0x11c)) = r0;
| if (r0 == 0) {
0x080044d8 beq 0x8004b24 | goto label_18;
| }
| }
0x080044dc ldr r0, [r7, 0x38] | r0 = *((r7 + 0x38));
0x080044e0 cmp r0, 0 |
| if (r0 != 0) {
0x080044e4 beq 0x8004504 |
0x080044e8 add r0, r0, 4 | r0 += 4;
0x080044ec mov r2, 0xcc0 | r2 = 0xcc0;
0x080044f0 mov r1, 0x10 | r1 = 0x10;
0x080044f4 stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x080044f8 cmp r0, 0 |
0x080044fc str r0, [r5, 0x124] | *((r5 + 0x124)) = r0;
| if (r0 == 0) {
0x08004500 beq 0x8004b24 | goto label_18;
| }
| }
0x08004504 ldr r3, [r7, 0x60] | r3 = *((r7 + 0x60));
0x08004508 cmp r3, 0 |
| if (r3 == 0) {
0x0800450c ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
| if (r3 == 0) {
0x08004510 strne r3, [r5, 0xbc] | *((r5 + 0xbc)) = r3;
| }
0x08004514 ldr sb, [r7, 0x48] | sb = *((r7 + 0x48));
0x08004518 cmp sb, 0 |
| if (sb != 0) {
0x0800451c beq 0x800457c |
0x08004520 add sl, sb, 4 | sl = sb + 4;
0x08004524 ldr r1, [sb, 0x48] | r1 = *((sb + 0x48));
0x08004528 mov r0, sl | r0 = sl;
0x0800452c mov r2, 1 | r2 = 1;
0x08004530 stmdaeq r0, {r1, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r1, r3, r4, r5, pc}");
0x08004534 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x08004538 beq 0x8004c34 | goto label_19;
| }
0x0800453c ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x08004540 mov r0, sl | r0 = sl;
0x08004544 strb r3, [r5, 0x9f] | *((r5 + 0x9f)) = r3;
0x08004548 mov r2, 0xcc0 | r2 = 0xcc0;
0x0800454c ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x08004550 add r1, r1, 7 | r1 += 7;
0x08004554 lsr r1, r1, 3 | r1 >>= 3;
0x08004558 add r1, r1, 0x48 | r1 += 0x48;
0x0800455c stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004560 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x08004564 beq 0x8004b24 | goto label_18;
| }
0x08004568 ldr r1, [r8] | r1 = *(r8);
0x0800456c stmdaeq r0, {r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, pc}");
0x08004570 str sb, [r5, 0x114] | *((r5 + 0x114)) = sb;
0x08004574 ldr r3, [r8, 0xc] | r3 = *((r8 + 0xc));
0x08004578 str r3, [r5, 0x118] | *((r5 + 0x118)) = r3;
| }
0x0800457c ldr sb, [r7, 0x50] | sb = *((r7 + 0x50));
0x08004580 cmp sb, 0 |
| if (sb != 0) {
0x08004584 beq 0x80045f8 |
0x08004588 add sl, sb, 4 | sl = sb + 4;
0x0800458c mov r1, 1 | r1 = 1;
0x08004590 mov r0, sl | r0 = sl;
0x08004594 stmdaeq r0, {r1, r6, pc} | __asm ("stmdaeq r0, {r1, r6, pc}");
0x08004598 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x0800459c beq 0x8004c34 | goto label_19;
| }
0x080045a0 ldrh r3, [r8, 0xe] | r3 = *((r8 + 0xe));
0x080045a4 ldr r2, [sb, 0x48] | r2 = *((sb + 0x48));
0x080045a8 cmp r2, r3 |
| if (r2 > r3) {
0x080045ac bhi 0x8004c40 | goto label_20;
| }
0x080045b0 ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x080045b4 mov r0, sl | r0 = sl;
0x080045b8 strb r3, [r5, 0x9e] | *((r5 + 0x9e)) = r3;
0x080045bc mov r2, 0xcc0 | r2 = 0xcc0;
0x080045c0 ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x080045c4 add r1, r1, 7 | r1 += 7;
0x080045c8 lsr r1, r1, 3 | r1 >>= 3;
0x080045cc add r1, r1, 0x48 | r1 += 0x48;
0x080045d0 stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x080045d4 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x080045d8 beq 0x8004b24 | goto label_18;
| }
0x080045dc ldr r1, [r8] | r1 = *(r8);
0x080045e0 stmdaeq r0, {r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, pc}");
0x080045e4 ldr r3, [sb, 0x44] | r3 = *((sb + 0x44));
0x080045e8 cmp r3, 0 |
0x080045ec ldrheq r3, [r8, 0xc] | __asm ("ldrheq r3, [r8, 0xc]");
| if (r3 != 0) {
0x080045f0 streq r3, [sb, 0x44] | *((sb + 0x44)) = r3;
| }
0x080045f4 str sb, [r5, 0x108] | *((r5 + 0x108)) = sb;
| }
0x080045f8 ldrb r3, [r5, 0x9e] | r3 = *((r5 + 0x9e));
0x080045fc cmp r3, 0 |
| if (r3 == 0) {
0x08004600 bne 0x800467c |
0x08004604 ldr sl, [r7, 4] | sl = *((r7 + 4));
0x08004608 cmp sl, 0 |
| if (sl == 0) {
0x0800460c beq 0x800467c | goto label_21;
| }
0x08004610 add r0, sl, 4 | r0 = sl + 4;
0x08004614 mov r1, 1 | r1 = 1;
0x08004618 stmdaeq r0, {r1, r6, pc} | __asm ("stmdaeq r0, {r1, r6, pc}");
0x0800461c subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x08004620 beq 0x8004c34 | goto label_19;
| }
0x08004624 ldrb r3, [sb, 0x14] | r3 = *((sb + 0x14));
0x08004628 mov r1, 0xcc0 | r1 = 0xcc0;
0x0800462c strb r3, [r5, 0x9e] | *((r5 + 0x9e)) = r3;
0x08004630 ldr r0, [sl, 0x44] | r0 = *((sl + 0x44));
0x08004634 add r0, r0, 7 | r0 += 7;
0x08004638 lsr r0, r0, 3 | r0 >>= 3;
0x0800463c add r0, r0, 0x48 | r0 += 0x48;
0x08004640 stmdaeq r0, {r1, r2, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r6, pc}");
0x08004644 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x08004648 beq 0x8004b24 | goto label_18;
| }
0x0800464c ldr r1, [sb] | r1 = *(sb);
0x08004650 stmdaeq r0, {r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, pc}");
0x08004654 ldr r2, [sl, 0x44] | r2 = *((sl + 0x44));
0x08004658 str r2, [r8, 0x40] | *((r8 + 0x40)) = r2;
0x0800465c add r1, sl, 0x48 | r1 = sl + 0x48;
0x08004660 add r2, r2, 7 | r2 += 7;
0x08004664 add r0, r8, 0x48 | r0 = r8 + 0x48;
0x08004668 ldrh r3, [sb, 0xc] | r3 = *((sb + 0xc));
0x0800466c lsr r2, r2, 3 | r2 >>= 3;
0x08004670 str r3, [r8, 0x44] | *((r8 + 0x44)) = r3;
0x08004674 stmdaeq r0, {r1, r2, r5, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r5, r8, sb, sl, fp, ip, sp, lr}");
0x08004678 str r8, [r5, 0x108] | *((r5 + 0x108)) = r8;
| }
| label_21:
0x0800467c ldr sb, [r7, 8] | sb = *((r7 + 8));
0x08004680 cmp sb, 0 |
| if (sb != 0) {
0x08004684 beq 0x80046e0 |
0x08004688 add sl, sb, 4 | sl = sb + 4;
0x0800468c mov r1, 1 | r1 = 1;
0x08004690 mov r0, sl | r0 = sl;
0x08004694 stmdaeq r0, {r1, r3, r6, pc} | __asm ("stmdaeq r0, {r1, r3, r6, pc}");
0x08004698 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x0800469c beq 0x8004c34 | goto label_19;
| }
0x080046a0 ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x080046a4 mov r0, sl | r0 = sl;
0x080046a8 strb r3, [r5, 0x9f] | *((r5 + 0x9f)) = r3;
0x080046ac mov r2, 0xcc0 | r2 = 0xcc0;
0x080046b0 ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x080046b4 add r1, r1, 7 | r1 += 7;
0x080046b8 lsr r1, r1, 3 | r1 >>= 3;
0x080046bc add r1, r1, 0x44 | r1 += 0x44;
0x080046c0 stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x080046c4 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x080046c8 beq 0x8004b24 | goto label_18;
| }
0x080046cc ldr r1, [r8] | r1 = *(r8);
0x080046d0 stmdaeq r0, {r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, pc}");
0x080046d4 str sb, [r5, 0x10c] | *((r5 + 0x10c)) = sb;
0x080046d8 ldr r3, [r8, 0xc] | r3 = *((r8 + 0xc));
0x080046dc str r3, [r5, 0x118] | *((r5 + 0x118)) = r3;
| }
0x080046e0 ldr sb, [r7, 0xc] | sb = *((r7 + 0xc));
0x080046e4 cmp sb, 0 |
| if (sb != 0) {
0x080046e8 beq 0x800473c |
0x080046ec add sl, sb, 4 | sl = sb + 4;
0x080046f0 mov r1, 1 | r1 = 1;
0x080046f4 mov r0, sl | r0 = sl;
0x080046f8 stmdaeq r0, {r1, r2, r3, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r6, pc}");
0x080046fc subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x08004700 beq 0x8004c34 | goto label_19;
| }
0x08004704 ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x08004708 mov r0, sl | r0 = sl;
0x0800470c strb r3, [r5, 0xa0] | *((r5 + 0xa0)) = r3;
0x08004710 mov r2, 0xcc0 | r2 = 0xcc0;
0x08004714 ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x08004718 add r1, r1, 7 | r1 += 7;
0x0800471c lsr r1, r1, 3 | r1 >>= 3;
0x08004720 add r1, r1, 0x44 | r1 += 0x44;
0x08004724 stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r4, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004728 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x0800472c beq 0x8004b24 | goto label_18;
| }
0x08004730 ldr r1, [r8] | r1 = *(r8);
0x08004734 stmdaeq r0, {r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, pc}");
0x08004738 str sb, [r5, 0x110] | *((r5 + 0x110)) = sb;
| }
0x0800473c ldr r3, [r7, 0x58] | r3 = *((r7 + 0x58));
0x08004740 cmp r3, 0 |
| if (r3 == 0) {
0x08004744 ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
| if (r3 == 0) {
0x08004748 strne r3, [r5, 0x7c] | *((r5 + 0x7c)) = r3;
| }
0x0800474c ldr r3, [r7, 0x54] | r3 = *((r7 + 0x54));
0x08004750 cmp r3, 0 |
| if (r3 != 0) {
0x08004754 streq r3, [r5, 0x74] | *((r5 + 0x74)) = r3;
| }
| if (r3 != 0) {
0x08004758 streq r3, [r5, 0x70] | *((r5 + 0x70)) = r3;
| }
| if (r3 == 0) {
0x0800475c ldrne r2, [r3, 4] | r2 = *((r3 + 4));
| }
| if (r3 == 0) {
0x08004760 ldrne r3, [r3, 8] | r3 = *((r3 + 8));
| }
| if (r3 == 0) {
0x08004764 strne r3, [r5, 0x74] | *((r5 + 0x74)) = r3;
| }
| if (r3 == 0) {
0x08004768 strne r2, [r5, 0x70] | *((r5 + 0x70)) = r2;
| }
0x0800476c ldr r3, [r7, 0x74] | r3 = *((r7 + 0x74));
0x08004770 cmp r3, 0 |
| if (r3 == 0) {
0x08004774 beq 0x8004c10 | goto label_22;
| }
0x08004778 ldr r3, [r3, 4] | r3 = *((r3 + 4));
0x0800477c str r3, [r5, 0xc0] | *((r5 + 0xc0)) = r3;
0x08004780 ldr r3, [r7, 0x78] | r3 = *((r7 + 0x78));
0x08004784 cmp r3, 0 |
| if (r3 != 0) {
0x08004788 mvneq r3, 0 | r3 = ~0;
| }
| if (r3 == 0) {
0x0800478c ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
0x08004790 str r3, [r5, 0xc4] | *((r5 + 0xc4)) = r3;
| label_6:
0x08004794 ldr r3, [r7, 0x7c] | r3 = *((r7 + 0x7c));
0x08004798 mov r0, r5 | r0 = r5;
0x0800479c mov r1, 0 | r1 = 0;
0x080047a0 cmp r3, 0 |
| if (r3 == 0) {
0x080047a4 ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
| if (r3 == 0) {
0x080047a8 strne r3, [r5, 0x78] | *((r5 + 0x78)) = r3;
| }
0x080047ac ldr r2, [r7, 0x70] | r2 = *((r7 + 0x70));
0x080047b0 subs r2, r2, 0 |
| if (r2 == r2) {
0x080047b4 movne r2, 1 | r2 = 1;
| }
0x080047b8 stmdaeq r0, {r1, r4, r6, pc} | __asm ("stmdaeq r0, {r1, r4, r6, pc}");
0x080047bc subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 != r0) {
0x080047c0 bne 0x8004c2c | goto label_23;
| }
0x080047c4 ldr r1, [r7, 0x20] | r1 = *((r7 + 0x20));
0x080047c8 cmp r1, 0 |
| if (r1 != 0) {
0x080047cc beq 0x80047e4 |
0x080047d0 add r1, r1, 4 | r1 += 4;
0x080047d4 mov r0, r5 | r0 = r5;
0x080047d8 stmdaeq r0, {r1, r2, r4, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r4, r6, pc}");
0x080047dc subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 != r0) {
0x080047e0 bne 0x8004c2c | goto label_23;
| }
| }
0x080047e4 ldr r1, [r7, 0x5c] | r1 = *((r7 + 0x5c));
0x080047e8 cmp r1, 0 |
| if (r1 != 0) {
0x080047ec beq 0x8004864 |
0x080047f0 ldr r8, [r1, 4] | r8 = *((r1 + 4));
0x080047f4 add sl, r1, 4 | sl = r1 + 4;
0x080047f8 ldrh r3, [r1] | r3 = *(r1);
0x080047fc mov r1, 0xdc0 | r1 = 0xdc0;
0x08004800 add r8, r8, 6 | r8 += 6;
0x08004804 sub r3, r3, 4 | r3 -= 4;
0x08004808 lsl r8, r8, 2 | r8 <<= 2;
0x0800480c cmp r3, r8 |
0x08004810 mov r0, r8 | r0 = r8;
| if (r3 < r8) {
0x08004814 movge fp, r8 |
| }
| if (r3 >= r8) {
0x08004818 movlt fp, 0x18 |
| }
0x0800481c stmdaeq r0, {r1, r2, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r6, pc}");
0x08004820 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x08004824 beq 0x8004b24 | goto label_18;
| }
0x08004828 mov r0, r8 | r0 = r8;
0x0800482c mov r1, 0xdc0 | r1 = 0xdc0;
0x08004830 stmdaeq r0, {r1, r2, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r6, pc}");
0x08004834 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x08004838 beq 0x8004b1c | goto label_24;
| }
0x0800483c mov r2, fp | r2 = fp;
0x08004840 mov r1, sl | r1 = sl;
0x08004844 mov r0, sb | r0 = sb;
0x08004848 stmdaeq r0, {r1, r2, r5, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r5, r8, sb, sl, fp, ip, sp, lr}");
0x0800484c mov r2, fp | r2 = fp;
0x08004850 mov r1, sl | r1 = sl;
0x08004854 mov r0, r8 | r0 = r8;
0x08004858 stmdaeq r0, {r1, r2, r5, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r5, r8, sb, sl, fp, ip, sp, lr}");
0x0800485c str sb, [r5, 0x13c] | *((r5 + 0x13c)) = sb;
0x08004860 str r8, [r5, 0x14c] | *((r5 + 0x14c)) = r8;
| }
0x08004864 ldr r3, [r4, 0xdc] | r3 = *((r4 + 0xdc));
0x08004868 mov r2, 0x64 | r2 = 0x64;
0x0800486c str r3, [r5, 0x90] | *((r5 + 0x90)) = r3;
0x08004870 mov r0, r5 | r0 = r5;
0x08004874 ldr r3, [r6, 0x7c0] | r3 = *((r6 + 0x7c0));
0x08004878 str r3, [r5, 0x15c] | *((r5 + 0x15c)) = r3;
0x0800487c ldr r3, [r6, 0x7bc] | r3 = *((r6 + 0x7bc));
0x08004880 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004884 mul r3, r2, r3 | r3 = r2 * r3;
0x08004888 movw r2, 0xcccd |
0x0800488c movt r2, 0xcccc | r2 = 0xcccccccd;
0x08004890 umull r2, r3, r2, r3 | r2:r3 = r2 * r3;
0x08004894 lsr r3, r3, 3 | r3 >>= 3;
0x08004898 str r3, [r5, 0x158] | *((r5 + 0x158)) = r3;
0x0800489c stmdaeq r0, {r1, r3, r4, r6, pc} | __asm ("stmdaeq r0, {r1, r3, r4, r6, pc}");
0x080048a0 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 != r0) {
0x080048a4 bne 0x8004b2c | goto label_7;
| }
0x080048a8 mov r2, r8 | r2 = r8;
0x080048ac mov r1, r7 | r1 = r7;
0x080048b0 mov r0, r5 | r0 = r5;
0x080048b4 pld [r6] | __asm ("pld [r6]");
0x080048b8 bl 0x80002ec | xfrm_update_ae_params ();
| do {
0x080048bc ldrex r3, [r6] | __asm ("ldrex r3, [r6]");
0x080048c0 add r2, r3, 1 | r2 = r3 + 1;
0x080048c4 strex r1, r2, [r6] | __asm ("strex r1, r2, [r6]");
0x080048c8 teq r1, 0 | __asm ("teq r1, 0");
0x080048cc bne 0x80048bc |
| } while (r8 != r0);
0x080048d0 cmp r3, 0 |
| if (r3 == 0) {
0x080048d4 beq 0x8004c1c | goto label_25;
| }
0x080048d8 add r2, r3, 1 | r2 = r3 + 1;
0x080048dc orrs r2, r2, r3 | r2 |= r3;
| if (r2 < r2) {
0x080048e0 bmi 0x8004b5c | goto label_26;
| }
| label_5:
0x080048e4 ldrh r3, [r4, 4] | r3 = *((r4 + 4));
0x080048e8 mov r0, r5 | r0 = r5;
0x080048ec cmp r3, 0x10 |
| if (r3 == 0x10) {
0x080048f0 beq 0x8004b50 | goto label_27;
| }
0x080048f4 stmdaeq r0, {r1, r2, r3, r4, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, pc}");
0x080048f8 mov r8, r0 | r8 = r0;
| label_4:
0x080048fc clz r1, r8 | r1 &= r8;
0x08004900 mov r0, r5 | r0 = r5;
0x08004904 mov r2, 1 | r2 = 1;
0x08004908 lsr r1, r1, 5 | r1 >>= 5;
0x0800490c stmdaeq r0, {r1, r5, r6, pc} | __asm ("stmdaeq r0, {r1, r5, r6, pc}");
0x08004910 cmp r8, 0 |
| if (r8 < 0) {
0x08004914 blt 0x8004b6c | goto label_28;
| }
0x08004918 ldrb r3, [r5, 0x8c] | r3 = *((r5 + 0x8c));
0x0800491c add r1, sp, 4 | r1 += var_4h;
0x08004920 mov r0, r5 | r0 = r5;
0x08004924 cmp r3, 0 |
| if (r3 != 0) {
0x08004928 moveq r3, 2 | r3 = 2;
| }
| if (r3 != 0) {
0x0800492c strbeq r3, [r5, 0x8c] | *((r5 + 0x8c)) = r3;
| }
0x08004930 ldr r3, [r4, 0xc] | r3 = *((r4 + 0xc));
0x08004934 ldr r2, [r4, 8] | r2 = *((r4 + 8));
0x08004938 str r3, [sp, 0xc] | var_ch = r3;
0x0800493c ldrh r3, [r4, 4] | r3 = *((r4 + 4));
0x08004940 str r2, [sp, 8] | var_8h = r2;
0x08004944 str r3, [sp, 0x10] | var_10h = r3;
0x08004948 stmdaeq r0, {r1, r5, r6, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r5, r6, r8, sb, sl, fp, ip, sp, lr}");
| label_3:
0x0800494c pld [r6] | __asm ("pld [r6]");
| do {
0x08004950 ldrex r3, [r6] | __asm ("ldrex r3, [r6]");
0x08004954 sub r2, r3, 1 | r2 = r3 - 1;
0x08004958 strex r1, r2, [r6] | __asm ("strex r1, r2, [r6]");
0x0800495c teq r1, 0 | __asm ("teq r1, 0");
0x08004960 bne 0x8004950 |
| } while (r3 != 0);
0x08004964 cmp r3, 1 |
| if (r3 == 1) {
0x08004968 beq 0x8004b38 | goto label_29;
| }
0x0800496c cmp r3, 0 |
| if (r3 > 0) {
0x08004970 bgt 0x8004190 | goto label_1;
| }
0x08004974 mov r0, r6 | r0 = r6;
0x08004978 mov r1, 3 | r1 = 3;
0x0800497c stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004980 mov r0, r8 | r0 = r8;
0x08004984 add sp, sp, 0x1c |
0x08004988 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_10:
0x0800498c ldrb r3, [r4, 0x3a] | r3 = *((r4 + 0x3a));
0x08004990 cmp r3, 0x80 |
| if (r3 > 0x80) {
0x08004994 bhi 0x800418c | goto label_0;
| }
0x08004998 ldrb r3, [r4, 0x3b] | r3 = *((r4 + 0x3b));
0x0800499c cmp r3, 0x80 |
| if (r3 < 0x80) {
0x080049a0 bls 0x80041b8 | goto label_2;
| }
0x080049a4 b 0x800418c | goto label_0;
| label_9:
0x080049a8 ldrb r3, [r4, 0x3a] | r3 = *((r4 + 0x3a));
0x080049ac cmp r3, 0x20 |
| if (r3 > 0x20) {
0x080049b0 bhi 0x800418c | goto label_0;
| }
0x080049b4 ldrb r3, [r4, 0x3b] | r3 = *((r4 + 0x3b));
0x080049b8 cmp r3, 0x20 |
| if (r3 < 0x20) {
0x080049bc bls 0x80041b8 | goto label_2;
| }
0x080049c0 b 0x800418c | goto label_0;
| label_24:
0x08004b1c mov r0, sb | r0 = sb;
0x08004b20 stmdaeq r0, {r1, r2, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
| label_18:
0x08004b24 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004b28 mvn r8, 0xb | r8 = ~0xb;
| label_7:
0x08004b2c mov r3, 5 | r3 = 5;
0x08004b30 strb r3, [r5, 0x8c] | *((r5 + 0x8c)) = r3;
0x08004b34 b 0x800494c | goto label_3;
| label_29:
0x08004b38 mov r1, 0 | r1 = 0;
0x08004b3c mov r0, r5 | r0 = r5;
0x08004b40 stmdaeq r0, {r1, r2, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004b44 mov r0, r8 | r0 = r8;
0x08004b48 add sp, sp, 0x1c |
0x08004b4c pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_27:
0x08004b50 stmdaeq r0, {r1, r2, r5, r6, pc} | __asm ("stmdaeq r0, {r1, r2, r5, r6, pc}");
0x08004b54 mov r8, r0 | r8 = r0;
0x08004b58 b 0x80048fc | goto label_4;
| label_26:
0x08004b5c mov r0, r6 | r0 = r6;
0x08004b60 mov r1, 1 | r1 = 1;
0x08004b64 stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004b68 b 0x80048e4 | goto label_5;
| label_28:
0x08004b6c mov r3, 5 | r3 = 5;
0x08004b70 strb r3, [r5, 0x8c] | *((r5 + 0x8c)) = r3;
0x08004b74 pld [r6] | __asm ("pld [r6]");
| do {
0x08004b78 ldrex r3, [r6] | __asm ("ldrex r3, [r6]");
0x08004b7c sub r2, r3, 1 | r2 = r3 - 1;
0x08004b80 strex r1, r2, [r6] | __asm ("strex r1, r2, [r6]");
0x08004b84 teq r1, 0 | __asm ("teq r1, 0");
0x08004b88 bne 0x8004b78 |
| } while (r3 != 0x20);
0x08004b8c cmp r3, 1 |
| if (r3 > 1) {
0x08004b90 bgt 0x800494c | goto label_3;
| }
0x08004b94 mov r0, r6 | r0 = r6;
0x08004b98 mov r1, 4 | r1 = 4;
0x08004b9c stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004ba0 b 0x800494c | goto label_3;
| label_22:
0x08004c10 str r3, [r5, 0xc4] | *((r5 + 0xc4)) = r3;
0x08004c14 str r3, [r5, 0xc0] | *((r5 + 0xc0)) = r3;
0x08004c18 b 0x8004794 | goto label_6;
| label_25:
0x08004c1c mov r0, r6 | r0 = r6;
0x08004c20 mov r1, 2 | r1 = 2;
0x08004c24 stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r1, r2, r3, r4, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004c28 b 0x80048e4 | goto label_5;
| label_23:
0x08004c2c add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c30 b 0x8004b2c | goto label_7;
| label_19:
0x08004c34 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c38 mvn r8, 0x25 | r8 = ~0x25;
0x08004c3c b 0x8004b2c | goto label_7;
| label_20:
0x08004c40 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c44 mvn r8, 0x15 | r8 = ~0x15;
0x08004c48 b 0x8004b2c | goto label_7;
| label_15:
0x08004c4c ldrsb r3, [r4, 0xe8] | r3 = *((r4 + 0xe8));
0x08004c50 cmp r3, 0 |
| if (r3 >= 0) {
0x08004c54 bge 0x800436c | goto label_8;
| }
0x08004c58 b 0x800418c | goto label_0;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis9/kernel/net/xfrm/xfrm_user.ko @ 0x8003230 */
| #include <stdint.h>
|
; (fcn) sym.xfrm_send_policy_notify () | void xfrm_send_policy_notify (int32_t arg1, int32_t arg2) {
| int32_t var_10h;
| r0 = arg1;
| r1 = arg2;
0x08003230 push {r4, r5, r6, r7, r8, sb, sl, lr} |
0x08003234 mov r7, r1 | r7 = r1;
0x08003238 mov r4, r2 | r4 = r2;
0x0800323c ldr r1, [r2, 0xc] | r1 = *((r2 + 0xc));
0x08003240 sub sp, sp, 0x10 |
0x08003244 mov r5, r0 | r5 = r0;
0x08003248 sub r3, r1, 0x13 | r3 = r1 - 0x13;
0x0800324c cmp r3, 0xa |
| if (r3 > 0xa) {
| /* switch table (11 cases) at 0x8003258 */
0x08003250 ldrls pc, [pc, r3, lsl 2] | offset_0 = r3 << 2;
| pc = *((pc + offset_0));
| }
0x08003254 b 0x8003798 |
| while (1) {
0x080033bc mov r0, r4 | r0 = r4;
0x080033c0 add sp, sp, 0x10 |
0x080033c4 pop {r4, r5, r6, r7, r8, sb, sl, pc} |
0x08003798 stmdaeq r0, {r4, r5, r7, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r4, r5, r7, sb, sl, fp, lr}");
0x0800379c stmdaeq r0, {r4, r5, r7, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r4, r5, r7, sb, sl, fp, lr}");
0x080037a0 mov r4, 0 | r4 = 0;
0x080037a4 stmdaeq r0, {r1, r2, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r5, pc}");
0x080037a8 b 0x80033bc |
| }
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-80367616.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis9/kernel/net/xfrm/xfrm_user.ko @ 0x80039dc */
| #include <stdint.h>
|
; (fcn) sym.xfrm_send_state_notify () | void xfrm_send_state_notify (int32_t arg1, int32_t arg2) {
| int32_t var_14h;
| r0 = arg1;
| r1 = arg2;
0x080039dc push {r4, r5, r6, r7, r8, sb, lr} |
0x080039e0 mov r5, r1 | r5 = r1;
0x080039e4 mov r4, r0 | r4 = r0;
0x080039e8 ldr r1, [r1, 0xc] | r1 = *((r1 + 0xc));
0x080039ec sub sp, sp, 0x14 |
0x080039f0 sub r3, r1, 0x10 | r3 = r1 - 0x10;
0x080039f4 cmp r3, 0xe |
| if (r3 > 0xe) {
| /* switch table (15 cases) at 0x8003a00 */
0x080039f8 ldrls pc, [pc, r3, lsl 2] | offset_0 = r3 << 2;
| pc = *((pc + offset_0));
| }
0x080039fc b 0x8003f2c |
| while (1) {
0x08003c90 mov r0, r4 | r0 = r4;
0x08003c94 add sp, sp, 0x14 |
0x08003c98 pop {r4, r5, r6, r7, r8, sb, pc} |
0x08003f2c stmdaeq r0, {r3, r4, r6, r7, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r3, r4, r6, r7, sb, sl, fp, lr}");
0x08003f30 stmdaeq r0, {r3, r4, r6, r7, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r3, r4, r6, r7, sb, sl, fp, lr}");
0x08003f34 mov r4, 0 | r4 = 0;
0x08003f38 stmdaeq r0, {r1, r2, r5, pc} | __asm ("stmdaeq r0, {r1, r2, r5, pc}");
0x08003f3c b 0x8003c90 |
| }
| }
[*] Function popen used 1 times xfrm_user.ko