//
// PauseLayer::customSetup from 0x7d8098 to 0x7d97f8 (5984 bytes)
//
// 2 xrefs:
// > ??> @ 0xbf440
// > ??> @ 0x1438078
//
// 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:54:22 +0000
//
__int64 __fastcall PauseLayer::customSetup(PauseLayer *this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x0
cocos2d::CCLayer *WinSize; // x0
__int64 v5; // x0
cocos2d::CCDirector *v6; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *ScreenRight; // x0
float v9; // s0
float v10; // s9
cocos2d::CCDirector *v11; // x0
cocos2d::CCDirector *ScreenLeft; // x0
float v13; // s0
float v14; // s9
cocos2d::CCDirector *v15; // x0
cocos2d::CCDirector *ScreenTop; // x0
float v17; // s0
float v18; // s8
cocos2d::CCDirector *v19; // x0
float v20; // s0
float v21; // s8
__int64 v22; // x28
void (__fastcall *v23)(__int64, __int64 *); // x23
GameManager *v24; // x0
__int64 v25; // x0
const char *v26; // x2
__int64 v27; // x1
cocos2d::CCLabelBMFont *v28; // x0
__int64 v29; // x20
float v30; // s8
void (__fastcall *v31)(__int64, __int64 *); // x23
cocos2d::CCMenu *v32; // x0
cocos2d::CCMenu *v33; // x23
const char *v34; // x1
GameManager *v35; // x20
GameManager *v36; // x0
const char *v37; // x1
__int64 v38; // x0
unsigned __int64 v39; // x0
__int64 v40; // x24
void (__fastcall *v41)(__int64, float); // x25
float v42; // s10
float *v43; // x0
__int64 v44; // x0
GameManager *v45; // x0
const char *v46; // x1
const char *v47; // x1
__int64 v48; // x0
PauseLayer *v49; // x2
__int64 (__fastcall *v50)(PauseLayer *, cocos2d::CCObject *); // x3
const char *v51; // x1
__int64 v52; // x0
const char *v53; // x1
__int64 v54; // x0
__int64 v55; // x0
GameManager *v56; // x0
float v57; // s0
__int64 (__fastcall *v58)(cocos2d::CCMenu *, __int64 *); // x20
float *v59; // x0
GameManager *v60; // x0
GameManager *v61; // x0
float v62; // s9
unsigned int v63; // w20
GameManager *v64; // x0
GameManager *v65; // x0
const char *v66; // x1
int v67; // w28
cocos2d::CCSprite *v68; // x0
cocos2d::CCObject *v69; // x24
__int64 v70; // x2
__int64 (__fastcall *v71)(cocos2d::CCObject *, __int64 *); // x28
GameManager *v72; // x0
__int64 v73; // x24
cocos2d::CCMenu *v74; // x0
cocos2d::CCMenuItem *v75; // x1
__int64 v76; // x0
cocos2d::CCDirector **v77; // x24
void (__fastcall *v78)(cocos2d::CCDirector **, float, float); // x25
cocos2d::CCDirector *v79; // x0
cocos2d::CCDirector *v80; // x0
float v81; // s0
float v82; // s9
cocos2d::CCDirector *v83; // x0
float v84; // s0
Slider *v85; // x0
__int64 v86; // x24
__int64 (__fastcall *v87)(__int64, __int64 *); // x25
FMODAudioEngine *v88; // x0
Slider *v89; // x24
FMODAudioEngine *v90; // x0
float BackgroundMusicVolume; // s0
Slider *v92; // x0
__int64 v93; // x24
__int64 (__fastcall *v94)(__int64, __int64 *); // x25
FMODAudioEngine *v95; // x0
Slider *v96; // x20
FMODAudioEngine *v97; // x0
float EffectsVolume; // s0
GameManager *v99; // x0
__int64 v100; // x20
void (__fastcall *v101)(__int64, __int64 *); // x24
__int64 v102; // x25
const char *v103; // x1
__int64 v104; // x20
__int64 (__fastcall *v105)(__int64, __int64 *); // x24
__int64 v106; // x25
GameManager *v107; // x0
unsigned int *v108; // x25
GameManager *v109; // x0
__int64 v110; // x0
cocos2d::CCObject *StartPosObjectsForCurrentMode; // x0
GameManager *v112; // x0
GameManager *v113; // x0
GameManager *v114; // x0
const char *v115; // x2
cocos2d::CCArray *v116; // x20
__int64 v117; // x0
__int64 v118; // x26
void (__fastcall *v119)(__int64, __int64 *); // x27
const char *v120; // x2
__int64 v121; // x0
const char *v122; // x1
__int64 v123; // x26
__int64 v124; // x26
const char *v125; // x1
cocos2d::CCSprite *v126; // x26
__int64 v127; // x25
void (__fastcall *v128)(__int64, __int64 *); // x26
const char *v129; // x1
__int64 v130; // x25
__int64 v131; // x25
__int64 (__fastcall *v132)(__int64, __int64 *); // x26
GameManager *v133; // x0
const char *v134; // x1
__int64 v135; // x0
const char *v136; // x1
__int64 v137; // x23
cocos2d::CCNode *v138; // x24
const cocos2d::CCPoint *v139; // x0
void (__fastcall *v140)(__int64, __int64 *); // x24
const char *v141; // x1
__int64 v142; // x23
cocos2d::CCNode *v143; // x24
const cocos2d::CCPoint *v144; // x0
void (__fastcall *v145)(__int64, __int64 *); // x24
const char *v146; // x1
__int64 v147; // x23
cocos2d::CCNode *v148; // x24
const cocos2d::CCPoint *v149; // x0
void (__fastcall *v150)(__int64, __int64 *); // x21
__int64 v152; // x0
GameManager *v153; // x0
char *v154; // x1
__int64 v155; // x0
__int64 (__fastcall *v156)(cocos2d::CCObject *, __int64 *); // x28
unsigned int v157; // w26
unsigned int v158; // w26
int v159; // w28
_BOOL4 v160; // w27
cocos2d::CCArray *v161; // x0
GameManager *v162; // x0
__int64 v163; // x0
GameStatsManager *v164; // x0
int v165; // w20
GameStatsManager *v166; // x24
const char *v167; // x0
const char *v168; // x1
cocos2d::CCObject *v169; // x24
GameManager *v170; // x0
__int64 v171; // x0
cocos2d::CCObject *v172; // x0
char *v173; // x0
int v174; // w4
void (__fastcall *v175)(cocos2d::CCObject *, __int64 *); // x2
int v176; // w4
float v177; // s10
unsigned int v178; // w20
unsigned __int8 *v179; // x0
void (__fastcall *v180)(cocos2d::CCObject *, __int64 *); // x6
float v181; // s1
float v182; // s0
GameStatsManager *v183; // x24
const char *CoinKey; // x0
unsigned __int8 hasPendingUserCoin; // w0
GameStatsManager *v186; // x24
const char *v187; // x0
unsigned __int8 hasSecretCoin; // w0
const char *v189; // x1
int v190; // w4
char *v191; // x0
GameManager *v192; // x0
const char *v193; // x1
__int64 v194; // x20
void (__fastcall *v195)(__int64, __int64 *); // x24
__int64 v196; // x0
__int64 v197; // x0
__int64 v198; // x25
__int64 v199; // x25
void (__fastcall *v200)(__int64, __int64 *); // x26
__int64 v201; // [xsp+98h] [xbp+98h]
__int64 v202; // [xsp+A0h] [xbp+A0h]
__int64 v203; // [xsp+A8h] [xbp+A8h]
int v204; // [xsp+B8h] [xbp+B8h]
int v205; // [xsp+B8h] [xbp+B8h]
int v206; // [xsp+B8h] [xbp+B8h]
_BOOL4 v207; // [xsp+C0h] [xbp+C0h]
cocos2d::CCArray *v208; // [xsp+C0h] [xbp+C0h]
cocos2d::CCRect *v209; // [xsp+C8h] [xbp+C8h]
int v210; // [xsp+C8h] [xbp+C8h]
cocos2d::CCRect *v211; // [xsp+C8h] [xbp+C8h]
__int64 v212; // [xsp+D8h] [xbp+D8h] BYREF
_BYTE v213[8]; // [xsp+E0h] [xbp+E0h] BYREF
_BYTE v214[4]; // [xsp+E8h] [xbp+E8h] BYREF
float v215; // [xsp+ECh] [xbp+ECh]
_BYTE v216[4]; // [xsp+F0h] [xbp+F0h] BYREF
float v217; // [xsp+F4h] [xbp+F4h]
_BYTE v218[8]; // [xsp+F8h] [xbp+F8h] BYREF
float v219[2]; // [xsp+100h] [xbp+100h] BYREF
__int64 v220; // [xsp+108h] [xbp+108h] BYREF
__int64 v221; // [xsp+110h] [xbp+110h] BYREF
__int64 v222; // [xsp+118h] [xbp+118h] BYREF
_BYTE v223[16]; // [xsp+120h] [xbp+120h] BYREF
__int64 v224[2]; // [xsp+130h] [xbp+130h] BYREF
__int64 v225; // [xsp+140h] [xbp+140h] BYREF
__int64 v226; // [xsp+148h] [xbp+148h]
cocos2d::CCLabelBMFont *v227; // [xsp+150h] [xbp+150h]
(*(void (__fastcall **)(PauseLayer *, void *))(*(_QWORD *)this + 1216LL))(this, &unk_1142E80);
v2 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(PauseLayer *, __int64))(*(_QWORD *)this + 1168LL))(this, 75);
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v212, v3);
v5 = cocos2d::CCLayer::create(WinSize);
*((_QWORD *)this + 79) = v5;
(*(void (__fastcall **)(PauseLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v5);
v6 = (cocos2d::CCDirector *)cocos2d::CCRect::CCRect((cocos2d::CCRect *)v223, 0.0, 0.0, 80.0, 80.0);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v7);
v10 = v9;
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight);
ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v11);
v14 = (float)(v10 - 20.0) - v13;
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft);
ScreenTop = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenTop(v15);
v18 = v17;
v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenTop);
cocos2d::CCDirector::getScreenBottom(v19);
v21 = (float)(v18 - 20.0) - v20;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v224, (const cocos2d::CCRect *)v223);
v22 = cocos2d::extension::CCScale9Sprite::create("square04_001.png", v224);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v22 + 912LL))(v22, 4294967215LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v213, v14, v21);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v22 + 320LL))(v22, v213);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 79) + 464LL))(
*((_QWORD *)this + 79),
v22,
0xFFFFFFFFLL);
v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, *(float *)&v212 * 0.5, *((float *)&v212 + 1) * 0.5);
v23(v22, v224);
v24 = (GameManager *)(*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v22 + 960LL))(v22, &unk_1142E80);
v25 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v24) + 544) + 1936LL);
v225 = 0;
v226 = 0;
v26 = (const char *)(v25 + 344);
v227 = nullptr;
if ( (*(_BYTE *)(v25 + 344) & 1) != 0 )
{
std::string::__init(&v225, *(void **)(v25 + 360), *(_QWORD *)(v25 + 352));
}
else
{
v27 = *(_QWORD *)(v25 + 352);
v225 = *(_QWORD *)v26;
v226 = v27;
v227 = *(cocos2d::CCLabelBMFont **)(v25 + 360);
}
v28 = (cocos2d::CCLabelBMFont *)((char *)&v225 + 1);
if ( (v225 & 1) != 0 )
v28 = v227;
v29 = cocos2d::CCLabelBMFont::create(v28, "bigFont.fnt", v26);
if ( (v225 & 1) != 0 )
operator delete(v227);
v30 = v21 * 0.5;
v31 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v29 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v224,
*(float *)&v212 * 0.5,
(float)(v30 + (float)(*((float *)&v212 + 1) * 0.5)) - 20.0);
v31(v29, v224);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v29);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v29 + 344LL))(v29, 1);
v32 = (cocos2d::CCMenu *)PauseLayer::setupProgressBars(this);
v33 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v32);
(*(void (__fastcall **)(_QWORD, cocos2d::CCMenu *))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v33);
v35 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_menuBtn_001.png", v34);
v36 = (GameManager *)*(unsigned int *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v35) + 544) + 1936LL) + 1140LL);
if ( (_DWORD)v36 == 2
|| (v38 = GameManager::sharedState(v36),
v37 = (const char *)*(unsigned int *)(v38 + 1032),
v39 = (unsigned int)((_DWORD)v37 - *(_DWORD *)(v38 + 1036)),
(int)v39 > 0) )
{
v40 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editBtn_001.png", v37);
v41 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL);
v42 = *(float *)(*(__int64 (__fastcall **)(GameManager *))(*(_QWORD *)v35 + 328LL))(v35);
v43 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v40 + 328LL))(v40);
v41(v40, v42 / *v43);
v44 = CCMenuItemSpriteExtra::create(v40, 0, (__int64)this, (__int64)PauseLayer::onTryEdit, 0);
v39 = (*(__int64 (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v44);
}
v45 = (GameManager *)*(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState((GameManager *)v39) + 544)
+ 3272LL)
+ 341LL);
if ( (_DWORD)v45 )
{
v196 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_replayFullBtn_001.png", v46);
v197 = CCMenuItemSpriteExtra::create(v196, 0, (__int64)this, (__int64)PauseLayer::onRestartFull, 0);
v45 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v197);
}
if ( *(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v45) + 544) + 12544LL) )
{
v48 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_normalBtn_001.png", v47);
v49 = this;
v50 = PauseLayer::onNormalMode;
}
else
{
v48 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_practiceBtn_001.png", v47);
v49 = this;
v50 = PauseLayer::onPracticeMode;
}
v201 = CCMenuItemSpriteExtra::create(v48, 0, (__int64)v49, (__int64)v50, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v201);
v52 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_playBtn2_001.png", v51);
v203 = CCMenuItemSpriteExtra::create(v52, 0, (__int64)this, (__int64)PauseLayer::onResume, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v203);
v202 = CCMenuItemSpriteExtra::create((__int64)v35, 0, (__int64)this, (__int64)PauseLayer::tryQuit, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v202);
v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_replayBtn_001.png", v53);
v55 = CCMenuItemSpriteExtra::create(v54, 0, (__int64)this, (__int64)PauseLayer::onRestart, 0);
v56 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v55);
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v56) + 544) + 1936LL) + 1140LL) == 2 )
v57 = 10.0;
else
v57 = 15.0;
cocos2d::CCMenu::alignItemsHorizontallyWithPadding(v33, v57);
v58 = *(__int64 (__fastcall **)(cocos2d::CCMenu *, __int64 *))(*(_QWORD *)v33 + 184LL);
v59 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCMenu *))(*(_QWORD *)v33 + 192LL))(v33);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, *v59, (float)(*((float *)&v212 + 1) * 0.5) + -30.0);
v60 = (GameManager *)v58(v33, v224);
v61 = (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(v60) + 930);
if ( !(_DWORD)v61 )
{
v192 = (GameManager *)*(unsigned int *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v61) + 544) + 1936LL)
+ 1140LL);
if ( (_DWORD)v192 != 2
&& !*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v192) + 544) + 3272LL) + 341LL) )
{
v194 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_practiceTxt_001.png", v193);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v194);
v195 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v194 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v224,
(float)(*(float *)&v212 * 0.5) + -190.0,
(float)(*((float *)&v212 + 1) * 0.5) + -12.0);
v195(v194, v224);
}
}
v62 = v14 * 0.5;
v63 = 0;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v214,
(float)(v62 + (float)(*(float *)&v212 * 0.5)) - 26.0,
(float)(v30 + (float)(*((float *)&v212 + 1) * 0.5)) - 26.0);
v64 = (GameManager *)cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v216,
(float)(26.0 - (float)(v62 - (float)(*(float *)&v212 * 0.5))) + 0.0,
v215);
v207 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v64) + 544) + 1936LL) + 1140LL) == 2;
while ( 2 )
{
v225 = 0;
v226 = 0;
v227 = nullptr;
v65 = (GameManager *)std::string::__init(&v225, "GJ_plainBtn_001.png", 0x13u);
switch ( v63 )
{
case 1u:
std::string::assign(&v225, "sideBtn_hide_001.png");
goto LABEL_20;
case 2u:
v155 = GameManager::sharedState(v65);
if ( (unsigned __int8)GJGameLevel::isPlatformer(*(GJGameLevel **)(*(_QWORD *)(v155 + 544) + 1936LL)) )
goto LABEL_27;
std::string::assign(&v225, "sideBtn_death_001.png");
v67 = 1;
goto LABEL_21;
case 3u:
std::string::assign(&v225, "sideBtn_marker_001.png");
v67 = 1;
goto LABEL_21;
case 4u:
if ( v207
|| *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(nullptr) + 544) + 1936LL) + 1140LL) == 1 )
{
goto LABEL_27;
}
std::string::assign(&v225, "sideBtn_chat_001.png");
v67 = 1;
goto LABEL_21;
case 5u:
if ( v207 )
goto LABEL_27;
std::string::assign(&v225, "sideBtn_quests_001.png");
v67 = 1;
goto LABEL_21;
case 6u:
if ( !v207 )
goto LABEL_27;
v153 = (GameManager *)GameManager::sharedState((GameManager *)v207);
if ( (unsigned __int8)GameManager::getGameVariable(v153, "0173") )
v154 = "sideBtn_damageOff_001.png";
else
v154 = "sideBtn_damageOn_001.png";
std::string::assign(&v225, v154);
v67 = 1;
goto LABEL_21;
case 7u:
v152 = GameManager::sharedState(v65);
if ( !(unsigned __int8)GJGameLevel::isPlatformer(*(GJGameLevel **)(*(_QWORD *)(v152 + 544) + 1936LL)) )
goto LABEL_27;
std::string::assign(&v225, "sideBtn_platUI_001.png");
v67 = 1;
goto LABEL_21;
case 8u:
if ( !v207 )
goto LABEL_27;
std::string::assign(&v225, "sideBtn_time_001.png");
goto LABEL_20;
case 9u:
if ( !*(_BYTE *)(*(_QWORD *)(GameManager::sharedState(v65) + 544) + 12544LL) )
goto LABEL_27;
std::string::assign(&v225, "sideBtn_practiceUI_001.png");
LABEL_20:
v67 = 0;
LABEL_21:
v68 = (cocos2d::CCSprite *)((char *)&v225 + 1);
if ( (v225 & 1) != 0 )
v68 = v227;
v209 = (cocos2d::CCRect *)cocos2d::CCSprite::createWithSpriteFrameName(v68, (const char *)(unsigned __int8)v225);
v69 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(
(__int64)v209,
0,
(__int64)this,
(__int64)PauseLayer::onSideButtonPressed,
0);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v69 + 72LL))(v69, v63);
(*(void (__fastcall **)(cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v33 + 456LL))(v33, v69);
v70 = *(_QWORD *)v69;
if ( v67 )
{
v71 = *(__int64 (__fastcall **)(cocos2d::CCObject *, __int64 *))(v70 + 184);
cocos2d::CCNode::convertToNodeSpace(v224, v33, (const cocos2d::CCPoint *)v216);
v72 = (GameManager *)v71(v69, v224);
v217 = v217 - 34.0;
}
else
{
v156 = *(__int64 (__fastcall **)(cocos2d::CCObject *, __int64 *))(v70 + 184);
cocos2d::CCNode::convertToNodeSpace(v224, v33, (const cocos2d::CCPoint *)v214);
v72 = (GameManager *)v156(v69, v224);
v215 = v215 - 34.0;
}
if ( v63 == 5 )
{
*((_QWORD *)this + 83) = v209;
PauseLayer::checkQuestsStatus(this);
}
else if ( v63 == 8 && *(float *)(*(_QWORD *)(GameManager::sharedState(v72) + 544) + 13112LL) != 1.0 )
{
PauseLayer::onSideButtonPressed(this, v69);
}
LABEL_27:
if ( (v225 & 1) != 0 )
operator delete(v227);
if ( ++v63 != 10 )
continue;
v73 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"hideBtn_001.png", v66);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v73 + 912LL))(v73, 0);
v74 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(
v73,
0,
(__int64)this,
(__int64)PauseLayer::onToggleUI,
0);
v76 = cocos2d::CCMenu::createWithItem(v74, v75);
*((_QWORD *)this + 82) = v76;
(*(void (__fastcall **)(PauseLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v76, 100);
v77 = *((cocos2d::CCDirector ***)this + 82);
v78 = *((void (__fastcall **)(cocos2d::CCDirector **, float, float))*v77 + 25);
v79 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v77);
v80 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v79);
v82 = v81;
v83 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v80);
cocos2d::CCDirector::getScreenTop(v83);
v78(v77, v82 - 17.0, v84 - 15.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 82) + 344LL))(*((_QWORD *)this + 82), 0);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v218,
*(float *)&v212 * 0.5,
(float)(*((float *)&v212 + 1) * 0.5) + -90.0);
v85 = (Slider *)Slider::create((int)this, (int)PauseLayer::musicSliderChanged, 0, 0.7);
*((_QWORD *)this + 80) = v85;
Slider::setBarVisibility(v85);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 79) + 456LL))(
*((_QWORD *)this + 79),
*((_QWORD *)this + 80));
v86 = *((_QWORD *)this + 80);
v87 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v86 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, -100.0, 0.0);
cocos2d::CCPoint::operator+(v224, v218);
v88 = (FMODAudioEngine *)v87(v86, v224);
v89 = *((Slider **)this + 80);
v90 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v88);
BackgroundMusicVolume = FMODAudioEngine::getBackgroundMusicVolume(v90);
Slider::setValue(v89, BackgroundMusicVolume);
v92 = (Slider *)Slider::create((int)this, (int)PauseLayer::sfxSliderChanged, 0, 0.7);
*((_QWORD *)this + 81) = v92;
Slider::setBarVisibility(v92);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 79) + 456LL))(
*((_QWORD *)this + 79),
*((_QWORD *)this + 81));
v93 = *((_QWORD *)this + 81);
v94 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v93 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 100.0, 0.0);
cocos2d::CCPoint::operator+(v224, v218);
v95 = (FMODAudioEngine *)v94(v93, v224);
v96 = *((Slider **)this + 81);
v97 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v95);
EffectsVolume = FMODAudioEngine::getEffectsVolume(v97);
v99 = (GameManager *)Slider::setValue(v96, EffectsVolume);
*(_QWORD *)(GameManager::sharedState(v99) + 952) = (char *)this + 576;
v100 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"gj_songIcon_001.png",
(const char *)this + 576);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v100 + 160LL))(v100, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v100);
v101 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v100 + 184LL);
v102 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 80) + 192LL))(*((_QWORD *)this + 80));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, -90.0, 0.0);
cocos2d::CCPoint::operator+(v224, v102);
v101(v100, v224);
v104 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sfxIcon_001.png", v103);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v104 + 160LL))(v104, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v104);
v105 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v104 + 184LL);
v106 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 81) + 192LL))(*((_QWORD *)this + 81));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, -90.0, 0.0);
cocos2d::CCPoint::operator+(v224, v106);
v107 = (GameManager *)v105(v104, v224);
v108 = *(unsigned int **)(*(_QWORD *)(GameManager::sharedState(v107) + 544) + 1936LL);
v109 = (GameManager *)v108[241];
v210 = (int)v109;
if ( (int)v109 <= 0
|| (v109 = (GameManager *)*(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState(v109) + 544) + 12544LL),
(_DWORD)v109)
|| (v157 = v108[285], v157 == 2) )
{
v110 = GameManager::sharedState(v109);
StartPosObjectsForCurrentMode = (cocos2d::CCObject *)GJBaseGameLayer::getStartPosObjectsForCurrentMode(*(GJBaseGameLayer **)(v110 + 544));
*((_QWORD *)this + 76) = StartPosObjectsForCurrentMode;
cocos2d::CCObject::retain(StartPosObjectsForCurrentMode);
v112 = (GameManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 76));
if ( (_DWORD)v112 )
goto LABEL_33;
goto LABEL_71;
}
v158 = v157 != 1;
v159 = 1;
v160 = v108[242] - v108[243] == 1;
v161 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v222,
*(float *)&v212 * 0.5,
23.0 - (float)(v30 - (float)(*((float *)&v212 + 1) * 0.5)));
v208 = (cocos2d::CCArray *)cocos2d::CCArray::create(v161);
v162 = (GameManager *)"gjCoinUI_02_off_001.png";
break;
default:
std::string::assign(&v225, "sideBtn_options_001.png");
goto LABEL_20;
}
break;
}
do
{
while ( 1 )
{
v163 = GameManager::sharedState(v162);
v164 = (GameStatsManager *)GJBaseGameLayer::didPickupItem(*(GJBaseGameLayer **)(v163 + 544), v159);
v165 = (unsigned __int8)v164;
if ( !v158 )
break;
if ( !v160 )
{
v183 = (GameStatsManager *)GameStatsManager::sharedState(v164);
CoinKey = (const char *)GJGameLevel::getCoinKey((GJGameLevel *)v108, v159);
hasPendingUserCoin = GameStatsManager::hasPendingUserCoin(v183, CoinKey);
if ( hasPendingUserCoin )
{
v205 = hasPendingUserCoin;
v169 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"gjCoinUI_02_collected_001.png",
v168);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v169 + 160LL))(v169, 1.1);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 79) + 464LL))(
*((_QWORD *)this + 79),
v169,
8);
cocos2d::CCArray::addObject(v208, v169);
v174 = v205;
}
else
{
LABEL_73:
if ( v165 )
v173 = "gjCoinUI_02_on_001.png";
else
v173 = "gjCoinUI_02_off_001.png";
v169 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v173, v168);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v169 + 160LL))(v169, 1.1);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 79) + 464LL))(
*((_QWORD *)this + 79),
v169,
8);
cocos2d::CCArray::addObject(v208, v169);
if ( v158 <= v160 )
{
if ( v165 )
goto LABEL_69;
goto LABEL_91;
}
v174 = 0;
}
v204 = v174;
v175 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v169 + 960LL);
LOWORD(v224[0]) = -20481;
BYTE2(v224[0]) = 75;
v175(v169, v224);
v176 = v204;
goto LABEL_78;
}
v166 = (GameStatsManager *)GameStatsManager::sharedState(v164);
v167 = (const char *)GJGameLevel::getCoinKey((GJGameLevel *)v108, v159);
if ( !(unsigned __int8)GameStatsManager::hasUserCoin(v166, v167) )
goto LABEL_73;
v169 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"gjCoinUI_02_collected_001.png",
v168);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v169 + 160LL))(v169, 1.1);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 79) + 464LL))(
*((_QWORD *)this + 79),
v169,
8);
cocos2d::CCArray::addObject(v208, v169);
if ( !v165 )
goto LABEL_80;
LABEL_69:
v162 = (GameManager *)(unsigned int)v210;
if ( v210 < ++v159 )
goto LABEL_70;
}
v186 = (GameStatsManager *)GameStatsManager::sharedState(v164);
v187 = (const char *)GJGameLevel::getCoinKey((GJGameLevel *)v108, v159);
hasSecretCoin = GameStatsManager::hasSecretCoin(v186, v187);
v190 = hasSecretCoin;
if ( hasSecretCoin )
{
v191 = "gjCoinUI_01_collected_001.png";
}
else if ( v165 )
{
v191 = "gjCoinUI_01_on_001.png";
}
else
{
v191 = "gjCoinUI_01_off_001.png";
}
v206 = v190;
v169 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v191, v189);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v169 + 160LL))(v169, 1.1);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 79) + 464LL))(
*((_QWORD *)this + 79),
v169,
8);
cocos2d::CCArray::addObject(v208, v169);
v176 = v206;
LABEL_78:
if ( v165 )
goto LABEL_69;
if ( v176 )
{
LABEL_80:
if ( v158 <= v160 )
{
v177 = 0.5;
LOBYTE(v178) = 125;
LABEL_82:
v178 = (unsigned __int8)v178;
goto LABEL_83;
}
v178 = 150;
v177 = 0.25;
goto LABEL_83;
}
LABEL_91:
if ( v158 <= v160 )
{
v177 = 0.75;
LOBYTE(v178) = -65;
goto LABEL_82;
}
v178 = 191;
v177 = 0.375;
LABEL_83:
++v159;
v179 = (unsigned __int8 *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v169 + 944LL))(v169);
v180 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v169 + 960LL);
v181 = (float)v179[2] * v177;
v182 = (float)*v179 * v177;
BYTE1(v224[0]) = (unsigned int)(float)((float)v179[1] * v177);
BYTE2(v224[0]) = (unsigned int)v181;
LOBYTE(v224[0]) = (unsigned int)v182;
v180(v169, v224);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v169 + 912LL))(v169, v178);
v162 = (GameManager *)(unsigned int)v210;
}
while ( v210 >= v159 );
LABEL_70:
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, (const cocos2d::CCPoint *)&v222);
v170 = (GameManager *)GameToolbox::alignItemsHorisontally((__int64)v208, (__int64)v224, 0, 20.0);
v171 = GameManager::sharedState(v170);
v172 = (cocos2d::CCObject *)GJBaseGameLayer::getStartPosObjectsForCurrentMode(*(GJBaseGameLayer **)(v171 + 544));
*((_QWORD *)this + 76) = v172;
cocos2d::CCObject::retain(v172);
v112 = (GameManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 76));
if ( (_DWORD)v112 )
goto LABEL_33;
LABEL_71:
v135 = *(unsigned int *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v112) + 544) + 1936LL) + 1140LL);
if ( (_DWORD)v135 != 2 )
goto LABEL_38;
LABEL_33:
v113 = (GameManager *)cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v219,
*(float *)&v212 * 0.5,
17.0 - (float)(v30 - (float)(*((float *)&v212 + 1) * 0.5)));
v114 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v113) + 544) + 12432LL);
if ( v114 )
{
v116 = *((cocos2d::CCArray **)this + 76);
v117 = GameManager::sharedState(v114);
LODWORD(v114) = cocos2d::CCArray::indexOfObject(v116, *(cocos2d::CCObject **)(*(_QWORD *)(v117 + 544) + 12432LL))
+ 1;
}
*((_DWORD *)this + 150) = (_DWORD)v114;
v118 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"StartPos:", "goldFont.fnt", v115);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v118 + 160LL))(v118, 0.5);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v118);
v119 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v118 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, v219[0] - 130.0, v219[1] + 1.0);
v119(v118, v224);
v121 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"StartPos", "bigFont.fnt", v120);
*((_QWORD *)this + 74) = v121;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v121);
(*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 74) + 184LL))(*((_QWORD *)this + 74), v219);
v123 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v122);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v123 + 160LL))(v123, 0.55);
v124 = CCMenuItemSpriteExtra::create(v123, 0, (__int64)this, (__int64)PauseLayer::onChangeStartpos, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v124);
v211 = *(cocos2d::CCRect **)(*(_QWORD *)v124 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, -75.0, 0.0);
cocos2d::CCPoint::operator+(&v222, v219);
cocos2d::CCNode::convertToNodeSpace(v224, v33, (const cocos2d::CCPoint *)&v222);
((void (__fastcall *)(__int64, __int64 *))v211)(v124, v224);
CCMenuItemSpriteExtra::setSizeMult(v124, 1.6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v124 + 72LL))(v124, 0xFFFFFFFFLL);
v126 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v125);
cocos2d::CCSprite::setFlipX(v126, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v126 + 160LL))(v126, 0.55);
v127 = CCMenuItemSpriteExtra::create((__int64)v126, 0, (__int64)this, (__int64)PauseLayer::onChangeStartpos, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v127);
v128 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v127 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 75.0, 0.0);
cocos2d::CCPoint::operator+(&v222, v219);
cocos2d::CCNode::convertToNodeSpace(v224, v33, (const cocos2d::CCPoint *)&v222);
v128(v127, v224);
CCMenuItemSpriteExtra::setSizeMult(v127, 1.6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v127 + 72LL))(v127, 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v224, 110.0, 0.0);
cocos2d::CCPoint::operator+(&v220, v219);
v130 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_menuBtn_001.png", v129);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v130 + 160LL))(v130, 0.385);
v131 = CCMenuItemSpriteExtra::create(v130, 0, (__int64)this, (__int64)PauseLayer::onShowStartposBrowser, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v131);
v132 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v131 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v222, &v220);
cocos2d::CCNode::convertToNodeSpace(v224, v33, (const cocos2d::CCPoint *)&v222);
v133 = (GameManager *)v132(v131, v224);
if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v133) + 544) + 1936LL) + 1140LL) == 2 )
{
v198 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_plusBtn_001.png", v134);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v198 + 160LL))(v198, 0.495);
v199 = CCMenuItemSpriteExtra::create(v198, 0, (__int64)this, (__int64)PauseLayer::onCreateStartpos, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)v33 + 456LL))(v33, v199);
v200 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v199 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v221, 30.0, 0.0);
cocos2d::CCPoint::operator+(&v222, &v220);
cocos2d::CCNode::convertToNodeSpace(v224, v33, (const cocos2d::CCPoint *)&v222);
v200(v199, v224);
}
v135 = PauseLayer::onChangeStartpos((cocos2d::CCArray **)this, nullptr);
*((_BYTE *)this + 616) = 0;
LABEL_38:
if ( (unsigned __int8)PlatformToolbox::isControllerConnected((PlatformToolbox *)v135) )
{
v137 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_Start_001.png", v136);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v137);
v138 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v203 + 512LL))(v203);
v139 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v203 + 192LL))(v203);
cocos2d::CCNode::convertToWorldSpace(v224, v138, v139);
cocos2d::CCNode::convertToNodeSpace(&v221, this, (const cocos2d::CCPoint *)v224);
v140 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v137 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -37.0);
cocos2d::CCPoint::operator+(v224, &v221);
v140(v137, v224);
v142 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_B_001.png", v141);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v142);
v143 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v202 + 512LL))(v202);
v144 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v202 + 192LL))(v202);
cocos2d::CCNode::convertToWorldSpace(&v222, v143, v144);
cocos2d::CCNode::convertToNodeSpace(v224, this, (const cocos2d::CCPoint *)&v222);
cocos2d::CCPoint::operator=(&v221, v224);
v145 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v142 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -30.0);
cocos2d::CCPoint::operator+(v224, &v221);
v145(v142, v224);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v142 + 160LL))(v142, 0.8);
v147 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"controllerBtn_X_001.png", v146);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 79) + 456LL))(*((_QWORD *)this + 79), v147);
v148 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v201 + 512LL))(v201);
v149 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v201 + 192LL))(v201);
cocos2d::CCNode::convertToWorldSpace(&v222, v148, v149);
cocos2d::CCNode::convertToNodeSpace(v224, this, (const cocos2d::CCPoint *)&v222);
cocos2d::CCPoint::operator=(&v221, v224);
v150 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v147 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v222, 0.0, -30.0);
cocos2d::CCPoint::operator+(v224, &v221);
v150(v147, v224);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v147 + 160LL))(v147, 0.8);
}
return _stack_chk_guard;
}