//
// ec_GFp_simple_group_init from 0xa0791c to 0xa0798c (112 bytes)
//
// 3 xrefs:
// > ec_GFp_mont_group_init @ 0xa0469c
// > ??> @ 0x7b7cc
// > ??> @ 0xd16f0c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:41 +0000
//
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;
}
}