//
// EC_KEY_generate_key from 0xd8fd64 to 0xd8fdf0 (140 bytes)
//
// 2 xrefs:
// > sub_E349A4 @ 0xe34a08
// > ??> @ 0xa2630
//
// 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_KEY_generate_key(_QWORD *a1)
{
__int64 (*v1)(void); // x19
if ( a1 && a1[3] )
{
v1 = *(__int64 (**)(void))(*a1 + 64LL);
if ( v1 )
{
return v1();
}
else
{
ERR_put_error(16, 179, 152, "crypto/ec/ec_key.c", 188);
return 0;
}
}
else
{
ERR_put_error(16, 179, 67, "crypto/ec/ec_key.c", 183);
return 0;
}
}