//
// sub_D8C01C from 0xd8c01c to 0xd8c0b4 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122e88
//
// 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 sub_D8C01C(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x20
__int64 v6; // x2
int v7; // w1
__int64 result; // x0
v4 = EC_KEY_get0_group(*(_QWORD *)(a2 + 32));
v5 = EC_KEY_get0_public_key(*(_QWORD *)(a1 + 32));
v6 = EC_KEY_get0_public_key(*(_QWORD *)(a2 + 32));
if ( v5 == 0 || v4 == 0 || !v6 )
return 4294967294LL;
v7 = EC_POINT_cmp(v4, v5, v6, 0);
result = 1;
if ( v7 )
{
if ( v7 == 1 )
return 0;
else
return 4294967294LL;
}
return result;
}