//
// CustomSongWidget::init from 0x86aed4 to 0x86c104 (4656 bytes)
//
// 2 xrefs:
// > CustomSongWidget::create @ 0x86c2bc
// > ??> @ 0x4c8e8
//
// 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:43 +0000
//
__int64 __fastcall CustomSongWidget::init(
CustomSongWidget *this,
SongInfoObject *a2,
CustomSongDelegate *a3,
char a4,
char a5,
char a6,
char a7,
unsigned __int8 a8,
bool a9,
int a10,
bool a11,
bool a12)
{
int v18; // w26
unsigned __int8 v19; // w0
CustomSongDelegate *v20; // x2
unsigned int v21; // w24
cocos2d::CCObject *v23; // x0
cocos2d::CCDirector *v24; // x0
float v25; // s11
float v26; // s9
__int64 v27; // x22
void (__fastcall *v28)(__int64, __int64 *); // x27
cocos2d::CCMenu *v29; // x0
__int64 v30; // x0
cocos2d::CCDirector *v31; // x0
__int64 v32; // x0
cocos2d::CCTouchDispatcher *v33; // x0
const char *v34; // x2
const char *v35; // x2
const char *v36; // x2
const char *v37; // x1
const char *v38; // x2
__int64 v39; // x0
void (__fastcall *v40)(__int64, __int64 *); // x2
const char *v41; // x1
float v42; // s10
__int64 v43; // x26
__int64 v44; // x0
const char *v45; // x1
__int64 v46; // x26
__int64 v47; // x0
const char *v48; // x1
__int64 v49; // x26
__int64 v50; // x0
const char *v51; // x1
__int64 v52; // x27
__int64 v53; // x0
const char *v54; // x1
__int64 v55; // x0
__int64 v56; // x0
const char *v57; // x1
__int64 v58; // x27
__int64 v59; // x0
const char *v60; // x6
__int64 v61; // x0
const char *v62; // x1
__int64 v63; // x22
__int64 v64; // x0
__int64 v65; // x22
float v66; // s9
cocos2d::CCNode *v67; // x27
float v68; // s10
void (__fastcall *v69)(__int64, __int64 *); // x28
const char *v70; // x1
__int64 v71; // x22
__int64 v72; // x0
__int64 v73; // x0
void (__fastcall *v74)(__int64, __int64 *); // x28
float *v75; // x0
__int64 v76; // x22
__int64 v77; // x0
const char *v78; // x1
__int64 v79; // x0
const char *v80; // x1
__int64 v81; // x0
__int64 v82; // x0
__int64 v83; // x22
void (__fastcall *v84)(__int64, __int64 *); // x28
__int64 v85; // x22
void (__fastcall *v86)(__int64, __int64 *); // x28
__int64 v87; // x26
void (__fastcall *v88)(__int64, __int64 *); // x27
__int64 v89; // x26
void (__fastcall *v90)(__int64, __int64 *); // x27
__int64 v91; // x26
void (__fastcall *v92)(__int64, __int64 *); // x27
__int64 v93; // x26
void (__fastcall *v94)(__int64, __int64 *); // x27
__int64 v95; // x26
float v96; // s10
cocos2d::CCNode *v97; // x28
void (__fastcall *v98)(__int64, __int64 *); // x27
__int64 v99; // x27
cocos2d::CCNode *v100; // x28
void (__fastcall *v101)(__int64, __int64 *); // x26
__int64 v102; // x26
void (__fastcall *v103)(__int64, __int64); // x27
__int64 v104; // x0
__int64 v105; // x26
void (__fastcall *v106)(__int64, __int64); // x27
__int64 v107; // x0
const char *v108; // x1
__int64 v109; // x0
__int64 v110; // x2
__int64 v111; // x25
void (__fastcall *v112)(__int64, __int64 *); // x26
__int64 v113; // x25
void (__fastcall *v114)(__int64, __int64); // x26
__int64 v115; // x0
__int64 v116; // x25
void (__fastcall *v117)(__int64, __int64 *); // x26
__int64 v118; // x27
MusicDownloadManager *updated; // x0
MusicDownloadManager *v120; // x0
MusicDownloadManager *v121; // x0
__int64 v122; // x28
float v123; // s11
__int64 v124; // x28
__int64 v125; // x28
__int64 v126; // x28
__int64 v127; // x28
__int64 v128; // x28
__int64 v129; // x28
__int64 v130; // x28
__int64 v131; // x0
const char *v132; // x1
__int64 v133; // x28
__int64 v134; // x28
__int64 v135; // x28
__int64 v136; // x0
__int64 v137; // x28
__int64 v138; // x0
const char *v139; // x1
__int64 v140; // x27
__int64 v141; // x0
void (__fastcall *v142)(__int64, __int64 *); // x26
void (__fastcall *v143)(__int64, __int64 *); // x26
void (__fastcall *v144)(__int64, __int64 *); // x3
void (__fastcall *v145)(__int64, __int64 *); // x26
__int64 v146; // x0
__int64 v147; // x2
cocos2d::CCDirector **v148; // x22
void (__fastcall *v149)(cocos2d::CCDirector **, _QWORD); // x26
__int64 v150; // x0
__int64 v151; // x0
MusicDownloadManager *v152; // x0
__int64 v153; // x28
__int64 v154; // x0
__int64 v155; // x28
cocos2d::CCNode *v156; // [xsp+A0h] [xbp+A0h]
cocos2d::CCNode *v157; // [xsp+A0h] [xbp+A0h]
cocos2d::CCNode *v158; // [xsp+A0h] [xbp+A0h]
cocos2d::CCNode *v159; // [xsp+A0h] [xbp+A0h]
float v160; // [xsp+A8h] [xbp+A8h]
void (__fastcall *v161)(__int64, __int64 *); // [xsp+A8h] [xbp+A8h]
CustomSongDelegate *v163; // [xsp+B0h] [xbp+B0h]
float v164; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v165)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v166)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v167)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v168)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v169)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v170)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
__int64 v171; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v172)(__int64, __int64); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v173)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v174)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
__int64 v175; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v176)(__int64, __int64); // [xsp+B0h] [xbp+B0h]
__int64 v177; // [xsp+B0h] [xbp+B0h]
__int64 v178; // [xsp+C8h] [xbp+C8h] BYREF
_BYTE v179[8]; // [xsp+D0h] [xbp+D0h] BYREF
_DWORD v180[4]; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v181[2]; // [xsp+E8h] [xbp+E8h] BYREF
v18 = a8;
v19 = cocos2d::CCNode::init(this);
v20 = a3;
v21 = v19;
if ( !v19 )
return v21;
v23 = *((cocos2d::CCObject **)this + 42);
if ( a2 != v23 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v23 = *((cocos2d::CCObject **)this + 42);
v20 = a3;
}
if ( v23 )
{
v163 = v20;
cocos2d::CCObject::release(v23);
v20 = v163;
}
*((_QWORD *)this + 42) = a2;
}
*((_QWORD *)this + 61) = v20;
*((_BYTE *)this + 496) = a4;
*((_BYTE *)this + 497) = a5;
*((_BYTE *)this + 500) = a7;
*((_BYTE *)this + 544) = a12;
*((_BYTE *)this + 498) = a6;
*((_BYTE *)this + 501) = a9;
*((_BYTE *)this + 502) = a9 && a11;
if ( a10 == 1 )
*((_BYTE *)this + 496) = 0;
v24 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)(a9 & (unsigned __int8)a11));
cocos2d::CCDirector::getWinSize(&v178, v24);
if ( *((_BYTE *)this + 501) )
{
v25 = 320.0;
v26 = 50.0;
v160 = -50.0;
}
else
{
v25 = 300.0;
v26 = 90.0;
v160 = -90.0;
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v181, 0.0, 0.0, 80.0, 80.0);
v27 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v181);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 912LL))(v27, 0xFFFFFFFFLL);
v28 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v27 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v181, v25, v26);
v28(v27, v181);
v29 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(CustomSongWidget *, __int64, __int64))(*(_QWORD *)this + 464LL))(
this,
v27,
4294967294LL);
if ( v18 )
v29 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v27 + 344LL))(v27, 0);
v30 = cocos2d::CCMenu::create(v29);
*((_QWORD *)this + 43) = v30;
v31 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(CustomSongWidget *, __int64))(*(_QWORD *)this + 456LL))(
this,
v30);
v32 = cocos2d::CCDirector::sharedDirector(v31);
v33 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 160LL))(v32);
if ( (unsigned __int8)cocos2d::CCTouchDispatcher::isUsingForcePrio(v33) )
{
v148 = *((cocos2d::CCDirector ***)this + 43);
v149 = *((void (__fastcall **)(cocos2d::CCDirector **, _QWORD))*v148 + 128);
v150 = cocos2d::CCDirector::sharedDirector(*v148);
v151 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v150 + 160LL))(v150);
v149(v148, (unsigned int)(*(_DWORD *)(v151 + 128) - 1));
}
*((_QWORD *)this + 44) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Song Title", "bigFont.fnt", v34);
*((_QWORD *)this + 45) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Artist Name", "goldFont.fnt", v35);
if ( *((_BYTE *)this + 501) )
v37 = "chatFont.fnt";
else
v37 = "bigFont.fnt";
*((_QWORD *)this + 46) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Song ID", v37, v36);
v39 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Error", "bigFont.fnt", v38);
*((_QWORD *)this + 47) = v39;
v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 1072LL);
LOWORD(v181[0]) = 13055;
BYTE2(v181[0]) = 25;
v40(v39, v181);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 47) + 344LL))(*((_QWORD *)this + 47), 0);
(*(void (__fastcall **)(CustomSongWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 44));
if ( !*((_BYTE *)this + 501) )
(*(void (__fastcall **)(CustomSongWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 45));
(*(void (__fastcall **)(CustomSongWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 46));
(*(void (__fastcall **)(CustomSongWidget *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 47),
2);
if ( *((_BYTE *)this + 501) )
v42 = 0.72;
else
v42 = 1.0;
v43 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadBtn_001.png", v41);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, v42);
v44 = CCMenuItemSpriteExtra::create(v43, 0, (__int64)this, (__int64)CustomSongWidget::onDownload, 0);
*((_QWORD *)this + 48) = v44;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v44);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 48), 1.1);
v46 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_cancelDownloadBtn_001.png", v45);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL))(v46, v42);
v47 = CCMenuItemSpriteExtra::create(v46, 0, (__int64)this, (__int64)CustomSongWidget::onCancelDownload, 0);
*((_QWORD *)this + 49) = v47;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v47);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 49), 1.1);
v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_trashBtn_001.png", v48);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.8);
v50 = CCMenuItemSpriteExtra::create(v49, 0, (__int64)this, (__int64)CustomSongWidget::onDelete, 0);
*((_QWORD *)this + 54) = v50;
if ( a10 == 1 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v50 + 72LL))(v50, 4294966297LL);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43));
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 54), 1.1);
v52 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_selectSongBtn_001.png", v51);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL))(v52, v42);
v53 = CCMenuItemSpriteExtra::create(v52, 0, (__int64)this, (__int64)CustomSongWidget::onSelect, 0);
*((_QWORD *)this + 50) = v53;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v53);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 50), 1.1);
v55 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_getSongInfoBtn_001.png", v54);
v56 = CCMenuItemSpriteExtra::create(v55, 0, (__int64)this, (__int64)CustomSongWidget::onGetSongInfo, 0);
*((_QWORD *)this + 51) = v56;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v56);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 51), 1.1);
v58 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playMusicBtn_001.png", v57);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v58 + 160LL))(v58, v42);
v59 = CCMenuItemSpriteExtra::create(v58, 0, (__int64)this, (__int64)CustomSongWidget::onPlayback, 0);
*((_QWORD *)this + 52) = v59;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v59);
v156 = (cocos2d::CCNode *)ButtonSprite::create(
(ButtonSprite *)"More",
(const char *)&qword_D8 + 4,
0,
0,
0.6,
"bigFont.fnt",
"GJ_button_01.png",
v60,
25.0);
v61 = CCMenuItemSpriteExtra::create((__int64)v156, 0, (__int64)this, (__int64)CustomSongWidget::onMore, 0);
*((_QWORD *)this + 53) = v61;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v61);
v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v62);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v63 + 160LL))(v63, 0.65);
v64 = CCMenuItemSpriteExtra::create(v63, 0, (__int64)this, (__int64)CustomSongWidget::onInfo, 0);
*((_QWORD *)this + 55) = v64;
CCMenuItemSpriteExtra::setSizeMult(v64, 1.2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 43) + 456LL))(
*((_QWORD *)this + 43),
*((_QWORD *)this + 55));
v65 = *((_QWORD *)this + 55);
v66 = v26 * 0.5;
v67 = *((cocos2d::CCNode **)this + 43);
v68 = v25 * 0.5;
v69 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v180, (float)(v25 * 0.5) - 14.0, (float)(v66 - 14.0) - 1.0);
cocos2d::CCNode::convertToNodeSpace(v181, v67, (const cocos2d::CCPoint *)v180);
v69(v65, v181);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 55) + 344LL))(*((_QWORD *)this + 55), 0);
v71 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"statInfoIcon_001.png", v70);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v71 + 160LL))(v71, 0.65);
v72 = CCMenuItemSpriteExtra::create(v71, 0, (__int64)this, (__int64)CustomSongWidget::onUsage, 0);
*((_QWORD *)this + 67) = v72;
CCMenuItemSpriteExtra::setSizeMult(v72, 1.2);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 43) + 456LL))(
*((_QWORD *)this + 43),
*((_QWORD *)this + 67));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 67) + 344LL))(*((_QWORD *)this + 67), 0);
if ( *((_BYTE *)this + 501) )
{
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 53), 0.9);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 53) + 456LL))(
*((_QWORD *)this + 53),
*((_QWORD *)this + 45));
v73 = *((_QWORD *)this + 45);
v74 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v73 + 184LL);
v75 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v73 + 328LL))(v73);
v76 = *((_QWORD *)this + 45);
v164 = *v75 * 0.5;
v77 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 328LL))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, v164, *(float *)(v77 + 4) * 0.5);
v74(v76, v181);
(*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)v156 + 344LL))(v156, 0);
}
else
{
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 53), 1.1);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 53) + 160LL))(*((_QWORD *)this + 53), 0.7);
*(_DWORD *)(*((_QWORD *)this + 53) + 404LL) = 1060320051;
}
v79 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove.png", v78);
*((_QWORD *)this + 57) = v79;
(*(void (__fastcall **)(CustomSongWidget *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v79, 3);
v81 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v80);
*((_QWORD *)this + 58) = v81;
v180[0] = 9729;
v180[1] = 9729;
v180[2] = 10497;
v180[3] = 10497;
v82 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v81 + 1072LL))(v81);
cocos2d::CCTexture2D::setTexParameters(v82, v180);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 57) + 464LL))(
*((_QWORD *)this + 57),
*((_QWORD *)this + 58),
0xFFFFFFFFLL);
v83 = *((_QWORD *)this + 58);
v84 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v83 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.0);
v84(v83, v181);
v85 = *((_QWORD *)this + 58);
v86 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v85 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 2.0, 4.0);
v86(v85, v181);
if ( *((_BYTE *)this + 501) )
{
v122 = *((_QWORD *)this + 44);
v123 = -v25;
v165 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v122 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v165(v122, v181);
v124 = *((_QWORD *)this + 44);
v166 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v124 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, (float)(v123 * 0.5) + 10.0, v66 - 16.0);
v166(v124, v181);
v125 = *((_QWORD *)this + 46);
v167 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v125 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, (float)(v123 * 0.5) + 11.0, v66 - 34.0);
v167(v125, v181);
v126 = *((_QWORD *)this + 46);
v168 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v126 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v168(v126, v181);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 46) + 160LL))(*((_QWORD *)this + 46), 0.5);
(*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)this + 46) + 1072LL))(*((_QWORD *)this + 46), &unk_114B378);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 46) + 1024LL))(*((_QWORD *)this + 46), 4294967240LL);
v127 = *((_QWORD *)this + 47);
v169 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v127 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v169(v127, v181);
v128 = *((_QWORD *)this + 48);
v157 = *((cocos2d::CCNode **)this + 43);
v170 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v128 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, v68 - 20.0, 0.0);
cocos2d::CCNode::convertToNodeSpace(v181, v157, (const cocos2d::CCPoint *)v179);
v170(v128, v181);
v129 = *((_QWORD *)this + 50);
v158 = *(cocos2d::CCNode **)(*(_QWORD *)v129 + 184LL);
v171 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 192LL))(*((_QWORD *)this + 48));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, -32.0, 0.0);
cocos2d::CCPoint::operator+(v181, v171);
((void (__fastcall *)(__int64, __int64 *))v158)(v129, v181);
v130 = *((_QWORD *)this + 52);
v172 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v130 + 184LL);
v131 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 192LL))(*((_QWORD *)this + 48));
v172(v130, v131);
if ( *((_BYTE *)this + 502) )
{
v153 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOff_001.png", v132);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v153 + 160LL))(v153, 0.91);
v154 = CCMenuItemSpriteExtra::create(v153, 0, (__int64)this, (__int64)CustomSongWidget::onToggleFavorite, 0);
*((_QWORD *)this + 56) = v154;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v154);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 56), 1.1);
v155 = *((_QWORD *)this + 56);
v159 = *(cocos2d::CCNode **)(*(_QWORD *)v155 + 184LL);
v177 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 50) + 192LL))(*((_QWORD *)this + 50));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, -32.0, 0.0);
cocos2d::CCPoint::operator+(v181, v177);
((void (__fastcall *)(__int64, __int64 *))v159)(v155, v181);
}
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 57) + 144LL))(*((_QWORD *)this + 57), 0.6);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 57) + 128LL))(*((_QWORD *)this + 57), 0.8);
v133 = *((_QWORD *)this + 47);
v173 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v133 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.5, 0.5);
v173(v133, v181);
v134 = *((_QWORD *)this + 47);
v174 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v134 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, (float)(v160 * 0.5) + 3.0);
v174(v134, v181);
v135 = *((_QWORD *)this + 57);
v161 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v135 + 184LL);
v175 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, 0.0, -0.5);
cocos2d::CCPoint::operator+(v181, v175);
v161(v135, v181);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v181, 0.0, 0.0, 86.0, 86.0);
v136 = cocos2d::extension::CCScale9Sprite::create("GJ_squareB_01.png", v181);
*((_QWORD *)this + 60) = v136;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v136 + 912LL))(v136, 0xFFFFFFFFLL);
v137 = *((_QWORD *)this + 60);
v176 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v137 + 184LL);
v138 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 57) + 192LL))(*((_QWORD *)this + 57));
v176(v137, v138);
(*(void (__fastcall **)(CustomSongWidget *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(
this,
*((_QWORD *)this + 60),
1);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 60) + 344LL))(*((_QWORD *)this + 60), 0);
v140 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v139);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 57) + 464LL))(
*((_QWORD *)this + 57),
v140,
4294967294LL);
v141 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v140 + 1072LL))(v140);
cocos2d::CCTexture2D::setTexParameters(v141, v180);
v142 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.0);
v142(v140, v181);
v143 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 2.0, 4.0);
v143(v140, v181);
v144 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 960LL);
memset(v181, 50, 3);
v144(v140, v181);
v145 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v140 + 1136LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v181, 0.0, 0.0, *(float *)(*((_QWORD *)this + 57) + 432LL) - 4.0, 8.0);
v145(v140, v181);
if ( a9 )
goto LABEL_29;
LABEL_38:
v146 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"ncs_med_001.png", v108);
v147 = *(_QWORD *)this;
*((_QWORD *)this + 59) = v146;
(*(void (__fastcall **)(CustomSongWidget *))(v147 + 456))(this);
goto LABEL_30;
}
v87 = *((_QWORD *)this + 44);
v88 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v87 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v88(v87, v181);
v89 = *((_QWORD *)this + 45);
v90 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v89 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v90(v89, v181);
v91 = *((_QWORD *)this + 47);
v92 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v91 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v92(v91, v181);
v93 = *((_QWORD *)this + 46);
v94 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v93 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v94(v93, v181);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 46) + 160LL))(*((_QWORD *)this + 46), 0.5);
v95 = *((_QWORD *)this + 48);
v96 = v68 - 23.0;
v97 = *((cocos2d::CCNode **)this + 43);
v98 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v95 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, v96, (float)((float)(v160 * 0.5) + 23.0) + 2.0);
cocos2d::CCNode::convertToNodeSpace(v181, v97, (const cocos2d::CCPoint *)v179);
v98(v95, v181);
v99 = *((_QWORD *)this + 52);
v100 = *((cocos2d::CCNode **)this + 43);
v101 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v99 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, v96, (float)(v66 - 23.0) - 1.0);
cocos2d::CCNode::convertToNodeSpace(v181, v100, (const cocos2d::CCPoint *)v179);
v101(v99, v181);
v102 = *((_QWORD *)this + 50);
v103 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v102 + 184LL);
v104 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 192LL))(*((_QWORD *)this + 48));
v103(v102, v104);
v105 = *((_QWORD *)this + 51);
v106 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v105 + 184LL);
v107 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 192LL))(*((_QWORD *)this + 48));
v106(v105, v107);
if ( !a9 )
goto LABEL_38;
LABEL_29:
v109 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"ncs_small_001.png", v108);
v110 = *(_QWORD *)this;
*((_QWORD *)this + 59) = v109;
(*(void (__fastcall **)(CustomSongWidget *))(v110 + 456))(this);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 59) + 160LL))(*((_QWORD *)this + 59), 1.1);
LABEL_30:
v111 = *((_QWORD *)this + 59);
v112 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v111 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, 0.0, 0.5);
v112(v111, v181);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 59) + 344LL))(*((_QWORD *)this + 59), 0);
CustomSongWidget::positionInfoObjects(this);
v113 = *((_QWORD *)this + 49);
v114 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v113 + 184LL);
v115 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 192LL))(*((_QWORD *)this + 48));
v114(v113, v115);
v116 = *((_QWORD *)this + 54);
v117 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v116 + 184LL);
v118 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 48) + 192LL))(*((_QWORD *)this + 48));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, 1.0, -2.0);
cocos2d::CCPoint::operator+(v181, v118);
v117(v116, v181);
CustomSongWidget::updateProgressBar(this, 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 57) + 344LL))(*((_QWORD *)this + 57), 0);
if ( a2 )
updated = (MusicDownloadManager *)CustomSongWidget::updateSongObject(this, a2);
else
updated = (MusicDownloadManager *)CustomSongWidget::updateSongInfo(this);
v120 = (MusicDownloadManager *)MusicDownloadManager::sharedState(updated);
MusicDownloadManager::addMusicDownloadDelegate(v120, (CustomSongWidget *)((char *)this + 320));
v121 = (MusicDownloadManager *)*((unsigned int *)this + 126);
if ( (_DWORD)v121 )
{
v152 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v121);
if ( (unsigned __int8)MusicDownloadManager::isRunningActionForSongID(v152, *((_DWORD *)this + 126)) )
CustomSongWidget::startMonitorDownload(this);
}
CustomSongWidget::updatePlaybackBtn(this);
return v21;
}