//
// OPENSSL_memcmp from 0xdc02fc to 0xdc0350 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x97968
//
// 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 OPENSSL_memcmp(unsigned __int8 *a1, unsigned __int8 *a2, __int64 a3)
{
__int64 result; // x0
unsigned __int8 *v5; // x4
unsigned __int8 *v6; // x2
int v7; // t1
int v8; // w5
unsigned int v9; // w3
if ( !a3 )
return 0;
result = *a1 - (unsigned int)*a2;
if ( !(_DWORD)result )
{
v5 = a1 + 1;
v6 = &a1[a3];
while ( 1 )
{
++a2;
if ( v5 == v6 )
break;
v7 = *v5++;
v8 = *a2;
v9 = v7 - v8;
if ( v7 != v8 )
return v9;
}
}
return result;
}