//
// ec_GFp_simple_group_init from 0xd99048 to 0xd990c8 (128 bytes)
//
// 3 xrefs:
// > ec_GFp_mont_group_init @ 0xd96308
// > ??> @ 0xc4b48
// > ??> @ 0x1222400
//
// 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
//
__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;
}
}