//
// EC_GROUP_new_curve_GF2m from 0xd8f924 to 0xd8f998 (116 bytes)
//
// 3 xrefs:
// > EC_GROUP_new_from_ecparameters @ 0xd8e038
// > EC_GROUP_new_by_curve_name @ 0xd8f354
// > ??> @ 0x4d958
//
// 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_GROUP_new_curve_GF2m(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x19
__int64 v12; // x0
v8 = EC_GF2m_simple_method();
v9 = EC_GROUP_new(v8);
v10 = v9;
if ( v9 && !(unsigned int)EC_GROUP_set_curve_GF2m(v9, a1, a2, a3, a4) )
{
v12 = v10;
v10 = 0;
EC_GROUP_clear_free(v12);
}
return v10;
}