//
// CustomSongWidget::init from 0x4e4000 to 0x4e4d06 (3334 bytes)
//
// 1 xrefs:
// > CustomSongWidget::create @ 0x4e4e34
//
// 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:51:04 +0000
//
cocos2d::CCObject *__fastcall CustomSongWidget::init(
CustomSongWidget *this,
SongInfoObject *a2,
CustomSongDelegate *a3,
bool a4,
bool a5,
bool a6,
bool a7,
bool a8,
bool a9,
int a10,
bool a11,
bool a12)
{
cocos2d::CCObject *v16; // r0
float v17; // s18
float v18; // s17
bool v19; // r3
int v20; // r11
void (__fastcall *v21)(int, _BYTE *); // r10
cocos2d::CCMenu *v22; // r0
int v23; // r0
int v24; // r3
cocos2d::CCDirector *v25; // r0
int v26; // r0
cocos2d::CCTouchDispatcher *v27; // r0
cocos2d::CCDirector *isUsingForcePrio; // r0
const char *v29; // r2
int v30; // r10
void (__fastcall *v31)(int, int); // r11
int v32; // r0
int v33; // r0
const char *v34; // r2
int v35; // r0
const char *v36; // r2
int v37; // r3
const char *v38; // r1
const char *v39; // r2
int v40; // r0
void (__fastcall *v41)(int, _BYTE *); // r3
const char *v42; // r1
float v43; // r10
int v44; // r11
int v45; // r0
const char *v46; // r1
int v47; // r11
int v48; // r0
const char *v49; // r1
int v50; // r11
int v51; // r0
const char *v52; // r1
int v53; // r5
int v54; // r0
const char *v55; // r1
int v56; // r0
int v57; // r0
const char *v58; // r1
int v59; // r5
int v60; // r0
ButtonSprite *v61; // r0
ButtonSprite *v62; // r11
int v63; // r0
const char *v64; // r1
int v65; // r5
int v66; // r0
float v67; // s21
float v68; // s22
const char *v69; // r1
int v70; // r10
int v71; // r0
int v72; // r0
int v73; // r0
void (__fastcall *v74)(int, _BYTE *); // r10
float *v75; // r0
float v76; // s20
int v77; // r0
const char *v78; // r1
float v79; // s17
int v80; // r0
int v81; // r3
const char *v82; // r1
int v83; // r0
int v84; // r0
int v85; // r11
void (__fastcall *v86)(int, _BYTE *); // r10
int v87; // r11
void (__fastcall *v88)(int, _BYTE *); // r10
int v89; // r11
void (__fastcall *v90)(int, _BYTE *); // r6
int v91; // r6
void (__fastcall *v92)(int, _BYTE *); // r7
int v93; // r6
void (__fastcall *v94)(int, _BYTE *); // r7
int v95; // r6
void (__fastcall *v96)(int, _BYTE *); // r7
int v97; // r11
const cocos2d::CCPoint *v98; // r10
void (__fastcall *v99)(int, _BYTE *); // r7
float v100; // s21
int v101; // r11
const cocos2d::CCPoint *v102; // r10
void (__fastcall *v103)(int, _BYTE *); // r7
int v104; // r5
void (__fastcall *v105)(int, int); // r6
int v106; // r0
int v107; // r5
void (__fastcall *v108)(int, int); // r6
int v109; // r0
const char *v110; // r1
void (__fastcall *v111)(int, _BYTE *); // r10
float v112; // s18
int v113; // r11
void (__fastcall *v114)(int, _BYTE *); // r10
int v115; // r11
void (__fastcall *v116)(int, _BYTE *); // r10
int v117; // r11
void (__fastcall *v118)(int, _BYTE *); // r10
int v119; // r6
void (__fastcall *v120)(int, _BYTE *); // r10
const cocos2d::CCPoint *v121; // r11
void (__fastcall *v122)(int, _BYTE *); // r10
int v123; // r10
int v124; // r11
int v125; // r6
void (__fastcall *v126)(int, int); // r10
int v127; // r0
const char *v128; // r1
int v129; // r6
int v130; // r0
int v131; // r10
void (__fastcall *v132)(int, _BYTE *); // r7
int v133; // r11
int v134; // r6
void (__fastcall *v135)(int, _BYTE *); // r7
int v136; // r6
void (__fastcall *v137)(int, _BYTE *); // r7
int v138; // r10
void (__fastcall *v139)(int, _BYTE *); // r7
int v140; // r11
int v141; // r0
int v142; // r6
void (__fastcall *v143)(int, int); // r7
int v144; // r0
const char *v145; // r1
int v146; // r6
int v147; // r0
void (__fastcall *v148)(int, _BYTE *); // r7
void (__fastcall *v149)(int, _BYTE *); // r7
void (__fastcall *v150)(int, _BYTE *); // r2
void (__fastcall *v151)(int, _BYTE *); // r7
char *v152; // r0
int v153; // r0
int v154; // r3
int v155; // r6
void (__fastcall *v156)(int, _BYTE *); // r7
int v157; // r6
void (__fastcall *v158)(int, int); // r7
int v159; // r0
int v160; // r7
void (__fastcall *v161)(int, _BYTE *); // r9
int v162; // r10
MusicDownloadManager *updated; // r0
MusicDownloadManager *v164; // r0
MusicDownloadManager *v165; // r0
int v166; // r1
int v167; // r2
int v168; // r3
MusicDownloadManager *v169; // r0
float v171; // [sp+10h] [bp-A4h]
cocos2d::CCObject *v172; // [sp+14h] [bp-A0h]
void (__fastcall *v173)(int, _BYTE *); // [sp+18h] [bp-9Ch]
int v174; // [sp+18h] [bp-9Ch]
int v175; // [sp+18h] [bp-9Ch]
void (__fastcall *v176)(int, _BYTE *); // [sp+18h] [bp-9Ch]
cocos2d::CCPoint *v177; // [sp+1Ch] [bp-98h]
int v178; // [sp+24h] [bp-90h]
char v179[8]; // [sp+2Ch] [bp-88h] BYREF
_BYTE v180[8]; // [sp+34h] [bp-80h] BYREF
_DWORD (*v181)(CustomSongWidget *__hidden, cocos2d::CCObject *); // [sp+3Ch] [bp-78h]
int v182; // [sp+40h] [bp-74h]
int (__fastcall *v183)(CustomSongWidget *, cocos2d::CCObject *); // [sp+44h] [bp-70h]
int v184; // [sp+48h] [bp-6Ch]
int (__fastcall *v185)(int, cocos2d::CCObject *); // [sp+4Ch] [bp-68h]
int v186; // [sp+50h] [bp-64h]
_DWORD (__fastcall *v187)(CustomSongWidget *__hidden, cocos2d::CCObject *); // [sp+54h] [bp-60h]
int v188; // [sp+58h] [bp-5Ch]
int (__fastcall *v189)(int, cocos2d::CCObject *); // [sp+5Ch] [bp-58h]
int v190; // [sp+60h] [bp-54h]
int (__fastcall ***(__fastcall *v191)(CustomSongWidget *, cocos2d::CCObject *))(_DWORD, _DWORD); // [sp+64h] [bp-50h]
int v192; // [sp+68h] [bp-4Ch]
int (__fastcall *v193)(int, cocos2d::CCObject *); // [sp+6Ch] [bp-48h]
int v194; // [sp+70h] [bp-44h]
_DWORD (*v195)(CustomSongWidget *__hidden, cocos2d::CCObject *); // [sp+74h] [bp-40h]
int v196; // [sp+78h] [bp-3Ch]
int (__fastcall *v197)(int, cocos2d::CCObject *); // [sp+7Ch] [bp-38h]
int v198; // [sp+80h] [bp-34h]
_DWORD v199[2]; // [sp+84h] [bp-30h] BYREF
_DWORD v200[4]; // [sp+8Ch] [bp-28h] BYREF
_BYTE v201[16]; // [sp+9Ch] [bp-18h] BYREF
v16 = (cocos2d::CCObject *)cocos2d::CCNode::init(this);
v172 = v16;
if ( v16 )
{
if ( *((SongInfoObject **)this + 68) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v16 = *((cocos2d::CCObject **)this + 68);
if ( v16 )
v16 = (cocos2d::CCObject *)cocos2d::CCObject::release(v16);
*((_DWORD *)this + 68) = a2;
}
*((_BYTE *)this + 352) = a4;
*((_DWORD *)this + 87) = a3;
*((_BYTE *)this + 353) = a5;
*((_BYTE *)this + 357) = a9;
v17 = 300.0;
*((_BYTE *)this + 356) = a7;
v18 = 90.0;
*((_BYTE *)this + 384) = a12;
*((_BYTE *)this + 354) = a6;
v19 = a11 && a9;
*((_BYTE *)this + 358) = v19;
if ( a10 == 1 )
*((_BYTE *)this + 352) = 0;
cocos2d::CCDirector::sharedDirector(v16);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v179);
if ( *((_BYTE *)this + 357) )
{
v17 = 320.0;
v18 = 50.0;
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v201, 0.0, 0.0, 80.0, 80.0);
v20 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v201);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 456))(v20, 255);
v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v20 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v201, v17, v18);
v21(v20, v201);
v22 = (cocos2d::CCMenu *)(*(int (__fastcall **)(CustomSongWidget *, int, int))(*(_DWORD *)this + 232))(
this,
v20,
-2);
if ( a8 )
v22 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v20 + 172))(v20, 0);
v23 = cocos2d::CCMenu::create(v22);
v24 = *(_DWORD *)this;
*((_DWORD *)this + 69) = v23;
v25 = (cocos2d::CCDirector *)(*(int (__fastcall **)(CustomSongWidget *, int))(v24 + 228))(this, v23);
v26 = cocos2d::CCDirector::sharedDirector(v25);
v27 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v26 + 80))(v26);
isUsingForcePrio = (cocos2d::CCDirector *)cocos2d::CCTouchDispatcher::isUsingForcePrio(v27);
if ( isUsingForcePrio )
{
v30 = *((_DWORD *)this + 69);
v31 = *(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 512);
v32 = cocos2d::CCDirector::sharedDirector(isUsingForcePrio);
v33 = (*(int (__fastcall **)(int))(*(_DWORD *)v32 + 80))(v32);
v31(v30, *(_DWORD *)(v33 + 100) - 1);
}
*((_DWORD *)this + 70) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Song Title", "bigFont.fnt", v29);
v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Artist Name", "goldFont.fnt", v34);
v37 = *((unsigned __int8 *)this + 357);
*((_DWORD *)this + 71) = v35;
if ( v37 )
v38 = "chatFont.fnt";
else
v38 = "bigFont.fnt";
*((_DWORD *)this + 72) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Song ID", v38, v36);
v40 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Error", "bigFont.fnt", v39);
*((_DWORD *)this + 73) = v40;
v41 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v40 + 536);
v201[0] = -1;
v201[1] = 50;
v201[2] = 25;
v41(v40, v201);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 73) + 172))(*((_DWORD *)this + 73), 0);
(*(void (__fastcall **)(CustomSongWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 70));
if ( !*((_BYTE *)this + 357) )
(*(void (__fastcall **)(CustomSongWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 71));
(*(void (__fastcall **)(CustomSongWidget *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 72));
(*(void (__fastcall **)(CustomSongWidget *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 73), 2);
if ( *((_BYTE *)this + 357) )
v43 = 0.72;
else
v43 = 1.0;
v44 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadBtn_001.png", v42);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v44 + 80))(v44, COERCE_FLOAT(LODWORD(v43)));
v182 = 0;
v181 = CustomSongWidget::onDownload;
v45 = CCMenuItemSpriteExtra::create(v44, 0, (int)this, (int)CustomSongWidget::onDownload, 0);
*((_DWORD *)this + 74) = v45;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v45);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 74), 1.1);
v47 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_cancelDownloadBtn_001.png", v46);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v47 + 80))(v47, COERCE_FLOAT(LODWORD(v43)));
v184 = 0;
v183 = CustomSongWidget::onCancelDownload;
v48 = CCMenuItemSpriteExtra::create(v47, 0, (int)this, (int)CustomSongWidget::onCancelDownload, 0);
*((_DWORD *)this + 75) = v48;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v48);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 75), 1.1);
v50 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_trashBtn_001.png", v49);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 80))(v50, 1061997773);
v186 = 0;
v185 = CustomSongWidget::onDelete;
v51 = CCMenuItemSpriteExtra::create(v50, 0, (int)this, (int)CustomSongWidget::onDelete, 0);
*((_DWORD *)this + 80) = v51;
if ( a10 == 1 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v51 + 36))(v51, -999);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 69) + 228))(
*((_DWORD *)this + 69),
*((_DWORD *)this + 80));
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 80), 1.1);
v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_selectSongBtn_001.png", v52);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v53 + 80))(v53, COERCE_FLOAT(LODWORD(v43)));
v188 = 0;
v187 = CustomSongWidget::onSelect;
v54 = CCMenuItemSpriteExtra::create(v53, 0, (int)this, (int)CustomSongWidget::onSelect, 0);
*((_DWORD *)this + 76) = v54;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v54);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 76), 1.1);
v56 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_getSongInfoBtn_001.png", v55);
v190 = 0;
v189 = CustomSongWidget::onGetSongInfo;
v57 = CCMenuItemSpriteExtra::create(v56, 0, (int)this, (int)CustomSongWidget::onGetSongInfo, 0);
*((_DWORD *)this + 77) = v57;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v57);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 77), 1.1);
v59 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playMusicBtn_001.png", v58);
(*(void (__fastcall **)(int, float))(*(_DWORD *)v59 + 80))(v59, COERCE_FLOAT(LODWORD(v43)));
v192 = 0;
v191 = CustomSongWidget::onPlayback;
v60 = CCMenuItemSpriteExtra::create(v59, 0, (int)this, (int)CustomSongWidget::onPlayback, 0);
*((_DWORD *)this + 78) = v60;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v60);
v61 = ButtonSprite::create(
(ButtonSprite *)"More",
(const char *)off_DC,
0,
0.6,
0,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41C80000,
v171);
v194 = 0;
v193 = CustomSongWidget::onMore;
v62 = v61;
v63 = CCMenuItemSpriteExtra::create((int)v61, 0, (int)this, (int)CustomSongWidget::onMore, 0);
*((_DWORD *)this + 79) = v63;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v63);
v65 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v64);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v65 + 80))(v65, 1059481190);
v196 = 0;
v195 = CustomSongWidget::onInfo;
v66 = CCMenuItemSpriteExtra::create(v65, 0, (int)this, (int)CustomSongWidget::onInfo, 0);
*((_DWORD *)this + 81) = v66;
CCMenuItemSpriteExtra::setSizeMult(v66, 1.2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 69) + 228))(
*((_DWORD *)this + 69),
*((_DWORD *)this + 81));
v67 = v17 * 0.5;
v178 = *((_DWORD *)this + 81);
v173 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v178 + 92);
v68 = v18 * 0.5;
v177 = *((cocos2d::CCPoint **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v200,
(float)(v17 * 0.5) - 14.0,
(float)((float)(v18 * 0.5) - 14.0) - 1.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v201, v177);
v173(v178, v201);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 81) + 172))(*((_DWORD *)this + 81), 0);
v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"statInfoIcon_001.png", v69);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v70 + 80))(v70, 1059481190);
v198 = 0;
v197 = CustomSongWidget::onUsage;
v71 = CCMenuItemSpriteExtra::create(v70, 0, (int)this, (int)CustomSongWidget::onUsage, 0);
*((_DWORD *)this + 95) = v71;
CCMenuItemSpriteExtra::setSizeMult(v71, 1.2);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 69) + 228))(
*((_DWORD *)this + 69),
*((_DWORD *)this + 95));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 95) + 172))(*((_DWORD *)this + 95), 0);
v72 = *((_DWORD *)this + 79);
if ( *((_BYTE *)this + 357) )
{
CCMenuItemSpriteExtra::setSizeMult(v72, 0.9);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 79) + 228))(
*((_DWORD *)this + 79),
*((_DWORD *)this + 71));
v73 = *((_DWORD *)this + 71);
v74 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v73 + 92);
v75 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v73 + 164))(v73);
v174 = *((_DWORD *)this + 71);
v76 = *v75;
v77 = (*(int (__fastcall **)(int))(*(_DWORD *)v174 + 164))(v174);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, v76 * 0.5, *(float *)(v77 + 4) * 0.5);
v74(v174, v201);
(*(void (__fastcall **)(ButtonSprite *, _DWORD))(*(_DWORD *)v62 + 172))(v62, 0);
}
else
{
CCMenuItemSpriteExtra::setSizeMult(v72, 1.1);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 79) + 80))(*((_DWORD *)this + 79), 1060320051);
*(_DWORD *)(*((_DWORD *)this + 79) + 316) = 1060320051;
}
v79 = -v18;
v80 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove.png", v78);
v81 = *(_DWORD *)this;
*((_DWORD *)this + 83) = v80;
(*(void (__fastcall **)(CustomSongWidget *, int, int))(v81 + 232))(this, v80, 3);
v83 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v82);
*((_DWORD *)this + 84) = v83;
v200[0] = 9729;
v200[1] = 9729;
v200[2] = 10497;
v200[3] = 10497;
v84 = (*(int (__fastcall **)(int))(*(_DWORD *)v83 + 536))(v83);
cocos2d::CCTexture2D::setTexParameters(v84, v200);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 83) + 232))(
*((_DWORD *)this + 83),
*((_DWORD *)this + 84),
-1);
v85 = *((_DWORD *)this + 84);
v86 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v85 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.0);
v86(v85, v201);
v87 = *((_DWORD *)this + 84);
v88 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v87 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 2.0, 4.0);
v88(v87, v201);
v89 = *((_DWORD *)this + 70);
if ( *((_BYTE *)this + 357) )
{
v111 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v89 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v111(v89, v201);
v112 = -(float)(v17 * 0.5);
v113 = *((_DWORD *)this + 70);
v114 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v113 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, v112 + 10.0, v68 - 16.0);
v114(v113, v201);
v115 = *((_DWORD *)this + 72);
v116 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v115 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, v112 + 11.0, v68 - 34.0);
v116(v115, v201);
v117 = *((_DWORD *)this + 72);
v118 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v117 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v118(v117, v201);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 72) + 80))(*((_DWORD *)this + 72), 1056964608);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 72) + 536))(*((_DWORD *)this + 72), &unk_BEC60C);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 72) + 512))(*((_DWORD *)this + 72), 200);
v119 = *((_DWORD *)this + 73);
v120 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v119 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v120(v119, v201);
v121 = *((const cocos2d::CCPoint **)this + 69);
v175 = *((_DWORD *)this + 74);
v122 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v175 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v199, v67 - 20.0, 0.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v201, v121);
v122(v175, v201);
v123 = *((_DWORD *)this + 76);
v176 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v123 + 92);
v124 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 74) + 96))(*((_DWORD *)this + 74));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v199, -32.0, 0.0);
cocos2d::CCPoint::operator+(v201, v124, v199);
v176(v123, v201);
v125 = *((_DWORD *)this + 78);
v126 = *(void (__fastcall **)(int, int))(*(_DWORD *)v125 + 92);
v127 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 74) + 96))(*((_DWORD *)this + 74));
v126(v125, v127);
if ( *((_BYTE *)this + 358) )
{
v129 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOff_001.png", v128);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v129 + 80))(v129, 1063843267);
v199[1] = 0;
v199[0] = CustomSongWidget::onToggleFavorite;
v130 = CCMenuItemSpriteExtra::create(v129, 0, (int)this, (int)CustomSongWidget::onToggleFavorite, 0);
*((_DWORD *)this + 82) = v130;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 69) + 228))(*((_DWORD *)this + 69), v130);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 82), 1.1);
v131 = *((_DWORD *)this + 82);
v132 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v131 + 92);
v133 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 76) + 96))(*((_DWORD *)this + 76));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v180, -32.0, 0.0);
cocos2d::CCPoint::operator+(v201, v133, v180);
v132(v131, v201);
}
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 83) + 72))(*((_DWORD *)this + 83), 1058642330);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 83) + 64))(*((_DWORD *)this + 83), 1061997773);
v134 = *((_DWORD *)this + 73);
v135 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v134 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.5, 0.5);
v135(v134, v201);
v136 = *((_DWORD *)this + 73);
v137 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v136 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, (float)(v79 * 0.5) + 3.0);
v137(v136, v201);
v138 = *((_DWORD *)this + 83);
v139 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v138 + 92);
v140 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 73) + 96))(*((_DWORD *)this + 73));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v180, 0.0, -0.5);
cocos2d::CCPoint::operator+(v201, v140, v180);
v139(v138, v201);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v201, 0.0, 0.0, 86.0, 86.0);
v141 = cocos2d::extension::CCScale9Sprite::create("GJ_squareB_01.png", v201);
*((_DWORD *)this + 86) = v141;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v141 + 456))(v141, 255);
v142 = *((_DWORD *)this + 86);
v143 = *(void (__fastcall **)(int, int))(*(_DWORD *)v142 + 92);
v144 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 83) + 96))(*((_DWORD *)this + 83));
v143(v142, v144);
(*(void (__fastcall **)(CustomSongWidget *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 86), 1);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 86) + 172))(*((_DWORD *)this + 86), 0);
v146 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v145);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 83) + 232))(*((_DWORD *)this + 83), v146, -2);
v147 = (*(int (__fastcall **)(int))(*(_DWORD *)v146 + 536))(v146);
cocos2d::CCTexture2D::setTexParameters(v147, v200);
v148 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v146 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.0);
v148(v146, v201);
v149 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v146 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 2.0, 4.0);
v149(v146, v201);
v150 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v146 + 480);
memset(v201, 50, 3);
v150(v146, v201);
v151 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v146 + 568);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v201, 0.0, 0.0, *(float *)(*((_DWORD *)this + 83) + 344) - 4.0, 8.0);
v151(v146, v201);
}
else
{
v90 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v89 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v90(v89, v201);
v91 = *((_DWORD *)this + 71);
v92 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v91 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v92(v91, v201);
v93 = *((_DWORD *)this + 73);
v94 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v93 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v94(v93, v201);
v95 = *((_DWORD *)this + 72);
v96 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v95 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v96(v95, v201);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 72) + 80))(*((_DWORD *)this + 72), 1056964608);
v97 = *((_DWORD *)this + 74);
v98 = *((const cocos2d::CCPoint **)this + 69);
v99 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v97 + 92);
v100 = v67 - 23.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v199, v100, (float)((float)(v79 * 0.5) + 23.0) + 2.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v201, v98);
v99(v97, v201);
v101 = *((_DWORD *)this + 78);
v102 = *((const cocos2d::CCPoint **)this + 69);
v103 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v101 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v199, v100, (float)(v68 - 23.0) - 1.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v201, v102);
v103(v101, v201);
v104 = *((_DWORD *)this + 76);
v105 = *(void (__fastcall **)(int, int))(*(_DWORD *)v104 + 92);
v106 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 74) + 96))(*((_DWORD *)this + 74));
v105(v104, v106);
v107 = *((_DWORD *)this + 77);
v108 = *(void (__fastcall **)(int, int))(*(_DWORD *)v107 + 92);
v109 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 74) + 96))(*((_DWORD *)this + 74));
v108(v107, v109);
}
if ( a9 )
v152 = "ncs_small_001.png";
else
v152 = "ncs_med_001.png";
v153 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v152, v110);
v154 = *(_DWORD *)this;
*((_DWORD *)this + 85) = v153;
(*(void (__fastcall **)(CustomSongWidget *, int))(v154 + 228))(this, v153);
if ( a9 )
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 85) + 80))(*((_DWORD *)this + 85), 1066192077);
v155 = *((_DWORD *)this + 85);
v156 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v155 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v201, 0.0, 0.5);
v156(v155, v201);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 85) + 172))(*((_DWORD *)this + 85), 0);
CustomSongWidget::positionInfoObjects(this);
v157 = *((_DWORD *)this + 75);
v158 = *(void (__fastcall **)(int, int))(*(_DWORD *)v157 + 92);
v159 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 74) + 96))(*((_DWORD *)this + 74));
v158(v157, v159);
v160 = *((_DWORD *)this + 80);
v161 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v160 + 92);
v162 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 74) + 96))(*((_DWORD *)this + 74));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v180, 1.0, -2.0);
cocos2d::CCPoint::operator+(v201, v162, v180);
v161(v160, v201);
CustomSongWidget::updateProgressBar(this, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 83) + 172))(*((_DWORD *)this + 83), 0);
if ( a2 )
updated = (MusicDownloadManager *)CustomSongWidget::updateSongObject(this, a2);
else
updated = (MusicDownloadManager *)CustomSongWidget::updateSongInfo(this);
v164 = (MusicDownloadManager *)MusicDownloadManager::sharedState(updated);
v165 = (MusicDownloadManager *)MusicDownloadManager::addMusicDownloadDelegate(
v164,
(CustomSongWidget *)((char *)this + 264));
v168 = *((_DWORD *)this + 90);
if ( v168 )
{
v169 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v165);
if ( MusicDownloadManager::isRunningActionForSongID(v169, *((_DWORD *)this + 90)) )
CustomSongWidget::startMonitorDownload(this);
}
CustomSongWidget::updatePlaybackBtn((int)this, v166, v167, v168);
}
return v172;
}