//
// MusicDownloadManager::responseToDict from 0x56f808 to 0x56f8f2 (234 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::addSongObjectFromString @ 0x577da8
//
// 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:36 +0000
//
int __fastcall MusicDownloadManager::responseToDict(cocos2d::CCDictionary *a1, unsigned __int8 *a2, const char *a3)
{
unsigned int v5; // r6
int v6; // r0
int v7; // r3
int v8; // r3
int v9; // r8
size_t v10; // r0
size_t v11; // r0
cocos2d::CCArray *v12; // r9
cocos2d::CCString *v13; // r0
const char *CString; // r11
cocos2d::CCObject *v15; // r0
cocos2d::CCObject *v16; // r10
size_t v17; // r0
int v19[3]; // [sp+4h] [bp+0h] BYREF
int v20; // [sp+10h] [bp+Ch] BYREF
int v21; // [sp+14h] [bp+10h]
int v22; // [sp+18h] [bp+14h]
v5 = 0;
v6 = cocos2d::CCDictionary::create(a1);
v7 = *a2;
v19[0] = 0;
v8 = v7 << 31;
v19[1] = 0;
if ( v8 >= 0 )
++a2;
v19[2] = 0;
if ( v8 < 0 )
a2 = *((unsigned __int8 **)a2 + 2);
v9 = v6;
v10 = strlen((const char *)a2);
std::string::__init(v19, a2, v10);
v20 = 0;
v21 = 0;
v22 = 0;
v11 = strlen(a3);
std::string::__init(&v20, a3, v11);
v12 = sub_56F64C(v19, (unsigned __int8 *)&v20);
std::string::~string((int)&v20);
std::string::~string((int)v19);
while ( v5 + 1 < cocos2d::CCArray::count(v12) )
{
v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v12, v5);
CString = (const char *)cocos2d::CCString::getCString(v13);
v15 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v12, v5 + 1);
v20 = 0;
v21 = 0;
v22 = 0;
v16 = v15;
v17 = strlen(CString);
std::string::__init(&v20, CString, v17);
cocos2d::CCDictionary::setObject(v9, v16);
v5 += 2;
std::string::~string((int)&v20);
}
return v9;
}