// // BN_mod_mul_reciprocal from 0x8715b8 to 0x871664 (172 bytes) // // 6 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 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall BN_mod_mul_reciprocal(int **a1, int **a2, int **a3, int a4, int ***a5) { int **v9; // r0 int *v10; // r6 int v11; // r4 BN_CTX_start((int)a5); v9 = BN_CTX_get(a5); v10 = (int *)v9; if ( !v9 ) goto LABEL_8; if ( !a3 ) { v10 = (int *)a2; goto LABEL_5; } if ( a2 == a3 ) { if ( BN_sqr((int)v9, a2, (int)a5) ) goto LABEL_5; LABEL_8: v11 = 0; goto LABEL_6; } if ( !BN_mul(v9, a2, a3, (int)a5) ) goto LABEL_8; LABEL_5: v11 = BN_div_recp(nullptr, a1, v10, a4, a5); LABEL_6: BN_CTX_end(a5); return v11; }