//
// EC_POINT_is_on_curve from 0x7eb130 to 0x7eb1b0 (128 bytes)
//
// 4 xrefs:
// > ec_key_simple_check_key @ 0x7e90e0
// > EC_POINT_set_affine_coordinates_GFp @ 0x7eb238
// > EC_POINT_set_affine_coordinates_GF2m @ 0x7eb328
// > ??> @ 0x6173c
//
// 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_POINT_is_on_curve(int a1, _DWORD *a2)
{
int (*v2)(void); // r12
v2 = *(int (**)(void))(*(_DWORD *)a1 + 108);
if ( !v2 )
{
ERR_put_error(16, 119, 66, "crypto/ec/ec_lib.c", 843);
return 0;
}
if ( *(_DWORD *)a1 != *a2 )
{
ERR_put_error(16, 119, 101, "crypto/ec/ec_lib.c", 847);
return 0;
}
return v2();
}