//
// EVP_PKEY_cmp from 0xdabf48 to 0xdabfbc (116 bytes)
//
// 3 xrefs:
// > X509_check_private_key @ 0xde6aa0
// > X509_REQ_check_private_key @ 0xe6f104
// > ??> @ 0x31c38
//
// 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 EVP_PKEY_cmp(__int64 a1, _DWORD *a2)
{
__int64 v2; // x4
__int64 (*v3)(void); // x2
__int64 result; // x0
__int64 (__fastcall *v7)(__int64, _DWORD *); // x2
if ( *(_DWORD *)a1 != *a2 )
return 0xFFFFFFFFLL;
v2 = *(_QWORD *)(a1 + 16);
if ( !v2 )
return 4294967294LL;
v3 = *(__int64 (**)(void))(v2 + 144);
if ( v3 )
{
result = v3();
if ( (int)result <= 0 )
return result;
v2 = *(_QWORD *)(a1 + 16);
}
v7 = *(__int64 (__fastcall **)(__int64, _DWORD *))(v2 + 48);
if ( !v7 )
return 4294967294LL;
return v7(a1, a2);
}