//
// sfxNameCompare from 0x95a5f0 to 0x95a69c (172 bytes)
//
// 3 xrefs:
// > ??> @ 0xb4718
// > sub_95A13C @ 0x95a180
// > ??> @ 0x15452a0
//
// 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 12:57:27 +0000
//
__int64 __fastcall sfxNameCompare(__int64 *a1, __int64 *a2)
{
__int64 v2; // x2
__int64 v3; // x1
int v4; // w3
__int64 result; // x0
unsigned __int8 v6; // w0
int v7; // w6
size_t v8; // x20
unsigned __int8 v9; // w0
__int64 v10; // x3
int v11; // w4
size_t v12; // x19
const void *v13; // x0
const void *v14; // x1
size_t v15; // x2
v2 = *a1;
v3 = *a2;
v4 = *(unsigned __int8 *)(*a1 + 72);
result = *(unsigned __int8 *)(v3 + 72);
if ( v4 == (_DWORD)result )
{
v6 = *(_BYTE *)(v2 + 104);
v7 = v6 & 1;
v8 = v6 >> 1;
if ( (v6 & 1) != 0 )
v8 = *(_QWORD *)(v2 + 112);
v9 = *(_BYTE *)(v3 + 104);
v10 = v3 + 104;
v11 = v9 & 1;
v12 = v9 >> 1;
if ( (v9 & 1) != 0 )
v12 = *(_QWORD *)(v3 + 112);
v13 = (const void *)(v2 + 105);
if ( v7 )
v13 = *(const void **)(v2 + 120);
v14 = (const void *)(v3 + 105);
if ( v11 )
v14 = *(const void **)(v10 + 16);
if ( v12 > v8 )
v15 = v8;
else
v15 = v12;
if ( !v15 || (result = memcmp(v13, v14, v15), !(_DWORD)result) )
{
if ( v8 < v12 )
return 0xFFFFFFFFLL;
else
return v8 > v12;
}
}
return result;
}