//
// BN_GF2m_mod from 0xe760c8 to 0xe76150 (136 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_inv @ 0xe761d8
// > ??> @ 0x7db98
//
// 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_GF2m_mod(__int64 a1, __int64 a2, __int64 a3)
{
int v5; // w0
int v7[6]; // [xsp+38h] [xbp+38h] BYREF
v5 = BN_GF2m_poly2arr(a3, (__int64)v7, 6);
if ( v5 <= 6 && v5 )
return BN_GF2m_mod_arr(a1, a2, v7);
ERR_put_error(3, 131, 106, (__int64)"crypto/bn/bn_gf2m.c", 406);
return nullptr;
}