{"type": "func", "start": 11035064, "end": 11035236, "name": "BN_mod_mul_reciprocal", "pseudocode": "// \n// BN_mod_mul_reciprocal from 0xa861b8 to 0xa86264 (172 bytes)\n// \n// 6 xrefs:\n// > BN_mod_exp_recp @ 0xa81b50\n// > BN_mod_exp_recp @ 0xa81b90\n// > BN_mod_exp_recp @ 0xa81c60\n// > BN_mod_exp_recp @ 0xa81c9c\n// > BN_mod_exp_recp @ 0xa81d40\n// > <???> @ 0x837cc\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:08:52 +0000\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 0xa861b8 to 0xa86264 (172 bytes)\n; \n; 6 xrefs:\n; > BN_mod_exp_recp @ 0xa81b50\n; > BN_mod_exp_recp @ 0xa81b90\n; > BN_mod_exp_recp @ 0xa81c60\n; > BN_mod_exp_recp @ 0xa81c9c\n; > BN_mod_exp_recp @ 0xa81d40\n; > <???> @ 0x837cc\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:08:52 +0000\n; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0xa861b8\nSUB             SP, SP, #8                                             ; +0x4, 0xa861bc\nMOV             R8, R0                                                 ; +0x8, 0xa861c0\nLDR             R0, [SP,#8+arg_0]                                      ; +0xc, 0xa861c4\nMOV             R5, R1                                                 ; +0x10, 0xa861c8\nMOV             R4, R2                                                 ; +0x14, 0xa861cc\nMOV             R7, R3                                                 ; +0x18, 0xa861d0\nBL              BN_CTX_start                                           ; +0x1c, 0xa861d4\nLDR             R0, [SP,#8+arg_0]                                      ; +0x20, 0xa861d8\nBL              BN_CTX_get                                             ; +0x24, 0xa861dc\nSUBS            R6, R0, #0                                             ; +0x28, 0xa861e0\nBEQ             loc_A86254                                             ; +0x2c, 0xa861e4\nCMP             R4, #0                                                 ; +0x30, 0xa861e8\nBEQ             loc_A8625C                                             ; +0x34, 0xa861ec\nCMP             R5, R4                                                 ; +0x38, 0xa861f0\nMOV             R1, R5                                                 ; +0x3c, 0xa861f4\nBEQ             loc_A86244                                             ; +0x40, 0xa861f8\nMOV             R2, R4                                                 ; +0x44, 0xa861fc\nLDR             R3, [SP,#8+arg_0]                                      ; +0x48, 0xa86200\nBL              BN_mul                                                 ; +0x4c, 0xa86204\nCMP             R0, #0                                                 ; +0x50, 0xa86208\nBEQ             loc_A86254                                             ; +0x54, 0xa8620c\nLDR             R3, [SP,#8+arg_0]                                      ; +0x58, 0xa86210\nSTR             R3, [SP,#8+var_8]                                      ; +0x5c, 0xa86214\nMOV             R1, R8                                                 ; +0x60, 0xa86218\nMOV             R2, R6                                                 ; +0x64, 0xa8621c\nMOV             R3, R7                                                 ; +0x68, 0xa86220\nMOV             R0, #0                                                 ; +0x6c, 0xa86224\nBL              BN_div_recp                                            ; +0x70, 0xa86228\nMOV             R4, R0                                                 ; +0x74, 0xa8622c\nLDR             R0, [SP,#8+arg_0]                                      ; +0x78, 0xa86230\nBL              BN_CTX_end                                             ; +0x7c, 0xa86234\nMOV             R0, R4                                                 ; +0x80, 0xa86238\nADD             SP, SP, #8                                             ; +0x84, 0xa8623c\nPOP             {R4-R8,PC}                                             ; +0x88, 0xa86240\nLDR             R2, [SP,#8+arg_0]                                      ; +0x8c, 0xa86244\nBL              BN_sqr                                                 ; +0x90, 0xa86248\nCMP             R0, #0                                                 ; +0x94, 0xa8624c\nBNE             loc_A86210                                             ; +0x98, 0xa86250\nMOV             R4, #0                                                 ; +0x9c, 0xa86254\nB               loc_A86230                                             ; +0xa0, 0xa86258\nMOV             R6, R5                                                 ; +0xa4, 0xa8625c\nB               loc_A86210                                             ; +0xa8, 0xa86260", "xrefs": ["BN_mod_exp_recp @ 0xa81b50", "BN_mod_exp_recp @ 0xa81b90", "BN_mod_exp_recp @ 0xa81c60", "BN_mod_exp_recp @ 0xa81c9c", "BN_mod_exp_recp @ 0xa81d40", "<???> @ 0x837cc"], "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"}