//
// ec_GF2m_simple_group_get_curve from 0xe3322c to 0xe332ac (128 bytes)
//
// 2 xrefs:
// > ??> @ 0x8f670
// > ??> @ 0x1227168
//
// 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
//
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;
}