//
// EC_KEY_check_key from 0xd8ff88 to 0xd90014 (140 bytes)
//
// 2 xrefs:
// > EC_KEY_set_public_key_affine_coordinates @ 0xd905d8
// > ??> @ 0x4f248
//
// 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_check_key(__int64 a1)
{
__int64 v1; // x2
__int64 (*v2)(void); // x19
if ( a1 && (v1 = *(_QWORD *)(a1 + 24)) != 0 && *(_QWORD *)(a1 + 32) )
{
v2 = *(__int64 (**)(void))(*(_QWORD *)v1 + 344LL);
if ( v2 )
{
return v2();
}
else
{
ERR_put_error(16, 177, 66, "crypto/ec/ec_key.c", 263);
return 0;
}
}
else
{
ERR_put_error(16, 177, 67, "crypto/ec/ec_key.c", 258);
return 0;
}
}