//
// MusicDownloadManager::createArtistsInfo from 0x45a770 to 0x45a892 (290 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::createSongsInfo @ 0x45c978
//
// 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::CCDictionary *__fastcall MusicDownloadManager::createArtistsInfo(int a1, _DWORD *a2)
{
cocos2d::CCDictionary *v2; // r4
unsigned int i; // r5
int v4; // r11
cocos2d::CCObject *v6; // [sp+Ch] [bp-30h]
_BYTE v7[4]; // [sp+18h] [bp-24h] BYREF
_BYTE v8[4]; // [sp+1Ch] [bp-20h] BYREF
_BYTE v9[4]; // [sp+20h] [bp-1Ch] BYREF
_BYTE v10[4]; // [sp+24h] [bp-18h] BYREF
const char **v11; // [sp+28h] [bp-14h] BYREF
int v12; // [sp+2Ch] [bp-10h]
int v13; // [sp+30h] [bp-Ch]
v2 = *(cocos2d::CCDictionary **)(*a2 - 12);
if ( v2 )
{
v11 = nullptr;
v12 = 0;
v13 = 0;
sub_45A6C8(a2, ",", (int)&v11);
if ( (unsigned int)(v12 - (_DWORD)v11) <= 7 )
{
v2 = nullptr;
}
else
{
v2 = cocos2d::CCDictionary::create();
for ( i = 0; i < (v12 - (int)v11) >> 2; i += 2 )
{
v4 = atoi(v11[i]);
sub_775C20(v7);
if ( v4 > 0 )
{
sub_775C20(v8);
sub_776584((int)v9, (char *)&unk_939830);
sub_776584((int)v10, (char *)&unk_939830);
v6 = MusicArtistObject::create(v4);
sub_774008(v10);
sub_774008(v9);
sub_774008(v8);
cocos2d::CCDictionary::setObject(v2, v6, v4);
}
sub_774008(v7);
}
}
std::vector::~vector((void **)&v11);
}
return v2;
}