//
// MusicDownloadManager::getAllMusicArtists from 0x95dfb8 to 0x95e11c (356 bytes)
//
// 2 xrefs:
// > MusicSearchResult::createArtistFilterObjects @ 0x95e148
// > ??> @ 0x9f2e0
//
// 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
//
cocos2d::CCArray *__fastcall MusicDownloadManager::getAllMusicArtists(__int64 a1, __int64 a2)
{
cocos2d::CCArray *v4; // x0
unsigned int v5; // w1
cocos2d::CCArray *v6; // x22
__int64 v7; // x0
__int64 v8; // x0
__int64 i; // x20
__int64 v10; // x0
__int64 v11; // x1
__int64 v12; // t2
cocos2d::CCObject *v13; // x1
__int64 v14; // x0
__int64 v15; // x2
char v16; // w1
unsigned int v17; // w21
cocos2d::CCObject *v19; // [xsp+48h] [xbp+48h]
__int64 v20; // [xsp+50h] [xbp+50h] BYREF
__int64 v21; // [xsp+58h] [xbp+58h]
void *v22; // [xsp+60h] [xbp+60h]
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 448));
v6 = (cocos2d::CCArray *)cocos2d::CCArray::createWithCapacity(v4, v5);
v7 = *(_QWORD *)(a1 + 448);
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 56);
if ( v8 )
{
for ( i = *(_QWORD *)(v8 + 288); ; i = *(_QWORD *)(i + 288) )
{
v14 = *(_QWORD *)(v8 + 264);
v20 = 0;
v21 = 0;
v15 = v14 + 64;
v16 = *(_BYTE *)(v14 + 64);
v22 = nullptr;
v17 = *(_DWORD *)(v14 + 56);
if ( (v16 & 1) != 0 )
{
std::string::__init(&v20, *(void **)(v14 + 80), *(_QWORD *)(v14 + 72));
}
else
{
v12 = v14 + 64;
v10 = *(_QWORD *)(v14 + 64);
v11 = *(_QWORD *)(v12 + 8);
v22 = *(void **)(v15 + 16);
v20 = v10;
v21 = v11;
}
v13 = (cocos2d::CCObject *)OptionsObject::create(v17, 0, &v20, a2);
if ( (v20 & 1) != 0 )
{
v19 = v13;
operator delete(v22);
cocos2d::CCArray::addObject(v6, v19);
if ( !i )
break;
}
else
{
cocos2d::CCArray::addObject(v6, v13);
if ( !i )
break;
}
v8 = i;
}
}
}
if ( (unsigned int)cocos2d::CCArray::count(v6) > 1 )
qsort(
*(void **)(*((_QWORD *)v6 + 7) + 16LL),
**((unsigned int **)v6 + 7),
8u,
(int (*)(const void *, const void *))optionsStrCompare);
return v6;
}