{"type": "func", "start": 10390312, "end": 10390424, "name": "BN_swap", "pseudocode": "// \n// BN_swap from 0x9e8b28 to 0x9e8b98 (112 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7951c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:25 +0000\n// \n\nint *__fastcall BN_swap(int *result, int *a2)\n{\n  int v2; // r10\n  int v3; // r2\n  int v4; // r12\n  int v5; // r3\n  int v6; // r6\n  int v7; // r9\n  int v8; // r5\n  int v9; // r8\n  int v10; // r4\n  int v11; // r7\n  int v12; // lr\n\n  v2 = a2[4] & 2;\n  v3 = a2[4] & 1;\n  v4 = result[4] & 1;\n  v5 = result[4] & 2;\n  v6 = *result;\n  v7 = *a2;\n  v8 = result[1];\n  v9 = a2[1];\n  v10 = result[2];\n  v11 = a2[2];\n  v12 = result[3];\n  result[3] = a2[3];\n  *result = v7;\n  result[1] = v9;\n  result[2] = v11;\n  *a2 = v6;\n  a2[1] = v8;\n  a2[2] = v10;\n  a2[3] = v12;\n  result[4] = v2 | v4;\n  a2[4] = v5 | v3;\n  return result;\n}", "assembly": "; \n; BN_swap from 0x9e8b28 to 0x9e8b98 (112 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7951c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:25 +0000\n; \nLDR             R3, [R1,#0x10]                                         ; +0x0, 0x9e8b28\nPUSH            {R4-R10,LR}                                            ; +0x4, 0x9e8b2c\nLDR             LR, [R0,#0x10]                                         ; +0x8, 0x9e8b30\nAND             R10, R3, #2                                            ; +0xc, 0x9e8b34\nAND             R2, R3, #1                                             ; +0x10, 0x9e8b38\nAND             R12, LR, #1                                            ; +0x14, 0x9e8b3c\nAND             R3, LR, #2                                             ; +0x18, 0x9e8b40\nLDR             R6, [R0]                                               ; +0x1c, 0x9e8b44\nLDR             R9, [R1]                                               ; +0x20, 0x9e8b48\nLDR             R5, [R0,#4]                                            ; +0x24, 0x9e8b4c\nLDR             R8, [R1,#4]                                            ; +0x28, 0x9e8b50\nLDR             R4, [R0,#8]                                            ; +0x2c, 0x9e8b54\nLDR             R7, [R1,#8]                                            ; +0x30, 0x9e8b58\nLDR             LR, [R0,#0xC]                                          ; +0x34, 0x9e8b5c\nORR             R12, R10, R12                                          ; +0x38, 0x9e8b60\nORR             R3, R3, R2                                             ; +0x3c, 0x9e8b64\nLDR             R10, [R1,#0xC]                                         ; +0x40, 0x9e8b68\nSTR             R10, [R0,#0xC]                                         ; +0x44, 0x9e8b6c\nSTR             R9, [R0]                                               ; +0x48, 0x9e8b70\nSTR             R8, [R0,#4]                                            ; +0x4c, 0x9e8b74\nSTR             R7, [R0,#8]                                            ; +0x50, 0x9e8b78\nSTR             R6, [R1]                                               ; +0x54, 0x9e8b7c\nSTR             R5, [R1,#4]                                            ; +0x58, 0x9e8b80\nSTR             R4, [R1,#8]                                            ; +0x5c, 0x9e8b84\nSTR             LR, [R1,#0xC]                                          ; +0x60, 0x9e8b88\nSTR             R12, [R0,#0x10]                                        ; +0x64, 0x9e8b8c\nSTR             R3, [R1,#0x10]                                         ; +0x68, 0x9e8b90\nPOP             {R4-R10,PC}                                            ; +0x6c, 0x9e8b94", "xrefs": ["<???> @ 0x7951c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}