//
// MusicDownloadManager::getAllMusicTags from 0x95e508 to 0x95e698 (400 bytes)
//
// 2 xrefs:
// > MusicSearchResult::createTagFilterObjects @ 0x95e6c4
// > ??> @ 0x68458
//
// 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:30 +0000
//
cocos2d::CCArray *__fastcall MusicDownloadManager::getAllMusicTags(__int64 a1, __int64 a2)
{
_QWORD *v4; // x22
__int64 v5; // x0
_QWORD *v6; // x19
cocos2d::CCArray *v7; // x21
char v8; // w0
unsigned int v9; // w25
__int64 v10; // x0
__int64 v11; // x1
cocos2d::CCObject *v12; // x1
_QWORD *v13; // x0
_QWORD *v15; // x1
_QWORD *v16; // x1
cocos2d::CCObject *v17; // [xsp+58h] [xbp+58h]
__int64 v18; // [xsp+60h] [xbp+60h] BYREF
__int64 v19; // [xsp+68h] [xbp+68h]
void *v20; // [xsp+70h] [xbp+70h]
v4 = (_QWORD *)(a1 + 472);
v5 = cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)*(unsigned int *)(a1 + 480), _stack_chk_guard);
v6 = *(_QWORD **)(a1 + 464);
v7 = (cocos2d::CCArray *)v5;
while ( v6 != v4 )
{
while ( 1 )
{
v8 = *((_BYTE *)v6 + 40);
v18 = 0;
v19 = 0;
v20 = nullptr;
v9 = *((_DWORD *)v6 + 8);
if ( (v8 & 1) != 0 )
{
std::string::__init(&v18, (void *)v6[7], v6[6]);
}
else
{
v10 = v6[5];
v11 = v6[6];
v20 = (void *)v6[7];
v18 = v10;
v19 = v11;
}
v12 = (cocos2d::CCObject *)OptionsObject::create(v9, 0, &v18, a2);
if ( (v18 & 1) != 0 )
{
v17 = v12;
operator delete(v20);
v12 = v17;
}
cocos2d::CCArray::addObject(v7, v12);
v13 = (_QWORD *)v6[1];
if ( !v13 )
break;
do
{
v6 = v13;
v13 = (_QWORD *)*v13;
}
while ( v13 );
if ( v6 == v4 )
goto LABEL_10;
}
do
{
v15 = v6;
v6 = (_QWORD *)v6[2];
if ( v15 == (_QWORD *)*v6 )
break;
v16 = v6;
v6 = (_QWORD *)v6[2];
}
while ( v16 != (_QWORD *)*v6 );
}
LABEL_10:
if ( (unsigned int)cocos2d::CCArray::count(v7) > 1 )
qsort(
*(void **)(*((_QWORD *)v7 + 7) + 16LL),
**((unsigned int **)v7 + 7),
8u,
(int (*)(const void *, const void *))optionsStrCompare);
return v7;
}