{"type": "func", "start": 8852184, "end": 8852308, "name": "BN_reciprocal", "pseudocode": "// \n// BN_reciprocal from 0x8712d8 to 0x871354 (124 bytes)\n// \n// 2 xrefs:\n// > BN_div_recp @ 0x871420\n// > <???> @ 0x69e2c\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_reciprocal(int **a1, int *a2, int a3, int ***a4)\n{\n  int *v8; // r0\n  int *v9; // r7\n\n  BN_CTX_start((int)a4);\n  v8 = (int *)BN_CTX_get(a4);\n  v9 = v8;\n  if ( !v8 || !BN_set_bit(v8, a3) || !BN_div(a1, 0, v9, a2, a4) )\n    a3 = -1;\n  BN_CTX_end(a4);\n  return a3;\n}", "assembly": "; \n; BN_reciprocal from 0x8712d8 to 0x871354 (124 bytes)\n; \n; 2 xrefs:\n; > BN_div_recp @ 0x871420\n; > <???> @ 0x69e2c\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            {R4-R8,LR}                                             ; +0x0, 0x8712d8\nMOV             R4, R3                                                 ; +0x4, 0x8712dc\nSUB             SP, SP, #8                                             ; +0x8, 0x8712e0\nMOV             R8, R0                                                 ; +0xc, 0x8712e4\nMOV             R0, R3                                                 ; +0x10, 0x8712e8\nMOV             R6, R1                                                 ; +0x14, 0x8712ec\nMOV             R5, R2                                                 ; +0x18, 0x8712f0\nBL              BN_CTX_start                                           ; +0x1c, 0x8712f4\nMOV             R0, R4                                                 ; +0x20, 0x8712f8\nBL              BN_CTX_get                                             ; +0x24, 0x8712fc\nSUBS            R7, R0, #0                                             ; +0x28, 0x871300\nBEQ             loc_87134C                                             ; +0x2c, 0x871304\nMOV             R1, R5                                                 ; +0x30, 0x871308\nBL              BN_set_bit                                             ; +0x34, 0x87130c\nCMP             R0, #0                                                 ; +0x38, 0x871310\nBEQ             loc_87134C                                             ; +0x3c, 0x871314\nSTR             R4, [SP,#8+var_8]                                      ; +0x40, 0x871318\nMOV             R0, R8                                                 ; +0x44, 0x87131c\nMOV             R2, R7                                                 ; +0x48, 0x871320\nMOV             R3, R6                                                 ; +0x4c, 0x871324\nMOV             R1, #0                                                 ; +0x50, 0x871328\nBL              BN_div                                                 ; +0x54, 0x87132c\nCMP             R0, #0                                                 ; +0x58, 0x871330\nBEQ             loc_87134C                                             ; +0x5c, 0x871334\nMOV             R0, R4                                                 ; +0x60, 0x871338\nBL              BN_CTX_end                                             ; +0x64, 0x87133c\nMOV             R0, R5                                                 ; +0x68, 0x871340\nADD             SP, SP, #8                                             ; +0x6c, 0x871344\nPOP             {R4-R8,PC}                                             ; +0x70, 0x871348\nMOV             R5, #0xFFFFFFFF                                        ; +0x74, 0x87134c\nB               loc_871338                                             ; +0x78, 0x871350", "xrefs": ["BN_div_recp @ 0x871420", "<???> @ 0x69e2c"], "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"}