{"type": "func", "start": 10397112, "end": 10397232, "name": "BN_MONT_CTX_copy", "pseudocode": "// \n// BN_MONT_CTX_copy from 0x9ea5b8 to 0x9ea630 (120 bytes)\n// \n// 3 xrefs:\n// > EC_GROUP_copy @ 0x9ff558\n// > ec_GFp_mont_group_copy @ 0xa048d4\n// > <???> @ 0x7987c\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:26 +0000\n// \n\nint *__fastcall BN_MONT_CTX_copy(int *result, int *a2)\n{\n  int *v3; // r4\n  int v4; // r3\n\n  if ( result != a2 )\n  {\n    v3 = result;\n    if ( BN_copy((int)(result + 1), (int)(a2 + 1))\n      && BN_copy((int)(v3 + 6), (int)(a2 + 6))\n      && BN_copy((int)(v3 + 11), (int)(a2 + 11)) )\n    {\n      v4 = *a2;\n      v3[16] = a2[16];\n      v3[17] = a2[17];\n      *v3 = v4;\n      return v3;\n    }\n    else\n    {\n      return nullptr;\n    }\n  }\n  return result;\n}", "assembly": "; \n; BN_MONT_CTX_copy from 0x9ea5b8 to 0x9ea630 (120 bytes)\n; \n; 3 xrefs:\n; > EC_GROUP_copy @ 0x9ff558\n; > ec_GFp_mont_group_copy @ 0xa048d4\n; > <???> @ 0x7987c\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:26 +0000\n; \nCMP             R0, R1                                                 ; +0x0, 0x9ea5b8\nBXEQ            LR                                                     ; +0x4, 0x9ea5bc\nPUSH            {R3-R5,LR}                                             ; +0x8, 0x9ea5c0\nMOV             R5, R1                                                 ; +0xc, 0x9ea5c4\nMOV             R4, R0                                                 ; +0x10, 0x9ea5c8\nADD             R1, R1, #4                                             ; +0x14, 0x9ea5cc\nADD             R0, R0, #4                                             ; +0x18, 0x9ea5d0\nBL              BN_copy                                                ; +0x1c, 0x9ea5d4\nCMP             R0, #0                                                 ; +0x20, 0x9ea5d8\nBEQ             loc_9EA628                                             ; +0x24, 0x9ea5dc\nADD             R0, R4, #0x18                                          ; +0x28, 0x9ea5e0\nADD             R1, R5, #0x18                                          ; +0x2c, 0x9ea5e4\nBL              BN_copy                                                ; +0x30, 0x9ea5e8\nCMP             R0, #0                                                 ; +0x34, 0x9ea5ec\nBEQ             loc_9EA628                                             ; +0x38, 0x9ea5f0\nADD             R0, R4, #0x2C ; ','                                    ; +0x3c, 0x9ea5f4\nADD             R1, R5, #0x2C ; ','                                    ; +0x40, 0x9ea5f8\nBL              BN_copy                                                ; +0x44, 0x9ea5fc\nCMP             R0, #0                                                 ; +0x48, 0x9ea600\nBEQ             loc_9EA628                                             ; +0x4c, 0x9ea604\nLDR             R2, [R5,#0x40]                                         ; +0x50, 0x9ea608\nLDR             R3, [R5]                                               ; +0x54, 0x9ea60c\nSTR             R2, [R4,#0x40]                                         ; +0x58, 0x9ea610\nLDR             R2, [R5,#0x44]                                         ; +0x5c, 0x9ea614\nSTR             R2, [R4,#0x44]                                         ; +0x60, 0x9ea618\nSTR             R3, [R4]                                               ; +0x64, 0x9ea61c\nMOV             R0, R4                                                 ; +0x68, 0x9ea620\nPOP             {R3-R5,PC}                                             ; +0x6c, 0x9ea624\nMOV             R0, #0                                                 ; +0x70, 0x9ea628\nPOP             {R3-R5,PC}                                             ; +0x74, 0x9ea62c", "xrefs": ["EC_GROUP_copy @ 0x9ff558", "ec_GFp_mont_group_copy @ 0xa048d4", "<???> @ 0x7987c"], "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"}