//
// CustomSongWidget::updateSongInfo from 0x869cbc to 0x86ac78 (4028 bytes)
//
// 15 xrefs:
// > CustomSongWidget::deleteSong @ 0x86ad34
// > CustomSongWidget::updateSongObject @ 0x86aeb8
// > CustomSongWidget::updateSongObject @ 0x86aed0
// > CustomSongWidget::init @ 0x86c01c
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x86c3b4
// > CustomSongWidget::onToggleFavorite @ 0x86c438
// > CustomSongWidget::downloadFailed @ 0x86c494
// > CustomSongWidget::onSelect @ 0x86c4e4
// > CustomSongWidget::updateDownloadProgress @ 0x86c570
// > CustomSongWidget::songStateChanged @ 0x86c584
// > CustomSongWidget::updateLengthMod @ 0x86c5a4
// > CustomSongWidget::updateMultiAssetInfo @ 0x86cb4c
// > ??> @ 0x425f8
// > CustomSongWidget::loadSongInfoFinished @ 0x86de30
// > ??> @ 0x15412f8
//
// This function is hookable on this platform (idp: arm, 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:55:42 +0000
//
__int64 __fastcall CustomSongWidget::updateSongInfo(CustomSongWidget *this)
{
__int64 v2; // x0
__int64 v3; // x21
__int64 *v4; // x2
void (__fastcall *v5)(__int64, char *); // x23
size_t v6; // x1
char *v7; // x1
__int64 v8; // x0
__int64 v9; // x5
char *v10; // x1
__int64 v11; // x0
int v12; // w2
float v13; // s0
const char *v14; // x1
cocos2d::CCString *v15; // x0
char *v16; // x0
size_t v17; // x1
char *v18; // x1
unsigned int v19; // w21
MusicDownloadManager *v20; // x0
int v21; // w22
MusicDownloadManager *v22; // x0
__int64 v23; // x1
__int64 v24; // x23
void (__fastcall *v25)(__int64, _QWORD); // x24
cocos2d::CCSpriteFrameCache **v26; // x21
int v27; // w0
__int64 v28; // x2
void (__fastcall *v29)(cocos2d::CCSpriteFrameCache **, __int64); // x22
cocos2d::CCSpriteFrameCache *v30; // x0
__int64 v31; // x0
__int64 v32; // x2
void (__fastcall *v33)(__int64, char *); // x23
size_t v34; // x1
char *v35; // x1
__int64 v36; // x1
__int64 v37; // x5
__int64 v38; // x23
__int64 v39; // x0
size_t v40; // x1
char *v41; // x1
cocos2d::CCString *v42; // x0
char *v43; // x0
SongInfoObject *v44; // x0
char *v45; // x1
__int64 v46; // x0
cocos2d::CCString *v47; // x0
__int64 v48; // x0
float v49; // s0
cocos2d::CCString *v50; // x0
char *v51; // x0
char *v52; // x1
MusicDownloadManager *v53; // x0
unsigned int v54; // w21
MusicDownloadManager *v55; // x0
void (*v56)(void); // x2
unsigned __int8 v57; // w22
__int64 v58; // x2
__int64 v59; // x1
__int64 v60; // x2
__int64 v61; // x0
cocos2d::CCSpriteFrameCache **v62; // x21
void (__fastcall *v63)(cocos2d::CCSpriteFrameCache **, __int64); // x22
MusicDownloadManager *v64; // x23
MusicDownloadManager *v65; // x0
const char *v66; // x1
__int64 v67; // x0
unsigned int v68; // w21
unsigned __int8 (*v69)(void); // x1
const cocos2d::CCPoint *v70; // x0
__int64 v71; // x26
void (__fastcall *v72)(__int64, __int64 *); // x27
cocos2d::CCNode *v73; // x28
float v74; // s8
float v75; // s0
__int64 v76; // x1
float v78; // s9
float v79; // s10
float v80; // s8
float v81; // s0
float v82; // s0
float v83; // s10
float v84; // s11
float v85; // s9
float v86; // s0
__int64 v87; // x25
float v88; // s9
void (__fastcall *v89)(__int64, __int64 *); // x26
cocos2d::CCNode *v90; // x27
cocos2d::CCNode *v91; // x28
__int64 v92; // x22
void (__fastcall *v93)(__int64, __int64 *); // x23
__int64 v94; // x22
void (__fastcall *v95)(__int64, __int64 *); // x23
__int64 v96; // x0
__int64 v97; // x1
int v98; // w0
const char *v99; // x1
cocos2d::CCString *v100; // x0
char *v101; // x0
int ExtraArtistCount; // w0
const char *v103; // x1
cocos2d::CCString *v104; // x0
char *CString; // x0
size_t v106; // x2
char *v107; // x1
__int64 v108; // x2
const char *v109; // x1
cocos2d::CCSpriteFrameCache *v110; // x0
__int64 v111; // [xsp+88h] [xbp+88h]
float v112; // [xsp+90h] [xbp+90h]
__int64 v113; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v114; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v115; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v116; // [xsp+B8h] [xbp+B8h] BYREF
__int64 v117; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v118; // [xsp+C8h] [xbp+C8h]
void *v119; // [xsp+D0h] [xbp+D0h]
__int64 v120; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v121; // [xsp+E0h] [xbp+E0h]
void *v122; // [xsp+E8h] [xbp+E8h]
__int64 v123; // [xsp+F0h] [xbp+F0h] BYREF
size_t v124; // [xsp+F8h] [xbp+F8h]
char *v125; // [xsp+100h] [xbp+100h]
CustomSongWidget::positionInfoObjects(this);
CustomSongWidget::updateUsageButton(this);
v2 = *((_QWORD *)this + 42);
if ( v2 )
{
v3 = *((_QWORD *)this + 44);
v4 = (__int64 *)(v2 + 320);
if ( *((_BYTE *)this + 501) )
{
v5 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v3 + 928LL);
v123 = 0;
v124 = 0;
v125 = nullptr;
if ( (*(_BYTE *)(v2 + 320) & 1) != 0 )
{
std::string::__init(&v123, *(void **)(v2 + 336), *(_QWORD *)(v2 + 328));
}
else
{
v6 = *(_QWORD *)(v2 + 328);
v123 = *v4;
v124 = v6;
v125 = *(char **)(v2 + 336);
}
v7 = (char *)&v123 + 1;
if ( (v123 & 1) != 0 )
v7 = v125;
v5(v3, v7);
if ( (v123 & 1) != 0 )
operator delete(v125);
v8 = *((_QWORD *)this + 42);
v117 = 0;
v118 = 0;
v119 = nullptr;
if ( (*(_BYTE *)(v8 + 344) & 1) != 0 )
{
std::string::__init(&v117, *(void **)(v8 + 360), *(_QWORD *)(v8 + 352));
v8 = *((_QWORD *)this + 42);
}
else
{
v9 = *(_QWORD *)(v8 + 352);
v117 = *(_QWORD *)(v8 + 344);
v118 = v9;
v119 = *(void **)(v8 + 360);
}
if ( *(_QWORD *)(v8 + 512) )
{
ExtraArtistCount = SongInfoObject::getExtraArtistCount((SongInfoObject *)v8);
if ( ExtraArtistCount > 0 )
{
v103 = (char *)&v117 + 1;
if ( (v117 & 1) != 0 )
v103 = (const char *)v119;
v104 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s +%i",
v103,
(unsigned int)ExtraArtistCount);
CString = (char *)cocos2d::CCString::getCString(v104);
std::string::assign(&v117, CString);
}
}
if ( (v117 & 1) != 0 )
v10 = (char *)v119;
else
v10 = (char *)&v117 + 1;
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 45) + 928LL))(*((_QWORD *)this + 45), v10);
if ( !*((_BYTE *)this + 529) )
{
v11 = *((_QWORD *)this + 42);
v12 = *(_DWORD *)(v11 + 440);
v120 = 0;
v121 = 0;
v122 = nullptr;
v13 = *(float *)(v11 + 396);
v14 = (const char *)*(unsigned int *)(v11 + 316);
if ( v12 <= 0 )
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"ID: %i Size: %.01fMB",
v14,
v13);
else
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"ID: %i Size: %.01fMB (%is)",
v14,
v13);
v16 = (char *)cocos2d::CCString::getCString(v15);
std::string::assign(&v120, v16);
SongInfoObject::getTagsString(&v123, *((SongInfoObject **)this + 42), 1);
v17 = (unsigned __int8)v123 >> 1;
if ( (v123 & 1) != 0 )
v17 = v124;
if ( v17 )
{
std::string::append((__int64)&v120, " ", 4u);
if ( (v123 & 1) != 0 )
{
v107 = v125;
v106 = v124;
}
else
{
v106 = (unsigned __int8)v123 >> 1;
v107 = (char *)&v123 + 1;
}
std::string::append((__int64)&v120, v107, v106);
}
if ( (v120 & 1) != 0 )
v18 = (char *)v122;
else
v18 = (char *)&v120 + 1;
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 46) + 928LL))(*((_QWORD *)this + 46), v18);
if ( (v123 & 1) != 0 )
operator delete(v125);
if ( (v120 & 1) != 0 )
operator delete(v122);
}
}
else
{
v33 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v3 + 928LL);
v123 = 0;
v124 = 0;
v125 = nullptr;
if ( (*(_BYTE *)(v2 + 320) & 1) != 0 )
{
std::string::__init(&v123, *(void **)(v2 + 336), *(_QWORD *)(v2 + 328));
}
else
{
v34 = *(_QWORD *)(v2 + 328);
v123 = *v4;
v124 = v34;
v125 = *(char **)(v2 + 336);
}
v35 = (char *)&v123 + 1;
if ( (v123 & 1) != 0 )
v35 = v125;
v33(v3, v35);
if ( (v123 & 1) != 0 )
operator delete(v125);
v117 = 0;
v118 = 0;
v119 = nullptr;
std::string::__init(&v117, &byte_11B8890, 0);
v36 = *((_QWORD *)this + 42);
v120 = 0;
v121 = 0;
v122 = nullptr;
if ( (*(_BYTE *)(v36 + 344) & 1) != 0 )
{
std::string::__init(&v120, *(void **)(v36 + 360), *(_QWORD *)(v36 + 352));
}
else
{
v37 = *(_QWORD *)(v36 + 352);
v120 = *(_QWORD *)(v36 + 344);
v121 = v37;
v122 = *(void **)(v36 + 360);
}
v38 = (unsigned __int8)v120 >> 1;
if ( (v120 & 1) != 0 )
{
v38 = v121;
operator delete(v122);
}
if ( v38 )
{
v39 = *((_QWORD *)this + 42);
v123 = 0;
v124 = 0;
v125 = nullptr;
if ( (*(_BYTE *)(v39 + 344) & 1) != 0 )
{
std::string::__init(&v123, *(void **)(v39 + 360), *(_QWORD *)(v39 + 352));
}
else
{
v40 = *(_QWORD *)(v39 + 352);
v123 = *(_QWORD *)(v39 + 344);
v124 = v40;
v125 = *(char **)(v39 + 360);
}
v41 = (char *)&v123 + 1;
if ( (v123 & 1) != 0 )
v41 = v125;
v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"By: %s", v41);
v43 = (char *)cocos2d::CCString::getCString(v42);
std::string::assign(&v117, v43);
if ( (v123 & 1) != 0 )
operator delete(v125);
}
v44 = *((SongInfoObject **)this + 42);
if ( *((_QWORD *)v44 + 64) )
{
v98 = SongInfoObject::getExtraArtistCount(v44);
if ( v98 > 0 )
{
v99 = (char *)&v117 + 1;
if ( (v117 & 1) != 0 )
v99 = (const char *)v119;
v100 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s +%i",
v99,
(unsigned int)v98);
v101 = (char *)cocos2d::CCString::getCString(v100);
std::string::assign(&v117, v101);
}
}
if ( (v117 & 1) != 0 )
v45 = (char *)v119;
else
v45 = (char *)&v117 + 1;
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 45) + 928LL))(*((_QWORD *)this + 45), v45);
if ( !*((_BYTE *)this + 529) )
{
if ( *((_BYTE *)this + 500) )
{
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 46) + 928LL))(
*((_QWORD *)this + 46),
&byte_11B8890);
}
else
{
v46 = *((_QWORD *)this + 42);
if ( *(_BYTE *)(v46 + 432) )
v47 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"SongID: %i",
(const char *)*(unsigned int *)(v46 + 316));
else
v47 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"SongID: %i Size: %.02fMB",
(const char *)*(unsigned int *)(v46 + 316),
*(float *)(v46 + 396));
v48 = cocos2d::CCString::getCString(v47);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 46) + 928LL))(*((_QWORD *)this + 46), v48);
if ( *(int *)(*((_QWORD *)this + 42) + 444LL) > 0 )
{
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 47) + 1072LL))(
*((_QWORD *)this + 47),
&unk_114B370);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 47) + 160LL))(*((_QWORD *)this + 47), 0.4);
v49 = *((float *)this + 127);
v123 = 0;
v124 = 0;
v125 = nullptr;
if ( v49 <= 0.0 || v49 == 1.0 )
{
v50 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"BPM: %i",
(const char *)*(unsigned int *)(*((_QWORD *)this + 42) + 444LL));
}
else
{
v108 = *(unsigned int *)(*((_QWORD *)this + 42) + 444LL);
v109 = (const char *)(unsigned int)v108;
LODWORD(v108) = llroundf(v49 * (float)(int)v108);
v50 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"BPM: %i (%i)",
v109,
v108);
}
v51 = (char *)cocos2d::CCString::getCString(v50);
std::string::assign(&v123, v51);
v52 = (v123 & 1) != 0 ? v125 : (char *)&v123 + 1;
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 47) + 928LL))(*((_QWORD *)this + 47), v52);
CustomSongWidget::showError((cocos2d::CCNode **)this, 0);
if ( (v123 & 1) != 0 )
operator delete(v125);
}
}
}
}
if ( (v117 & 1) != 0 )
operator delete(v119);
}
else
{
(*(void (__fastcall **)(_QWORD, const char *))(**((_QWORD **)this + 44) + 928LL))(
*((_QWORD *)this + 44),
"No song loaded");
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 45) + 928LL))(*((_QWORD *)this + 45), &byte_11B8890);
if ( *((_BYTE *)this + 529) )
goto LABEL_80;
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 46) + 928LL))(*((_QWORD *)this + 46), &byte_11B8890);
}
v19 = *((unsigned __int8 *)this + 529);
if ( *((_BYTE *)this + 529) )
{
LABEL_80:
v58 = *((_QWORD *)this + 48);
v59 = *((unsigned __int8 *)this + 545);
LABEL_81:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v58 + 344LL))(v58, v59);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 49) + 344LL))(*((_QWORD *)this + 49), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 50) + 344LL))(*((_QWORD *)this + 50), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 344LL))(*((_QWORD *)this + 52), 0);
v60 = *((_QWORD *)this + 57);
LABEL_82:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v60 + 344LL))(v60, 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 51) + 344LL))(*((_QWORD *)this + 51), 0);
v32 = *((_QWORD *)this + 54);
LABEL_83:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v32 + 344LL))(v32, 0);
goto LABEL_84;
}
v20 = *((MusicDownloadManager **)this + 42);
if ( !v20 )
{
v58 = *((_QWORD *)this + 48);
v59 = 0;
goto LABEL_81;
}
v21 = *((_DWORD *)v20 + 79);
v22 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v20);
if ( (unsigned __int8)MusicDownloadManager::isSongDownloaded(v22, v21) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 48) + 344LL))(*((_QWORD *)this + 48), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 49) + 344LL))(*((_QWORD *)this + 49), 0);
v23 = 0;
if ( *(_BYTE *)(*((_QWORD *)this + 42) + 432LL) )
v23 = *((unsigned __int8 *)this + 498);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 51) + 344LL))(*((_QWORD *)this + 51), v23);
v24 = *((_QWORD *)this + 54);
v25 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 344LL);
if ( *((_BYTE *)this + 498)
&& !(*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 51) + 352LL))(*((_QWORD *)this + 51)) )
{
v19 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 54) + 64LL))(*((_QWORD *)this + 54)) != -999;
}
v25(v24, v19);
if ( *((_BYTE *)this + 496) && *((_QWORD *)this + 61) )
{
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 50) + 344LL))(*((_QWORD *)this + 50), 1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 54) + 344LL))(*((_QWORD *)this + 54), 0);
v26 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 50) + 1072LL))(*((_QWORD *)this + 50));
v27 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 61) + 8LL))(*((_QWORD *)this + 61));
v28 = *((_QWORD *)this + 50);
if ( v21 == v27 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v28 + 1056LL))(*((_QWORD *)this + 50), 0);
v29 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v26 + 145);
v110 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v26);
v31 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v110, "GJ_selectSongOnBtn_001.png");
}
else
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v28 + 1056LL))(*((_QWORD *)this + 50), 1);
v29 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v26 + 145);
v30 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v26);
v31 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v30, "GJ_selectSongBtn_001.png");
}
v29(v26, v31);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 50) + 344LL))(*((_QWORD *)this + 50), 0);
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 344LL))(
*((_QWORD *)this + 52),
*((unsigned __int8 *)this + 497));
v32 = *((_QWORD *)this + 57);
goto LABEL_83;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 50) + 344LL))(*((_QWORD *)this + 50), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 344LL))(*((_QWORD *)this + 52), 0);
v53 = (MusicDownloadManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 54) + 344LL))(
*((_QWORD *)this + 54),
0);
v54 = *((unsigned __int8 *)this + 500);
if ( *((_BYTE *)this + 500) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 48) + 344LL))(*((_QWORD *)this + 48), 0);
v60 = *((_QWORD *)this + 49);
goto LABEL_82;
}
v55 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v53);
if ( (unsigned __int8)MusicDownloadManager::isRunningActionForSongID(v55, *((_DWORD *)this + 126))
|| *((_BYTE *)this + 499) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 48) + 344LL))(*((_QWORD *)this + 48), 0);
v56 = *(void (**)(void))(**((_QWORD **)this + 49) + 344LL);
v57 = 0;
}
else
{
if ( *(_BYTE *)(*((_QWORD *)this + 42) + 432LL) || (v57 = *((_BYTE *)this + 498), v97 = 1, !v57) )
{
v97 = 0;
v57 = 1;
}
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 48) + 344LL))(*((_QWORD *)this + 48), v97);
v56 = *(void (**)(void))(**((_QWORD **)this + 49) + 344LL);
}
v56();
if ( *(_BYTE *)(*((_QWORD *)this + 42) + 432LL) )
v54 = *((unsigned __int8 *)this + 498);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 51) + 344LL))(*((_QWORD *)this + 51), v54);
CustomSongWidget::toggleUpdateButton(this, v57);
LABEL_84:
v61 = *((_QWORD *)this + 56);
if ( v61 && *((_QWORD *)this + 42) )
{
v62 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v61 + 1072LL))(v61);
v63 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v62 + 145);
v64 = (MusicDownloadManager *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v62);
v65 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v64);
if ( (unsigned __int8)MusicDownloadManager::isMusicFavorite(v65, *(_DWORD *)(*((_QWORD *)this + 42) + 316LL)) )
v66 = "gj_heartOn_001.png";
else
v66 = "gj_heartOff_001.png";
v67 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v64, v66);
v63(v62, v67);
}
v68 = *((unsigned __int8 *)this + 501);
v69 = *(unsigned __int8 (**)(void))(**((_QWORD **)this + 59) + 352LL);
if ( !*((_BYTE *)this + 501) )
{
if ( v69() )
{
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 44), 190.0, 0.75, 0.0);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 45), 165.0, 0.75, 0.0);
if ( *((_BYTE *)this + 529) )
goto LABEL_92;
}
else
{
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 44), 240.0, 0.8, 0.0);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 45), 175.0, 0.8, 0.0);
if ( *((_BYTE *)this + 529) )
{
LABEL_92:
v70 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 192LL))(*((_QWORD *)this + 45));
cocos2d::CCNode::convertToWorldSpace(&v113, this, v70);
v71 = *((_QWORD *)this + 53);
v72 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v71 + 184LL);
v73 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 512LL))(v71);
v74 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 328LL))(*((_QWORD *)this + 45));
v75 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 136LL))(*((_QWORD *)this + 45));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v114, (float)(v74 * v75) + 35.0, -2.0);
cocos2d::CCPoint::operator+(&v115, &v113);
cocos2d::CCNode::convertToNodeSpace(&v116, v73, (const cocos2d::CCPoint *)&v115);
v72(v71, &v116);
v76 = *((_QWORD *)this + 42);
if ( v76 )
v68 = *(unsigned __int8 *)(v76 + 432) ^ 1;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 53) + 344LL))(*((_QWORD *)this + 53), v68);
return _stack_chk_guard;
}
}
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 46), 300.0, 0.4, 0.0);
goto LABEL_92;
}
if ( v69() )
v78 = 130.0;
else
v78 = 140.0;
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 352LL))(*((_QWORD *)this + 59)) )
v79 = 55.0;
else
v79 = 80.0;
if ( *((_BYTE *)this + 502) )
{
v78 = v78 - 25.0;
v79 = v79 - 15.0;
}
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 44), v78, 0.5, 0.0);
v80 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 328LL))(*((_QWORD *)this + 44));
v81 = v78
- (float)(v80 * (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 168LL))(*((_QWORD *)this + 44)));
if ( v81 <= 0.0 )
v81 = 0.0;
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 45), v81 + v79, 0.5, 0.0);
if ( !*((_BYTE *)this + 529) )
{
if ( *((_BYTE *)this + 502) )
v82 = 180.0;
else
v82 = 220.0;
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 46), v82, 0.6, 0.0);
}
v83 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 328LL))(*((_QWORD *)this + 44));
v84 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 168LL))(*((_QWORD *)this + 44));
v85 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 328LL))(*((_QWORD *)this + 45));
v86 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 168LL))(*((_QWORD *)this + 45));
v87 = *((_QWORD *)this + 53);
v88 = v85 * v86;
v89 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 184LL);
v90 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v87 + 512LL))(v87);
v91 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 512LL))(*((_QWORD *)this + 44));
v111 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 192LL))(*((_QWORD *)this + 44));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113, (float)((float)(v88 * 0.5) + (float)(v83 * v84)) + 4.0, 0.0);
cocos2d::CCPoint::operator+(&v114, v111);
cocos2d::CCNode::convertToWorldSpace(&v115, v91, (const cocos2d::CCPoint *)&v114);
cocos2d::CCNode::convertToNodeSpace(&v116, v90, (const cocos2d::CCPoint *)&v115);
v89(v87, &v116);
v92 = *((_QWORD *)this + 45);
v93 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v92 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 0.5, 0.5);
v93(v92, &v116);
v94 = *((_QWORD *)this + 45);
v95 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v94 + 184LL);
v112 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 53) + 328LL))(*((_QWORD *)this + 53)) * 0.5;
v96 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 53) + 328LL))(*((_QWORD *)this + 53));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, v112, *(float *)(v96 + 4) * 0.5);
v95(v94, &v116);
return _stack_chk_guard;
}