//
// ec_GFp_simple_group_init from 0x10173a8 to 0x1017428 (128 bytes)
//
// 3 xrefs:
// > ec_GFp_mont_group_init @ 0x1014668
// > ??> @ 0xfffa0
// > ??> @ 0x153a188
//
// 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:16:05 +0000
//
__int64 __fastcall ec_GFp_simple_group_init(__int64 a1)
{
__int64 v2; // x0
*(_QWORD *)(a1 + 64) = BN_new();
*(_QWORD *)(a1 + 96) = BN_new();
v2 = BN_new();
*(_QWORD *)(a1 + 104) = v2;
if ( *(_QWORD *)(a1 + 64) && v2 && *(_QWORD *)(a1 + 96) )
{
*(_DWORD *)(a1 + 112) = 0;
return 1;
}
else
{
BN_free(*(_QWORD *)(a1 + 64));
BN_free(*(_QWORD *)(a1 + 96));
BN_free(*(_QWORD *)(a1 + 104));
return 0;
}
}