{"type": "func", "start": 17403748, "end": 17403948, "name": "BN_mod_mul_reciprocal", "pseudocode": "// \n// BN_mod_mul_reciprocal from 0x1098f64 to 0x109902c (200 bytes)\n// \n// 6 xrefs:\n// > sub_10945E0 @ 0x1094720\n// > sub_10945E0 @ 0x1094758\n// > sub_10945E0 @ 0x1094810\n// > sub_10945E0 @ 0x109483c\n// > sub_10945E0 @ 0x1094948\n// > <???> @ 0x579b8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:17:24 +0000\n// \n\n__int64 __fastcall BN_mod_mul_reciprocal(__int64 a1, __int64 **a2, __int64 **a3, __int64 a4, int32x2_t *a5)\n{\n  __int64 v8; // x0\n  __int64 v9; // x20\n  unsigned int v10; // w20\n\n  BN_CTX_start((unsigned __int64)a5);\n  v8 = BN_CTX_get(a5);\n  v9 = v8;\n  if ( v8 )\n  {\n    if ( !a3 )\n    {\n      v9 = (__int64)a2;\n      goto LABEL_5;\n    }\n    if ( a2 == a3 )\n    {\n      if ( (unsigned int)BN_sqr(v8, a2, (__int64)a5) )\n        goto LABEL_5;\n    }\n    else if ( (unsigned int)BN_mul(v8, a2, a3, (__int64)a5) )\n    {\nLABEL_5:\n      v10 = BN_div_recp(0, a1, v9, a4, a5);\n      BN_CTX_end((__int64)a5);\n      return v10;\n    }\n  }\n  BN_CTX_end((__int64)a5);\n  return 0;\n}", "assembly": "; \n; BN_mod_mul_reciprocal from 0x1098f64 to 0x109902c (200 bytes)\n; \n; 6 xrefs:\n; > sub_10945E0 @ 0x1094720\n; > sub_10945E0 @ 0x1094758\n; > sub_10945E0 @ 0x1094810\n; > sub_10945E0 @ 0x109483c\n; > sub_10945E0 @ 0x1094948\n; > <???> @ 0x579b8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:17:24 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x1098f64\nMOV             X29, SP                                                ; +0x4, 0x1098f68\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x1098f6c\nMOV             X22, X0                                                ; +0xc, 0x1098f70\nMOV             X0, X4                                                 ; +0x10, 0x1098f74\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0x1098f78\nSTR             X1, [X29,#0x40+var_10]                                 ; +0x18, 0x1098f7c\nMOV             X19, X4                                                ; +0x1c, 0x1098f80\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x20, 0x1098f84\nMOV             X21, X3                                                ; +0x24, 0x1098f88\nBL              BN_CTX_start                                           ; +0x28, 0x1098f8c\nMOV             X0, X19                                                ; +0x2c, 0x1098f90\nBL              BN_CTX_get                                             ; +0x30, 0x1098f94\nMOV             X20, X0                                                ; +0x34, 0x1098f98\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x38, 0x1098f9c\nLDR             X1, [X29,#0x40+var_10]                                 ; +0x3c, 0x1098fa0\nCBZ             X0, loc_1099004                                        ; +0x40, 0x1098fa4\nCBZ             X2, loc_1099024                                        ; +0x44, 0x1098fa8\nCMP             X1, X2                                                 ; +0x48, 0x1098fac\nB.EQ            loc_1098FF8                                            ; +0x4c, 0x1098fb0\nMOV             X3, X19                                                ; +0x50, 0x1098fb4\nBL              BN_mul                                                 ; +0x54, 0x1098fb8\nCBZ             W0, loc_1099004                                        ; +0x58, 0x1098fbc\nMOV             X1, X22                                                ; +0x5c, 0x1098fc0\nMOV             X2, X20                                                ; +0x60, 0x1098fc4\nMOV             X3, X21                                                ; +0x64, 0x1098fc8\nMOV             X4, X19                                                ; +0x68, 0x1098fcc\nMOV             X0, #0                                                 ; +0x6c, 0x1098fd0\nBL              BN_div_recp                                            ; +0x70, 0x1098fd4\nMOV             W20, W0                                                ; +0x74, 0x1098fd8\nMOV             X0, X19                                                ; +0x78, 0x1098fdc\nBL              BN_CTX_end                                             ; +0x7c, 0x1098fe0\nMOV             W0, W20                                                ; +0x80, 0x1098fe4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x84, 0x1098fe8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x88, 0x1098fec\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0x1098ff0\nRET                                                                    ; +0x90, 0x1098ff4\nMOV             X2, X19                                                ; +0x94, 0x1098ff8\nBL              BN_sqr                                                 ; +0x98, 0x1098ffc\nCBNZ            W0, loc_1098FC0                                        ; +0x9c, 0x1099000\nMOV             X0, X19                                                ; +0xa0, 0x1099004\nMOV             W20, #0                                                ; +0xa4, 0x1099008\nBL              BN_CTX_end                                             ; +0xa8, 0x109900c\nMOV             W0, W20                                                ; +0xac, 0x1099010\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb0, 0x1099014\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb4, 0x1099018\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0x109901c\nRET                                                                    ; +0xbc, 0x1099020\nMOV             X20, X1                                                ; +0xc0, 0x1099024\nB               loc_1098FC0                                            ; +0xc4, 0x1099028", "xrefs": ["sub_10945E0 @ 0x1094720", "sub_10945E0 @ 0x1094758", "sub_10945E0 @ 0x1094810", "sub_10945E0 @ 0x109483c", "sub_10945E0 @ 0x1094948", "<???> @ 0x579b8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}