//
// MusicDownloadManager::responseToDict from 0x1001547d0 to 0x1001548e8 (280 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x100154674
//
// 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::responseToDict(__int64 a1, char *a2, char *a3)
{
cocos2d::CCDictionary *v5; // x19
__int64 ArtistsInfo; // x20
__int64 v7; // x21
cocos2d::CCString *v8; // x0
char *CString; // x22
__int64 v10; // x21
__int64 v11; // x23
unsigned int v12; // w0
unsigned int v13; // w8
void *__p[2]; // [xsp+0h] [xbp-60h] BYREF
char v16; // [xsp+17h] [xbp-49h]
void *v17[2]; // [xsp+18h] [xbp-48h] BYREF
char v18; // [xsp+2Fh] [xbp-31h]
v5 = cocos2d::CCDictionary::create();
if ( a2[23] < 0 )
a2 = *(char **)a2;
sub_100009900(v17, a2);
sub_100009900(__p, a3);
ArtistsInfo = MusicDownloadManager::createArtistsInfo(v17, __p);
if ( v16 < 0 )
operator delete(__p[0]);
if ( v18 < 0 )
operator delete(v17[0]);
if ( (unsigned int)sub_10024A36C(ArtistsInfo) >= 2 )
{
v7 = 0;
do
{
v8 = (cocos2d::CCString *)sub_10024A388(ArtistsInfo, v7);
CString = (char *)cocos2d::CCString::getCString(v8);
v10 = (unsigned int)(v7 + 1);
v11 = sub_10024A388(ArtistsInfo, v10);
sub_100009900(v17, CString);
cocos2d::CCDictionary::setObject_1(v5, v11, v17);
if ( v18 < 0 )
operator delete(v17[0]);
v12 = sub_10024A36C(ArtistsInfo);
v13 = v10 + 2;
v7 = (unsigned int)(v10 + 1);
}
while ( v13 < v12 );
}
return v5;
}