//
// EC_POINT_cmp from 0xd921b4 to 0xd92238 (132 bytes)
//
// 6 xrefs:
// > sub_D8C01C @ 0xd8c080
// > ec_key_simple_check_key @ 0xd9027c
// > EC_GROUP_cmp @ 0xd92414
// > ec_wNAF_mul @ 0xd92e7c
// > sub_D96D88 @ 0xd96fa8
// > ??> @ 0x53a60
//
// 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_POINT_cmp(__int64 *a1, _QWORD *a2, _QWORD *a3)
{
__int64 v3; // x4
__int64 (*v4)(void); // x5
v3 = *a1;
v4 = *(__int64 (**)(void))(*a1 + 216);
if ( v4 )
{
if ( v3 == *a2 && v3 == *a3 )
{
return v4();
}
else
{
ERR_put_error(16, 113, 101, "crypto/ec/ec_lib.c", 861);
return 0xFFFFFFFFLL;
}
}
else
{
ERR_put_error(16, 113, 66, "crypto/ec/ec_lib.c", 857);
return 0xFFFFFFFFLL;
}
}