//
// EC_KEY_check_key from 0x9fdb98 to 0x9fdc2c (148 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0x9fe24c
// > ??> @ 0x7b18c
//
// 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_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;
}