//
// MusicDownloadManager::createArtistsInfo from 0x56e6e0 to 0x56e7dc (252 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::createSongsInfo @ 0x5781d2
//
// 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:35 +0000
//
int __fastcall MusicDownloadManager::createArtistsInfo(int a1, unsigned __int8 *a2)
{
int v2; // r4
int v3; // r4
cocos2d::CCDictionary *v4; // r0
unsigned int i; // r7
int v6; // r6
int v7; // r0
const char *v8; // r0
int v9; // r10
int v10; // r2
int v11; // r3
cocos2d::CCObject *v13; // [sp+4h] [bp-30h]
int v14; // [sp+8h] [bp-2Ch] BYREF
int v15; // [sp+Ch] [bp-28h]
int v16; // [sp+10h] [bp-24h]
int v17[3]; // [sp+14h] [bp-20h] BYREF
int v18[3]; // [sp+20h] [bp-14h] BYREF
v2 = *a2;
if ( (v2 & 1) != 0 )
v3 = *((_DWORD *)a2 + 1);
else
v3 = v2 >> 1;
if ( v3 )
{
v14 = 0;
v15 = 0;
v16 = 0;
v4 = (cocos2d::CCDictionary *)sub_56DAB4(a2, ",", &v14);
if ( (unsigned int)(-1431655765 * ((v15 - v14) >> 2)) <= 1 )
{
v3 = 0;
}
else
{
v3 = cocos2d::CCDictionary::create(v4);
for ( i = 0; ; i += 2 )
{
v6 = v14;
if ( i >= -1431655765 * ((v15 - v14) >> 2) )
break;
v7 = v14 + 12 * i;
if ( (*(_BYTE *)v7 & 1) != 0 )
v8 = *(const char **)(v7 + 8);
else
v8 = (const char *)(v7 + 1);
v9 = atoi(v8);
std::string::basic_string(v17, 12 * i + 12 + v6);
if ( v9 > 0 )
{
std::string::basic_string(v18, (int)v17);
v13 = MusicArtistObject::create(v9, (int)v18, v10, v11);
std::string::~string((int)v18);
cocos2d::CCDictionary::setObject((cocos2d::CCDictionary *)v3, v13, v9);
}
std::string::~string((int)v17);
}
}
std::__vector_base::~__vector_base((int)&v14);
}
return v3;
}