//
// MusicDownloadManager::getAllMusicArtists from 0x1005946c0 to 0x1005947be (254 bytes)
//
// 1 xrefs:
// > MusicSearchResult::createArtistFilterObjects @ 0x100599477
//
// 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)
{
__int128 v2; // xmm0
unsigned int v3; // eax
cocos2d::CCArray *v4; // rbx
cocos2d::CCDictionary *m_musicArtists; // rax
cocos2d::CCDictElement *m_pElements; // r13
cocos2d::CCObject *m_pObject; // rax
int v8; // r12d
unsigned int *p_m_uID; // rax
char *v10; // r12
std::string v12[2]; // [rsp+0h] [rbp-40h] BYREF
v3 = cocos2d::CCDictionary::count(a1->m_musicArtists);
v4 = (cocos2d::CCArray *)sub_10071FD00(v3);
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;
v8 = (int)m_pObject[1].__vftable;
if ( (m_pObject[1].m_uID & 1) != 0 )
{
sub_100006B70(
v12,
*(const void **)&m_pObject[1].m_uAutoReleaseCount,
*(_QWORD *)&m_pObject[1].m_nTag,
*(double *)&v2);
}
else
{
p_m_uID = &m_pObject[1].m_uID;
v12[0].__r_.__value_.__r.__words[2] = *((_QWORD *)p_m_uID + 2);
v2 = *(_OWORD *)p_m_uID;
*(_OWORD *)&v12[0].__r_.__value_.__l.0 = *(_OWORD *)p_m_uID;
}
v10 = OptionsObject::create(v8, 0, v12, (__int64)a2);
if ( (*(_BYTE *)&v12[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v12[0].__r_.__value_.__l.__data_);
sub_10071FCD0(v4, v10);
}
}
if ( (unsigned int)sub_100720070(v4) >= 2 )
qsort(v4->data->arr, v4->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_100589CA0);
return v4;
}