//
// MusicDownloadManager::parseMusicLibrary from 0x57877c to 0x5794cc (3408 bytes)
//
// 3 xrefs:
// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x579576
// > MusicDownloadManager::tryLoadLibraries @ 0x5795fa
// > sub_6BEA10 @ 0x6bf84c
//
// 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:47 +0000
//
int __fastcall MusicDownloadManager::parseMusicLibrary(MusicDownloadManager *this)
{
cocos2d::CCFileUtils *v2; // r0
int v3; // r0
char *v4; // r1
unsigned __int8 *v5; // r0
int v6; // r0
int v7; // r1
_BYTE *v8; // r2
cocos2d::CCObject *v10; // r0
cocos2d::CCObject *v11; // r0
cocos2d::CCObject *v12; // r0
cocos2d::CCDictionary *v13; // r0
cocos2d::CCObject *v14; // r0
int v15; // r5
const char *v16; // r0
int v17; // r0
unsigned int i; // r9
int v19; // r5
int v20; // r5
const char *v21; // r0
int v22; // r0
const char *v23; // r8
int v24; // r10
size_t v25; // r0
int v26; // r2
int v27; // r3
unsigned int *v28; // r5
const char *v29; // r1
size_t v30; // r0
const char *v31; // r7
size_t v32; // r0
unsigned int v33; // r3
_BYTE *v34; // r2
int v35; // r3
GJLinkObject *v36; // r0
unsigned int v37; // r3
int *v38; // r3
int v39; // r1
int v40; // r2
GJLinkObject *v41; // r0
unsigned int j; // r10
int v43; // r5
int v44; // r7
int v45; // r5
const char *v46; // r0
int v47; // r0
const char *v48; // r7
size_t v49; // r0
int v50; // r7
const char *v51; // r0
const char *v52; // r0
unsigned int v53; // s16
const char *v54; // r0
float v55; // s16
int v56; // r0
const char *v57; // r7
size_t v58; // r0
int v59; // r6
const char *v60; // r0
int v61; // r8
const char *v62; // r6
size_t v63; // r0
const char *v64; // r6
size_t v65; // r0
const char *v66; // r0
int v67; // r0
char v68; // r6
int v69; // r9
const char *v70; // r0
int v71; // r7
const char *v72; // r0
int v73; // r5
int v74; // r1
int v75; // r6
unsigned int v76; // r3
_BYTE *v77; // r2
int v78; // r3
unsigned int k; // r8
int v80; // r7
int v81; // r7
const char *v82; // r0
const char *v83; // r10
size_t v84; // r0
_BYTE *v85; // r10
unsigned __int8 *v86; // r0
cocos2d::CCObject *v87; // r0
cocos2d::CCObject *v88; // r0
int v89; // r3
int v91; // r3
unsigned int ii; // r6
cocos2d::CCDictionary *MusicObject; // r0
unsigned int jj; // r8
cocos2d::CCDictionary *MusicArtistForID; // r0
unsigned int *v96; // r6
GJLinkObject *v97; // r0
GJLinkObject *v98; // r1
unsigned int m; // r10
unsigned __int8 *v101; // r0
int v102; // r3
int v103; // r3
int v104; // r9
const char *v105; // r0
MusicChangelogEntry *v106; // r6
const char *v107; // r0
int v108; // r8
const char *v109; // r0
int v110; // r0
int v111; // r3
int v112; // r3
unsigned __int8 *v114; // r0
int v115; // r3
int v116; // r3
unsigned int n; // r6
int v118; // r8
const char *v119; // r0
const char *v120; // r0
int v121; // r0
cocos2d::CCObject *v122; // r0
_BOOL4 v123; // [sp+24h] [bp-178h]
cocos2d::CCObject *v124; // [sp+28h] [bp-174h]
cocos2d::CCArray *v125; // [sp+2Ch] [bp-170h]
cocos2d::CCArray *v126; // [sp+2Ch] [bp-170h]
char *v127; // [sp+30h] [bp-16Ch]
char *v128; // [sp+30h] [bp-16Ch]
char *v129; // [sp+34h] [bp-168h]
char *v130; // [sp+38h] [bp-164h]
int v131; // [sp+5Ch] [bp-140h] BYREF
_DWORD v132[3]; // [sp+60h] [bp-13Ch] BYREF
int v133; // [sp+6Ch] [bp-130h] BYREF
int v134; // [sp+70h] [bp-12Ch]
_BYTE *v135; // [sp+74h] [bp-128h]
int v136; // [sp+78h] [bp-124h] BYREF
int v137; // [sp+7Ch] [bp-120h]
int v138; // [sp+80h] [bp-11Ch]
int v139; // [sp+84h] [bp-118h] BYREF
int v140; // [sp+88h] [bp-114h]
int v141; // [sp+8Ch] [bp-110h]
int v142; // [sp+90h] [bp-10Ch] BYREF
int v143; // [sp+94h] [bp-108h]
int v144; // [sp+98h] [bp-104h]
int v145; // [sp+9Ch] [bp-100h] BYREF
int v146; // [sp+A0h] [bp-FCh]
int v147; // [sp+A4h] [bp-F8h]
int v148; // [sp+A8h] [bp-F4h] BYREF
int v149; // [sp+ACh] [bp-F0h]
_BYTE *v150; // [sp+B0h] [bp-ECh]
int v151[3]; // [sp+B4h] [bp-E8h] BYREF
int v152; // [sp+C0h] [bp-DCh] BYREF
int v153; // [sp+C4h] [bp-D8h]
_BYTE *v154; // [sp+C8h] [bp-D4h]
int v155; // [sp+CCh] [bp-D0h] BYREF
int v156; // [sp+D0h] [bp-CCh]
int v157; // [sp+D4h] [bp-C8h]
int v158[3]; // [sp+D8h] [bp-C4h] BYREF
int v159[3]; // [sp+E4h] [bp-B8h] BYREF
int v160[3]; // [sp+F0h] [bp-ACh] BYREF
int v161[3]; // [sp+FCh] [bp-A0h] BYREF
int v162; // [sp+108h] [bp-94h] BYREF
unsigned int v163; // [sp+10Ch] [bp-90h]
_BYTE *v164; // [sp+110h] [bp-8Ch]
int v165; // [sp+114h] [bp-88h] BYREF
int v166; // [sp+118h] [bp-84h]
int v167; // [sp+11Ch] [bp-80h]
int v168; // [sp+120h] [bp-7Ch] BYREF
unsigned int v169; // [sp+124h] [bp-78h]
int v170; // [sp+128h] [bp-74h]
int v171; // [sp+12Ch] [bp-70h] BYREF
int v172; // [sp+130h] [bp-6Ch]
_BYTE *v173; // [sp+134h] [bp-68h]
int v174; // [sp+138h] [bp-64h] BYREF
int v175; // [sp+13Ch] [bp-60h]
int v176; // [sp+140h] [bp-5Ch]
int v177; // [sp+144h] [bp-58h] BYREF
int v178; // [sp+148h] [bp-54h]
int v179; // [sp+14Ch] [bp-50h]
int v180; // [sp+150h] [bp-4Ch] BYREF
int v181; // [sp+154h] [bp-48h]
int v182; // [sp+158h] [bp-44h]
_DWORD *v183; // [sp+15Ch] [bp-40h] BYREF
int v184; // [sp+160h] [bp-3Ch]
int v185; // [sp+164h] [bp-38h]
int v186; // [sp+168h] [bp-34h] BYREF
int v187; // [sp+16Ch] [bp-30h]
int v188; // [sp+170h] [bp-2Ch]
cocos2d::CCArray *v189; // [sp+174h] [bp-28h] BYREF
int v190; // [sp+178h] [bp-24h]
_BYTE *v191; // [sp+17Ch] [bp-20h]
int v192; // [sp+188h] [bp-14h] BYREF
int v193; // [sp+18Ch] [bp-10h]
_BYTE *v194; // [sp+190h] [bp-Ch]
MusicDownloadManager::pathForSongFolder((MusicDownloadManager *)v132, this, 0);
v2 = (cocos2d::CCFileUtils *)std::string::append(v132, "musiclibrary.dat");
v131 = 0;
v3 = cocos2d::CCFileUtils::sharedFileUtils(v2);
if ( (v132[0] & 1) != 0 )
v4 = (char *)v132[2];
else
v4 = (char *)v132 + 1;
v5 = (unsigned __int8 *)(*(int (__fastcall **)(int, char *, __int16 *, int *))(*(_DWORD *)v3 + 16))(
v3,
v4,
&a1i2r3e45s789g[3],
&v131);
v133 = 0;
v134 = 0;
v135 = nullptr;
if ( !v5 )
goto LABEL_195;
cocos2d::ZipUtils::decompressString2((cocos2d::ZipUtils *)&v148, v5, 0, v131, 11);
if ( (v133 & 1) != 0 )
{
*v135 = 0;
v134 = 0;
}
else
{
LOWORD(v133) = 0;
}
std::string::reserve(&v133, 0);
v6 = v148;
v7 = v149;
v8 = v150;
v148 = 0;
v149 = 0;
v150 = nullptr;
v133 = v6;
v134 = v7;
v135 = v8;
std::string::~string((int)&v148);
if ( !((v133 & 1) != 0 ? v134 : (int)(unsigned __int8)v133 >> 1) )
goto LABEL_195;
v136 = 0;
v137 = 0;
v138 = 0;
sub_56DAB4((unsigned __int8 *)&v133, "|", &v136);
if ( (unsigned int)(-1431655765 * ((v137 - v136) >> 2)) <= 3 )
{
std::__vector_base::~__vector_base((int)&v136);
LABEL_195:
std::string::~string((int)&v133);
return std::string::~string((int)v132);
}
v10 = *((cocos2d::CCObject **)this + 83);
v139 = 0;
v140 = 0;
v141 = 0;
if ( v10 )
cocos2d::CCObject::release(v10);
v11 = *((cocos2d::CCObject **)this + 84);
if ( v11 )
v11 = (cocos2d::CCObject *)cocos2d::CCObject::release(v11);
*((_DWORD *)this + 83) = 0;
*((_DWORD *)this + 84) = 0;
v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11);
*((_DWORD *)this + 83) = v12;
v13 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v12);
v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v13);
*((_DWORD *)this + 84) = v14;
cocos2d::CCObject::retain(v14);
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(int)this + 344,
*((_DWORD **)this + 87));
*((_DWORD *)this + 88) = 0;
*((_DWORD *)this + 86) = (char *)this + 348;
*((_DWORD *)this + 87) = 0;
MusicDownloadManager::clearSortedMusicCache(this);
*((_DWORD *)this + 93) = 0;
*((_DWORD *)this + 94) = 0;
v15 = v136;
if ( (*(_BYTE *)v136 & 1) != 0 )
v16 = *(const char **)(v136 + 8);
else
v16 = (const char *)(v136 + 1);
v17 = atoi(v16);
v123 = (unsigned int)(-1431655765 * ((v137 - v15) >> 2)) > 6;
v142 = 0;
v143 = 0;
v144 = 0;
*((_DWORD *)this + 92) = v17;
sub_56DAB4((unsigned __int8 *)(v15 + 12), ";", &v142);
for ( i = 0; i < -1431655765 * ((v143 - v142) >> 2); ++i )
{
v19 = v139;
while ( v19 != v140 )
{
v140 -= 12;
std::string::~string(v140);
}
sub_56DAB4((unsigned __int8 *)(v142 + 12 * i), ",", &v139);
v20 = v139;
if ( (unsigned int)(-1431655765 * ((v140 - v139) >> 2)) > 3 )
{
if ( (*(_BYTE *)v139 & 1) != 0 )
v21 = *(const char **)(v139 + 8);
else
v21 = (const char *)(v139 + 1);
v22 = atoi(v21);
if ( (*(_BYTE *)(v20 + 12) & 1) != 0 )
v23 = *(const char **)(v20 + 20);
else
v23 = (const char *)(v20 + 13);
memset(v161, 0, sizeof(v161));
v24 = v22;
v25 = strlen(v23);
std::string::__init(v161, v23, v25);
std::string::basic_string(v151, (int)v161);
v28 = (unsigned int *)MusicArtistObject::create(v24, (int)v151, v26, v27);
std::string::~string((int)v151);
cocos2d::CCDictionary::setObject(*((cocos2d::CCDictionary **)this + 84), (cocos2d::CCObject *)v28, v24);
if ( !v123 )
{
if ( (*(_BYTE *)(v139 + 24) & 1) != 0 )
v29 = *(const char **)(v139 + 32);
else
v29 = (const char *)(v139 + 25);
v162 = 0;
v163 = 0;
v129 = (char *)v29;
v164 = nullptr;
v30 = strlen(v29);
std::string::__init(&v162, v129, v30);
if ( (*(_BYTE *)(v139 + 36) & 1) != 0 )
v31 = *(const char **)(v139 + 44);
else
v31 = (const char *)(v139 + 37);
v168 = 0;
v169 = 0;
v170 = 0;
v32 = strlen(v31);
std::string::__init(&v168, v31, v32);
if ( (v162 & 1) != 0 )
v33 = v163;
else
v33 = (int)(unsigned __int8)v162 >> 1;
if ( v33 > 1 )
{
GJLinkObject::GJLinkObject((GJLinkObject *)&v189);
v189 = (cocos2d::CCArray *)v24;
cocos2d::ZipUtils::urlDecode(&v152, &v162);
v35 = v192 & 1;
if ( (v192 & 1) != 0 )
{
v34 = v194;
v35 = 0;
}
else
{
BYTE1(v192) = v192 & 1;
}
if ( (v192 & 1) != 0 )
{
*v34 = v35;
v193 = v35;
}
else
{
LOBYTE(v192) = v35;
}
std::string::reserve(&v192, 0);
v192 = v152;
v193 = v153;
v194 = v154;
v152 = 0;
v153 = 0;
v154 = nullptr;
std::string::~string((int)&v152);
v190 = MusicDownloadManager::linkTypeForURL((int)&v192);
v36 = (GJLinkObject *)v28[18];
if ( v36 == (GJLinkObject *)v28[19] )
{
std::vector::__push_back_slow_path(v28 + 17, (GJLinkObject *)&v189);
}
else
{
if ( v36 )
GJLinkObject::GJLinkObject(v36, (const GJLinkObject *)&v189);
v28[18] += 32;
}
GJLinkObject::~GJLinkObject((GJLinkObject *)&v189);
}
if ( (v168 & 1) != 0 )
v37 = v169;
else
v37 = (int)(unsigned __int8)v168 >> 1;
if ( v37 > 1 )
{
GJLinkObject::GJLinkObject((GJLinkObject *)&v189);
v189 = (cocos2d::CCArray *)v24;
v190 = 1;
cocos2d::ZipUtils::urlDecode(&v155, &v168);
v38 = std::string::insert(&v155, 0, "https://www.youtube.com/channel/");
v39 = v38[1];
v40 = v38[2];
v171 = *v38;
v172 = v39;
v173 = (_BYTE *)v40;
*v38 = 0;
v38[1] = 0;
v38[2] = 0;
if ( (v192 & 1) != 0 )
{
*v194 = 0;
v193 = 0;
}
else
{
LOWORD(v192) = 0;
}
std::string::reserve(&v192, 0);
v192 = v171;
v193 = v172;
v194 = v173;
v171 = 0;
v172 = 0;
v173 = nullptr;
std::string::~string((int)&v171);
std::string::~string((int)&v155);
v41 = (GJLinkObject *)v28[18];
if ( v41 == (GJLinkObject *)v28[19] )
{
std::vector::__push_back_slow_path(v28 + 17, (GJLinkObject *)&v189);
}
else
{
if ( v41 )
GJLinkObject::GJLinkObject(v41, (const GJLinkObject *)&v189);
v28[18] += 32;
}
GJLinkObject::~GJLinkObject((GJLinkObject *)&v189);
}
std::string::~string((int)&v168);
std::string::~string((int)&v162);
}
std::string::~string((int)v161);
}
}
v145 = 0;
v146 = 0;
v147 = 0;
sub_56DAB4((unsigned __int8 *)(v136 + 24), ";", &v145);
for ( j = 0; j < -1431655765 * ((v146 - v145) >> 2); ++j )
{
v43 = v139;
while ( v43 != v140 )
{
v140 -= 12;
std::string::~string(v140);
}
sub_56DAB4((unsigned __int8 *)(v145 + 12 * j), ",", &v139);
v44 = v139;
v45 = -1431655765 * ((v140 - v139) >> 2);
if ( v45 > 5 )
{
if ( (*(_BYTE *)v139 & 1) != 0 )
v46 = *(const char **)(v139 + 8);
else
v46 = (const char *)(v139 + 1);
v47 = atoi(v46);
if ( (*(_BYTE *)(v44 + 12) & 1) != 0 )
v48 = *(const char **)(v44 + 20);
else
v48 = (const char *)(v44 + 13);
v148 = 0;
v149 = 0;
v150 = nullptr;
v125 = (cocos2d::CCArray *)v47;
v49 = strlen(v48);
std::string::__init(&v148, v48, v49);
v50 = v139;
if ( (*(_BYTE *)(v139 + 24) & 1) != 0 )
v51 = *(const char **)(v139 + 32);
else
v51 = (const char *)(v139 + 25);
v127 = (char *)atoi(v51);
if ( (*(_BYTE *)(v50 + 36) & 1) != 0 )
v52 = *(const char **)(v50 + 44);
else
v52 = (const char *)(v50 + 37);
v53 = atoi(v52);
if ( (*(_BYTE *)(v50 + 48) & 1) != 0 )
v54 = *(const char **)(v50 + 56);
else
v54 = (const char *)(v50 + 49);
v55 = vcvts_n_f32_s32(v53, 0x14u);
v56 = atoi(v54);
if ( (*(_BYTE *)(v50 + 60) & 1) != 0 )
v57 = *(const char **)(v50 + 68);
else
v57 = (const char *)(v50 + 61);
memset(v151, 0, sizeof(v151));
v130 = (char *)v56;
v58 = strlen(v57);
std::string::__init(v151, v57, v58);
if ( v45 == 6 )
{
v61 = 0;
v62 = (const char *)&unk_B6B226;
}
else
{
v59 = v139;
if ( (*(_BYTE *)(v139 + 72) & 1) != 0 )
v60 = *(const char **)(v139 + 80);
else
v60 = (const char *)(v139 + 73);
v61 = atoi(v60);
if ( v45 == 7 )
{
v62 = (const char *)&unk_B6B226;
}
else if ( (*(_BYTE *)(v59 + 84) & 1) != 0 )
{
v62 = *(const char **)(v59 + 92);
}
else
{
v62 = (const char *)(v59 + 85);
}
}
v152 = 0;
v153 = 0;
v154 = nullptr;
v63 = strlen(v62);
std::string::__init(&v152, v62, v63);
if ( v45 <= 8 )
{
v64 = (const char *)&unk_B6B226;
}
else if ( (*(_BYTE *)(v139 + 96) & 1) != 0 )
{
v64 = *(const char **)(v139 + 104);
}
else
{
v64 = (const char *)(v139 + 97);
}
v155 = 0;
v156 = 0;
v157 = 0;
v65 = strlen(v64);
std::string::__init(&v155, v64, v65);
if ( v45 <= 9 )
{
v68 = 0;
v71 = 0;
v73 = 0;
}
else
{
if ( (*(_BYTE *)(v139 + 108) & 1) != 0 )
v66 = *(const char **)(v139 + 116);
else
v66 = (const char *)(v139 + 109);
v67 = atoi(v66);
v68 = v67;
if ( v67 )
v68 = 1;
if ( v45 <= 10 )
{
v71 = 0;
v73 = 0;
}
else
{
v69 = v139;
if ( (*(_BYTE *)(v139 + 120) & 1) != 0 )
v70 = *(const char **)(v139 + 128);
else
v70 = (const char *)(v139 + 121);
v71 = atoi(v70);
if ( v45 == 11 )
{
v73 = 0;
}
else
{
if ( (*(_BYTE *)(v69 + 132) & 1) != 0 )
v72 = *(const char **)(v69 + 140);
else
v72 = (const char *)(v69 + 133);
v73 = atoi(v72);
}
}
}
v171 = 0;
v172 = 0;
v173 = nullptr;
std::string::__init(&v171, "NA", 2u);
v74 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 84), (int)v127);
if ( v74 )
std::string::operator=((unsigned __int8 *)&v171, (unsigned __int8 *)(v74 + 56));
std::string::basic_string(v158, (int)&v148);
std::string::basic_string(v159, (int)&v171);
memset(v160, 0, sizeof(v160));
std::string::__init(v160, &unk_B6B226, 0);
std::string::basic_string(v161, (int)&v152);
v75 = SongInfoObject::create(
(int)v125,
(int)v158,
(int)v159,
(int)v127,
SLODWORD(v55),
(int)v160,
v61,
(int)v161,
v68,
v71,
0);
std::string::~string((int)v161);
std::string::~string((int)v160);
std::string::~string((int)v159);
std::string::~string((int)v158);
*(_DWORD *)(v75 + 336) = v130;
if ( !v123 )
{
v76 = (v155 & 1) != 0 ? v156 : (int)(unsigned __int8)v155 >> 1;
if ( v76 > 1 )
{
GJLinkObject::GJLinkObject((GJLinkObject *)&v189);
v189 = v125;
cocos2d::ZipUtils::urlDecode(&v162, &v155);
v78 = v192 & 1;
if ( (v192 & 1) != 0 )
{
v77 = v194;
v78 = 0;
}
else
{
BYTE1(v192) = v192 & 1;
}
if ( (v192 & 1) != 0 )
{
*v77 = v78;
v193 = v78;
}
else
{
LOBYTE(v192) = v78;
}
std::string::reserve(&v192, 0);
v192 = v162;
v193 = v163;
v194 = v164;
v162 = 0;
v163 = 0;
v164 = nullptr;
std::string::~string((int)&v162);
v190 = MusicDownloadManager::linkTypeForURL((int)&v192);
SongInfoObject::addSongLink(v75, (const GJLinkObject *)&v189);
GJLinkObject::~GJLinkObject((GJLinkObject *)&v189);
}
}
*(_DWORD *)(v75 + 352) = v73;
*(_BYTE *)(v75 + 329) = 1;
std::string::basic_string(&v168, (int)v151);
SongInfoObject::addTags(v75, (unsigned __int8 *)&v168);
std::string::~string((int)&v168);
MusicDownloadManager::storeMusicObject((cocos2d::CCDictionary **)this, (SongInfoObject *)v75);
++*((_DWORD *)this + 93);
if ( v61 == 1 )
++*((_DWORD *)this + 94);
std::string::~string((int)&v171);
std::string::~string((int)&v155);
std::string::~string((int)&v152);
std::string::~string((int)v151);
std::string::~string((int)&v148);
}
}
v165 = 0;
v166 = 0;
v167 = 0;
sub_56DAB4((unsigned __int8 *)(v136 + 36), ";", &v165);
for ( k = 0; k < -1431655765 * ((v166 - v165) >> 2); ++k )
{
v80 = v139;
while ( v80 != v140 )
{
v140 -= 12;
std::string::~string(v140);
}
sub_56DAB4((unsigned __int8 *)(v165 + 12 * k), ",", &v139);
v81 = v139;
if ( (unsigned int)(-1431655765 * ((v140 - v139) >> 2)) > 1 )
{
if ( (*(_BYTE *)v139 & 1) != 0 )
v82 = *(const char **)(v139 + 8);
else
v82 = (const char *)(v139 + 1);
v186 = atoi(v82);
if ( (*(_BYTE *)(v81 + 12) & 1) != 0 )
v83 = *(const char **)(v81 + 20);
else
v83 = (const char *)(v81 + 13);
v189 = nullptr;
v190 = 0;
v191 = nullptr;
v84 = strlen(v83);
std::string::__init((int *)&v189, v83, v84);
if ( ((unsigned __int8)v189 & 1) != 0 )
{
if ( v190 )
{
v85 = v191;
goto LABEL_162;
}
}
else if ( (unsigned __int8)v189 >> 1 )
{
v85 = (char *)&v189 + 1;
LABEL_162:
*v85 = toupper((unsigned __int8)*v85);
}
v86 = (unsigned __int8 *)std::map::operator[]((int **)this + 86, &v186);
std::string::operator=(v86, (unsigned __int8 *)&v189);
std::string::~string((int)&v189);
continue;
}
}
v87 = *((cocos2d::CCObject **)this + 85);
if ( v87 )
v87 = (cocos2d::CCObject *)cocos2d::CCObject::release(v87);
v88 = (cocos2d::CCObject *)cocos2d::CCArray::create(v87);
*((_DWORD *)this + 85) = v88;
cocos2d::CCObject::retain(v88);
if ( (unsigned int)(-1431655765 * ((v137 - v136) >> 2)) > 4 )
{
v89 = *(unsigned __int8 *)(v136 + 48);
if ( (v89 & 1) != 0 ? *(_DWORD *)(v136 + 52) : v89 >> 1 )
{
std::string::basic_string(&v171, v136 + 48);
LevelTools::base64DecodeString(&v168, &v171);
std::string::~string((int)&v171);
if ( (v168 & 1) != 0 )
v91 = v169;
else
v91 = (int)(unsigned __int8)v168 >> 1;
if ( v91 )
{
v174 = 0;
v175 = 0;
v176 = 0;
sub_56DAB4((unsigned __int8 *)&v168, "$", &v174);
for ( m = 0; m < -1431655765 * ((v175 - v174) >> 2); ++m )
{
v101 = (unsigned __int8 *)(v174 + 12 * m);
v102 = *v101;
if ( (v102 & 1) != 0 )
v103 = *((_DWORD *)v101 + 1);
else
v103 = v102 >> 1;
if ( v103 )
{
v177 = 0;
v178 = 0;
v179 = 0;
sub_56DAB4(v101, ":", &v177);
if ( v177 != v178 )
{
v180 = 0;
v181 = 0;
v182 = 0;
sub_56DAB4((unsigned __int8 *)v177, ",", &v180);
v104 = v180;
if ( (unsigned int)(-1431655765 * ((v181 - v180) >> 2)) <= 2 )
{
std::__vector_base::~__vector_base((int)&v180);
}
else
{
if ( (*(_BYTE *)v180 & 1) != 0 )
v105 = *(const char **)&byte_8[v180];
else
v105 = (const char *)(v180 + 1);
v106 = (MusicChangelogEntry *)atoi(v105);
if ( (byte_9[v104 + 3] & 1) != 0 )
v107 = *(const char **)((char *)&dword_14 + v104);
else
v107 = (const char *)(v104 + 13);
v108 = atoi(v107);
if ( (*((_BYTE *)&dword_18 + v104) & 1) != 0 )
v109 = *(const char **)((char *)&dword_20 + v104);
else
v109 = (const char *)(v104 + 25);
v110 = atoi(v109);
v124 = MusicChangelogEntry::create(v106, v108, v110, v111);
if ( (unsigned int)(-1431655765 * ((v178 - v177) >> 2)) > 1 )
{
v112 = (unsigned __int8)byte_9[v177 + 3];
if ( (v112 & 1) != 0 ? *(_DWORD *)((char *)&word_10 + v177) : v112 >> 1 )
{
v183 = nullptr;
v184 = 0;
v185 = 0;
sub_56DAB4((unsigned __int8 *)(v177 + 12), ";", (int *)&v183);
for ( n = 0; n < -1431655765 * ((v184 - (int)v183) >> 2); ++n )
{
v114 = (unsigned __int8 *)&v183[3 * n];
v115 = *v114;
if ( (v115 & 1) != 0 )
v116 = *((_DWORD *)v114 + 1);
else
v116 = v115 >> 1;
if ( v116 )
{
v186 = 0;
v187 = 0;
v188 = 0;
sub_56DAB4(v114, "~", &v186);
v118 = v186;
if ( (unsigned int)(-1431655765 * ((v187 - v186) >> 2)) > 2 )
{
v126 = *((cocos2d::CCArray **)v124 + 16);
if ( (*(_BYTE *)v186 & 1) != 0 )
v119 = *(const char **)&byte_8[v186];
else
v119 = (const char *)(v186 + 1);
v128 = (char *)atoi(v119);
std::string::basic_string((int *)&v189, v118 + 12);
if ( (*((_BYTE *)&dword_18 + v186) & 1) != 0 )
v120 = *(const char **)(v186 + 32);
else
v120 = (const char *)(v186 + 25);
v121 = atoi(v120);
v122 = MusicChangelogLine::create((int)v128, (int)&v189, v121);
cocos2d::CCArray::addObject(v126, v122);
std::string::~string((int)&v189);
}
std::__vector_base::~__vector_base((int)&v186);
}
}
std::__vector_base::~__vector_base((int)&v183);
}
}
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), v124);
std::__vector_base::~__vector_base((int)&v180);
}
}
std::__vector_base::~__vector_base((int)&v177);
}
}
std::__vector_base::~__vector_base((int)&v174);
}
std::string::~string((int)&v168);
}
}
if ( v123 )
{
v183 = nullptr;
v184 = 0;
v185 = 0;
MusicDownloadManager::parseLinkRows((unsigned __int8 *)(v136 + 60), (unsigned int *)&v183);
for ( ii = 0; ii < (v184 - (int)v183) >> 5; ++ii )
{
MusicObject = MusicDownloadManager::getMusicObject(this, v183[8 * ii]);
if ( MusicObject )
SongInfoObject::addSongLink((int)MusicObject, (const GJLinkObject *)&v183[8 * ii]);
}
v186 = 0;
v187 = 0;
v188 = 0;
MusicDownloadManager::parseLinkRows((unsigned __int8 *)(v136 + 72), (unsigned int *)&v186);
for ( jj = 0; jj < (v187 - v186) >> 5; ++jj )
{
MusicArtistForID = MusicDownloadManager::getMusicArtistForID(this, *(_DWORD *)(v186 + 32 * jj));
v96 = (unsigned int *)MusicArtistForID;
if ( MusicArtistForID )
{
v97 = *((GJLinkObject **)MusicArtistForID + 18);
v98 = (GJLinkObject *)(v186 + 32 * jj);
if ( v97 == (GJLinkObject *)v96[19] )
{
std::vector::__push_back_slow_path(v96 + 17, v98);
}
else
{
if ( v97 )
GJLinkObject::GJLinkObject(v97, v98);
v96[18] += 32;
}
}
}
std::__vector_base::~__vector_base((void **)&v186);
std::__vector_base::~__vector_base((void **)&v183);
}
std::__vector_base::~__vector_base((int)&v165);
std::__vector_base::~__vector_base((int)&v145);
std::__vector_base::~__vector_base((int)&v142);
std::__vector_base::~__vector_base((int)&v139);
std::__vector_base::~__vector_base((int)&v136);
std::string::~string((int)&v133);
return std::string::~string((int)v132);
}