//
// EC_KEY_generate_key from 0x100e0c4 to 0x100e150 (140 bytes)
//
// 2 xrefs:
// > sub_10B2CA4 @ 0x10b2d08
// > ??> @ 0xd5808
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:16:01 +0000
//
__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;
}
}