//
// BN_mod_inverse from 0xe18f94 to 0xe18fe0 (76 bytes)
//
// 13 xrefs:
// > BN_MONT_CTX_set @ 0xd7be38
// > sub_D89E18 @ 0xd89fc4
// > sub_D8A128 @ 0xd8a410
// > sub_D8A57C @ 0xd8a734
// > ossl_ecdsa_sign_setup @ 0xd94a24
// > ossl_ecdsa_sign_sig @ 0xd952b4
// > ossl_ecdsa_verify_sig @ 0xd955d4
// > ec_GFp_simple_point_get_affine_coordinates @ 0xd999c8
// > ec_GFp_simple_points_make_affine @ 0xd9b130
// > RSA_setup_blinding @ 0xdd3c50
// > RSA_generate_key_ex @ 0xe6ad94
// > RSA_generate_key_ex @ 0xe6ae30
// > ??> @ 0x31230
//
// 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
//
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;
}