//
// EC_KEY_generate_key from 0x9fd968 to 0x9fd9f8 (144 bytes)
//
// 2 xrefs:
// > sub_A9FC48 @ 0xa9fcac
// > ??> @ 0x7b13c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:36 +0000
//
int __fastcall EC_KEY_generate_key(_DWORD *a1)
{
int (*v1)(void); // r3
if ( a1 && a1[3] )
{
v1 = *(int (**)(void))(*a1 + 32);
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;
}
}