//
// OPENSSL_memcmp from 0x103e65c to 0x103e6b0 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0xc81b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:28 +0000
//
__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;
}