//
// BN_GF2m_mod_sqr from 0x10f4868 to 0x10f4940 (216 bytes)
//
// 1 xrefs:
// > ??> @ 0xfdb88
//
// 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
//
bool __fastcall BN_GF2m_mod_sqr(__int64 a1, __int64 a2, __int64 a3, int32x2_t *a4)
{
int v8; // w21
int *v9; // x19
int v10; // w0
_BOOL4 v11; // w20
v8 = BN_num_bits(a3) + 1;
v9 = (int *)CRYPTO_malloc((void *)(4LL * v8), (__int64)"crypto/bn/bn_gf2m.c", 540);
if ( v9 )
{
v10 = BN_GF2m_poly2arr(a3, (__int64)v9, v8);
v11 = v10;
if ( v10 <= v8 && v10 )
v11 = BN_GF2m_mod_sqr_arr(a1, a2, v9, a4);
else
ERR_put_error(3, 136, 106, (__int64)"crypto/bn/bn_gf2m.c", 544);
}
else
{
v11 = 0;
}
CRYPTO_free(v9, (__int64)"crypto/bn/bn_gf2m.c", 550);
return v11;
}