//
// EC_KEY_check_key from 0x7e8f98 to 0x7e902c (148 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x7e964c
// > ??> @ 0x6170c
//
// 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_KEY_check_key(int a1)
{
int v1; // r2
int (*v2)(void); // r3
if ( a1 && (v1 = *(_DWORD *)(a1 + 12)) != 0 && *(_DWORD *)(a1 + 16) )
{
v2 = *(int (**)(void))(*(_DWORD *)v1 + 176);
if ( v2 )
return v2();
ERR_put_error(16, 177, 66, "crypto/ec/ec_key.c", 263);
}
else
{
ERR_put_error(16, 177, 67, "crypto/ec/ec_key.c", 258);
}
return 0;
}