//
// OPENSSL_memcmp from 0x81abc4 to 0x81ac14 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x6423c
//
// 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 OPENSSL_memcmp(unsigned __int8 *a1, unsigned __int8 *a2, int a3)
{
int result; // r0
unsigned __int8 *v5; // r2
unsigned __int8 *v6; // r12
int v7; // r3
int v8; // t1
int v9; // t1
int v10; // r3
if ( !a3 )
return 0;
result = *a1 - *a2;
if ( !result )
{
v5 = &a1[a3];
v6 = a1 + 1;
while ( v6 != v5 )
{
v8 = *v6++;
v7 = v8;
v9 = *++a2;
v10 = v7 - v9;
if ( v10 )
return v10;
}
}
return result;
}