{"type": "func", "start": 8852112, "end": 8852184, "name": "BN_RECP_CTX_set", "pseudocode": "// \n// BN_RECP_CTX_set from 0x871290 to 0x8712d8 (72 bytes)\n// \n// 3 xrefs:\n// > BN_mod_exp_recp @ 0x86ce30\n// > BN_mod_exp_recp @ 0x86cecc\n// > <???> @ 0x69d2c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall BN_RECP_CTX_set(int a1, _DWORD *a2)\n{\n  int v4; // r3\n  int v5; // r0\n\n  if ( !BN_copy(a1, (int)a2) )\n    return 0;\n  BN_set_word((int **)(a1 + 20), 0);\n  v5 = BN_num_bits(a2);\n  *(_DWORD *)(a1 + 44) = 0;\n  v4 = 1;\n  *(_DWORD *)(a1 + 40) = v5;\n  return v4;\n}", "assembly": "; \n; BN_RECP_CTX_set from 0x871290 to 0x8712d8 (72 bytes)\n; \n; 3 xrefs:\n; > BN_mod_exp_recp @ 0x86ce30\n; > BN_mod_exp_recp @ 0x86cecc\n; > <???> @ 0x69d2c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x871290\nMOV             R4, R0                                                 ; +0x4, 0x871294\nMOV             R5, R1                                                 ; +0x8, 0x871298\nBL              BN_copy                                                ; +0xc, 0x87129c\nCMP             R0, #0                                                 ; +0x10, 0x8712a0\nMOVEQ           R3, R0                                                 ; +0x14, 0x8712a4\nBEQ             loc_8712D0                                             ; +0x18, 0x8712a8\nMOV             R1, #0                                                 ; +0x1c, 0x8712ac\nADD             R0, R4, #0x14                                          ; +0x20, 0x8712b0\nBL              BN_set_word                                            ; +0x24, 0x8712b4\nMOV             R0, R5                                                 ; +0x28, 0x8712b8\nBL              BN_num_bits                                            ; +0x2c, 0x8712bc\nMOV             R3, #0                                                 ; +0x30, 0x8712c0\nSTR             R3, [R4,#0x2C]                                         ; +0x34, 0x8712c4\nMOV             R3, #1                                                 ; +0x38, 0x8712c8\nSTR             R0, [R4,#0x28]                                         ; +0x3c, 0x8712cc\nMOV             R0, R3                                                 ; +0x40, 0x8712d0\nPOP             {R3-R5,PC}                                             ; +0x44, 0x8712d4", "xrefs": ["BN_mod_exp_recp @ 0x86ce30", "BN_mod_exp_recp @ 0x86cecc", "<???> @ 0x69d2c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}