//
// MusicDownloadManager::createArtistsInfo from 0x10064d970 to 0x10064db8c (540 bytes)
//
// 1 xrefs:
// > MusicDownloadManager::createSongsInfo @ 0x10064d598
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:34:48 +0000
//
_QWORD *__fastcall MusicDownloadManager::createArtistsInfo(__int64 a1, unsigned __int8 *a2)
{
unsigned int v2; // eax
void **v3; // r13
void **v4; // r12
_QWORD *v5; // rbx
__int64 v6; // r14
unsigned __int64 v7; // r15
int v8; // r12d
__int64 v9; // r13
void **v10; // rdi
__int128 v12; // [rsp+0h] [rbp-80h] BYREF
void *__p; // [rsp+10h] [rbp-70h]
void *v14[2]; // [rsp+20h] [rbp-60h] BYREF
__int64 v15; // [rsp+30h] [rbp-50h]
__int128 v16; // [rsp+40h] [rbp-40h] BYREF
void *v17; // [rsp+50h] [rbp-30h]
v2 = *a2;
if ( (v2 & 1) != 0 )
{
if ( *((_QWORD *)a2 + 1) )
goto LABEL_3;
return nullptr;
}
if ( !(v2 >> 1) )
return nullptr;
LABEL_3:
*(_OWORD *)v14 = 0;
v15 = 0;
sub_10064E0E0(a2, ",", v14);
v3 = (void **)v14[0];
v4 = (void **)v14[1];
if ( 0xAAAAAAAAAAAAAAABLL * (((char *)v14[1] - (char *)v14[0]) >> 3) < 2 )
{
v5 = nullptr;
}
else
{
v5 = cocos2d::CCDictionary::create();
v3 = (void **)v14[0];
v4 = (void **)v14[1];
if ( v14[1] != v14[0] )
{
v6 = 5;
v7 = 0;
do
{
if ( ((__int64)v3[v6 - 5] & 1) != 0 )
{
v8 = atoi((const char *)v3[v6 - 3]);
if ( ((__int64)v3[v6 - 2] & 1) != 0 )
{
LABEL_9:
sub_10001AD30(&v16, v3[v6], (unsigned __int64)v3[v6 - 1]);
if ( v8 > 0 )
goto LABEL_13;
goto LABEL_19;
}
}
else
{
v8 = atoi((const char *)&v3[v6 - 4] - 7);
if ( ((__int64)v3[v6 - 2] & 1) != 0 )
goto LABEL_9;
}
v17 = v3[v6];
v16 = *(_OWORD *)&v3[v6 - 2];
if ( v8 > 0 )
{
LABEL_13:
if ( (v16 & 1) != 0 )
{
sub_10001AD30(&v12, v17, *((unsigned __int64 *)&v16 + 1));
}
else
{
__p = v17;
v12 = v16;
}
v9 = MusicArtistObject::create((unsigned int)v8, &v12);
if ( (v12 & 1) != 0 )
operator delete(__p);
cocos2d::CCDictionary::setObject_1((__int64)v5, v9, (unsigned int)v8);
}
LABEL_19:
if ( (v16 & 1) != 0 )
operator delete(v17);
v7 += 2LL;
v3 = (void **)v14[0];
v4 = (void **)v14[1];
v6 += 6;
}
while ( v7 < 0xAAAAAAAAAAAAAAABLL * (((char *)v14[1] - (char *)v14[0]) >> 3) );
}
}
if ( v3 )
{
v10 = v3;
if ( v4 != v3 )
{
do
{
if ( (*(_BYTE *)(v4 - 3) & 1) != 0 )
operator delete(*(v4 - 1));
v4 -= 3;
}
while ( v4 != v3 );
v10 = (void **)v14[0];
}
v14[1] = v3;
operator delete(v10);
}
return v5;
}