//
// CreatorLayer::init from 0x7dcad4 to 0x7dd80c (3384 bytes)
//
// 3 xrefs:
// > CreatorLayer::create @ 0x7dd8cc
// > ??> @ 0x49870
// > ??> @ 0x14399a0
//
// 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:24 +0000
//
__int64 __fastcall CreatorLayer::init(CreatorLayer *this)
{
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x0
cocos2d::CCDirector *v5; // x0
const char *v6; // x1
float *v7; // x19
void (__fastcall *v8)(float *, __int64 *); // x22
void (__fastcall *v9)(float *, __int64 *); // x21
__int64 (__fastcall *v10)(float *, __int64 *); // x2
cocos2d::CCMenu *v11; // x0
cocos2d::CCNode *v12; // x26
const char *v13; // x1
__int64 v14; // x0
float v15; // s10
float v16; // s2
float v17; // s8
int v18; // w19
const char *v19; // x1
int v20; // w27
__int64 (__fastcall *v21)(cocos2d::CCDirector **, cocos2d::CCObject *); // x21
cocos2d::CCSprite *v22; // x0
cocos2d::CCSprite *v23; // x22
__int64 v24; // x21
__int64 (__fastcall *v25)(__int64, __int64 *); // x28
GameManager *v26; // x0
GameManager *v27; // x0
GameManager *v28; // x0
GameLevelManager *v29; // x0
GameManager *v30; // x0
const char *v31; // x1
cocos2d::CCDirector **v32; // x20
void (__fastcall *v33)(cocos2d::CCDirector **, __int64 *); // x21
void (__fastcall *v34)(cocos2d::CCDirector **, __int64 *); // x21
cocos2d::CCDirector *v35; // x0
cocos2d::CCDirector *ScreenLeft; // x0
float v37; // s0
float v38; // s9
cocos2d::CCDirector *v39; // x0
float v40; // s0
const char *v41; // x1
cocos2d::CCDirector **v42; // x20
void (__fastcall *v43)(cocos2d::CCDirector **, __int64 *); // x21
void (__fastcall *v44)(cocos2d::CCDirector **, __int64 *); // x21
cocos2d::CCDirector *v45; // x0
cocos2d::CCDirector *ScreenRight; // x0
float v47; // s0
float v48; // s9
cocos2d::CCDirector *v49; // x0
float v50; // s0
const char *v51; // x1
cocos2d::CCDirector **v52; // x20
void (__fastcall *v53)(cocos2d::CCDirector **, __int64 *); // x21
void (__fastcall *v54)(cocos2d::CCDirector **, __int64 *); // x21
cocos2d::CCDirector *v55; // x0
cocos2d::CCDirector *v56; // x0
float v57; // s0
float v58; // s9
cocos2d::CCDirector *v59; // x0
float v60; // s0
const char *v61; // x1
cocos2d::CCDirector **v62; // x19
void (__fastcall *v63)(cocos2d::CCDirector **, __int64 *); // x20
void (__fastcall *v64)(cocos2d::CCDirector **, __int64 *); // x20
cocos2d::CCDirector *v65; // x0
cocos2d::CCDirector *v66; // x0
float v67; // s0
float v68; // s9
cocos2d::CCDirector *v69; // x0
float v70; // s0
GameStatsManager *v71; // x0
GameStatsManager *v72; // x0
const char *v73; // x1
_BOOL4 v74; // w20
char *v75; // x0
__int64 v76; // x21
__int64 v77; // x19
void (__fastcall *v78)(__int64, __int64 *); // x22
GameManager *v79; // x0
GameManager *v80; // x0
const char *v81; // x1
char *v82; // x0
__int64 v83; // x0
_BYTE *v84; // x19
void (__fastcall *v85)(_BYTE *, __int64 *); // x20
const char *v86; // x1
__int64 v87; // x0
cocos2d::CCMenu *v88; // x20
cocos2d::CCDirector **v89; // x19
__int64 (__fastcall *v90)(cocos2d::CCDirector **, __int64 *); // x21
cocos2d::CCDirector *v91; // x0
cocos2d::CCDirector *v92; // x0
float v93; // s0
float v94; // s9
cocos2d::CCDirector *v95; // x0
float v96; // s0
GameManager *v97; // x0
GameManager *v98; // x0
PlatformToolbox *v99; // x0
unsigned __int64 isControllerConnected; // x0
cocos2d::CCMenuItem *v101; // x2
__int64 v102; // x0
int v103; // w1
GameLevelManager *v104; // x0
GameLevelManager *v105; // x0
const char *v106; // x1
size_t v107; // x0
float v108; // s0
void (__fastcall *v109)(cocos2d::CCSprite *, __int64 *, float); // x3
GameManager *v110; // x0
GameManager *v111; // x0
GameLevelManager *v112; // x0
GameLevelManager *v113; // x0
GameLevelManager *v114; // x0
__int64 v115; // x0
const char *v116; // x1
__int64 v117; // x20
void (__fastcall *v118)(__int64, __int64 *); // x27
cocos2d::CCString *v119; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v121; // x2
__int64 v122; // x20
void (__fastcall *v123)(__int64, __int64 *); // x21
unsigned __int8 v124; // [xsp+A7h] [xbp+A7h]
int v125; // [xsp+B0h] [xbp+B0h]
char *v126; // [xsp+B0h] [xbp+B0h]
float v127; // [xsp+B0h] [xbp+B0h]
__int64 v128; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v129; // [xsp+C8h] [xbp+C8h] BYREF
_BYTE v130[8]; // [xsp+D0h] [xbp+D0h] BYREF
_BYTE v131[8]; // [xsp+D8h] [xbp+D8h] BYREF
__int64 v132; // [xsp+E0h] [xbp+E0h] BYREF
__int64 v133[2]; // [xsp+E8h] [xbp+E8h] BYREF
void *v134; // [xsp+F8h] [xbp+F8h]
__int64 v135[2]; // [xsp+100h] [xbp+100h] BYREF
void *v136; // [xsp+110h] [xbp+110h]
v124 = cocos2d::CCLayer::init(this);
if ( v124 )
{
v3 = (GameManager *)GameManager::sharedState((GameManager *)v124);
*((_DWORD *)v3 + 241) = -1;
*(_DWORD *)(GameManager::sharedState(v3) + 968) = -1;
(*(void (__fastcall **)(CreatorLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1);
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(CreatorLayer *, __int64))(*(_QWORD *)this + 1088LL))(this, 1);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize(&v128, v5);
v7 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_gradientBG.png", v6);
v8 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v7 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, 0.0, 0.0);
v8(v7, &v132);
(*(void (__fastcall **)(CreatorLayer *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v7, 4294967294LL);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v7 + 128LL))(v7, (float)(*(float *)&v128 + 10.0) / v7[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v7 + 144LL))(
v7,
(float)(*((float *)&v128 + 1) + 10.0) / v7[109]);
v9 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v7 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, -5.0, -5.0);
v9(v7, &v132);
v10 = *(__int64 (__fastcall **)(float *, __int64 *))(*(_QWORD *)v7 + 960LL);
LOWORD(v132) = 26112;
BYTE2(v132) = -1;
v11 = (cocos2d::CCMenu *)v10(v7, &v132);
v12 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v11);
(*(void (__fastcall **)(CreatorLayer *, cocos2d::CCNode *))(*(_QWORD *)this + 456LL))(this, v12);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_searchBtn_001.png", v13);
v15 = 0.8;
v16 = (float)(*(float *)&v128 - 100.0) / (float)((float)(*(float *)(v14 + 432) * 0.8) + 360.0);
if ( v16 > 0.9 )
{
if ( v16 < 1.0 )
{
v15 = v16 * 0.8;
v17 = v16 * 90.0;
}
else
{
v17 = 90.0;
}
}
else
{
v17 = 81.0;
v15 = 0.72;
}
v18 = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, *(float *)&v128 * 0.5, *((float *)&v128 + 1) * 0.5);
cocos2d::CCNode::convertToNodeSpace(&v129, v12, (const cocos2d::CCPoint *)&v132);
while ( 2 )
{
v133[0] = 0;
v133[1] = 0;
v134 = nullptr;
switch ( v18 )
{
case 1:
std::string::assign(v133, "GJ_savedBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onSavedLevels;
goto LABEL_8;
case 2:
std::string::assign(v133, "GJ_highscoreBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onLeaderboards;
goto LABEL_8;
case 3:
std::string::assign(v133, "GJ_challengeBtn_001.png");
v125 = 0;
v20 = 1;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onChallenge;
goto LABEL_8;
case 4:
std::string::assign(v133, "GJ_versusBtn_001.png");
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onMultiplayer;
goto LABEL_49;
case 5:
std::string::assign(v133, "GJ_mapBtn_001.png");
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onAdventureMap;
LABEL_49:
v106 = (char *)v133 + 1;
if ( (v133[0] & 1) != 0 )
v106 = (const char *)v134;
v126 = (char *)v106;
v135[0] = 0;
v135[1] = 0;
v136 = nullptr;
v107 = strlen(v106);
std::string::__init(v135, v126, v107);
v23 = CCSpriteGrayscale::createWithSpriteFrameName((char *)v135);
if ( (v135[0] & 1) != 0 )
operator delete(v136);
v108 = CCSpriteWithHue::setEvenLuminance(v23, 1.0);
v109 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *, float))(*(_QWORD *)v23 + 960LL);
LOWORD(v132) = -20561;
BYTE2(v132) = -81;
v109(v23, &v132, v108);
v125 = 0;
v20 = 0;
goto LABEL_11;
case 6:
std::string::assign(v133, "GJ_dailyBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onDailyLevel;
goto LABEL_8;
case 7:
std::string::assign(v133, "GJ_weeklyBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onWeeklyLevel;
goto LABEL_8;
case 8:
std::string::assign(v133, "GJ_eventBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onEventLevel;
goto LABEL_8;
case 9:
std::string::assign(v133, "GJ_gauntletsBtn_001.png");
v125 = 0;
v20 = 0;
v21 = CreatorLayer::onGauntlets;
goto LABEL_8;
case 10:
std::string::assign(v133, "GJ_featuredBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onFeaturedLevels;
goto LABEL_8;
case 11:
std::string::assign(v133, "GJ_listsBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onTopLists;
goto LABEL_8;
case 12:
std::string::assign(v133, "GJ_pathsBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onPaths;
goto LABEL_8;
case 13:
std::string::assign(v133, "GJ_mapPacksBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onMapPacks;
if ( (v133[0] & 1) == 0 )
goto LABEL_40;
goto LABEL_9;
case 14:
std::string::assign(v133, "GJ_searchBtn_001.png");
v20 = 0;
v125 = 1;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onOnlineLevels;
goto LABEL_8;
default:
std::string::assign(v133, "GJ_createBtn_001.png");
v125 = 0;
v20 = 0;
v21 = (__int64 (__fastcall *)(cocos2d::CCDirector **, cocos2d::CCObject *))CreatorLayer::onMyLevels;
LABEL_8:
if ( (v133[0] & 1) != 0 )
LABEL_9:
v22 = (cocos2d::CCSprite *)v134;
else
LABEL_40:
v22 = (cocos2d::CCSprite *)((char *)v133 + 1);
v23 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v22, v19);
LABEL_11:
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v23 + 160LL))(v23, v15);
v24 = CCMenuItemSpriteExtra::create((__int64)v23, 0, (__int64)this, (__int64)v21, 0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v12 + 456LL))(v12, v24);
v25 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v131,
-(float)((float)(v17 * 0.5) - (float)((float)((float)(v18 % 5) - 1.5) * v17)),
(float)-(float)(floorf((float)v18 / 5.0) - 1.0) * v17);
cocos2d::CCPoint::operator+(&v132, &v129);
v26 = (GameManager *)v25(v24, &v132);
if ( v20 )
{
*((_QWORD *)this + 55) = v23;
v26 = (GameManager *)CreatorLayer::checkQuestsStatus(this);
}
switch ( v18 )
{
case 6:
*((_QWORD *)this + 56) = v23;
break;
case 7:
*((_QWORD *)this + 57) = v23;
break;
case 8:
*((_QWORD *)this + 58) = v23;
break;
case 9:
*((_QWORD *)this + 59) = v23;
break;
}
v27 = (GameManager *)GameManager::sharedState(v26);
v28 = (GameManager *)(unsigned __int8)GameManager::offlineModeEnabled(v27);
if ( (_BYTE)v28 )
{
if ( v18 != 12 && v18 != 3 && (unsigned int)v18 > 1 )
goto LABEL_21;
}
else
{
v110 = (GameManager *)GameManager::sharedState(v28);
if ( (unsigned __int8)GameManager::onlyCuratedLevels(v110) && (v125 || v18 == 11) )
{
LABEL_21:
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 1056LL))(v24, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 344LL))(v24, 0);
}
}
if ( (v133[0] & 1) != 0 )
operator delete(v134);
if ( ++v18 != 15 )
continue;
v29 = (GameLevelManager *)CreatorLayer::checkTimedStatus(this);
v30 = (GameManager *)*(unsigned __int8 *)(GameLevelManager::sharedState(v29) + 912);
if ( !(_DWORD)v30 )
{
v111 = (GameManager *)GameManager::sharedState(v30);
v112 = (GameLevelManager *)(unsigned __int8)GameManager::offlineModeEnabled(v111);
if ( !(_BYTE)v112 )
{
v113 = (GameLevelManager *)GameLevelManager::sharedState(v112);
*((_QWORD *)v113 + 180) = (char *)this + 424;
v114 = (GameLevelManager *)GameLevelManager::sharedState(v113);
GameLevelManager::getGJContentStatus(v114);
}
}
v32 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v31);
v33 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v32 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, 0.0, 0.0);
v33(v32, &v132);
v34 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v32 + 23);
v35 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v32);
ScreenLeft = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v35);
v38 = v37;
v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenLeft);
cocos2d::CCDirector::getScreenBottom(v39);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, v38 - 1.0, v40 - 1.0);
v34(v32, &v132);
(*(void (__fastcall **)(CreatorLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(
this,
v32,
1);
v42 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v41);
v43 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v42 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, 1.0, 0.0);
v43(v42, &v132);
v44 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v42 + 23);
v45 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v42);
ScreenRight = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v45);
v48 = v47;
v49 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(ScreenRight);
cocos2d::CCDirector::getScreenBottom(v49);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, v48 + 1.0, v50 - 1.0);
v44(v42, &v132);
cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v42, 1);
v52 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v51);
v53 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v52 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, 0.0, 1.0);
v53(v52, &v132);
v54 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v52 + 23);
v55 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v52);
v56 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v55);
v58 = v57;
v59 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v56);
cocos2d::CCDirector::getScreenTop(v59);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, v58 - 1.0, v60 + 1.0);
v54(v52, &v132);
cocos2d::CCSprite::setFlipY((cocos2d::CCSprite *)v52, 1);
(*(void (__fastcall **)(CreatorLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(
this,
v52,
0xFFFFFFFFLL);
v62 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_sideArt_001.png",
v61);
v63 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v62 + 37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, 1.0, 1.0);
v63(v62, &v132);
v64 = *((void (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v62 + 23);
v65 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v62);
v66 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenRight(v65);
v68 = v67;
v69 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v66);
cocos2d::CCDirector::getScreenTop(v69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, v68 + 1.0, v70 + 1.0);
v64(v62, &v132);
cocos2d::CCSprite::setFlipY((cocos2d::CCSprite *)v62, 1);
v71 = (GameStatsManager *)cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v62, 1);
v72 = (GameStatsManager *)GameStatsManager::sharedState(v71);
v74 = (int)GameStatsManager::getStat(v72, "13") > 49;
if ( v74 )
v75 = "GJ_lock_open_001.png";
else
v75 = "GJ_lockGray_001.png";
v76 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v75, v73);
v77 = CCMenuItemSpriteExtra::create(v76, 0, (__int64)this, (__int64)CreatorLayer::onSecretVault, 0);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v12 + 456LL))(v12, v77);
v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131, *(float *)&v128 - 22.0, *((float *)&v128 + 1) - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v132, v12, (const cocos2d::CCPoint *)v131);
v78(v77, &v132);
if ( !v74 )
{
v127 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v77 + 328LL))(v77) * 0.5;
v115 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v77 + 328LL))(v77);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v130, v127, (float)(*(float *)(v115 + 4) * 0.5) + -22.0);
v117 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_diamondsIcon_001.png", v116);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v76 + 456LL))(v76, v117);
v118 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v117 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131, 9.0, -1.0);
cocos2d::CCPoint::operator+(&v132, v130);
v118(v117, &v132);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v117 + 160LL))(v117, 0.7);
v119 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)&dword_30 + 2);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v119);
v122 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v121);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v76 + 456LL))(v76, v122);
v123 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v122 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131, -8.5, 0.0);
cocos2d::CCPoint::operator+(&v132, v130);
v123(v122, &v132);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v122 + 160LL))(v122, 0.4);
}
v79 = (GameManager *)CCMenuItemSpriteExtra::setSizeMult(v77, 2.0);
v80 = (GameManager *)GameManager::sharedState(v79);
if ( (unsigned __int8)GameManager::getUGV(v80, "5") )
v82 = "secretDoorBtn_open_001.png";
else
v82 = "secretDoorBtn_closed_001.png";
v83 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v82, v81);
*((_QWORD *)this + 54) = v83;
v84 = (_BYTE *)CCMenuItemSpriteExtra::create(v83, 0, (__int64)this, (__int64)CreatorLayer::onTreasureRoom, 0);
v84[408] = 0;
v84[409] = 1;
(*(void (__fastcall **)(cocos2d::CCNode *, _BYTE *))(*(_QWORD *)v12 + 456LL))(v12, v84);
v85 = *(void (__fastcall **)(_BYTE *, __int64 *))(*(_QWORD *)v84 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131, *(float *)&v128 - 22.0, 24.0);
cocos2d::CCNode::convertToNodeSpace(&v132, v12, (const cocos2d::CCPoint *)v131);
v85(v84, &v132);
CCMenuItemSpriteExtra::setSizeMult((__int64)v84, 1.2);
v87 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v86);
v88 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(
v87,
0,
(__int64)this,
(__int64)CreatorLayer::onBack,
0);
CCMenuItemSpriteExtra::setSizeMult((__int64)v88, 1.6);
v89 = (cocos2d::CCDirector **)cocos2d::CCMenu::create(v88, nullptr);
(*(void (__fastcall **)(CreatorLayer *, cocos2d::CCDirector **, __int64))(*(_QWORD *)this + 464LL))(
this,
v89,
1);
v90 = *((__int64 (__fastcall **)(cocos2d::CCDirector **, __int64 *))*v89 + 23);
v91 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v89);
v92 = (cocos2d::CCDirector *)cocos2d::CCDirector::getScreenLeft(v91);
v94 = v93;
v95 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v92);
cocos2d::CCDirector::getScreenTop(v95);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v132, v94 + 24.0, v96 - 23.0);
v97 = (GameManager *)v90(v89, &v132);
v98 = (GameManager *)GameManager::sharedState(v97);
*((_DWORD *)v98 + 241) = 0;
v99 = (PlatformToolbox *)GameManager::sharedState(v98);
*((_DWORD *)v99 + 242) = 0;
isControllerConnected = (unsigned __int8)PlatformToolbox::isControllerConnected(v99);
if ( (_BYTE)isControllerConnected )
isControllerConnected = GameToolbox::addBackButton(this, v88, v101);
v102 = GameManager::sharedState((GameManager *)isControllerConnected);
v103 = *(_DWORD *)(v102 + 660);
v104 = (GameLevelManager *)*(unsigned int *)(v102 + 664);
if ( v103 == (_DWORD)v104 )
{
v105 = (GameLevelManager *)GameLevelManager::sharedState(v104);
GameLevelManager::updateUserScore(v105);
}
break;
}
break;
}
}
return v124;
}