//
// EC_GROUP_new_curve_GFp from 0xd8f8b0 to 0xd8f924 (116 bytes)
//
// 3 xrefs:
// > EC_GROUP_new_from_ecparameters @ 0xd8e190
// > EC_GROUP_new_by_curve_name @ 0xd8f4dc
// > ??> @ 0x6c978
//
// 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_GFp(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x19
__int64 v12; // x0
v8 = EC_GFp_mont_method();
v9 = EC_GROUP_new(v8);
v10 = v9;
if ( v9 && !(unsigned int)EC_GROUP_set_curve_GFp(v9, a1, a2, a3, a4) )
{
v12 = v10;
v10 = 0;
EC_GROUP_clear_free(v12);
}
return v10;
}