//
// EC_POINT_cmp from 0x1010514 to 0x1010598 (132 bytes)
//
// 6 xrefs:
// > sub_100A37C @ 0x100a3e0
// > ec_key_simple_check_key @ 0x100e5dc
// > EC_GROUP_cmp @ 0x1010774
// > ec_wNAF_mul @ 0x10111dc
// > sub_10150E8 @ 0x1015308
// > ??> @ 0x74080
//
// 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_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;
}
}