//
// BN_GF2m_mod_div from 0xe767ac to 0xe76868 (188 bytes)
//
// 3 xrefs:
// > ec_GF2m_simple_field_div @ 0xe334ec
// > BN_GF2m_mod_div_arr @ 0xe76d4c
// > ??> @ 0xc94b0
//
// 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
//
bool __fastcall BN_GF2m_mod_div(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int32x2_t *a5)
{
unsigned __int64 *v9; // x0
__int64 *v10; // x20
_BOOL4 v12; // w20
BN_CTX_start((unsigned __int64)a5);
v9 = (unsigned __int64 *)BN_CTX_get(a5);
v10 = (__int64 *)v9;
if ( v9 && BN_GF2m_mod_inv(v9, a3, a4, a5) )
{
v12 = BN_GF2m_mod_mul(a1, a2, v10, a4, a5);
BN_CTX_end((__int64)a5);
return v12;
}
else
{
BN_CTX_end((__int64)a5);
return 0;
}
}