//
// sfxNameCompareDesc from 0x56b05c to 0x56b0be (98 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:32 +0000
//
int __fastcall sfxNameCompareDesc(int *a1, int *a2)
{
int v2; // r3
int v3; // r1
int v4; // r2
int result; // r0
int v6; // r5
int v7; // r4
int v8; // r0
unsigned int v9; // r5
int v10; // r2
unsigned int v11; // r4
const void *v12; // r0
const void *v13; // r1
size_t v14; // r2
v2 = *a1;
v3 = *a2;
v4 = *(unsigned __int8 *)(*a1 + 68);
result = *(unsigned __int8 *)(v3 + 68);
if ( v4 == result )
{
v6 = *(unsigned __int8 *)(v3 + 88);
v7 = *(unsigned __int8 *)(v2 + 88);
v8 = v6 & 1;
if ( (v6 & 1) != 0 )
v9 = *(_DWORD *)(v3 + 92);
else
v9 = v6 >> 1;
v10 = v7 & 1;
if ( (v7 & 1) != 0 )
v11 = *(_DWORD *)(v2 + 92);
else
v11 = v7 >> 1;
if ( v8 )
v12 = *(const void **)(v3 + 96);
else
v12 = (const void *)(v3 + 89);
if ( v10 )
v13 = *(const void **)(v2 + 96);
else
v13 = (const void *)(v2 + 89);
v14 = v11;
if ( v11 >= v9 )
v14 = v9;
result = std::char_traits::compare(v12, v13, v14);
if ( !result )
{
if ( v9 < v11 )
return -1;
else
return v9 > v11;
}
}
return result;
}