//
// ec_GF2m_simple_group_init from 0x889824 to 0x889888 (100 bytes)
//
// 2 xrefs:
// > ??> @ 0x6a87c
// > ??> @ 0xab4f74
//
// 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 ec_GF2m_simple_group_init(_DWORD *a1)
{
int v2; // r0
int v3; // r3
int v4; // r2
bool v5; // zf
a1[9] = BN_new();
a1[16] = BN_new();
v2 = BN_new();
v3 = a1[9];
a1[17] = v2;
if ( v3 )
{
v4 = a1[16];
v5 = v4 == 0;
if ( v4 )
v5 = v2 == 0;
if ( !v5 )
return 1;
}
BN_free(v3);
BN_free(a1[16]);
BN_free(a1[17]);
return 0;
}