//
// EC_POINT_is_on_curve from 0x10102f0 to 0x1010374 (132 bytes)
//
// 4 xrefs:
// > ec_key_simple_check_key @ 0x100e424
// > EC_POINT_set_affine_coordinates_GFp @ 0x10103ec
// > EC_POINT_set_affine_coordinates_GF2m @ 0x10104bc
// > ??> @ 0xf4468
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:02 +0000
//
__int64 __fastcall EC_POINT_is_on_curve(__int64 a1, _QWORD *a2)
{
__int64 (*v2)(void); // x19
v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 208LL);
if ( v2 )
{
if ( *(_QWORD *)a1 == *a2 )
{
return v2();
}
else
{
ERR_put_error(16, 119, 101, "crypto/ec/ec_lib.c", 847);
return 0;
}
}
else
{
ERR_put_error(16, 119, 66, "crypto/ec/ec_lib.c", 843);
return 0;
}
}