//
// songNameCompareDesc from 0x56af92 to 0x56affc (106 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 songNameCompareDesc(int *a1, int *a2)
{
int v2; // r2
int v3; // r1
int result; // r0
int v5; // r5
int v6; // r4
int v7; // r0
unsigned int v8; // r5
int v9; // r3
unsigned int v10; // r4
const void *v11; // r0
const void *v12; // r1
size_t v13; // r2
v2 = *a1;
v3 = *a2;
result = *(_DWORD *)(v3 + 348) - *(_DWORD *)(*a1 + 348);
if ( !result )
{
v5 = *(unsigned __int8 *)(v3 + 472);
v6 = *(unsigned __int8 *)(v2 + 472);
v7 = v5 & 1;
if ( (v5 & 1) != 0 )
v8 = *(_DWORD *)(v3 + 476);
else
v8 = v5 >> 1;
v9 = v6 & 1;
if ( (v6 & 1) != 0 )
v10 = *(_DWORD *)(v2 + 476);
else
v10 = v6 >> 1;
if ( v7 )
v11 = *(const void **)(v3 + 480);
else
v11 = (const void *)(v3 + 473);
if ( v9 )
v12 = *(const void **)(v2 + 480);
else
v12 = (const void *)(v2 + 473);
v13 = v10;
if ( v10 >= v8 )
v13 = v8;
result = std::char_traits::compare(v11, v12, v13);
if ( !result )
{
if ( v8 < v10 )
return -1;
else
return v8 > v10;
}
}
return result;
}