// // BN_mod_mul_reciprocal from 0xa861b8 to 0xa86264 (172 bytes) // // 6 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 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:08:52 +0000 // 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; }