//
// MusicDownloadManager::responseToDict from 0x457e28 to 0x457ee0 (184 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x45c5cc
//
// 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(int a1, char **a2, char *a3)
{
cocos2d::CCDictionary *v5; // r9
cocos2d::CCArray *v6; // r8
unsigned int i; // r6
cocos2d::CCString *v8; // r0
char *CString; // r11
cocos2d::CCObject *v10; // r10
char v12; // [sp+Ch] [bp-10h] BYREF
int v13; // [sp+10h] [bp-Ch] BYREF
v5 = cocos2d::CCDictionary::create();
sub_776584((int)&v12, *a2);
sub_776584((int)&v13, a3);
v6 = sub_456F20((cocos2d::CCArray *)&v12, &v13);
sub_774008(&v13);
sub_774008(&v12);
for ( i = 0; i + 1 < cocos2d::CCArray::count(v6); i += 2 )
{
v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, i);
CString = (char *)cocos2d::CCString::getCString(v8);
v10 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v6, i + 1);
sub_776584((int)&v13, CString);
cocos2d::CCDictionary::setObject((int)v5, v10);
sub_774008(&v13);
}
return v5;
}