//
// ec_GFp_simple_group_init from 0x7f2d1c to 0x7f2d8c (112 bytes)
//
// 3 xrefs:
// > ec_GFp_mont_group_init @ 0x7efa9c
// > ??> @ 0x61d4c
// > ??> @ 0xab2830
//
// 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_GFp_simple_group_init(_DWORD *a1)
{
int v2; // r0
int v3; // r2
int v4; // r3
bool v5; // zf
_BOOL4 v6; // r3
a1[9] = BN_new();
a1[16] = BN_new();
v2 = BN_new();
v3 = a1[9];
a1[17] = v2;
if ( !v3 )
goto LABEL_9;
v4 = a1[16];
v5 = v4 == 0;
if ( v4 )
v5 = v2 == 0;
v6 = v5;
if ( v5 )
{
LABEL_9:
BN_free(v3);
BN_free(a1[16]);
BN_free(a1[17]);
return 0;
}
else
{
a1[18] = v6;
return 1;
}
}