//
// EC_GROUP_new_curve_GF2m from 0x7e88f0 to 0x7e8954 (100 bytes)
//
// 3 xrefs:
// > EC_GROUP_new_from_ecparameters @ 0x7e6cb0
// > EC_GROUP_new_by_curve_name @ 0x7e821c
// > ??> @ 0x6148c
//
// 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
//
int __fastcall EC_GROUP_new_curve_GF2m(int a1, int a2, int a3, int a4)
{
int v8; // r0
int v9; // r0
int v10; // r4
int v11; // r5
int result; // r0
v8 = EC_GF2m_simple_method();
v9 = EC_GROUP_new(v8);
v10 = v9;
if ( !v9 )
return 0;
v11 = EC_GROUP_set_curve_GF2m(v9, a1, a2, a3, a4);
result = v10;
if ( !v11 )
{
EC_GROUP_clear_free(v10);
return 0;
}
return result;
}