//
// ec_GFp_simple_point_init from 0xd990f8 to 0xd99170 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0x8d720
// > ??> @ 0x1222148
// > ??> @ 0x12222c8
// > ??> @ 0x1222448
//
// 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_point_init(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x1
__int64 result; // x0
*(_QWORD *)(a1 + 8) = BN_new();
*(_QWORD *)(a1 + 16) = BN_new();
v2 = BN_new();
*(_DWORD *)(a1 + 32) = 0;
v3 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 24) = v2;
if ( !v3 || !v2 || (result = 1, !*(_QWORD *)(a1 + 16)) )
{
BN_free(v3);
BN_free(*(_QWORD *)(a1 + 16));
BN_free(*(_QWORD *)(a1 + 24));
return 0;
}
return result;
}