//
// BN_mod_inverse from 0x1097294 to 0x10972e0 (76 bytes)
//
// 13 xrefs:
// > BN_MONT_CTX_set @ 0xffa198
// > sub_1008178 @ 0x1008324
// > sub_1008488 @ 0x1008770
// > sub_10088DC @ 0x1008a94
// > ossl_ecdsa_sign_setup @ 0x1012d84
// > ossl_ecdsa_sign_sig @ 0x1013614
// > ossl_ecdsa_verify_sig @ 0x1013934
// > ec_GFp_simple_point_get_affine_coordinates @ 0x1017d28
// > ec_GFp_simple_points_make_affine @ 0x1019490
// > RSA_setup_blinding @ 0x1051fb0
// > RSA_generate_key_ex @ 0x10e8d94
// > RSA_generate_key_ex @ 0x10e8e30
// > ??> @ 0x491e0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:24 +0000
//
unsigned __int64 *__fastcall BN_mod_inverse(unsigned __int64 *a1, __int64 a2, __int64 *a3, int32x2_t *a4)
{
unsigned __int64 *v4; // x19
int v6; // [xsp+2Ch] [xbp+2Ch] BYREF
v4 = int_bn_mod_inverse(a1, a2, a3, a4, &v6);
if ( v6 )
ERR_put_error(3, 110, 108, (__int64)"crypto/bn/bn_gcd.c", 131);
return v4;
}