//
// optionsStrCompare from 0x95dcc4 to 0x95de1c (344 bytes)
//
// 4 xrefs:
// > ??> @ 0x5abe0
// > MusicDownloadManager::getAllMusicArtists @ 0x95e0c4
// > MusicDownloadManager::getAllMusicTags @ 0x95e5e8
// > ??> @ 0x1542198
//
// 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:29 +0000
//
__int64 __fastcall optionsStrCompare(_QWORD *a1, __int64 *a2)
{
__int64 v2; // x19
int v3; // w25
unsigned __int64 v4; // x20
int v5; // w24
size_t v6; // x19
char *v7; // x0
char *v8; // x1
size_t v9; // x2
unsigned int v10; // w21
__int64 v12[2]; // [xsp+58h] [xbp+58h] BYREF
void *v13; // [xsp+68h] [xbp+68h]
__int64 v14; // [xsp+70h] [xbp+70h] BYREF
size_t v15; // [xsp+78h] [xbp+78h]
void *v16; // [xsp+80h] [xbp+80h]
v2 = *a2;
sub_95DC24(*a1 + 64LL, v12);
sub_95DC24(v2 + 64, &v14);
v3 = v12[0] & 1;
if ( v3 )
{
v4 = v12[1];
v5 = v14 & 1;
if ( (v14 & 1) != 0 )
{
v6 = v15;
v7 = (char *)v13;
goto LABEL_6;
}
v6 = (unsigned __int8)v14 >> 1;
v7 = (char *)v13;
v8 = (char *)&v14 + 1;
}
else
{
v4 = LOBYTE(v12[0]) >> 1;
v5 = v14 & 1;
if ( (v14 & 1) != 0 )
{
v6 = v15;
v7 = (char *)v12 + 1;
LABEL_6:
v8 = (char *)v16;
v5 = 1;
goto LABEL_7;
}
v6 = (unsigned __int8)v14 >> 1;
v7 = (char *)v12 + 1;
v8 = (char *)&v14 + 1;
}
LABEL_7:
if ( v6 > v4 )
v9 = v4;
else
v9 = v6;
if ( v9 )
{
v10 = memcmp(v7, v8, v9);
if ( v10 )
{
if ( !v5 )
goto LABEL_13;
goto LABEL_21;
}
}
v10 = v4 > v6;
if ( v4 < v6 )
v10 = -1;
if ( v5 )
{
LABEL_21:
operator delete(v16);
v3 = v12[0] & 1;
}
LABEL_13:
if ( v3 )
operator delete(v13);
return v10;
}