{"type": "func", "start": 14789732, "end": 14789932, "name": "BN_mod_mul_reciprocal", "pseudocode": "// \n// BN_mod_mul_reciprocal from 0xe1ac64 to 0xe1ad2c (200 bytes)\n// \n// 6 xrefs:\n// > sub_E162E0 @ 0xe16420\n// > sub_E162E0 @ 0xe16458\n// > sub_E162E0 @ 0xe16510\n// > sub_E162E0 @ 0xe1653c\n// > sub_E162E0 @ 0xe16648\n// > <???> @ 0x3c780\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\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 0xe1ac64 to 0xe1ad2c (200 bytes)\n; \n; 6 xrefs:\n; > sub_E162E0 @ 0xe16420\n; > sub_E162E0 @ 0xe16458\n; > sub_E162E0 @ 0xe16510\n; > sub_E162E0 @ 0xe1653c\n; > sub_E162E0 @ 0xe16648\n; > <???> @ 0x3c780\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xe1ac64\nMOV             X29, SP                                                ; +0x4, 0xe1ac68\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0xe1ac6c\nMOV             X22, X0                                                ; +0xc, 0xe1ac70\nMOV             X0, X4                                                 ; +0x10, 0xe1ac74\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0xe1ac78\nSTR             X1, [X29,#0x40+var_10]                                 ; +0x18, 0xe1ac7c\nMOV             X19, X4                                                ; +0x1c, 0xe1ac80\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x20, 0xe1ac84\nMOV             X21, X3                                                ; +0x24, 0xe1ac88\nBL              BN_CTX_start                                           ; +0x28, 0xe1ac8c\nMOV             X0, X19                                                ; +0x2c, 0xe1ac90\nBL              BN_CTX_get                                             ; +0x30, 0xe1ac94\nMOV             X20, X0                                                ; +0x34, 0xe1ac98\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x38, 0xe1ac9c\nLDR             X1, [X29,#0x40+var_10]                                 ; +0x3c, 0xe1aca0\nCBZ             X0, loc_E1AD04                                         ; +0x40, 0xe1aca4\nCBZ             X2, loc_E1AD24                                         ; +0x44, 0xe1aca8\nCMP             X1, X2                                                 ; +0x48, 0xe1acac\nB.EQ            loc_E1ACF8                                             ; +0x4c, 0xe1acb0\nMOV             X3, X19                                                ; +0x50, 0xe1acb4\nBL              BN_mul                                                 ; +0x54, 0xe1acb8\nCBZ             W0, loc_E1AD04                                         ; +0x58, 0xe1acbc\nMOV             X1, X22                                                ; +0x5c, 0xe1acc0\nMOV             X2, X20                                                ; +0x60, 0xe1acc4\nMOV             X3, X21                                                ; +0x64, 0xe1acc8\nMOV             X4, X19                                                ; +0x68, 0xe1accc\nMOV             X0, #0                                                 ; +0x6c, 0xe1acd0\nBL              BN_div_recp                                            ; +0x70, 0xe1acd4\nMOV             W20, W0                                                ; +0x74, 0xe1acd8\nMOV             X0, X19                                                ; +0x78, 0xe1acdc\nBL              BN_CTX_end                                             ; +0x7c, 0xe1ace0\nMOV             W0, W20                                                ; +0x80, 0xe1ace4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x84, 0xe1ace8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x88, 0xe1acec\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0xe1acf0\nRET                                                                    ; +0x90, 0xe1acf4\nMOV             X2, X19                                                ; +0x94, 0xe1acf8\nBL              BN_sqr                                                 ; +0x98, 0xe1acfc\nCBNZ            W0, loc_E1ACC0                                         ; +0x9c, 0xe1ad00\nMOV             X0, X19                                                ; +0xa0, 0xe1ad04\nMOV             W20, #0                                                ; +0xa4, 0xe1ad08\nBL              BN_CTX_end                                             ; +0xa8, 0xe1ad0c\nMOV             W0, W20                                                ; +0xac, 0xe1ad10\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb0, 0xe1ad14\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb4, 0xe1ad18\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0xe1ad1c\nRET                                                                    ; +0xbc, 0xe1ad20\nMOV             X20, X1                                                ; +0xc0, 0xe1ad24\nB               loc_E1ACC0                                             ; +0xc4, 0xe1ad28", "xrefs": ["sub_E162E0 @ 0xe16420", "sub_E162E0 @ 0xe16458", "sub_E162E0 @ 0xe16510", "sub_E162E0 @ 0xe1653c", "sub_E162E0 @ 0xe16648", "<???> @ 0x3c780"], "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"}