//
// MusicDownloadManager::getAllMusicArtists from 0x56cd88 to 0x56ce3a (178 bytes)
//
// 1 xrefs:
// > MusicSearchResult::createArtistFilterObjects @ 0x56ce54
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:34 +0000
//
size_t **__fastcall MusicDownloadManager::getAllMusicArtists(int a1, int a2)
{
cocos2d::CCArray *v4; // r0
unsigned int v5; // r1
size_t **v6; // r0
int v7; // r3
size_t **v8; // r7
int v9; // r3
int v10; // r4
int v11; // r9
cocos2d::CCObject *v12; // r9
int v13; // r2
int v15[3]; // [sp+0h] [bp-14h] BYREF
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 336));
v6 = (size_t **)cocos2d::CCArray::createWithCapacity(v4, v5);
v7 = *(_DWORD *)(a1 + 336);
v8 = v6;
if ( v7 )
{
v9 = *(_DWORD *)(v7 + 52);
if ( v9 )
v10 = *(_DWORD *)(v9 + 272);
else
v10 = 0;
while ( v9 )
{
v11 = *(_DWORD *)(*(_DWORD *)(v9 + 260) + 52);
std::string::basic_string(v15, *(_DWORD *)(v9 + 260) + 56);
v12 = (cocos2d::CCObject *)OptionsObject::create(v11, 0, v15, a2);
std::string::~string((int)v15);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v8, v12);
if ( v10 )
v13 = *(_DWORD *)(v10 + 272);
else
v13 = 0;
v9 = v10;
v10 = v13;
}
}
if ( cocos2d::CCArray::count((cocos2d::CCArray *)v8) > 1u )
qsort((void *)v8[13][3], *v8[13], 4u, (int (*)(const void *, const void *))optionsStrCompare);
return v8;
}