//
// CustomSFXWidget::init from 0xb5f1b0 to 0xb60660 (5296 bytes)
//
// 2 xrefs:
// > CustomSFXWidget::create @ 0xb607c0
// > ??> @ 0xcbf08
//
// 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 13:02:12 +0000
//
__int64 __fastcall CustomSFXWidget::init(
CustomSFXWidget *this,
SFXInfoObject *a2,
CustomSFXDelegate *a3,
char a4,
char a5,
char a6,
unsigned __int8 a7,
unsigned __int8 a8,
bool a9,
bool a10)
{
unsigned int v11; // w21
int v16; // w25
unsigned __int8 v17; // w0
CustomSFXDelegate *v18; // x2
unsigned int v19; // w24
SFXInfoObject *v21; // x1
unsigned __int64 v22; // x0
MusicDownloadManager *v23; // x0
__int64 CustomSFXObject; // x0
char v25; // w2
cocos2d::CCDirector *v26; // x0
__int64 v27; // x0
int v28; // w20
int v29; // w26
__int64 v30; // x0
unsigned __int64 v31; // x0
__int64 v32; // x27
float v33; // s8
_QWORD *v34; // x0
cocos2d::CCDirector *v35; // x0
__int64 v36; // x0
cocos2d::CCTouchDispatcher *v37; // x0
const char *v38; // x2
const char *v39; // x2
__int64 v40; // x0
void *v41; // x1
const char *v42; // x2
__int64 v43; // x0
void (__fastcall *v44)(__int64, __int64 *); // x2
__int64 v45; // x21
void (__fastcall *v46)(__int64, __int64 *); // x28
__int64 v47; // x21
void (__fastcall *v48)(__int64, __int64 *); // x28
__int64 v49; // x21
void (__fastcall *v50)(__int64, __int64 *); // x28
__int64 v51; // x28
float v52; // s9
__int64 v53; // x28
__int64 v54; // x28
const char *v55; // x1
float v56; // s8
__int64 v57; // x28
__int64 v58; // x0
const char *v59; // x1
__int64 v60; // x28
__int64 v61; // x0
const char *v62; // x1
__int64 v63; // x28
__int64 v64; // x0
const char *v65; // x1
__int64 v66; // x28
__int64 v67; // x0
const char *v68; // x1
__int64 v69; // x0
__int64 v70; // x0
const char *v71; // x1
__int64 v72; // x0
float v73; // s13
__int64 v74; // x0
__int64 v75; // x0
const char *v76; // x1
__int64 v77; // x3
__int64 v78; // x1
__int64 v79; // x0
void (__fastcall *v80)(__int64, float); // x28
float v81; // s8
__int64 v82; // x0
__int64 v83; // x0
__int64 v84; // x28
__int64 v85; // x0
__int64 v86; // x0
long double v87; // q0
const char *v88; // x1
__int64 v89; // x0
const char *v90; // x1
__int64 v91; // x0
__int64 v92; // x0
long double v93; // q0
__int64 v94; // x20
void (__fastcall *v95)(__int64, _BYTE *); // x25
__int64 v96; // x20
void (__fastcall *v97)(__int64, _BYTE *); // x25
__int64 v98; // x20
void (__fastcall *v99)(__int64, _BYTE *); // x25
__int64 v100; // x0
MusicDownloadManager *updated; // x0
cocos2d::CCArray **v102; // x0
MusicDownloadManager *v103; // x0
__int64 v104; // x0
char *v105; // x21
void (__fastcall *v106)(__int64, __int64 *); // x21
__int64 v107; // x0
__int64 v108; // x25
__int64 v109; // x25
float v110; // s0
void (__fastcall *v111)(__int64, __int64 *); // x28
const char *v112; // x1
cocos2d::CCSprite *v113; // x25
long double v114; // q0
__int64 v115; // x25
void (__fastcall *v116)(__int64, __int64 *); // x28
__int64 v117; // x25
void (__fastcall *v118)(__int64, __int64 *); // x28
float v119; // s0
cocos2d::CCDirector **v120; // x21
void (__fastcall *v121)(cocos2d::CCDirector **, _QWORD); // x28
__int64 v122; // x0
__int64 v123; // x0
__int64 v124; // x0
long double v125; // q0
__int64 v126; // x0
MusicDownloadManager *v127; // x0
__int64 v128; // x25
void (__fastcall *v129)(__int64, __int64 *); // x28
void (__fastcall *v130)(__int64, __int64 *); // x2
const char *v131; // x1
char *v132; // x0
__int64 v133; // x0
__int64 v134; // x28
long double v135; // q0
__int64 v136; // x0
__int64 v137; // x25
void (__fastcall *v138)(__int64, __int64 *); // x28
__int64 v139; // x28
long double v140; // q0
__int64 v141; // x0
int v142; // [xsp+A4h] [xbp+A4h]
cocos2d::CCNode *v143; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v144; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v145; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v146; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v147; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v148; // [xsp+A8h] [xbp+A8h]
void (__fastcall *v149)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
__int64 v150; // [xsp+B0h] [xbp+B0h]
__int64 v151; // [xsp+B0h] [xbp+B0h]
__int64 v152; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v153)(cocos2d::CCNode *, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v154)(cocos2d::CCNode *, __int64 *); // [xsp+B0h] [xbp+B0h]
float v155; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v156)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h]
__int64 v157; // [xsp+B0h] [xbp+B0h]
void (__fastcall *v158)(cocos2d::CCNode *, __int64 *); // [xsp+B0h] [xbp+B0h]
void (__fastcall *v159)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
__int64 v160; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v161)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
__int64 v162; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v163)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v164)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v165)(__int64, __int64); // [xsp+C0h] [xbp+C0h]
__int64 v166; // [xsp+C0h] [xbp+C0h]
__int64 v167; // [xsp+C0h] [xbp+C0h]
__int64 v168; // [xsp+C0h] [xbp+C0h]
__int64 v169; // [xsp+C0h] [xbp+C0h]
__int64 v170; // [xsp+C0h] [xbp+C0h]
void (__fastcall *v171)(__int64, __int64 *); // [xsp+C0h] [xbp+C0h]
void (__fastcall *v172)(__int64, __int64); // [xsp+C0h] [xbp+C0h]
__int64 v173; // [xsp+C0h] [xbp+C0h]
__int64 v174; // [xsp+C0h] [xbp+C0h]
__int64 v175; // [xsp+C0h] [xbp+C0h]
cocos2d::CCNode *v177; // [xsp+C8h] [xbp+C8h]
unsigned int v178; // [xsp+C8h] [xbp+C8h]
int v179; // [xsp+C8h] [xbp+C8h]
cocos2d::CCNode *v180; // [xsp+C8h] [xbp+C8h]
cocos2d::CCNode *v181; // [xsp+C8h] [xbp+C8h]
cocos2d::CCNode *v182; // [xsp+C8h] [xbp+C8h]
__int64 v183; // [xsp+D0h] [xbp+D0h] BYREF
_BYTE v184[8]; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v185; // [xsp+E0h] [xbp+E0h] BYREF
int v186; // [xsp+E8h] [xbp+E8h]
int v187; // [xsp+ECh] [xbp+ECh]
__int64 v188; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v189; // [xsp+F8h] [xbp+F8h]
void *v190; // [xsp+100h] [xbp+100h]
v11 = a7;
v16 = a8;
v17 = cocos2d::CCNode::init(this);
v18 = a3;
v19 = v17;
if ( !v17 )
return v19;
v21 = *((SFXInfoObject **)this + 42);
if ( a2 != v21 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v21 = *((SFXInfoObject **)this + 42);
v18 = a3;
}
if ( v21 )
{
v177 = v18;
cocos2d::CCObject::release(v21);
v18 = v177;
}
*((_QWORD *)this + 42) = a2;
v21 = a2;
}
v22 = a10;
*((_QWORD *)this + 60) = v18;
*((_BYTE *)this + 488) = a4;
*((_BYTE *)this + 489) = a5;
*((_BYTE *)this + 490) = a6;
*((_BYTE *)this + 492) = v16;
*((_BYTE *)this + 494) = a10;
if ( !v21 )
goto LABEL_62;
v22 = *((unsigned int *)v21 + 19);
if ( (int)v22 > 0 )
{
v23 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v22);
CustomSFXObject = MusicDownloadManager::getCustomSFXObject(v23, *(_DWORD *)(*((_QWORD *)this + 42) + 76LL));
v21 = *((SFXInfoObject **)this + 42);
v25 = 0;
v22 = v21 == (SFXInfoObject *)CustomSFXObject;
v178 = v22;
if ( !a9 || !v21 )
goto LABEL_15;
goto LABEL_13;
}
if ( !a9 )
{
LABEL_62:
v178 = 0;
v25 = 0;
goto LABEL_15;
}
v178 = 0;
LABEL_13:
v22 = *((unsigned __int8 *)v21 + 72);
v25 = 0;
if ( !*((_BYTE *)v21 + 72) )
{
v22 = v178;
v25 = v178 | (*((_DWORD *)v21 + 19) == 0);
}
LABEL_15:
*((_BYTE *)this + 493) = v25;
v26 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v22);
cocos2d::CCDirector::getWinSize(&v183, v26);
v27 = *((_QWORD *)this + 42);
if ( v27 )
{
v28 = *(_DWORD *)(v27 + 56);
v29 = *(unsigned __int8 *)(v27 + 72);
if ( v28 > 0 )
{
v30 = *((_QWORD *)this + 60);
if ( v30 )
{
if ( v28 == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v30 + 8LL))(v30)
&& (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 60) + 16LL))(*((_QWORD *)this + 60)) == *(_DWORD *)(*((_QWORD *)this + 42) + 76LL) )
{
if ( (v16 ^ 1u) <= v11 )
{
v31 = 1;
v142 = 1;
v32 = 0;
if ( !v29 )
goto LABEL_58;
LABEL_22:
v33 = 50.0;
goto LABEL_23;
}
v188 = 0;
v189 = 0;
v142 = 1;
v190 = nullptr;
std::string::__init(&v188, "GJ_square01.png", 0xFu);
LABEL_104:
std::string::assign(&v188, "GJ_square06.png");
goto LABEL_64;
}
}
}
v31 = v16 ^ 1u;
if ( v11 >= (unsigned int)v31 )
{
v142 = 0;
v32 = 0;
goto LABEL_21;
}
v188 = 0;
v189 = 0;
v142 = 0;
v190 = nullptr;
std::string::__init(&v188, "GJ_square01.png", 0xFu);
if ( v29 )
goto LABEL_104;
}
else
{
v31 = v16 ^ 1u;
if ( v11 >= (unsigned int)v31 )
{
v142 = 0;
v29 = 0;
v32 = 0;
goto LABEL_58;
}
v188 = 0;
v189 = 0;
v29 = 0;
v142 = 0;
v190 = nullptr;
std::string::__init(&v188, "GJ_square01.png", 0xFu);
}
LABEL_64:
v105 = (char *)&v188 + 1;
if ( (v188 & 1) != 0 )
v105 = (char *)v190;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v185, 0.0, 0.0, 80.0, 80.0);
v32 = cocos2d::extension::CCScale9Sprite::create(v105, &v185);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v32 + 912LL))(v32, 0xFFFFFFFFLL);
v106 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v185, 320.0, 50.0);
v106(v32, &v185);
(*(void (__fastcall **)(CustomSFXWidget *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v32, 4294967294LL);
v31 = (unsigned __int8)v188;
if ( (v188 & 1) != 0 )
{
operator delete(v190);
if ( v29 )
goto LABEL_22;
goto LABEL_58;
}
LABEL_21:
if ( v29 )
goto LABEL_22;
LABEL_58:
v33 = 0.0;
LABEL_23:
v34 = CustomSFXRowMenu::create((CustomSFXRowMenu *)v31);
*((_QWORD *)this + 43) = v34;
v35 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(CustomSFXWidget *, _QWORD *))(*(_QWORD *)this + 456LL))(
this,
v34);
v36 = cocos2d::CCDirector::sharedDirector(v35);
v37 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v36 + 160LL))(v36);
if ( (unsigned __int8)cocos2d::CCTouchDispatcher::isUsingForcePrio(v37) )
{
v120 = *((cocos2d::CCDirector ***)this + 43);
v121 = *((void (__fastcall **)(cocos2d::CCDirector **, _QWORD))*v120 + 128);
v122 = cocos2d::CCDirector::sharedDirector(*v120);
v123 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v122 + 160LL))(v122);
v121(v120, (unsigned int)(*(_DWORD *)(v123 + 128) - 1));
}
*((_QWORD *)this + 44) = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"SFX Title", "bigFont.fnt", v38);
v40 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"SFX ID", "chatFont.fnt", v39);
*((_QWORD *)this + 45) = v40;
v41 = &unk_1190340;
if ( !v29 )
v41 = &unk_1190348;
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v40 + 1072LL))(v40, v41);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 45) + 1024LL))(*((_QWORD *)this + 45), 4294967240LL);
v43 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Error", "bigFont.fnt", v42);
*((_QWORD *)this + 46) = v43;
v44 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 1072LL);
LOWORD(v185) = 13055;
BYTE2(v185) = 25;
v44(v43, &v185);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 46) + 344LL))(*((_QWORD *)this + 46), 0);
(*(void (__fastcall **)(CustomSFXWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 44));
(*(void (__fastcall **)(CustomSFXWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 45));
(*(void (__fastcall **)(CustomSFXWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 46));
v45 = *((_QWORD *)this + 44);
v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 0.0, 0.5);
v46(v45, &v185);
v47 = *((_QWORD *)this + 46);
v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 0.0, 0.5);
v48(v47, &v185);
v49 = *((_QWORD *)this + 45);
v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, 0.0, 0.5);
v50(v49, &v185);
v51 = *((_QWORD *)this + 44);
if ( v16 )
{
v52 = -20.0;
v171 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, -160.0, 0.0);
v171(v51, &v185);
v56 = 0.4;
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 45) + 160LL))(*((_QWORD *)this + 45), 0.4);
}
else
{
v52 = -28.0;
v159 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, v33 - 150.0, 9.0);
v159(v51, &v185);
v53 = *((_QWORD *)this + 46);
v149 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL);
v160 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 192LL))(*((_QWORD *)this + 44));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 1.0, -18.0);
cocos2d::CCPoint::operator+(&v185, v160);
v149(v53, &v185);
v54 = *((_QWORD *)this + 45);
v161 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v185, v33 - 149.0, -9.0);
v161(v54, &v185);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 45) + 160LL))(*((_QWORD *)this + 45), 0.5);
v56 = 0.585;
}
v57 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadBtn_001.png", v55);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v57 + 160LL))(v57, v56);
v58 = CCMenuItemSpriteExtra::create(v57, 0, (__int64)this, (__int64)CustomSFXWidget::onDownload, 0);
*((_QWORD *)this + 47) = v58;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v58);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 47), 1.1);
v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_cancelDownloadBtn_001.png", v59);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v60 + 160LL))(v60, v56);
v61 = CCMenuItemSpriteExtra::create(v60, 0, (__int64)this, (__int64)CustomSFXWidget::onCancelDownload, 0);
*((_QWORD *)this + 48) = v61;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v61);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 48), 1.1);
v63 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_trashBtn_001.png", v62);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v63 + 160LL))(v63, v56);
v64 = CCMenuItemSpriteExtra::create(v63, 0, (__int64)this, (__int64)CustomSFXWidget::onDelete, 0);
*((_QWORD *)this + 51) = v64;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v64);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 51), 1.2);
v66 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_selectSongBtn_001.png", v65);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v66 + 160LL))(v66, v56);
v67 = CCMenuItemSpriteExtra::create(v66, 0, (__int64)this, (__int64)CustomSFXWidget::onSelect, 0);
*((_QWORD *)this + 49) = v67;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v67);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 49), 1.2);
v162 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playMusicBtn_001.png", v68);
(*(void (__fastcall **)(float))(*(_QWORD *)v162 + 160LL))(v56);
v69 = CCMenuItemSpriteExtra::create(v162, 0, (__int64)this, (__int64)CustomSFXWidget::onPlayback, 0);
*((_QWORD *)this + 50) = v69;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v69);
v150 = *((_QWORD *)this + 47);
v143 = *((cocos2d::CCNode **)this + 43);
v163 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v150 + 184LL);
if ( v16 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 155.0, 0.0);
cocos2d::CCNode::convertToNodeSpace(&v185, v143, (const cocos2d::CCPoint *)v184);
v163(v150, &v185);
v157 = *((_QWORD *)this + 50);
v172 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v157 + 184LL);
v104 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
v172(v157, v104);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 141.0, 0.0);
cocos2d::CCNode::convertToNodeSpace(&v185, v143, (const cocos2d::CCPoint *)v184);
v163(v150, &v185);
v151 = *((_QWORD *)this + 50);
v144 = *((cocos2d::CCNode **)this + 43);
v164 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v151 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 141.0, 1.0);
cocos2d::CCNode::convertToNodeSpace(&v185, v144, (const cocos2d::CCPoint *)v184);
v164(v151, &v185);
}
v152 = *((_QWORD *)this + 48);
v165 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v152 + 184LL);
v70 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
v165(v152, v70);
v145 = *((cocos2d::CCNode **)this + 51);
v153 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v145 + 184LL);
v166 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v52 + v52, 0.0);
cocos2d::CCPoint::operator+(&v185, v166);
v153(v145, &v185);
v146 = *((cocos2d::CCNode **)this + 49);
v154 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v146 + 184LL);
v167 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v52, 0.0);
cocos2d::CCPoint::operator+(&v185, v167);
v154(v146, &v185);
if ( !v29 )
{
v72 = *((_QWORD *)this + 60);
if ( v72 )
{
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v72 + 72LL))(v72) )
{
v168 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v71);
v147 = *(cocos2d::CCNode **)(*(_QWORD *)v168 + 160LL);
v73 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 45) + 328LL))(*((_QWORD *)this + 45))
+ 4);
v155 = COERCE_FLOAT(COERCE_UNSIGNED_INT128(((long double (__fastcall *)(_QWORD))*(_QWORD *)(**((_QWORD **)this + 45)
+ 168LL))(*((_QWORD *)this + 45))));
v74 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 328LL))(v168);
((void (__fastcall *)(__int64, float))v147)(v168, (float)((float)(v73 * v155) * 1.4) / *(float *)(v74 + 4));
v75 = CCMenuItemSpriteExtra::create(v168, 0, (__int64)this, (__int64)CustomSFXWidget::onShowInfo, 0);
*((_QWORD *)this + 56) = v75;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v75);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 56), 1.4);
}
}
}
if ( *((_BYTE *)this + 493) )
{
v124 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOff_001.png", v71);
LODWORD(v125) = 1053609165;
if ( !v16 )
LODWORD(v125) = 1061410570;
v173 = v124;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v124 + 160LL))(v124, v125);
v126 = CCMenuItemSpriteExtra::create(v173, 0, (__int64)this, (__int64)CustomSFXWidget::onToggleFavorite, 0);
*((_QWORD *)this + 52) = v126;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v126);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 52), 1.2);
v148 = *((cocos2d::CCNode **)this + 52);
v158 = *(void (__fastcall **)(cocos2d::CCNode *, __int64 *))(*(_QWORD *)v148 + 184LL);
v174 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v52 + v52, 0.0);
cocos2d::CCPoint::operator+(&v185, v174);
v158(v148, &v185);
}
if ( *((_BYTE *)this + 494) && *((_QWORD *)this + 42) )
{
if ( !v178 )
{
if ( !v29 )
{
v139 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v71);
if ( v16 )
LODWORD(v140) = 1050253722;
else
LODWORD(v140) = 1056796836;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v139 + 160LL))(v139, v140);
v141 = CCMenuItemSpriteExtra::create(v139, 0, (__int64)this, (__int64)CustomSFXWidget::onAddToFolder, 0);
*((_QWORD *)this + 53) = v141;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v141);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 53), 1.2);
v117 = *((_QWORD *)this + 53);
v118 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v117 + 184LL);
v182 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
v119 = v52 * 3.0;
LABEL_78:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v119, 0.0);
cocos2d::CCPoint::operator+(&v185, v182);
v118(v117, &v185);
goto LABEL_45;
}
LABEL_70:
v107 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"folderIcon_001.png", v71);
v108 = v107;
if ( *((_BYTE *)this + 492) )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v107 + 160LL))(v107, 0.5);
v109 = CCMenuItemSpriteExtra::create(v108, 0, (__int64)this, (__int64)CustomSFXWidget::onSelect, 0);
CCMenuItemSpriteExtra::setSizeMult(v109, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v109);
if ( *((_BYTE *)this + 492) )
v110 = -150.0;
else
v110 = -130.0;
v180 = *((cocos2d::CCNode **)this + 43);
v111 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v109 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, v110, 2.0);
cocos2d::CCNode::convertToNodeSpace(&v185, v180, (const cocos2d::CCPoint *)v184);
v111(v109, &v185);
v113 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v112);
cocos2d::CCSprite::setFlipX(v113, 1);
LODWORD(v114) = 1053609165;
if ( !*((_BYTE *)this + 492) )
LODWORD(v114) = 1061997773;
(*(void (__fastcall **)(cocos2d::CCSprite *, long double))(*(_QWORD *)v113 + 160LL))(v113, v114);
v115 = CCMenuItemSpriteExtra::create((__int64)v113, 0, (__int64)this, (__int64)CustomSFXWidget::onSelect, 0);
CCMenuItemSpriteExtra::setSizeMult(v115, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v115);
v116 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v115 + 184LL);
v181 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 0.0, 1.0);
cocos2d::CCPoint::operator+(&v185, v181);
v116(v115, &v185);
if ( !*((_BYTE *)this + 492) )
goto LABEL_45;
v117 = *((_QWORD *)this + 44);
v118 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v117 + 184LL);
v182 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v117 + 192LL))(v117);
v119 = 28.0;
goto LABEL_78;
}
if ( *((_BYTE *)this + 493) )
v76 = (_BYTE *)(&dword_0 + 3);
else
v76 = (_BYTE *)(&dword_0 + 2);
v179 = (int)v76;
v77 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"sideBtn_options_001.png", v76);
v78 = *(_QWORD *)v66;
v79 = v66;
v169 = v77;
v80 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v77 + 160LL);
v81 = v56 * *(float *)((*(__int64 (__fastcall **)(__int64))(v78 + 328))(v79) + 4);
v82 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v169 + 328LL))(v169);
v80(v169, v81 / *(float *)(v82 + 4));
v83 = CCMenuItemSpriteExtra::create(v169, 0, (__int64)this, (__int64)CustomSFXWidget::onEditCustom, 0);
*((_QWORD *)this + 54) = v83;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v83);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 54), 1.2);
v84 = *((_QWORD *)this + 54);
v156 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v84 + 184LL);
v170 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)v179 * v52, 0.0);
cocos2d::CCPoint::operator+(&v185, v170);
v156(v84, &v185);
v85 = *((_QWORD *)this + 60);
if ( v85 && (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v85 + 64LL))(v85) )
{
if ( (*(unsigned __int8 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 60) + 56LL))(
*((_QWORD *)this + 60),
*(unsigned int *)(*((_QWORD *)this + 42) + 76LL)) )
{
v132 = "GJ_checkOn_001.png";
}
else
{
v132 = "GJ_checkOff_001.png";
}
v133 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v132, v131);
v134 = v133;
LODWORD(v135) = 1053609165;
if ( !v16 )
LODWORD(v135) = 1059481190;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v133 + 160LL))(v133, v135);
v136 = CCMenuItemSpriteExtra::create(v134, 0, (__int64)this, (__int64)CustomSFXWidget::onToggleSelect, 0);
*((_QWORD *)this + 55) = v136;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 43) + 456LL))(*((_QWORD *)this + 43), v136);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 55), 1.2);
v137 = *((_QWORD *)this + 55);
v138 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v137 + 184LL);
v175 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 47) + 192LL))(*((_QWORD *)this + 47));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (float)(v179 + 1) * v52, 0.0);
cocos2d::CCPoint::operator+(&v185, v175);
v138(v137, &v185);
}
}
if ( v29 )
goto LABEL_70;
LABEL_45:
v86 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v71);
*((_QWORD *)this + 59) = v86;
if ( *((_BYTE *)this + 492) )
LODWORD(v87) = 1057803469;
else
LODWORD(v87) = 1060320051;
(*(void (__fastcall **)(__int64, long double))(*(_QWORD *)v86 + 160LL))(v86, v87);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 59) + 912LL))(*((_QWORD *)this + 59), 4294967190LL);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 59) + 344LL))(*((_QWORD *)this + 59), 0);
(*(void (__fastcall **)(CustomSFXWidget *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 59));
if ( v32 && (v29 || v142) )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v185, 0.0, 0.0, 80.0, 80.0);
v128 = cocos2d::extension::CCScale9Sprite::create("GJ_square07.png", &v185);
v129 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v128 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v185, 320.0, 50.0);
v129(v128, &v185);
(*(void (__fastcall **)(CustomSFXWidget *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v128, 0xFFFFFFFFLL);
v130 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 960LL);
if ( v29 )
{
LOWORD(v185) = -28202;
BYTE2(v185) = 96;
}
else
{
LOWORD(v185) = -19713;
BYTE2(v185) = 61;
}
v130(v32, &v185);
}
v89 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove.png", v88);
*((_QWORD *)this + 57) = v89;
(*(void (__fastcall **)(CustomSFXWidget *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v89, 3);
v91 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v90);
*((_QWORD *)this + 58) = v91;
v185 = 0x260100002601LL;
v186 = 10497;
v187 = 10497;
v92 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v91 + 1072LL))(v91);
*(__n128 *)&v93 = cocos2d::CCTexture2D::setTexParameters(v92, &v185);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64, long double))(**((_QWORD **)this + 57) + 464LL))(
*((_QWORD *)this + 57),
*((_QWORD *)this + 58),
0xFFFFFFFFLL,
v93);
v94 = *((_QWORD *)this + 58);
v95 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v94 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 0.0, 0.0);
v95(v94, v184);
v96 = *((_QWORD *)this + 58);
v97 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v96 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 2.0, 4.0);
v97(v96, v184);
v98 = *((_QWORD *)this + 57);
v99 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v98 + 184LL);
v100 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 46) + 192LL))(*((_QWORD *)this + 46));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, 0.0, *(float *)(v100 + 4));
v99(v98, v184);
(*(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.4);
CustomSFXWidget::updateProgressBar(this, 0);
CustomSFXWidget::hideLoadingArt(this);
if ( a2 )
updated = (MusicDownloadManager *)CustomSFXWidget::updateSFXObject(this, a2);
else
updated = (MusicDownloadManager *)CustomSFXWidget::updateSFXInfo(this);
v102 = (cocos2d::CCArray **)MusicDownloadManager::sharedState(updated);
MusicDownloadManager::addMusicDownloadDelegate(v102, (CustomSFXWidget *)((char *)this + 320));
v103 = (MusicDownloadManager *)*((unsigned int *)this + 124);
if ( (_DWORD)v103 )
{
v127 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v103);
if ( MusicDownloadManager::isRunningActionForSongID(v127, (const char *)*((unsigned int *)this + 124)) )
CustomSFXWidget::startMonitorDownload(this);
}
CustomSFXWidget::updatePlaybackBtn(this);
return v19;
}