//
// EVP_PKEY_cmp from 0x804fd8 to 0x805048 (112 bytes)
//
// 3 xrefs:
// > X509_check_private_key @ 0x83ebb0
// > X509_REQ_check_private_key @ 0x8c33d0
// > ??> @ 0x63acc
//
// 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
//
int __fastcall EVP_PKEY_cmp(_DWORD *a1, _DWORD *a2)
{
int v2; // r12
int (*v3)(void); // r3
int result; // r0
int (__fastcall *v7)(_DWORD *, _DWORD *); // r3
if ( *a1 != *a2 )
return -1;
v2 = a1[3];
if ( !v2 )
return -2;
v3 = *(int (**)(void))(v2 + 76);
if ( v3 )
{
result = v3();
if ( result <= 0 )
return result;
v2 = a1[3];
}
v7 = *(int (__fastcall **)(_DWORD *, _DWORD *))(v2 + 28);
if ( v7 )
return v7(a1, a2);
else
return -2;
}