//
// BN_GF2m_mod_mul from 0x8ca264 to 0x8ca338 (212 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_div @ 0x8ca3c0
// > ??> @ 0x6ba1c
//
// 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(int **a1, _DWORD *a2, _DWORD *a3, int **a4, int ***a5)
{
int v9; // r5
int *v10; // r10
_BOOL4 v11; // r4
int v12; // r0
_BOOL4 v13; // r12
v9 = BN_num_bits(a4) + 1;
v10 = (int *)CRYPTO_malloc((void *)(4 * v9), (int)"crypto/bn/bn_gf2m.c", 482);
if ( v10 )
{
v12 = BN_GF2m_poly2arr(a4, (int)v10, v9);
v13 = v12 == 0;
if ( v12 > v9 )
v13 = 1;
v11 = v12;
if ( v13 )
ERR_put_error(3, 133, 106, (int)"crypto/bn/bn_gf2m.c", 486);
else
v11 = BN_GF2m_mod_mul_arr(a1, a2, a3, v10, a5);
}
else
{
v11 = 0;
}
CRYPTO_free(v10, (int)"crypto/bn/bn_gf2m.c", 492);
return v11;
}