//
// ec_GF2m_simple_group_get_curve from 0x10b152c to 0x10b15ac (128 bytes)
//
// 2 xrefs:
// > ??> @ 0xbdcb8
// > ??> @ 0x153eef0
//
// 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:17:43 +0000
//
bool __fastcall ec_GF2m_simple_group_get_curve(
__int64 *a1,
unsigned __int64 *a2,
unsigned __int64 *a3,
unsigned __int64 *a4)
{
unsigned __int64 *v6; // x0
_BOOL8 result; // x0
unsigned __int64 *v8; // [xsp+28h] [xbp+28h]
if ( a2 )
{
v8 = a3;
v6 = BN_copy(a2, a1[8]);
a3 = v8;
if ( !v6 )
return 0;
}
if ( a3 && !BN_copy(a3, a1[12]) )
return 0;
result = 1;
if ( a4 )
return BN_copy(a4, a1[13]) != nullptr;
return result;
}