//
// songNameCompare from 0x95a4a0 to 0x95a548 (168 bytes)
//
// 3 xrefs:
// > ??> @ 0xe6aa0
// > sub_959FEC @ 0x95a030
// > ??> @ 0x1546f28
//
// 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 songNameCompare(__int64 *a1, __int64 *a2)
{
__int64 v2; // x3
__int64 v3; // x1
__int64 result; // x0
int v5; // w0
int v6; // w6
size_t v7; // x20
unsigned __int8 v8; // w0
__int64 v9; // x2
int v10; // w4
size_t v11; // x19
const void *v12; // x0
const void *v13; // x1
size_t v14; // x2
v2 = *a1;
v3 = *a2;
result = (unsigned int)(*(_DWORD *)(v3 + 452) - *(_DWORD *)(*a1 + 452));
if ( !(_DWORD)result )
{
v5 = *(unsigned __int8 *)(v2 + 696);
v6 = v5 & 1;
v7 = (unsigned __int8)v5 >> 1;
if ( (*(_BYTE *)(v2 + 696) & 1) != 0 )
v7 = *(_QWORD *)(v2 + 704);
v8 = *(_BYTE *)(v3 + 696);
v9 = v3 + 696;
v10 = v8 & 1;
v11 = v8 >> 1;
if ( (v8 & 1) != 0 )
v11 = *(_QWORD *)(v3 + 704);
v12 = (const void *)(v2 + 697);
if ( v6 )
v12 = *(const void **)(v2 + 712);
v13 = (const void *)(v3 + 697);
if ( v10 )
v13 = *(const void **)(v9 + 16);
if ( v11 > v7 )
v14 = v7;
else
v14 = v11;
if ( !v14 || (result = memcmp(v12, v13, v14), !(_DWORD)result) )
{
if ( v7 < v11 )
return 0xFFFFFFFFLL;
else
return v7 > v11;
}
}
return result;
}