//
// BN_mod_inverse from 0x86fa4c to 0x86fa9c (80 bytes)
//
// 13 xrefs:
// > BN_MONT_CTX_set @ 0x7d5868
// > sub_7E255C @ 0x7e26dc
// > sub_7E28B8 @ 0x7e2bd8
// > sub_7E2D78 @ 0x7e2f3c
// > ossl_ecdsa_sign_setup @ 0x7ede90
// > ossl_ecdsa_sign_sig @ 0x7ee838
// > ossl_ecdsa_verify_sig @ 0x7eebe8
// > ec_GFp_simple_point_get_affine_coordinates @ 0x7f3698
// > ec_GFp_simple_points_make_affine @ 0x7f4f28
// > RSA_setup_blinding @ 0x82d6e4
// > RSA_generate_key_ex @ 0x8bfd9c
// > RSA_generate_key_ex @ 0x8bfe6c
// > ??> @ 0x5fdbc
//
// 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_inverse(int a1, int a2, int *a3, int ***a4)
{
int v4; // r4
int v6; // [sp+Ch] [bp-4h] BYREF
v4 = int_bn_mod_inverse(a1, a2, a3, a4, &v6);
if ( v6 )
ERR_put_error(3, 110, 108, (int)"crypto/bn/bn_gcd.c", 131);
return v4;
}