//
// BN_GF2m_mod from 0x10f40c8 to 0x10f4150 (136 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_inv @ 0x10f41d8
// > ??> @ 0xa7aa0
//
// 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:18:09 +0000
//
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;
}