//
// MusicDownloadManager::getAllMusicArtists from 0x100159604 to 0x1001596f0 (236 bytes)
//
// 1 xrefs:
// > MusicSearchResult::createArtistFilterObjects @ 0x10015c788
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCArray *__fastcall MusicDownloadManager::getAllMusicArtists(
MusicDownloadManager *a1,
OptionsObjectDelegate *a2)
{
__int64 v4; // x0
cocos2d::CCArray *v5; // x19
cocos2d::CCDictionary *m_musicArtists; // x8
cocos2d::CCDictElement *m_pElements; // x22
cocos2d::CCObject *m_pObject; // x8
__int64 v9; // x21
__int64 v10; // x21
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v13; // [xsp+10h] [xbp-30h]
v4 = cocos2d::CCDictionary::count(a1->m_musicArtists);
v5 = (cocos2d::CCArray *)sub_10024A300(v4);
m_musicArtists = a1->m_musicArtists;
if ( m_musicArtists )
{
m_pElements = m_musicArtists->m_pElements;
while ( m_pElements )
{
m_pObject = m_pElements->m_pObject;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
v9 = LODWORD(m_pObject[1].__vftable);
if ( SHIBYTE(m_pObject[1].m_eObjType) < 0 )
{
sub_1000097D0(__p, *(void **)&m_pObject[1].m_uID, *(_QWORD *)&m_pObject[1].m_nTag);
}
else
{
*(_OWORD *)__p = *(_OWORD *)&m_pObject[1].m_uID;
v13 = *(_QWORD *)&m_pObject[1].m_uAutoReleaseCount;
}
v10 = OptionsObject::create(v9, 0, __p, a2);
if ( SHIBYTE(v13) < 0 )
operator delete(__p[0]);
sub_10024A2D0(v5, v10);
}
}
if ( (unsigned int)sub_10024A36C(v5) >= 2 )
qsort(v5->data->arr, v5->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_100153354);
return v5;
}