//
// BN_GF2m_mod from 0x8c9de0 to 0x8c9e64 (132 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_inv @ 0x8c9eec
// > ??> @ 0x6b9fc
//
// 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_GF2m_mod(int **a1, int **a2, int **a3)
{
int v5; // r0
int v8[6]; // [sp+8h] [bp-18h] BYREF
v5 = BN_GF2m_poly2arr(a3, (int)v8, 6);
if ( v5 <= 6 && v5 != 0 )
return BN_GF2m_mod_arr(a1, a2, v8);
ERR_put_error(3, 131, 106, (int)"crypto/bn/bn_gf2m.c", 406);
return 0;
}