[*] Binary protection state of xfrm_user.ko
No RELRO No Canary found NX disabled REL No RPATH No RUNPATH Symbols
[*] Function fprintf tear down of xfrm_user.ko
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis8/kernel/net/xfrm/xfrm_user.ko @ 0x8001b68 */
| #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_14h;
| int32_t var_1ch;
| r0 = arg1;
| r1 = arg2;
0x08001b68 push {r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x08001b6c mov r7, r2 | r7 = r2;
0x08001b70 mov r5, r1 | r5 = r1;
0x08001b74 ldr r3, [r0, 0xc] | r3 = *((r0 + 0xc));
0x08001b78 sub sp, sp, 0x1c |
0x08001b7c ldr sb, [r2, 0x14] | sb = *((r2 + 0x14));
0x08001b80 mvn r6, 0xb | r6 = ~0xb;
0x08001b84 ldr sl, [r3, 0x24] | sl = *((r3 + 0x24));
0x08001b88 mov r0, sl | r0 = sl;
0x08001b8c stmdaeq r0, {r0, r1, r2, r3, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r6, pc}");
0x08001b90 subs r4, r0, 0 | r4 = r0 - 0;
0x08001b94 str r6, [sp, 0xc] | var_ch = r6;
| if (r4 == r0) {
0x08001b98 beq 0x8001db8 | goto label_0;
| }
0x08001b9c ldr r8, [r7, 0x54] | r8 = *((r7 + 0x54));
0x08001ba0 cmp r8, 0 |
| if (r8 != 0) {
0x08001ba4 streq r8, [sp, 0x14] | var_14h = r8;
| }
| if (r8 == 0) {
0x08001ba8 addne r3, sp, 0x10 | r3 += var_10h;
| }
| if (r8 != 0) {
0x08001bac moveq fp, r8 |
| }
| if (r8 != 0) {
0x08001bb0 streq r8, [sp, 0x10] | var_10h = r8;
| }
| if (r8 == 0) {
0x08001bb4 ldrne r1, [r8, 8] | r1 = *((r8 + 8));
| }
| if (r8 == 0) {
0x08001bb8 ldrne r0, [r8, 4] | r0 = *((r8 + 4));
| }
| if (r8 == 0) {
0x08001bbc stmne r3!, {r0, r1} | *(r3!) = r0;
| *((r3! + 4)) = r1;
| }
| if (r8 == 0) {
0x08001bc0 movne r8, r1 | r8 = r1;
| }
0x08001bc4 add r1, r5, 0x70 | r1 = r5 + 0x70;
| if (r8 == 0) {
0x08001bc8 movne fp, r0 |
| }
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 0x8001dac | goto label_1;
| }
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 0x8001da4 | goto label_2;
| }
0x08001c04 ldrh r3, [r3, 0xa] | r3 = *((r3 + 0xa));
0x08001c08 add r3, r3, 8 | r3 += 8;
0x08001c0c cmp r0, r3 |
| if (r0 != r3) {
0x08001c10 bne 0x8001da4 | goto label_2;
| }
| }
0x08001c14 mov r0, sl | r0 = sl;
0x08001c18 mov r2, r7 | r2 = r7;
0x08001c1c add r3, sp, 0xc | r3 += var_ch;
0x08001c20 bl 0x8001844 | r0 = xfrm_policy_construct ();
0x08001c24 subs sl, r0, 0 | sl = r0 - 0;
| if (sl == r0) {
0x08001c28 beq 0x8001dac | goto label_1;
| }
0x08001c2c ldr r2, [r5, 0x10] | r2 = *((r5 + 0x10));
0x08001c30 add r7, r4, 0x20 | r7 = r4 + 0x20;
0x08001c34 ldr r1, [r5, 0x14] | r1 = *((r5 + 0x14));
0x08001c38 ldr r3, [r5, 0x18] | r3 = *((r5 + 0x18));
0x08001c3c ldr r0, [r5, 0x1c] | r0 = *((r5 + 0x1c));
0x08001c40 str r0, [r4, 0x2c] | *((r4 + 0x2c)) = r0;
0x08001c44 str r3, [r4, 0x28] | *((r4 + 0x28)) = r3;
0x08001c48 add r3, r5, 0x38 | r3 = r5 + 0x38;
0x08001c4c str r2, [r4, 0x20] | *((r4 + 0x20)) = r2;
0x08001c50 str r1, [r4, 0x24] | *((r4 + 0x24)) = r1;
0x08001c54 ldr r2, [r5, 0x20] | r2 = *((r5 + 0x20));
0x08001c58 ldr r1, [r5, 0x24] | r1 = *((r5 + 0x24));
0x08001c5c str r1, [r4, 0x34] | *((r4 + 0x34)) = r1;
0x08001c60 add r1, r5, 0x68 | r1 = r5 + 0x68;
0x08001c64 str r2, [r4, 0x30] | *((r4 + 0x30)) = r2;
0x08001c68 add r2, r4, 0x38 | r2 = r4 + 0x38;
0x08001c6c str r1, [sp, 4] | var_4h = r1;
0x08001c70 ldr ip, [r5, 0x28] | ip = *((r5 + 0x28));
0x08001c74 ldr r0, [r5, 0x2c] | r0 = *((r5 + 0x2c));
0x08001c78 ldr r1, [r5, 0x30] | r1 = *((r5 + 0x30));
0x08001c7c ldr lr, [r5, 0x34] |
0x08001c80 str lr, [r4, 0xb0] |
0x08001c84 str ip, [r4, 0xa4] | *((r4 + 0xa4)) = ip;
0x08001c88 str r0, [r4, 0xa8] | *((r4 + 0xa8)) = r0;
0x08001c8c str r1, [r4, 0xac] | *((r4 + 0xac)) = r1;
| do {
0x08001c90 ldr r1, [r3, 8] | r1 = *((r3 + 8));
0x08001c94 add r3, r3, 0x10 | r3 += 0x10;
0x08001c98 ldr ip, [r3, -0x10] | ip = *((r3 - 0x10));
0x08001c9c add r2, r2, 0x10 | r2 += 0x10;
0x08001ca0 ldr r0, [r3, -0xc] | r0 = *((r3 - 0xc));
0x08001ca4 ldr lr, [r3, -4] |
0x08001ca8 str lr, [r2, -4] |
0x08001cac str ip, [r2, -0x10] | *((r2 - 0x10)) = ip;
0x08001cb0 str r0, [r2, -0xc] | *((r2 - 0xc)) = r0;
0x08001cb4 str r1, [r2, -8] | *((r2 - 8)) = r1;
0x08001cb8 ldr r1, [sp, 4] | r1 = var_4h;
0x08001cbc cmp r3, r1 |
0x08001cc0 bne 0x8001c90 |
| } while (r3 != r1);
0x08001cc4 ldr r1, [r3] | r1 = *(r3);
0x08001cc8 add sb, sb, 4 | sb += 4;
0x08001ccc ldr r3, [r3, 4] | r3 = *((r3 + 4));
0x08001cd0 str r3, [r2, 4] | *((r2 + 4)) = r3;
0x08001cd4 str r1, [r2] | *(r2) = r1;
0x08001cd8 str r8, [r4, 0x74] | *((r4 + 0x74)) = r8;
0x08001cdc str r8, [sl, 0x44] | *((sl + 0x44)) = r8;
0x08001ce0 str fp, [r4, 0x70] | *((r4 + 0x70)) = fp;
0x08001ce4 str fp, [sl, 0x40] | *((sl + 0x40)) = fp;
0x08001ce8 ldrb r3, [sl, 0x114] | r3 = *((sl + 0x114));
0x08001cec cmp r3, 0 |
| if (r3 == 0) {
0x08001cf0 addne r8, sl, 0x11c | r8 = sl + 0x11c;
| }
| if (r3 == 0) {
0x08001cf4 movne fp, 0 |
| }
| if (r3 == 0) {
0x08001cf8 beq 0x8001d88 | goto label_3;
| }
| do {
0x08001cfc ldr r3, [r8] | r3 = *(r8);
0x08001d00 add sb, sb, 0x40 | sb += 0x40;
0x08001d04 ldr ip, [r8, 4] | ip = *((r8 + 4));
0x08001d08 mov r0, r4 | r0 = r4;
0x08001d0c ldr r1, [r8, 8] | r1 = *((r8 + 8));
0x08001d10 add fp, fp, 1 |
0x08001d14 ldr r2, [r8, 0xc] | r2 = *((r8 + 0xc));
0x08001d18 str r2, [r7, 0xc] | *((r7 + 0xc)) = r2;
0x08001d1c mov r2, sl | r2 = sl;
0x08001d20 str r1, [r7, 8] | *((r7 + 8)) = r1;
0x08001d24 mov r1, r8 | r1 = r8;
0x08001d28 str r3, [r7] | *(r7) = r3;
0x08001d2c add r8, r8, 0x40 | r8 += 0x40;
0x08001d30 str ip, [r7, 4] | *((r7 + 4)) = ip;
0x08001d34 ldr ip, [r8, -0x2c] | ip = *((r8 - 0x2c));
0x08001d38 ldr r3, [r8, -0x30] | r3 = *((r8 - 0x30));
0x08001d3c str r3, [r7, 0x10] | *((r7 + 0x10)) = r3;
0x08001d40 str ip, [r7, 0x14] | *((r7 + 0x14)) = ip;
0x08001d44 ldrb r3, [r8, -0x10] | r3 = *((r8 - 0x10));
0x08001d48 strb r3, [r4, 0x9c] | *((r4 + 0x9c)) = r3;
0x08001d4c ldr r3, [r8, -0x14] | r3 = *((r8 - 0x14));
0x08001d50 str r3, [r4, 0x98] | *((r4 + 0x98)) = r3;
0x08001d54 ldrh r3, [sb, -0x28] | r3 = *((sb - 0x28));
0x08001d58 strh r3, [r4, 0xa2] | *((r4 + 0xa2)) = r3;
0x08001d5c ldr r3, [r5, 0x118] | r3 = *((r5 + 0x118));
0x08001d60 str r3, [r8, -0xc] | *((r8 - 0xc)) = r3;
0x08001d64 ldr r3, [r5, 0x11c] | r3 = *((r5 + 0x11c));
0x08001d68 str r3, [r8, -8] | *((r8 - 8)) = r3;
0x08001d6c ldr r3, [r5, 0x120] | r3 = *((r5 + 0x120));
0x08001d70 str r3, [r8, -4] | *((r8 - 4)) = r3;
0x08001d74 stmdaeq r0, {r0, r1, r4, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r4, r6, pc}");
0x08001d78 ldrb r3, [sl, 0x114] | r3 = *((sl + 0x114));
0x08001d7c str r0, [sp, 0xc] | var_ch = r0;
0x08001d80 cmp r3, fp |
0x08001d84 bgt 0x8001cfc |
| } while (r3 > fp);
| label_3:
0x08001d88 mov r0, r4 | r0 = r4;
0x08001d8c stmdaeq r0, {r0, r1, r2, r4, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r4, r6, pc}");
0x08001d90 mov r0, sl | r0 = sl;
0x08001d94 stmdaeq r0, {r0, r1, r3, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r6, pc}");
0x08001d98 mov r0, r6 | r0 = r6;
0x08001d9c add sp, sp, 0x1c |
0x08001da0 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_2:
0x08001da4 mvn r3, 0x15 | r3 = ~0x15;
0x08001da8 str r3, [sp, 0xc] | var_ch = r3;
| label_1:
0x08001dac mov r0, r4 | r0 = r4;
0x08001db0 stmdaeq r0, {r0, r1, r2, r4, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r4, r6, pc}");
0x08001db4 ldr r6, [sp, 0xc] | r6 = var_ch;
| label_0:
0x08001db8 mov r0, r6 | r0 = r6;
0x08001dbc add sp, sp, 0x1c |
0x08001dc0 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-50593792.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis8/kernel/net/xfrm/xfrm_user.ko @ 0x8001a14 */
| #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;
0x08001a14 push {r4, r5, r6, lr} |
0x08001a18 mov r5, r1 | r5 = r1;
0x08001a1c add r1, r1, 0x10 | r1 += 0x10;
0x08001a20 ldr r3, [r0, 0xc] | r3 = *((r0 + 0xc));
0x08001a24 sub sp, sp, 0x18 |
0x08001a28 mov r0, r1 | r0 = r1;
0x08001a2c ldr r6, [r3, 0x24] | r6 = *((r3 + 0x24));
0x08001a30 bl 0x8000070 | r0 = verify_newpolicy_info ();
0x08001a34 mov r4, r0 | r4 = r0;
0x08001a38 cmp r0, 0 |
0x08001a3c str r0, [sp] | *(sp) = r0;
| if (r0 != 0) {
0x08001a40 bne 0x8001b1c | goto label_0;
| }
0x08001a44 ldr r3, [r2, 0x20] | r3 = *((r2 + 0x20));
0x08001a48 cmp r3, 0 |
| if (r3 != 0) {
0x08001a4c beq 0x8001a74 |
0x08001a50 ldrh r0, [r3] | r0 = *(r3);
0x08001a54 ldrh ip, [r3, 4] | ip = *((r3 + 4));
0x08001a58 sub r0, r0, 4 | r0 -= 4;
0x08001a5c cmp ip, r0 |
| if (ip > r0) {
0x08001a60 bgt 0x8001b60 | goto label_1;
| }
0x08001a64 ldrh r3, [r3, 0xa] | r3 = *((r3 + 0xa));
0x08001a68 add r3, r3, 8 | r3 += 8;
0x08001a6c cmp ip, r3 |
| if (ip != r3) {
0x08001a70 bne 0x8001b60 | goto label_1;
| }
| }
0x08001a74 mov r0, r6 | r0 = r6;
0x08001a78 mov r3, sp | r3 = sp;
0x08001a7c bl 0x8001844 | r0 = xfrm_policy_construct ();
0x08001a80 subs r6, r0, 0 | r6 = r0 - 0;
| if (r6 == r0) {
0x08001a84 beq 0x8001b38 | goto label_2;
| }
0x08001a88 ldrh r2, [r5, 4] | r2 = *((r5 + 4));
0x08001a8c mov r1, r6 | r1 = r6;
0x08001a90 ldrb r0, [r5, 0xb0] | r0 = *((r5 + 0xb0));
0x08001a94 sub r2, r2, 0x13 | r2 -= 0x13;
0x08001a98 clz r2, r2 | r2 &= r2;
0x08001a9c lsr r2, r2, 5 | r2 >>= 5;
0x08001aa0 stmdaeq r0, {r0, r1, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r6, pc}");
0x08001aa4 clz r1, r0 | r1 &= r0;
0x08001aa8 str r0, [sp] | *(sp) = r0;
0x08001aac mov r2, 1 | r2 = 1;
0x08001ab0 lsr r1, r1, 5 | r1 >>= 5;
0x08001ab4 mov r0, r6 | r0 = r6;
0x08001ab8 stmdaeq r0, {r0, r1, r2, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r6, pc}");
0x08001abc ldr r4, [sp] | r4 = *(sp);
0x08001ac0 cmp r4, 0 |
| if (r4 != 0) {
0x08001ac4 bne 0x8001b28 | goto label_3;
| }
0x08001ac8 ldrh r2, [r5, 4] | r2 = *((r5 + 4));
0x08001acc mov r0, r6 | r0 = r6;
0x08001ad0 ldr r3, [r5, 8] | r3 = *((r5 + 8));
0x08001ad4 ldrb r1, [r5, 0xb0] | r1 = *((r5 + 0xb0));
0x08001ad8 str r2, [sp, 0x10] | var_10h = r2;
0x08001adc add r2, sp, 4 | r2 += var_4h;
0x08001ae0 str r3, [sp, 8] | var_8h = r3;
0x08001ae4 ldr r3, [r5, 0xc] | r3 = *((r5 + 0xc));
0x08001ae8 str r3, [sp, 0xc] | var_ch = r3;
0x08001aec stmdaeq r0, {r0, r1, r2, r3, r4, r5, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08001af0 add r0, r6, 0x14 | r0 = r6 + 0x14;
0x08001af4 pld [r0] | __asm ("pld [r0]");
| do {
0x08001af8 ldrex r3, [r0] | __asm ("ldrex r3, [r0]");
0x08001afc sub r2, r3, 1 | r2 = r3 - 1;
0x08001b00 strex r1, r2, [r0] | __asm ("strex r1, r2, [r0]");
0x08001b04 teq r1, 0 | __asm ("teq r1, 0");
0x08001b08 bne 0x8001af8 |
| } while (r4 != 0);
0x08001b0c cmp r3, 1 |
| if (r3 == 1) {
0x08001b10 beq 0x8001b54 | goto label_4;
| }
0x08001b14 cmp r3, 0 |
0x08001b18 ble 0x8001b48 |
| while (1) {
| label_0:
0x08001b1c mov r0, r4 | r0 = r4;
0x08001b20 add sp, sp, 0x18 |
0x08001b24 pop {r4, r5, r6, pc} |
| label_3:
0x08001b28 ldr r0, [r6, 0x118] | r0 = *((r6 + 0x118));
0x08001b2c stmdaeq r0, {r0, r1, r2, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, pc}");
0x08001b30 mov r0, r6 | r0 = r6;
0x08001b34 stmdaeq r0, {r0, r1, r3, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r6, pc}");
| label_2:
0x08001b38 ldr r4, [sp] | r4 = *(sp);
0x08001b3c mov r0, r4 | r0 = r4;
0x08001b40 add sp, sp, 0x18 |
0x08001b44 pop {r4, r5, r6, pc} |
0x08001b48 mov r1, 3 | r1 = 3;
0x08001b4c stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc}");
0x08001b50 b 0x8001b1c |
| }
| label_4:
0x08001b54 mov r0, r6 | r0 = r6;
0x08001b58 stmdaeq r0, {r0, r1, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r4, r5, pc}");
0x08001b5c b 0x8001b1c | goto label_0;
| label_1:
0x08001b60 mvn r4, 0x15 | r4 = ~0x15;
0x08001b64 b 0x8001b1c | goto label_0;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis8/kernel/net/xfrm/xfrm_user.ko @ 0x80020a0 */
| #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;
0x080020a0 push {r4, r5, lr} |
0x080020a4 mov r4, r1 | r4 = r1;
0x080020a8 ldr r3, [r2, 0x54] | r3 = *((r2 + 0x54));
0x080020ac sub sp, sp, 0x14 |
0x080020b0 ldr r1, [r0, 0xc] | r1 = *((r0 + 0xc));
0x080020b4 cmp r3, 0 |
| if (r3 == 0) {
0x080020b8 addne r2, sp, 8 | r2 += var_8h;
| }
| if (r3 != 0) {
0x080020bc streq r3, [sp, 0xc] | var_ch = r3;
| }
0x080020c0 ldr ip, [r1, 0x24] | ip = *((r1 + 0x24));
| if (r3 != 0) {
0x080020c4 moveq r1, r3 | r1 = r3;
| }
| if (r3 == 0) {
0x080020c8 ldrne r0, [r3, 4] | r0 = *((r3 + 4));
| }
| if (r3 == 0) {
0x080020cc ldrne r1, [r3, 8] | r1 = *((r3 + 8));
| }
| if (r3 == 0) {
0x080020d0 stmne r2!, {r0, r1} | *(r2!) = r0;
| *((r2! + 4)) = r1;
| }
| if (r3 == 0) {
0x080020d4 movne r1, r0 | r1 = r0;
| }
0x080020d8 ldrh r2, [r4, 0xe4] | r2 = *((r4 + 0xe4));
0x080020dc mov r0, ip | r0 = ip;
| if (r3 == 0) {
0x080020e0 ldrne r3, [sp, 0xc] | r3 = var_ch;
| }
| if (r3 != 0) {
0x080020e4 streq r3, [sp, 8] | var_8h = r3;
| }
| if (r3 == 0) {
0x080020e8 andne r1, r1, r3 | r1 &= r3;
| }
0x080020ec ldrb r3, [r4, 0x5c] | r3 = *((r4 + 0x5c));
0x080020f0 str r3, [sp] | *(sp) = r3;
0x080020f4 str r2, [sp, 4] | var_4h = r2;
0x080020f8 add r2, r4, 0x48 | r2 = r4 + 0x48;
0x080020fc ldr r3, [r4, 0x58] | r3 = *((r4 + 0x58));
0x08002100 stmdaeq r0, {r0, r1, r2, pc} | __asm ("stmdaeq r0, {r0, r1, r2, pc}");
0x08002104 subs r5, r0, 0 | r5 = r0 - 0;
| if (r5 == r0) {
0x08002108 beq 0x80021e0 | goto label_2;
| }
0x0800210c mov r3, sp | r3 = sp;
0x08002110 bic r2, r3, 0x1fc0 | r2 = BIT_MASK (r3, 0x1fc0);
0x08002114 bic r2, r2, 0x3f | r2 = BIT_MASK (r2, 0x3f);
0x08002118 ldr r3, [r2, 4] | r3 = *((r2 + 4));
0x0800211c add r3, r3, 0x200 | r3 += 0x200;
0x08002120 add r3, r3, 1 | r3++;
0x08002124 str r3, [r2, 4] | *((r2 + 4)) = r3;
0x08002128 ldrb r3, [r5, 0x8c] | r3 = *((r5 + 0x8c));
0x0800212c cmp r3, 2 |
| if (r3 == 2) {
0x08002130 mvnne r4, 0x15 | r4 = ~0x15;
| }
| if (r3 == 2) {
0x08002134 beq 0x800217c | goto label_3;
| }
| label_0:
0x08002138 ldr r0, [pc, 0xa8] | r0 = *(0x80021e4);
0x0800213c movw r1, 0x201 | r1 = 0x201;
0x08002140 stmdaeq r0, {r0, r1, r2, r5, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, r6, pc}");
0x08002144 add r0, r5, 0x1c | r0 = r5 + 0x1c;
0x08002148 pld [r0] | __asm ("pld [r0]");
| do {
0x0800214c ldrex r3, [r0] | __asm ("ldrex r3, [r0]");
0x08002150 sub r2, r3, 1 | r2 = r3 - 1;
0x08002154 strex r1, r2, [r0] | __asm ("strex r1, r2, [r0]");
0x08002158 teq r1, 0 | __asm ("teq r1, 0");
0x0800215c bne 0x800214c |
| } while (r3 != 2);
0x08002160 cmp r3, 1 |
| if (r3 == 1) {
0x08002164 beq 0x80021b4 | goto label_4;
| }
0x08002168 cmp r3, 0 |
| if (r3 <= 0) {
0x0800216c ble 0x80021cc | goto label_5;
| }
| label_1:
0x08002170 mov r0, r4 | r0 = r4;
0x08002174 add sp, sp, 0x14 |
0x08002178 pop {r4, r5, pc} |
| label_3:
0x0800217c ldr r2, [r4, 0xc] | r2 = *((r4 + 0xc));
0x08002180 ldrb r1, [r4, 0xf0] | r1 = *((r4 + 0xf0));
0x08002184 stmdaeq r0, {r0, r1, r3, r5, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r5, r6, pc}");
0x08002188 ldrb r4, [r4, 0xf0] | r4 = *((r4 + 0xf0));
0x0800218c cmp r4, 0 |
| if (r4 == 0) {
0x08002190 beq 0x8002138 | goto label_0;
| }
0x08002194 mov r0, r5 | r0 = r5;
0x08002198 mov r4, 0 | r4 = 0;
0x0800219c stmdaeq r0, {r0, r1, r2, r3, r5, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r5, r6, pc}");
0x080021a0 mov r2, 1 | r2 = 1;
0x080021a4 mov r0, r5 | r0 = r5;
0x080021a8 mov r1, r2 | r1 = r2;
0x080021ac stmdaeq r0, {r0, r1, r4, r5, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r4, r5, r6, pc}");
0x080021b0 b 0x8002138 | goto label_0;
| label_4:
0x080021b4 mov r1, 0 | r1 = 0;
0x080021b8 mov r0, r5 | r0 = r5;
0x080021bc stmdaeq r0, {r0, r1, r2, r4, r5, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r4, r5, r6, pc}");
0x080021c0 mov r0, r4 | r0 = r4;
0x080021c4 add sp, sp, 0x14 |
0x080021c8 pop {r4, r5, pc} |
| label_5:
0x080021cc mov r1, 3 | r1 = 3;
0x080021d0 stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc}");
0x080021d4 mov r0, r4 | r0 = r4;
0x080021d8 add sp, sp, 0x14 |
0x080021dc pop {r4, r5, pc} |
| label_2:
0x080021e0 mvn r4, 1 | r4 = ~1;
0x080021e4 b 0x8002170 | goto label_1;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis8/kernel/net/xfrm/xfrm_user.ko @ 0x8004194 */
| #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;
0x08004194 push {r4, r5, r6, r7, r8, sb, sl, fp, lr} |
0x08004198 mov r4, r1 | r4 = r1;
0x0800419c mov r7, r2 | r7 = r2;
0x080041a0 ldrh r1, [r1, 0xe4] | r1 = *((r1 + 0xe4));
0x080041a4 movw r3, 0xfff7 | r3 = 0xfff7;
0x080041a8 ldr r2, [r0, 0xc] | r2 = *((r0 + 0xc));
0x080041ac sub sp, sp, 0x1c |
0x080041b0 and r3, r3, r1 | r3 &= r1;
0x080041b4 cmp r3, 2 |
0x080041b8 ldr r6, [r2, 0x24] | r6 = *((r2 + 0x24));
0x080041bc beq 0x80041d0 |
| while (r3 != 0) {
| label_0:
0x080041c0 mvn r8, 0x15 | r8 = ~0x15;
| label_1:
0x080041c4 mov r0, r8 | r0 = r8;
0x080041c8 add sp, sp, 0x1c |
0x080041cc pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
0x080041d0 ldrh r3, [r4, 0x38] | r3 = *((r4 + 0x38));
0x080041d4 cmp r3, 2 |
| if (r3 == 2) {
0x080041d8 beq 0x80049e0 | goto label_9;
| }
0x080041dc cmp r3, 0xa |
| if (r3 == 0xa) {
0x080041e0 beq 0x80049c4 | goto label_10;
| }
0x080041e4 cmp r3, 0 |
0x080041e8 bne 0x80041c0 |
| }
| label_2:
0x080041ec ldrb r3, [r4, 0x5c] | r3 = *((r4 + 0x5c));
0x080041f0 cmp r3, 0x3c |
| if (r3 > 0x3c) {
0x080041f4 bhi 0x8004258 | goto label_11;
| }
0x080041f8 cmp r3, 0x2a |
| if (r3 < 0x2a) {
0x080041fc bls 0x80041c0 | goto label_0;
| }
0x08004200 sub r3, r3, 0x2b | r3 -= 0x2b;
0x08004204 cmp r3, 0x11 |
| if (r3 > 0x11) {
| /* switch table (18 cases) at 0x8004210 */
0x08004208 ldrls pc, [pc, r3, lsl 2] | offset_0 = r3 << 2;
| pc = *((pc + offset_0));
| }
0x0800420c b 0x80041c0 | goto label_0;
| label_11:
0x08004258 cmp r3, 0x6c |
| if (r3 != 0x6c) {
0x0800425c bne 0x80041c0 | goto label_0;
| }
0x08004260 ldr r3, [r7, 0xc] | r3 = *((r7 + 0xc));
0x08004264 cmp r3, 0 |
| if (r3 == 0) {
0x08004268 beq 0x80041c0 | goto label_0;
| }
0x0800426c ldr r3, [r7, 0x48] | r3 = *((r7 + 0x48));
0x08004270 cmp r3, 0 |
| if (r3 != 0) {
0x08004274 bne 0x80041c0 | goto label_0;
| }
0x08004278 ldr r3, [r7, 4] | r3 = *((r7 + 4));
0x0800427c cmp r3, 0 |
| if (r3 != 0) {
0x08004280 bne 0x80041c0 | goto label_0;
| }
0x08004284 ldr r3, [r7, 0x50] | r3 = *((r7 + 0x50));
0x08004288 cmp r3, 0 |
| if (r3 != 0) {
0x0800428c bne 0x80041c0 | goto label_0;
| }
0x08004290 ldr r3, [r7, 8] | r3 = *((r7 + 8));
0x08004294 cmp r3, 0 |
| if (r3 != 0) {
0x08004298 bne 0x80041c0 | goto label_0;
| }
0x0800429c ldr r3, [r7, 0x58] | r3 = *((r7 + 0x58));
0x080042a0 cmp r3, 0 |
| if (r3 != 0) {
0x080042a4 bne 0x80041c0 | goto label_0;
| }
0x080042a8 ldr r3, [r4, 0x58] | r3 = *((r4 + 0x58));
0x080042ac rev r3, r3 | r3 = SWAP32 (r3);
0x080042b0 cmp r3, 0x10000 |
| if (r3 >= 0x10000) {
0x080042b4 bhs 0x80041c0 | goto label_0;
| }
0x080042b8 ldr r2, [r7, 8] | r2 = *((r7 + 8));
0x080042bc cmp r2, 0 |
| if (r2 == 0) {
0x080042c0 beq 0x80042ec | goto label_12;
| }
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 0x80041c0 | goto label_0;
| }
0x080042e4 mov r3, 0 | r3 = 0;
0x080042e8 strb r3, [r2, 0x43] | *((r2 + 0x43)) = r3;
| label_12:
0x080042ec ldr r2, [r7, 0xc] | r2 = *((r7 + 0xc));
0x080042f0 cmp r2, 0 |
| if (r2 == 0) {
0x080042f4 beq 0x8004320 | goto label_13;
| }
0x080042f8 ldr r3, [r2, 0x44] | r3 = *((r2 + 0x44));
0x080042fc ldrh r1, [r2] | r1 = *(r2);
0x08004300 add r3, r3, 7 | r3 += 7;
0x08004304 sub r1, r1, 4 | r1 -= 4;
0x08004308 lsr r3, r3, 3 | r3 >>= 3;
0x0800430c add r3, r3, 0x44 | r3 += 0x44;
0x08004310 cmp r1, r3 |
| if (r1 < r3) {
0x08004314 blt 0x80041c0 | goto label_0;
| }
0x08004318 mov r3, 0 | r3 = 0;
0x0800431c strb r3, [r2, 0x43] | *((r2 + 0x43)) = r3;
| label_13:
0x08004320 ldr r3, [r7, 0x20] | r3 = *((r7 + 0x20));
0x08004324 cmp r3, 0 |
| if (r3 == 0) {
0x08004328 beq 0x8004350 | goto label_14;
| }
0x0800432c ldrh r2, [r3] | r2 = *(r3);
0x08004330 ldrh r1, [r3, 4] | r1 = *((r3 + 4));
0x08004334 sub r2, r2, 4 | r2 -= 4;
0x08004338 cmp r1, r2 |
| if (r1 > r2) {
0x0800433c bgt 0x80041c0 | goto label_0;
| }
0x08004340 ldrh r3, [r3, 0xa] | r3 = *((r3 + 0xa));
0x08004344 add r3, r3, 8 | r3 += 8;
0x08004348 cmp r1, r3 |
| if (r1 != r3) {
0x0800434c bne 0x80041c0 | goto label_0;
| }
| label_14:
0x08004350 ldr r2, [r7, 0x5c] | r2 = *((r7 + 0x5c));
0x08004354 cmp r2, 0 |
| if (r2 == 0) {
0x08004358 beq 0x8004c84 | goto label_15;
| }
0x0800435c ldr r3, [r2, 4] | r3 = *((r2 + 4));
0x08004360 cmp r3, 0x80 |
| if (r3 > 0x80) {
0x08004364 bhi 0x80041c0 | goto label_0;
| }
0x08004368 ldrh r2, [r2] | r2 = *(r2);
0x0800436c add r3, r3, 6 | r3 += 6;
0x08004370 sub r1, r2, 4 | r1 = r2 - 4;
0x08004374 lsl r3, r3, 2 | r3 <<= 2;
0x08004378 cmp r2, 0x1c |
0x0800437c cmpne r3, r1 | __asm ("cmpne r3, r1");
| if (r2 > 0x1c) {
0x08004380 bgt 0x80041c0 | goto label_0;
| }
0x08004384 ldrb r3, [r4, 0x5c] | r3 = *((r4 + 0x5c));
0x08004388 sub r3, r3, 0x32 | r3 -= 0x32;
0x0800438c cmp r3, 1 |
| if (r3 > 1) {
0x08004390 bhi 0x80041c0 | goto label_0;
| }
0x08004394 ldrb r3, [r4, 0xe7] | r3 = *((r4 + 0xe7));
0x08004398 cmp r3, 0 |
| if (r3 != 0) {
0x0800439c bne 0x80041c0 | goto label_0;
| }
| label_8:
0x080043a0 ldrb r3, [r4, 0xe6] | r3 = *((r4 + 0xe6));
0x080043a4 cmp r3, 2 |
| if (r3 < 2) {
0x080043a8 bls 0x80043b4 | goto label_16;
| }
0x080043ac cmp r3, 4 |
| if (r3 != 4) {
0x080043b0 bne 0x80041c0 | goto label_0;
| }
| label_16:
0x080043b4 mov r0, r6 | r0 = r6;
0x080043b8 stmdaeq r0, {r0, r1, r2, r3, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r6, pc}");
0x080043bc subs r5, r0, 0 | r5 = r0 - 0;
| if (r5 == r0) {
0x080043c0 mvneq r8, 0xb | r8 = ~0xb;
| goto label_17;
| }
| if (r5 == r0) {
| label_17:
0x080043c4 beq 0x80041c4 | goto label_1;
| }
0x080043c8 ldr r3, [r4, 0x48] | r3 = *((r4 + 0x48));
0x080043cc add r8, r4, 0x40 | r8 = r4 + 0x40;
0x080043d0 ldr r2, [r4, 0x4c] | r2 = *((r4 + 0x4c));
0x080043d4 ldr r1, [r4, 0x50] | r1 = *((r4 + 0x50));
0x080043d8 ldr r0, [r4, 0x54] | r0 = *((r4 + 0x54));
0x080043dc str r0, [r5, 0x2c] | *((r5 + 0x2c)) = r0;
0x080043e0 str r3, [r5, 0x20] | *((r5 + 0x20)) = r3;
0x080043e4 str r2, [r5, 0x24] | *((r5 + 0x24)) = r2;
0x080043e8 str r1, [r5, 0x28] | *((r5 + 0x28)) = r1;
0x080043ec ldr r3, [r4, 0x58] | r3 = *((r4 + 0x58));
0x080043f0 ldr r2, [r4, 0x5c] | r2 = *((r4 + 0x5c));
0x080043f4 str r2, [r5, 0x34] | *((r5 + 0x34)) = r2;
0x080043f8 add r2, r5, 0x38 | r2 = r5 + 0x38;
0x080043fc str r3, [r5, 0x30] | *((r5 + 0x30)) = r3;
0x08004400 add r3, r4, 0x10 | r3 = r4 + 0x10;
| do {
0x08004404 ldr ip, [r3] | ip = *(r3);
0x08004408 add r3, r3, 0x10 | r3 += 0x10;
0x0800440c ldr r0, [r3, -0xc] | r0 = *((r3 - 0xc));
0x08004410 add r2, r2, 0x10 | r2 += 0x10;
0x08004414 ldr r1, [r3, -8] | r1 = *((r3 - 8));
0x08004418 ldr lr, [r3, -4] |
0x0800441c cmp r3, r8 |
0x08004420 str lr, [r2, -4] |
0x08004424 str ip, [r2, -0x10] | *((r2 - 0x10)) = ip;
0x08004428 str r0, [r2, -0xc] | *((r2 - 0xc)) = r0;
0x0800442c str r1, [r2, -8] | *((r2 - 8)) = r1;
0x08004430 bne 0x8004404 |
| } while (r3 != r8);
0x08004434 ldr r1, [r3] | r1 = *(r3);
0x08004438 add r8, r4, 0xb0 | r8 = r4 + 0xb0;
0x0800443c ldr r3, [r3, 4] | r3 = *((r3 + 4));
0x08004440 str r3, [r2, 4] | *((r2 + 4)) = r3;
0x08004444 add r3, r4, 0x70 | r3 = r4 + 0x70;
0x08004448 str r1, [r2] | *(r2) = r1;
0x0800444c add r2, r5, 0xc8 | r2 = r5 + 0xc8;
| do {
0x08004450 ldr ip, [r3] | ip = *(r3);
0x08004454 add r3, r3, 0x10 | r3 += 0x10;
0x08004458 ldr r0, [r3, -0xc] | r0 = *((r3 - 0xc));
0x0800445c add r2, r2, 0x10 | r2 += 0x10;
0x08004460 ldr r1, [r3, -8] | r1 = *((r3 - 8));
0x08004464 ldr lr, [r3, -4] |
0x08004468 cmp r3, r8 |
0x0800446c str lr, [r2, -4] |
0x08004470 str ip, [r2, -0x10] | *((r2 - 0x10)) = ip;
0x08004474 str r0, [r2, -0xc] | *((r2 - 0xc)) = r0;
0x08004478 str r1, [r2, -8] | *((r2 - 8)) = r1;
0x0800447c bne 0x8004450 |
| } while (r3 != r8);
0x08004480 ldrb r3, [r4, 0xe6] | r3 = *((r4 + 0xe6));
0x08004484 strb r3, [r5, 0x9c] | *((r5 + 0x9c)) = r3;
0x08004488 ldrb r3, [r4, 0xe7] | r3 = *((r4 + 0xe7));
0x0800448c cmp r3, 0x20 |
| if (r3 < 0x20) {
0x08004490 movhs r3, 0x20 | r3 = 0x20;
| }
0x08004494 strb r3, [r5, 0x9d] | *((r5 + 0x9d)) = r3;
0x08004498 ldr r3, [r4, 0xe0] | r3 = *((r4 + 0xe0));
0x0800449c str r3, [r5, 0x98] | *((r5 + 0x98)) = r3;
0x080044a0 ldrh r3, [r4, 0xe4] | r3 = *((r4 + 0xe4));
0x080044a4 strh r3, [r5, 0xa2] | *((r5 + 0xa2)) = r3;
0x080044a8 ldr r2, [r4, 0x64] | r2 = *((r4 + 0x64));
0x080044ac ldr r3, [r4, 0x68] | r3 = *((r4 + 0x68));
0x080044b0 ldr r1, [r4, 0x60] | r1 = *((r4 + 0x60));
0x080044b4 ldr r0, [r4, 0x6c] | r0 = *((r4 + 0x6c));
0x080044b8 str r0, [r5, 0xb0] | *((r5 + 0xb0)) = r0;
0x080044bc str r2, [r5, 0xa8] | *((r5 + 0xa8)) = r2;
0x080044c0 str r1, [r5, 0xa4] | *((r5 + 0xa4)) = r1;
0x080044c4 str r3, [r5, 0xac] | *((r5 + 0xac)) = r3;
0x080044c8 ldrh r2, [r5, 0x60] | r2 = *((r5 + 0x60));
0x080044cc ldrb r3, [r4, 0xe8] | r3 = *((r4 + 0xe8));
0x080044d0 cmp r2, 0 |
0x080044d4 strb r3, [r5, 0xa1] | *((r5 + 0xa1)) = r3;
| if (r2 == 0) {
0x080044d8 bne 0x80044e8 |
0x080044dc tst r3, 0x20 |
0x080044e0 ldrheq r3, [r4, 0xe4] | __asm ("ldrheq r3, [r4, 0xe4]");
0x080044e4 strheq r3, [r5, 0x60] | __asm ("strheq r3, [r5, 0x60]");
| }
0x080044e8 ldr r0, [r7, 0x10] | r0 = *((r7 + 0x10));
0x080044ec cmp r0, 0 |
| if (r0 != 0) {
0x080044f0 beq 0x8004510 |
0x080044f4 add r0, r0, 4 | r0 += 4;
0x080044f8 mov r2, 0xcc0 | r2 = 0xcc0;
0x080044fc mov r1, 0x18 | r1 = 0x18;
0x08004500 stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004504 cmp r0, 0 |
0x08004508 str r0, [r5, 0x11c] | *((r5 + 0x11c)) = r0;
| if (r0 == 0) {
0x0800450c beq 0x8004b54 | goto label_18;
| }
| }
0x08004510 ldr r0, [r7, 0x38] | r0 = *((r7 + 0x38));
0x08004514 cmp r0, 0 |
| if (r0 != 0) {
0x08004518 beq 0x8004538 |
0x0800451c add r0, r0, 4 | r0 += 4;
0x08004520 mov r2, 0xcc0 | r2 = 0xcc0;
0x08004524 mov r1, 0x10 | r1 = 0x10;
0x08004528 stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x0800452c cmp r0, 0 |
0x08004530 str r0, [r5, 0x124] | *((r5 + 0x124)) = r0;
| if (r0 == 0) {
0x08004534 beq 0x8004b54 | goto label_18;
| }
| }
0x08004538 ldr r3, [r7, 0x60] | r3 = *((r7 + 0x60));
0x0800453c cmp r3, 0 |
| if (r3 == 0) {
0x08004540 ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
| if (r3 == 0) {
0x08004544 strne r3, [r5, 0xbc] | *((r5 + 0xbc)) = r3;
| }
0x08004548 ldr sb, [r7, 0x48] | sb = *((r7 + 0x48));
0x0800454c cmp sb, 0 |
| if (sb != 0) {
0x08004550 beq 0x80045b0 |
0x08004554 add sl, sb, 4 | sl = sb + 4;
0x08004558 ldr r1, [sb, 0x48] | r1 = *((sb + 0x48));
0x0800455c mov r0, sl | r0 = sl;
0x08004560 mov r2, 1 | r2 = 1;
0x08004564 stmdaeq r0, {r0, r1, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r5, r7, pc}");
0x08004568 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x0800456c beq 0x8004c6c | goto label_19;
| }
0x08004570 ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x08004574 mov r0, sl | r0 = sl;
0x08004578 strb r3, [r5, 0x9f] | *((r5 + 0x9f)) = r3;
0x0800457c mov r2, 0xcc0 | r2 = 0xcc0;
0x08004580 ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x08004584 add r1, r1, 7 | r1 += 7;
0x08004588 lsr r1, r1, 3 | r1 >>= 3;
0x0800458c add r1, r1, 0x48 | r1 += 0x48;
0x08004590 stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004594 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x08004598 beq 0x8004b54 | goto label_18;
| }
0x0800459c ldr r1, [r8] | r1 = *(r8);
0x080045a0 stmdaeq r0, {r0, r1, r2, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, r7, pc}");
0x080045a4 str sb, [r5, 0x114] | *((r5 + 0x114)) = sb;
0x080045a8 ldr r3, [r8, 0xc] | r3 = *((r8 + 0xc));
0x080045ac str r3, [r5, 0x118] | *((r5 + 0x118)) = r3;
| }
0x080045b0 ldr sb, [r7, 0x50] | sb = *((r7 + 0x50));
0x080045b4 cmp sb, 0 |
| if (sb != 0) {
0x080045b8 beq 0x800462c |
0x080045bc add sl, sb, 4 | sl = sb + 4;
0x080045c0 mov r1, 1 | r1 = 1;
0x080045c4 mov r0, sl | r0 = sl;
0x080045c8 stmdaeq r0, {r0, r1, r3, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r5, r7, pc}");
0x080045cc subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x080045d0 beq 0x8004c6c | goto label_19;
| }
0x080045d4 ldrh r3, [r8, 0xe] | r3 = *((r8 + 0xe));
0x080045d8 ldr r2, [sb, 0x48] | r2 = *((sb + 0x48));
0x080045dc cmp r2, r3 |
| if (r2 > r3) {
0x080045e0 bhi 0x8004c78 | goto label_20;
| }
0x080045e4 ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x080045e8 mov r0, sl | r0 = sl;
0x080045ec strb r3, [r5, 0x9e] | *((r5 + 0x9e)) = r3;
0x080045f0 mov r2, 0xcc0 | r2 = 0xcc0;
0x080045f4 ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x080045f8 add r1, r1, 7 | r1 += 7;
0x080045fc lsr r1, r1, 3 | r1 >>= 3;
0x08004600 add r1, r1, 0x48 | r1 += 0x48;
0x08004604 stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004608 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x0800460c beq 0x8004b54 | goto label_18;
| }
0x08004610 ldr r1, [r8] | r1 = *(r8);
0x08004614 stmdaeq r0, {r0, r1, r2, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, r7, pc}");
0x08004618 ldr r3, [sb, 0x44] | r3 = *((sb + 0x44));
0x0800461c cmp r3, 0 |
0x08004620 ldrheq r3, [r8, 0xc] | __asm ("ldrheq r3, [r8, 0xc]");
| if (r3 != 0) {
0x08004624 streq r3, [sb, 0x44] | *((sb + 0x44)) = r3;
| }
0x08004628 str sb, [r5, 0x108] | *((r5 + 0x108)) = sb;
| }
0x0800462c ldrb r3, [r5, 0x9e] | r3 = *((r5 + 0x9e));
0x08004630 cmp r3, 0 |
| if (r3 == 0) {
0x08004634 bne 0x80046b4 |
0x08004638 ldr sb, [r7, 4] | sb = *((r7 + 4));
0x0800463c cmp sb, 0 |
| if (sb == 0) {
0x08004640 beq 0x80046b4 | goto label_21;
| }
0x08004644 add r0, sb, 4 | r0 = sb + 4;
0x08004648 mov r1, 1 | r1 = 1;
0x0800464c stmdaeq r0, {r0, r1, r3, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r5, r7, pc}");
0x08004650 subs sl, r0, 0 | sl = r0 - 0;
| if (sl == r0) {
0x08004654 beq 0x8004c6c | goto label_19;
| }
0x08004658 ldrb r3, [sl, 0x14] | r3 = *((sl + 0x14));
0x0800465c mov r1, 0xcc0 | r1 = 0xcc0;
0x08004660 strb r3, [r5, 0x9e] | *((r5 + 0x9e)) = r3;
0x08004664 ldr r0, [sb, 0x44] | r0 = *((sb + 0x44));
0x08004668 add r0, r0, 7 | r0 += 7;
0x0800466c lsr r0, r0, 3 | r0 >>= 3;
0x08004670 add r0, r0, 0x48 | r0 += 0x48;
0x08004674 stmdaeq r0, {r0, r1, r2, r3, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r5, r7, pc}");
0x08004678 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x0800467c beq 0x8004b54 | goto label_18;
| }
0x08004680 ldr r1, [sl] | r1 = *(sl);
0x08004684 stmdaeq r0, {r0, r1, r2, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, r7, pc}");
0x08004688 ldr r3, [sb, 0x44] | r3 = *((sb + 0x44));
0x0800468c str r3, [r8, 0x40] | *((r8 + 0x40)) = r3;
0x08004690 add r1, sb, 0x48 | r1 = sb + 0x48;
0x08004694 add r0, r8, 0x48 | r0 = r8 + 0x48;
0x08004698 ldrh r3, [sl, 0xc] | r3 = *((sl + 0xc));
0x0800469c str r3, [r8, 0x44] | *((r8 + 0x44)) = r3;
0x080046a0 ldr r2, [sb, 0x44] | r2 = *((sb + 0x44));
0x080046a4 add r2, r2, 7 | r2 += 7;
0x080046a8 lsr r2, r2, 3 | r2 >>= 3;
0x080046ac stmdaeq r0, {r0, r1, r2, r3, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r7, r8, sb, sl, fp, ip, sp, lr}");
0x080046b0 str r8, [r5, 0x108] | *((r5 + 0x108)) = r8;
| }
| label_21:
0x080046b4 ldr sb, [r7, 8] | sb = *((r7 + 8));
0x080046b8 cmp sb, 0 |
| if (sb != 0) {
0x080046bc beq 0x8004718 |
0x080046c0 add sl, sb, 4 | sl = sb + 4;
0x080046c4 mov r1, 1 | r1 = 1;
0x080046c8 mov r0, sl | r0 = sl;
0x080046cc stmdaeq r0, {r0, r1, r4, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r4, r5, r7, pc}");
0x080046d0 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x080046d4 beq 0x8004c6c | goto label_19;
| }
0x080046d8 ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x080046dc mov r0, sl | r0 = sl;
0x080046e0 strb r3, [r5, 0x9f] | *((r5 + 0x9f)) = r3;
0x080046e4 mov r2, 0xcc0 | r2 = 0xcc0;
0x080046e8 ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x080046ec add r1, r1, 7 | r1 += 7;
0x080046f0 lsr r1, r1, 3 | r1 >>= 3;
0x080046f4 add r1, r1, 0x44 | r1 += 0x44;
0x080046f8 stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x080046fc subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x08004700 beq 0x8004b54 | goto label_18;
| }
0x08004704 ldr r1, [r8] | r1 = *(r8);
0x08004708 stmdaeq r0, {r0, r1, r2, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, r7, pc}");
0x0800470c str sb, [r5, 0x10c] | *((r5 + 0x10c)) = sb;
0x08004710 ldr r3, [r8, 0xc] | r3 = *((r8 + 0xc));
0x08004714 str r3, [r5, 0x118] | *((r5 + 0x118)) = r3;
| }
0x08004718 ldr sb, [r7, 0xc] | sb = *((r7 + 0xc));
0x0800471c cmp sb, 0 |
| if (sb != 0) {
0x08004720 beq 0x8004774 |
0x08004724 add sl, sb, 4 | sl = sb + 4;
0x08004728 mov r1, 1 | r1 = 1;
0x0800472c mov r0, sl | r0 = sl;
0x08004730 stmdaeq r0, {r0, r1, r2, r4, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r4, r5, r7, pc}");
0x08004734 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x08004738 beq 0x8004c6c | goto label_19;
| }
0x0800473c ldrb r3, [r8, 0x14] | r3 = *((r8 + 0x14));
0x08004740 mov r0, sl | r0 = sl;
0x08004744 strb r3, [r5, 0xa0] | *((r5 + 0xa0)) = r3;
0x08004748 mov r2, 0xcc0 | r2 = 0xcc0;
0x0800474c ldr r1, [sb, 0x44] | r1 = *((sb + 0x44));
0x08004750 add r1, r1, 7 | r1 += 7;
0x08004754 lsr r1, r1, 3 | r1 >>= 3;
0x08004758 add r1, r1, 0x44 | r1 += 0x44;
0x0800475c stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004760 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x08004764 beq 0x8004b54 | goto label_18;
| }
0x08004768 ldr r1, [r8] | r1 = *(r8);
0x0800476c stmdaeq r0, {r0, r1, r2, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r5, r7, pc}");
0x08004770 str sb, [r5, 0x110] | *((r5 + 0x110)) = sb;
| }
0x08004774 ldr r3, [r7, 0x58] | r3 = *((r7 + 0x58));
0x08004778 cmp r3, 0 |
| if (r3 == 0) {
0x0800477c ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
| if (r3 == 0) {
0x08004780 strne r3, [r5, 0x7c] | *((r5 + 0x7c)) = r3;
| }
0x08004784 ldr r3, [r7, 0x54] | r3 = *((r7 + 0x54));
0x08004788 cmp r3, 0 |
| if (r3 != 0) {
0x0800478c streq r3, [r5, 0x74] | *((r5 + 0x74)) = r3;
| }
| if (r3 != 0) {
0x08004790 streq r3, [r5, 0x70] | *((r5 + 0x70)) = r3;
| }
| if (r3 == 0) {
0x08004794 ldrne r2, [r3, 4] | r2 = *((r3 + 4));
| }
| if (r3 == 0) {
0x08004798 ldrne r3, [r3, 8] | r3 = *((r3 + 8));
| }
| if (r3 == 0) {
0x0800479c strne r3, [r5, 0x74] | *((r5 + 0x74)) = r3;
| }
| if (r3 == 0) {
0x080047a0 strne r2, [r5, 0x70] | *((r5 + 0x70)) = r2;
| }
0x080047a4 ldr r3, [r7, 0x74] | r3 = *((r7 + 0x74));
0x080047a8 cmp r3, 0 |
| if (r3 == 0) {
0x080047ac beq 0x8004c48 | goto label_22;
| }
0x080047b0 ldr r3, [r3, 4] | r3 = *((r3 + 4));
0x080047b4 str r3, [r5, 0xc0] | *((r5 + 0xc0)) = r3;
0x080047b8 ldr r3, [r7, 0x78] | r3 = *((r7 + 0x78));
0x080047bc cmp r3, 0 |
| if (r3 != 0) {
0x080047c0 mvneq r3, 0 | r3 = ~0;
| }
| if (r3 == 0) {
0x080047c4 ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
0x080047c8 str r3, [r5, 0xc4] | *((r5 + 0xc4)) = r3;
| label_6:
0x080047cc ldr r3, [r7, 0x7c] | r3 = *((r7 + 0x7c));
0x080047d0 mov r0, r5 | r0 = r5;
0x080047d4 mov r1, 0 | r1 = 0;
0x080047d8 cmp r3, 0 |
| if (r3 == 0) {
0x080047dc ldrne r3, [r3, 4] | r3 = *((r3 + 4));
| }
| if (r3 == 0) {
0x080047e0 strne r3, [r5, 0x78] | *((r5 + 0x78)) = r3;
| }
0x080047e4 ldr r2, [r7, 0x70] | r2 = *((r7 + 0x70));
0x080047e8 subs r2, r2, 0 |
| if (r2 == r2) {
0x080047ec movne r2, 1 | r2 = 1;
| }
0x080047f0 stmdaeq r0, {r0, r1, r3, r4, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r4, r5, r7, pc}");
0x080047f4 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 != r0) {
0x080047f8 bne 0x8004c64 | goto label_23;
| }
0x080047fc ldr r1, [r7, 0x20] | r1 = *((r7 + 0x20));
0x08004800 cmp r1, 0 |
| if (r1 != 0) {
0x08004804 beq 0x800481c |
0x08004808 add r1, r1, 4 | r1 += 4;
0x0800480c mov r0, r5 | r0 = r5;
0x08004810 stmdaeq r0, {r0, r1, r2, r3, r4, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, r7, pc}");
0x08004814 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 != r0) {
0x08004818 bne 0x8004c64 | goto label_23;
| }
| }
0x0800481c ldr r1, [r7, 0x5c] | r1 = *((r7 + 0x5c));
0x08004820 cmp r1, 0 |
| if (r1 != 0) {
0x08004824 beq 0x800489c |
0x08004828 ldr r8, [r1, 4] | r8 = *((r1 + 4));
0x0800482c add sl, r1, 4 | sl = r1 + 4;
0x08004830 ldrh r3, [r1] | r3 = *(r1);
0x08004834 mov r1, 0xdc0 | r1 = 0xdc0;
0x08004838 add r8, r8, 6 | r8 += 6;
0x0800483c sub r3, r3, 4 | r3 -= 4;
0x08004840 lsl r8, r8, 2 | r8 <<= 2;
0x08004844 cmp r3, r8 |
0x08004848 mov r0, r8 | r0 = r8;
| if (r3 < r8) {
0x0800484c movge fp, r8 |
| }
| if (r3 >= r8) {
0x08004850 movlt fp, 0x18 |
| }
0x08004854 stmdaeq r0, {r0, r1, r2, r3, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r5, r7, pc}");
0x08004858 subs sb, r0, 0 | sb = r0 - 0;
| if (sb == r0) {
0x0800485c beq 0x8004b54 | goto label_18;
| }
0x08004860 mov r0, r8 | r0 = r8;
0x08004864 mov r1, 0xdc0 | r1 = 0xdc0;
0x08004868 stmdaeq r0, {r0, r1, r2, r3, r5, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r5, r7, pc}");
0x0800486c subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 == r0) {
0x08004870 beq 0x8004c94 | goto label_24;
| }
0x08004874 mov r2, fp | r2 = fp;
0x08004878 mov r1, sl | r1 = sl;
0x0800487c mov r0, sb | r0 = sb;
0x08004880 stmdaeq r0, {r0, r1, r2, r3, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004884 mov r2, fp | r2 = fp;
0x08004888 mov r1, sl | r1 = sl;
0x0800488c mov r0, r8 | r0 = r8;
0x08004890 stmdaeq r0, {r0, r1, r2, r3, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r7, r8, sb, sl, fp, ip, sp, lr}");
0x08004894 str sb, [r5, 0x13c] | *((r5 + 0x13c)) = sb;
0x08004898 str r8, [r5, 0x14c] | *((r5 + 0x14c)) = r8;
| }
0x0800489c ldr r3, [r4, 0xdc] | r3 = *((r4 + 0xdc));
0x080048a0 mov r2, 0x64 | r2 = 0x64;
0x080048a4 str r3, [r5, 0x90] | *((r5 + 0x90)) = r3;
0x080048a8 mov r0, r5 | r0 = r5;
0x080048ac ldr r3, [r6, 0x7c0] | r3 = *((r6 + 0x7c0));
0x080048b0 str r3, [r5, 0x15c] | *((r5 + 0x15c)) = r3;
0x080048b4 ldr r3, [r6, 0x7bc] | r3 = *((r6 + 0x7bc));
0x080048b8 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x080048bc mul r3, r2, r3 | r3 = r2 * r3;
0x080048c0 movw r2, 0xcccd |
0x080048c4 movt r2, 0xcccc | r2 = 0xcccccccd;
0x080048c8 umull r2, r3, r2, r3 | r2:r3 = r2 * r3;
0x080048cc lsr r3, r3, 3 | r3 >>= 3;
0x080048d0 str r3, [r5, 0x158] | *((r5 + 0x158)) = r3;
0x080048d4 stmdaeq r0, {r0, r1, r6, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r6, r7, pc}");
0x080048d8 subs r8, r0, 0 | r8 = r0 - 0;
| if (r8 != r0) {
0x080048dc bne 0x8004b5c | goto label_7;
| }
0x080048e0 mov r2, r8 | r2 = r8;
0x080048e4 mov r1, r7 | r1 = r7;
0x080048e8 mov r0, r5 | r0 = r5;
0x080048ec pld [r6] | __asm ("pld [r6]");
0x080048f0 bl 0x800021c | xfrm_update_ae_params ();
| do {
0x080048f4 ldrex r3, [r6] | __asm ("ldrex r3, [r6]");
0x080048f8 add r2, r3, 1 | r2 = r3 + 1;
0x080048fc strex r1, r2, [r6] | __asm ("strex r1, r2, [r6]");
0x08004900 teq r1, 0 | __asm ("teq r1, 0");
0x08004904 bne 0x80048f4 |
| } while (r8 != r0);
0x08004908 cmp r3, 0 |
| if (r3 == 0) {
0x0800490c beq 0x8004c54 | goto label_25;
| }
0x08004910 add r2, r3, 1 | r2 = r3 + 1;
0x08004914 orrs r2, r2, r3 | r2 |= r3;
| if (r2 < r2) {
0x08004918 bmi 0x8004b8c | goto label_26;
| }
| label_5:
0x0800491c ldrh r3, [r4, 4] | r3 = *((r4 + 4));
0x08004920 mov r0, r5 | r0 = r5;
0x08004924 cmp r3, 0x10 |
| if (r3 == 0x10) {
0x08004928 beq 0x8004b80 | goto label_27;
| }
0x0800492c stmdaeq r0, {r0, r1, r2, r6, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r6, r7, pc}");
0x08004930 mov r8, r0 | r8 = r0;
| label_4:
0x08004934 clz r1, r8 | r1 &= r8;
0x08004938 mov r0, r5 | r0 = r5;
0x0800493c mov r2, 1 | r2 = 1;
0x08004940 lsr r1, r1, 5 | r1 >>= 5;
0x08004944 stmdaeq r0, {r0, r1, r3, r6, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r6, r7, pc}");
0x08004948 cmp r8, 0 |
| if (r8 < 0) {
0x0800494c blt 0x8004b9c | goto label_28;
| }
0x08004950 ldrb r3, [r5, 0x8c] | r3 = *((r5 + 0x8c));
0x08004954 add r1, sp, 4 | r1 += var_4h;
0x08004958 mov r0, r5 | r0 = r5;
0x0800495c cmp r3, 0 |
| if (r3 != 0) {
0x08004960 moveq r3, 2 | r3 = 2;
| }
| if (r3 != 0) {
0x08004964 strbeq r3, [r5, 0x8c] | *((r5 + 0x8c)) = r3;
| }
0x08004968 ldr r3, [r4, 8] | r3 = *((r4 + 8));
0x0800496c ldr r2, [r4, 0xc] | r2 = *((r4 + 0xc));
0x08004970 str r3, [sp, 8] | var_8h = r3;
0x08004974 ldrh r3, [r4, 4] | r3 = *((r4 + 4));
0x08004978 str r2, [sp, 0xc] | var_ch = r2;
0x0800497c str r3, [sp, 0x10] | var_10h = r3;
0x08004980 stmdaeq r0, {r0, r1, r2, r6, r7, r8, sb, sl, fp, ip, sp, lr} | __asm ("stmdaeq r0, {r0, r1, r2, r6, r7, r8, sb, sl, fp, ip, sp, lr}");
| label_3:
0x08004984 pld [r6] | __asm ("pld [r6]");
| do {
0x08004988 ldrex r3, [r6] | __asm ("ldrex r3, [r6]");
0x0800498c sub r2, r3, 1 | r2 = r3 - 1;
0x08004990 strex r1, r2, [r6] | __asm ("strex r1, r2, [r6]");
0x08004994 teq r1, 0 | __asm ("teq r1, 0");
0x08004998 bne 0x8004988 |
| } while (r3 != 0);
0x0800499c cmp r3, 1 |
| if (r3 == 1) {
0x080049a0 beq 0x8004b68 | goto label_29;
| }
0x080049a4 cmp r3, 0 |
| if (r3 > 0) {
0x080049a8 bgt 0x80041c4 | goto label_1;
| }
0x080049ac mov r0, r6 | r0 = r6;
0x080049b0 mov r1, 3 | r1 = 3;
0x080049b4 stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc}");
0x080049b8 mov r0, r8 | r0 = r8;
0x080049bc add sp, sp, 0x1c |
0x080049c0 pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_10:
0x080049c4 ldrb r3, [r4, 0x3a] | r3 = *((r4 + 0x3a));
0x080049c8 cmp r3, 0x80 |
| if (r3 > 0x80) {
0x080049cc bhi 0x80041c0 | goto label_0;
| }
0x080049d0 ldrb r3, [r4, 0x3b] | r3 = *((r4 + 0x3b));
0x080049d4 cmp r3, 0x80 |
| if (r3 < 0x80) {
0x080049d8 bls 0x80041ec | goto label_2;
| }
0x080049dc b 0x80041c0 | goto label_0;
| label_9:
0x080049e0 ldrb r3, [r4, 0x3a] | r3 = *((r4 + 0x3a));
0x080049e4 cmp r3, 0x20 |
| if (r3 > 0x20) {
0x080049e8 bhi 0x80041c0 | goto label_0;
| }
0x080049ec ldrb r3, [r4, 0x3b] | r3 = *((r4 + 0x3b));
0x080049f0 cmp r3, 0x20 |
| if (r3 < 0x20) {
0x080049f4 bls 0x80041ec | goto label_2;
| }
0x080049f8 b 0x80041c0 | goto label_0;
| label_18:
0x08004b54 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004b58 mvn r8, 0xb | r8 = ~0xb;
| label_7:
0x08004b5c mov r3, 5 | r3 = 5;
0x08004b60 strb r3, [r5, 0x8c] | *((r5 + 0x8c)) = r3;
0x08004b64 b 0x8004984 | goto label_3;
| label_29:
0x08004b68 mov r1, 0 | r1 = 0;
0x08004b6c mov r0, r5 | r0 = r5;
0x08004b70 stmdaeq r0, {r0, r1, r2, r4, r5, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r4, r5, r6, pc}");
0x08004b74 mov r0, r8 | r0 = r8;
0x08004b78 add sp, sp, 0x1c |
0x08004b7c pop {r4, r5, r6, r7, r8, sb, sl, fp, pc} |
| label_27:
0x08004b80 stmdaeq r0, {r0, r1, r2, r3, r6, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r6, r7, pc}");
0x08004b84 mov r8, r0 | r8 = r0;
0x08004b88 b 0x8004934 | goto label_4;
| label_26:
0x08004b8c mov r0, r6 | r0 = r6;
0x08004b90 mov r1, 1 | r1 = 1;
0x08004b94 stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc}");
0x08004b98 b 0x800491c | goto label_5;
| label_28:
0x08004b9c mov r3, 5 | r3 = 5;
0x08004ba0 strb r3, [r5, 0x8c] | *((r5 + 0x8c)) = r3;
0x08004ba4 pld [r6] | __asm ("pld [r6]");
| do {
0x08004ba8 ldrex r3, [r6] | __asm ("ldrex r3, [r6]");
0x08004bac sub r2, r3, 1 | r2 = r3 - 1;
0x08004bb0 strex r1, r2, [r6] | __asm ("strex r1, r2, [r6]");
0x08004bb4 teq r1, 0 | __asm ("teq r1, 0");
0x08004bb8 bne 0x8004ba8 |
| } while (r3 != 0x20);
0x08004bbc cmp r3, 1 |
| if (r3 > 1) {
0x08004bc0 bgt 0x8004984 | goto label_3;
| }
0x08004bc4 mov r0, r6 | r0 = r6;
0x08004bc8 mov r1, 4 | r1 = 4;
0x08004bcc stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc}");
0x08004bd0 b 0x8004984 | goto label_3;
| label_22:
0x08004c48 str r3, [r5, 0xc4] | *((r5 + 0xc4)) = r3;
0x08004c4c str r3, [r5, 0xc0] | *((r5 + 0xc0)) = r3;
0x08004c50 b 0x80047cc | goto label_6;
| label_25:
0x08004c54 mov r0, r6 | r0 = r6;
0x08004c58 mov r1, 2 | r1 = 2;
0x08004c5c stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r4, r5, pc}");
0x08004c60 b 0x800491c | goto label_5;
| label_23:
0x08004c64 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c68 b 0x8004b5c | goto label_7;
| label_19:
0x08004c6c add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c70 mvn r8, 0x25 | r8 = ~0x25;
0x08004c74 b 0x8004b5c | goto label_7;
| label_20:
0x08004c78 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c7c mvn r8, 0x15 | r8 = ~0x15;
0x08004c80 b 0x8004b5c | goto label_7;
| label_15:
0x08004c84 ldrsb r3, [r4, 0xe8] | r3 = *((r4 + 0xe8));
0x08004c88 cmp r3, 0 |
| if (r3 >= 0) {
0x08004c8c bge 0x80043a0 | goto label_8;
| }
0x08004c90 b 0x80041c0 | goto label_0;
| label_24:
0x08004c94 mov r0, sb | r0 = sb;
0x08004c98 add r6, r5, 0x1c | r6 = r5 + 0x1c;
0x08004c9c mvn r8, 0xb | r8 = ~0xb;
0x08004ca0 stmdaeq r0, {r0, r1, r3, r6, pc} | __asm ("stmdaeq r0, {r0, r1, r3, r6, pc}");
0x08004ca4 b 0x8004b5c | goto label_7;
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis8/kernel/net/xfrm/xfrm_user.ko @ 0x80039f4 */
| #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;
0x080039f4 push {r4, r5, r6, r7, r8, sb, sl, lr} |
0x080039f8 mov sl, r1 | sl = r1;
0x080039fc mov r5, r2 | r5 = r2;
0x08003a00 ldr r1, [r2, 0xc] | r1 = *((r2 + 0xc));
0x08003a04 sub sp, sp, 0x10 |
0x08003a08 mov r4, r0 | r4 = r0;
0x08003a0c sub r3, r1, 0x13 | r3 = r1 - 0x13;
0x08003a10 cmp r3, 0xa |
| if (r3 > 0xa) {
| /* switch table (11 cases) at 0x8003a1c */
0x08003a14 ldrls pc, [pc, r3, lsl 2] | offset_0 = r3 << 2;
| pc = *((pc + offset_0));
| }
0x08003a18 b 0x8003f64 |
| while (1) {
0x08003b98 mov r0, r5 | r0 = r5;
0x08003b9c add sp, sp, 0x10 |
0x08003ba0 pop {r4, r5, r6, r7, r8, sb, sl, pc} |
0x08003f64 stmdaeq r0, {r5, r8, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r5, r8, sb, sl, fp, lr}");
0x08003f68 stmdaeq r0, {r5, r8, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r5, r8, sb, sl, fp, lr}");
0x08003f6c mov r5, 0 | r5 = 0;
0x08003f70 stmdaeq r0, {r0, r1, r2, r3, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r7, pc}");
0x08003f74 b 0x8003b98 |
| }
| }
; assembly | /* r2dec pseudo code output */
| /* /logs/firmware/patool_extraction/rootfs.img_unblob_extracted/rootfs.img_extract/0-50593792.squashfs_v4_le_extract/usr/lib/modules/5.10.52-axis8/kernel/net/xfrm/xfrm_user.ko @ 0x8002eac */
| #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;
0x08002eac push {r4, r5, r6, r7, r8, sb, lr} |
0x08002eb0 mov r5, r1 | r5 = r1;
0x08002eb4 mov r4, r0 | r4 = r0;
0x08002eb8 ldr r1, [r1, 0xc] | r1 = *((r1 + 0xc));
0x08002ebc sub sp, sp, 0x14 |
0x08002ec0 sub r3, r1, 0x10 | r3 = r1 - 0x10;
0x08002ec4 cmp r3, 0xe |
| if (r3 > 0xe) {
| /* switch table (15 cases) at 0x8002ed0 */
0x08002ec8 ldrls pc, [pc, r3, lsl 2] | offset_0 = r3 << 2;
| pc = *((pc + offset_0));
| }
0x08002ecc b 0x8003410 |
| while (1) {
0x08003160 mov r0, r4 | r0 = r4;
0x08003164 add sp, sp, 0x14 |
0x08003168 pop {r4, r5, r6, r7, r8, sb, pc} |
0x08003410 stmdaeq r0, {r2, r3, r4, r5, r6, r7, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r2, r3, r4, r5, r6, r7, sb, sl, fp, lr}");
0x08003414 stmdaeq r0, {r2, r3, r4, r5, r6, r7, sb, sl, fp, lr} | __asm ("stmdaeq r0, {r2, r3, r4, r5, r6, r7, sb, sl, fp, lr}");
0x08003418 mov r4, 0 | r4 = 0;
0x0800341c stmdaeq r0, {r0, r1, r2, r3, r7, pc} | __asm ("stmdaeq r0, {r0, r1, r2, r3, r7, pc}");
0x08003420 b 0x8003160 |
| }
| }
[*] Function fprintf used 1 times xfrm_user.ko