//
// EVP_PKEY_cmp from 0xa19bd8 to 0xa19c48 (112 bytes)
//
// 3 xrefs:
// > X509_check_private_key @ 0xa537b0
// > X509_REQ_check_private_key @ 0xad83d0
// > ??> @ 0x7d54c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:51 +0000
//
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;
}