//
// ec_GFp_simple_point_init from 0x1017458 to 0x10174d0 (120 bytes)
//
// 4 xrefs:
// > ??> @ 0xbb420
// > ??> @ 0x1539ed0
// > ??> @ 0x153a050
// > ??> @ 0x153a1d0
//
// 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_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;
}