//
// sub_D6D8A4 from 0xd6d8a4 to 0xd6d8e8 (68 bytes)
//
// 2 xrefs:
// > sub_D6E21C @ 0xd6e688
// > sub_D6E21C @ 0xd6e694
//
// 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 sub_D6D8A4(__int64 a1, __int64 a2)
{
int v2; // w20
int v3; // w19
const void *v4; // x1
const void *v5; // x0
int v6; // w2
unsigned int v7; // w19
__int64 result; // x0
v2 = *(_DWORD *)(a2 + 8);
v3 = *(_DWORD *)(a1 + 8);
v4 = *(const void **)a2;
v5 = *(const void **)a1;
if ( v3 > v2 )
v6 = v2;
else
v6 = v3;
v7 = v3 - v2;
LODWORD(result) = memcmp(v5, v4, v6);
if ( (_DWORD)result )
return (unsigned int)result;
else
return v7;
}