//
// EC_GROUP_new_curve_GFp from 0x7e888c to 0x7e88f0 (100 bytes)
//
// 3 xrefs:
// > EC_GROUP_new_from_ecparameters @ 0x7e6e34
// > EC_GROUP_new_by_curve_name @ 0x7e83b8
// > ??> @ 0x614cc
//
// 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_GFp(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_GFp_mont_method();
v9 = EC_GROUP_new(v8);
v10 = v9;
if ( !v9 )
return 0;
v11 = EC_GROUP_set_curve_GFp(v9, a1, a2, a3, a4);
result = v10;
if ( !v11 )
{
EC_GROUP_clear_free(v10);
return 0;
}
return result;
}