{"type": "func", "start": 8852920, "end": 8853092, "name": "BN_mod_mul_reciprocal", "pseudocode": "// \n// BN_mod_mul_reciprocal from 0x8715b8 to 0x871664 (172 bytes)\n// \n// 6 xrefs:\n// > BN_mod_exp_recp @ 0x86cf50\n// > BN_mod_exp_recp @ 0x86cf90\n// > BN_mod_exp_recp @ 0x86d060\n// > BN_mod_exp_recp @ 0x86d09c\n// > BN_mod_exp_recp @ 0x86d140\n// > <???> @ 0x69d4c\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_mod_mul_reciprocal(int **a1, int **a2, int **a3, int a4, int ***a5)\n{\n  int **v9; // r0\n  int *v10; // r6\n  int v11; // r4\n\n  BN_CTX_start((int)a5);\n  v9 = BN_CTX_get(a5);\n  v10 = (int *)v9;\n  if ( !v9 )\n    goto LABEL_8;\n  if ( !a3 )\n  {\n    v10 = (int *)a2;\n    goto LABEL_5;\n  }\n  if ( a2 == a3 )\n  {\n    if ( BN_sqr((int)v9, a2, (int)a5) )\n      goto LABEL_5;\nLABEL_8:\n    v11 = 0;\n    goto LABEL_6;\n  }\n  if ( !BN_mul(v9, a2, a3, (int)a5) )\n    goto LABEL_8;\nLABEL_5:\n  v11 = BN_div_recp(nullptr, a1, v10, a4, a5);\nLABEL_6:\n  BN_CTX_end(a5);\n  return v11;\n}", "assembly": "; \n; BN_mod_mul_reciprocal from 0x8715b8 to 0x871664 (172 bytes)\n; \n; 6 xrefs:\n; > BN_mod_exp_recp @ 0x86cf50\n; > BN_mod_exp_recp @ 0x86cf90\n; > BN_mod_exp_recp @ 0x86d060\n; > BN_mod_exp_recp @ 0x86d09c\n; > BN_mod_exp_recp @ 0x86d140\n; > <???> @ 0x69d4c\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, 0x8715b8\nSUB             SP, SP, #8                                             ; +0x4, 0x8715bc\nMOV             R8, R0                                                 ; +0x8, 0x8715c0\nLDR             R0, [SP,#8+arg_0]                                      ; +0xc, 0x8715c4\nMOV             R5, R1                                                 ; +0x10, 0x8715c8\nMOV             R4, R2                                                 ; +0x14, 0x8715cc\nMOV             R7, R3                                                 ; +0x18, 0x8715d0\nBL              BN_CTX_start                                           ; +0x1c, 0x8715d4\nLDR             R0, [SP,#8+arg_0]                                      ; +0x20, 0x8715d8\nBL              BN_CTX_get                                             ; +0x24, 0x8715dc\nSUBS            R6, R0, #0                                             ; +0x28, 0x8715e0\nBEQ             loc_871654                                             ; +0x2c, 0x8715e4\nCMP             R4, #0                                                 ; +0x30, 0x8715e8\nBEQ             loc_87165C                                             ; +0x34, 0x8715ec\nCMP             R5, R4                                                 ; +0x38, 0x8715f0\nMOV             R1, R5                                                 ; +0x3c, 0x8715f4\nBEQ             loc_871644                                             ; +0x40, 0x8715f8\nMOV             R2, R4                                                 ; +0x44, 0x8715fc\nLDR             R3, [SP,#8+arg_0]                                      ; +0x48, 0x871600\nBL              BN_mul                                                 ; +0x4c, 0x871604\nCMP             R0, #0                                                 ; +0x50, 0x871608\nBEQ             loc_871654                                             ; +0x54, 0x87160c\nLDR             R3, [SP,#8+arg_0]                                      ; +0x58, 0x871610\nSTR             R3, [SP,#8+var_8]                                      ; +0x5c, 0x871614\nMOV             R1, R8                                                 ; +0x60, 0x871618\nMOV             R2, R6                                                 ; +0x64, 0x87161c\nMOV             R3, R7                                                 ; +0x68, 0x871620\nMOV             R0, #0                                                 ; +0x6c, 0x871624\nBL              BN_div_recp                                            ; +0x70, 0x871628\nMOV             R4, R0                                                 ; +0x74, 0x87162c\nLDR             R0, [SP,#8+arg_0]                                      ; +0x78, 0x871630\nBL              BN_CTX_end                                             ; +0x7c, 0x871634\nMOV             R0, R4                                                 ; +0x80, 0x871638\nADD             SP, SP, #8                                             ; +0x84, 0x87163c\nPOP             {R4-R8,PC}                                             ; +0x88, 0x871640\nLDR             R2, [SP,#8+arg_0]                                      ; +0x8c, 0x871644\nBL              BN_sqr                                                 ; +0x90, 0x871648\nCMP             R0, #0                                                 ; +0x94, 0x87164c\nBNE             loc_871610                                             ; +0x98, 0x871650\nMOV             R4, #0                                                 ; +0x9c, 0x871654\nB               loc_871630                                             ; +0xa0, 0x871658\nMOV             R6, R5                                                 ; +0xa4, 0x87165c\nB               loc_871610                                             ; +0xa8, 0x871660", "xrefs": ["BN_mod_exp_recp @ 0x86cf50", "BN_mod_exp_recp @ 0x86cf90", "BN_mod_exp_recp @ 0x86d060", "BN_mod_exp_recp @ 0x86d09c", "BN_mod_exp_recp @ 0x86d140", "<???> @ 0x69d4c"], "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"}