//
// BN_GF2m_mod_mul from 0xe766c8 to 0xe767ac (228 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_div @ 0xe7683c
// > ??> @ 0x576a8
//
// 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_mul(__int64 a1, __int64 a2, __int64 *a3, __int64 a4, int32x2_t *a5)
{
int v9; // w21
int *v10; // x0
int *v11; // x19
int v12; // w0
_BOOL4 v13; // w20
v9 = BN_num_bits(a4) + 1;
v10 = (int *)CRYPTO_malloc((void *)(4LL * v9), (__int64)"crypto/bn/bn_gf2m.c", 482);
v11 = v10;
if ( v10 )
{
v12 = BN_GF2m_poly2arr(a4, (__int64)v10, v9);
v13 = v12;
if ( v12 <= v9 && v12 )
v13 = BN_GF2m_mod_mul_arr(a1, a2, a3, v11, a5);
else
ERR_put_error(3, 133, 106, (__int64)"crypto/bn/bn_gf2m.c", 486);
}
else
{
v13 = 0;
}
CRYPTO_free(v11, (__int64)"crypto/bn/bn_gf2m.c", 492);
return v13;
}