//
// PlayLayer::setupHasCompleted from 0x707868 to 0x7085bc (3412 bytes)
//
// 2 xrefs:
// > PlayLayer::processCreateObjectsFromSetup @ 0x708d48
// > ??> @ 0x87628
//
// 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:52:07 +0000
//
__int64 __fastcall PlayLayer::setupHasCompleted(PlayLayer *this)
{
cocos2d::CCDirector *v2; // x0
GameLevelManager *started; // x0
GameLevelManager *v4; // x0
size_t v5; // x1
__int64 *v6; // x0
const void *v7; // x1
size_t v8; // x2
char v9; // w0
__int64 v10; // x4
unsigned __int64 v11; // x1
__int64 v12; // x3
int v13; // w2
unsigned __int64 v14; // x3
int v15; // w0
__int64 v16; // x0
size_t v17; // x1
__int64 ColorAction; // x0
_BYTE *v19; // x2
char v20; // w4
char v21; // w3
__int64 v22; // x0
_BYTE *v23; // x1
char v24; // w3
char v25; // w2
__int64 v26; // x0
GameManager *v27; // x0
GameManager *v28; // x20
__int64 v29; // x0
int *v30; // x3
int v31; // w1
unsigned __int8 *v32; // x2
int v33; // w3
__int64 v34; // x0
float v35; // s4
float v36; // s2
void (__fastcall *v37)(__int64, __int64 *); // x2
__int64 v38; // x0
void (__fastcall *v39)(__int64, __int64 *); // x2
FMODAudioEngine *v40; // x0
__int64 v41; // x20
FMODAudioEngine *v42; // x0
int v43; // w1
FMODAudioEngine *v44; // x0
MusicDownloadManager *v45; // x0
FMODAudioEngine *v46; // x0
FMODAudioEngine *v47; // x0
int v48; // w1
__int64 v49; // x0
char v50; // w1
GameManager *v51; // x0
GameManager *v52; // x20
__int64 v53; // x0
const char *FontFile; // x0
const char *v55; // x2
__int64 v56; // x0
const char *v57; // x2
__int64 v58; // x0
__int64 v59; // x27
void (__fastcall *v60)(__int64, __int64 *); // x28
__int64 v61; // x27
void (__fastcall *v62)(__int64, __int64 *); // x28
float v63; // s10
const char *v64; // x1
__int64 v65; // x0
const char *v66; // x1
__int64 v67; // x0
float v68; // s0
__int64 v69; // x0
_BYTE *v70; // x2
__int64 v71; // x0
char v72; // w5
char v73; // w4
void (__fastcall *v74)(__int64, _BYTE *); // x3
__int64 v75; // x24
void (__fastcall *v76)(__int64, _BYTE *); // x25
__int64 v77; // x24
void (__fastcall *v78)(__int64, _BYTE *); // x25
__int64 v79; // x24
void (__fastcall *v80)(__int64, _BYTE *); // x25
const char *v81; // x2
__int64 v82; // x0
__int64 v83; // x24
void (__fastcall *v84)(__int64, _BYTE *); // x25
__int64 v85; // x24
void (__fastcall *v86)(__int64, _BYTE *); // x25
__int64 v87; // x0
__int64 v88; // x0
LevelSettingsObject *v89; // x1
GameManager *v90; // x0
GameManager *v91; // x0
ObjectToolbox *GameVariable; // x0
ObjectToolbox *v93; // x0
const char *v94; // x0
size_t v95; // x0
int v96; // w1
__int64 v97; // x0
__int64 v98; // x25
__int64 v99; // x24
void (__fastcall *v100)(__int64, __int64 *); // x25
__int64 v101; // x22
void (__fastcall *v102)(__int64, _BYTE *); // x24
const cocos2d::CCPoint *v103; // x0
__int64 v104; // x22
void (__fastcall *v105)(__int64, _BYTE *); // x24
cocos2d::CCDelayTime *v106; // x0
cocos2d::CCSequence *v107; // x20
cocos2d::CCFiniteTimeAction *v108; // x0
cocos2d::CCAction *v109; // x0
__int64 v111; // x0
cocos2d::CCDelayTime *v112; // x0
cocos2d::CCSequence *v113; // x25
cocos2d::CCFiniteTimeAction *v114; // x0
cocos2d::CCAction *v115; // x0
__int64 v116; // x0
int v117; // [xsp+88h] [xbp+88h]
char *v118; // [xsp+88h] [xbp+88h]
__int64 v119; // [xsp+98h] [xbp+98h] BYREF
_BYTE v120[8]; // [xsp+A0h] [xbp+A0h] BYREF
_BYTE v121[8]; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v122; // [xsp+B0h] [xbp+B0h] BYREF
float v123; // [xsp+B8h] [xbp+B8h]
int v124; // [xsp+BCh] [xbp+BCh]
__int64 v125; // [xsp+C0h] [xbp+C0h] BYREF
size_t v126; // [xsp+C8h] [xbp+C8h]
void *v127; // [xsp+D0h] [xbp+D0h]
__int64 v128; // [xsp+D8h] [xbp+D8h] BYREF
size_t v129; // [xsp+E0h] [xbp+E0h]
void *v130; // [xsp+E8h] [xbp+E8h]
__int64 v131; // [xsp+F0h] [xbp+F0h] BYREF
size_t v132; // [xsp+F8h] [xbp+F8h]
void *v133; // [xsp+100h] [xbp+100h]
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v119, v2);
GJBaseGameLayer::createTextLayers(this);
GJBaseGameLayer::updateSpecialGroupData(this);
PlayLayer::optimizeColorGroups((cocos2d::CCArray **)this);
PlayLayer::optimizeOpacityGroups((cocos2d::CCArray **)this);
PlayLayer::scanDynamicSaveObjects(this);
PlayLayer::scanActiveSaveObjects(this);
started = (GameLevelManager *)GJBaseGameLayer::processStartPosObjects(this);
v4 = (GameLevelManager *)GameLevelManager::sharedState(started);
GameLevelManager::getDeathDisplayData(
&v131,
v4,
*(_DWORD *)(*((_QWORD *)this + 242) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 242) + 332LL));
v5 = (unsigned __int8)v131 >> 1;
if ( (v131 & 1) != 0 )
v5 = v132;
v6 = *((__int64 **)this + 242);
if ( !v5 && &v131 != v6 + 220 )
{
if ( (v6[220] & 1) != 0 )
{
v7 = (const void *)v6[222];
v8 = v6[221];
}
else
{
v7 = (char *)v6 + 1761;
v8 = *((_BYTE *)v6 + 1760) >> 1;
}
std::string::assign(&v131, v7, v8);
v6 = *((__int64 **)this + 242);
}
v9 = GJGameLevel::dtParseGlobalBlob(v6, &v131, (char *)this + 14416);
v10 = *((_QWORD *)this + 1802);
v11 = 2;
v12 = *((_QWORD *)this + 1803);
v13 = 0;
*((_BYTE *)this + 1969) = v9;
*((_DWORD *)this + 3622) = 0;
v14 = (v12 - v10) >> 2;
if ( v14 > 2 )
{
while ( 1 )
{
v15 = *(_DWORD *)(v10 + 4 * v11);
if ( v15 > v13 )
*((_DWORD *)this + 3622) = v15;
v11 += 9LL;
if ( v11 >= v14 )
break;
v13 = *((_DWORD *)this + 3622);
}
}
if ( (v131 & 1) != 0 )
operator delete(v133);
PlayLayer::dtLoadCells(this);
PlayLayer::dtLiveMarkersChanged(this);
v131 = 0;
v16 = *((_QWORD *)this + 242);
v132 = 0;
v133 = nullptr;
if ( (*(_BYTE *)(v16 + 1176) & 1) != 0 )
{
std::string::__init(&v131, *(void **)(v16 + 1192), *(_QWORD *)(v16 + 1184));
}
else
{
v17 = *(_QWORD *)(v16 + 1184);
v131 = *(_QWORD *)(v16 + 1176);
v132 = v17;
v133 = *(void **)(v16 + 1192);
}
GJBaseGameLayer::updateLayerCapacity(this, &v131);
if ( (v131 & 1) != 0 )
operator delete(v133);
GJBaseGameLayer::increaseBatchNodeCapacity(this);
if ( !*((_QWORD *)this + 409) )
{
v116 = LevelSettingsObject::create(nullptr);
*((_QWORD *)this + 409) = v116;
*(_QWORD *)(v116 + 384) = *((_QWORD *)this + 242);
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 409));
}
*(_BYTE *)(*((_QWORD *)this + 407) + 2832LL) = *((_BYTE *)this + 12238);
*(_BYTE *)(*((_QWORD *)this + 408) + 2832LL) = *((_BYTE *)this + 12238);
ColorAction = GJEffectManager::getColorAction(*(GJEffectManager **)(*((_QWORD *)this + 409) + 320LL), 1005);
*(_DWORD *)(ColorAction + 80) = 0;
v19 = *((_BYTE **)this + 407);
v20 = v19[2602];
v21 = v19[2603];
*(_BYTE *)(ColorAction + 74) = v19[2604];
*(_BYTE *)(ColorAction + 72) = v20;
*(_BYTE *)(ColorAction + 73) = v21;
*(_BYTE *)(ColorAction + 84) = 1;
v22 = GJEffectManager::getColorAction(*(GJEffectManager **)(*((_QWORD *)this + 409) + 320LL), 1006);
*(_DWORD *)(v22 + 80) = 0;
v23 = *((_BYTE **)this + 407);
v24 = v23[2605];
v25 = v23[2606];
*(_BYTE *)(v22 + 74) = v23[2607];
*(_BYTE *)(v22 + 72) = v24;
*(_BYTE *)(v22 + 73) = v25;
*(_BYTE *)(v22 + 84) = 1;
v26 = GameManager::sharedState((GameManager *)v22);
v27 = (GameManager *)(unsigned int)(*(_DWORD *)(v26 + 872) - *(_DWORD *)(v26 + 876));
if ( (int)v27 > 0 )
{
v28 = (GameManager *)GameManager::sharedState(v27);
v29 = GameManager::sharedState(v28);
GameManager::loadDeathEffect(v28, *(_DWORD *)(v29 + 872) - *(_DWORD *)(v29 + 876));
}
GJBaseGameLayer::createBackground(this, *(_DWORD *)(*((_QWORD *)this + 409) + 352LL));
v30 = *((int **)this + 409);
v31 = v30[91];
if ( v31 > 0 )
{
GJBaseGameLayer::createMiddleground(this, v31);
v30 = *((int **)this + 409);
}
GJBaseGameLayer::createGroundLayer(this, v30[89], v30[106]);
UILayer::togglePlatformerMode(*((UILayer **)this + 1661), *((_BYTE *)this + 12238));
v32 = *((unsigned __int8 **)this + 407);
v33 = v32[2604];
v34 = *((_QWORD *)this + 1580);
v35 = (float)v32[2603];
v36 = (float)v32[2602];
v37 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v34 + 1360LL);
v124 = 1.0;
v123 = (float)v33 / 255.0;
*(float *)&v122 = v36 / 255.0;
*((float *)&v122 + 1) = v35 / 255.0;
v37(v34, &v122);
v38 = *((_QWORD *)this + 1580);
v39 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v38 + 1392LL);
v122 = 0;
v123 = 0.0;
v124 = 1.0;
v39(v38, &v122);
v40 = (FMODAudioEngine *)GJBaseGameLayer::resetPlayer(this);
v41 = FMODAudioEngine::sharedEngine(v40);
GJGameLevel::getAudioFileName(&v131, *((GJGameLevel **)this + 242));
FMODAudioEngine::loadMusic(v41, (char *)&v131, 1u, 0, 0, *(_BYTE *)(*((_QWORD *)this + 409) + 350LL), 1.0, 0.0, 1.0);
if ( (v131 & 1) != 0 )
operator delete(v133);
v42 = *(FMODAudioEngine **)(*((_QWORD *)this + 409) + 384LL);
v43 = *((_DWORD *)v42 + 152);
if ( v43 || (v42 = (FMODAudioEngine *)*(unsigned int *)(*((_QWORD *)this + 242) + 604LL), (int)v42 > 19) )
{
v117 = v43;
v44 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v42);
FMODAudioEngine::enableMetering(v44);
*((_BYTE *)this + 14408) = (unsigned __int8)&dword_0 + 1;
v45 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)((char *)&dword_0 + 1));
v46 = (FMODAudioEngine *)MusicDownloadManager::incrementPriorityForSong(v45, v117);
}
else
{
v111 = FMODAudioEngine::sharedEngine(v42);
v46 = (FMODAudioEngine *)FMODAudioEngine::disableMetering(v111);
}
v47 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v46);
*((_BYTE *)this + 14288) = FMODAudioEngine::getBackgroundMusicVolume(v47) <= 0.0;
LevelTools::getAudioString((LevelTools *)*(unsigned int *)(*((_QWORD *)this + 242) + 604LL), v48);
v49 = AudioEffectsLayer::create(&v131);
v50 = v131;
*((_QWORD *)this + 1586) = v49;
if ( (v50 & 1) != 0 )
{
operator delete(v133);
v49 = *((_QWORD *)this + 1586);
}
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 490) + 464LL))(
*((_QWORD *)this + 490),
v49,
1);
v51 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 1586) + 344LL))(
*((_QWORD *)this + 1586),
0);
v52 = (GameManager *)GameManager::sharedState(v51);
v53 = GameManager::sharedState(v52);
FontFile = (const char *)GameManager::getFontFile(v52, *(_DWORD *)(v53 + 992));
v56 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Attempt 1", FontFile, v55);
*((_QWORD *)this + 1791) = v56;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 490) + 464LL))(
*((_QWORD *)this + 490),
v56,
1400);
if ( *((_BYTE *)this + 14400) )
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 1791) + 144LL))(*((_QWORD *)this + 1791), -1.0);
v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11B8890, "chatFont.fnt", v57);
*((_QWORD *)this + 1845) = v58;
(*(void (__fastcall **)(PlayLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v58, 1000);
v59 = *((_QWORD *)this + 1845);
v60 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v122, 0.0, 1.0);
v60(v59, &v122);
v61 = *((_QWORD *)this + 1845);
v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v120, 0.0, 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 5.0, *((float *)&v119 + 1) - 10.0);
cocos2d::CCPoint::operator+(&v122, v120);
v62(v61, &v122);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 1845) + 1024LL))(
*((_QWORD *)this + 1845),
4294967190LL);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 1845) + 160LL))(*((_QWORD *)this + 1845), 0.5);
PlayLayer::updateInfoLabel(this);
(*(void (__fastcall **)(PlayLayer *))(*(_QWORD *)this + 1576LL))(this);
if ( !*(_BYTE *)(*((_QWORD *)this + 409) + 340LL)
|| *((_BYTE *)this + 12616)
|| *(_DWORD *)(*((_QWORD *)this + 242) + 1140LL) == 2
|| *((_BYTE *)this + 12238) )
{
v63 = 1.0;
}
else
{
v63 = 2.0;
v112 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 1791) + 344LL))(
*((_QWORD *)this + 1791),
0);
v113 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v112, 0.5);
v114 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, PlayLayer::showTwoPlayerGuide, 0);
v115 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v113, v114, 0);
cocos2d::CCNode::runAction(this, v115);
}
*((_BYTE *)this + 12617) = 1;
*((_BYTE *)this + 12618) = 1;
*((_BYTE *)this + 12605) = 1;
GJBaseGameLayer::updateCamera(this, 0.0);
v65 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove2.png", v64);
*((_QWORD *)this + 1794) = v65;
(*(void (__fastcall **)(PlayLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v65, 10);
v67 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar2.png", v66);
*((_QWORD *)this + 1795) = v67;
v68 = *(float *)(*((_QWORD *)this + 1794) + 432LL);
v122 = 0x260100002601LL;
LODWORD(v123) = 10497;
v124 = 10497;
*((float *)this + 3593) = 8.0;
*((float *)this + 3592) = v68 - 4.0;
v69 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v67 + 1072LL))(v67);
cocos2d::CCTexture2D::setTexParameters(v69, &v122);
v70 = *((_BYTE **)this + 407);
v71 = *((_QWORD *)this + 1795);
v72 = v70[2603];
v73 = v70[2604];
v74 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v71 + 960LL);
v121[0] = v70[2602];
v121[1] = v72;
v121[2] = v73;
v74(v71, v121);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 1794) + 464LL))(
*((_QWORD *)this + 1794),
*((_QWORD *)this + 1795),
0xFFFFFFFFLL);
v75 = *((_QWORD *)this + 1795);
v76 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v75 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, 0.0);
v76(v75, v121);
v77 = *((_QWORD *)this + 1795);
v78 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v77 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 2.0, 4.0);
v78(v77, v121);
v79 = *((_QWORD *)this + 1794);
v80 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v79 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, *(float *)&v119 * 0.5, *((float *)&v119 + 1) - 8.0);
v80(v79, v121);
v82 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"100%", "bigFont.fnt", v81);
*((_QWORD *)this + 1792) = v82;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v82 + 160LL))(v82, 0.5);
(*(void (__fastcall **)(PlayLayer *, _QWORD, __int64))(*(_QWORD *)this + 464LL))(this, *((_QWORD *)this + 1792), 15);
v83 = *((_QWORD *)this + 1792);
v84 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v83 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v121,
(float)(*(float *)&v119 * 0.5) + 110.0,
*((float *)&v119 + 1) - 8.0);
v84(v83, v121);
v85 = *((_QWORD *)this + 1792);
v86 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v85 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, 0.0, 0.5);
v86(v85, v121);
PlayLayer::updateProgressbar(this);
(*(void (__fastcall **)(PlayLayer *))(*(_QWORD *)this + 1568LL))(this);
if ( !*((_BYTE *)this + 12616) )
{
v87 = *((_QWORD *)this + 409);
if ( !*(_BYTE *)(v87 + 429) && *(int *)(v87 + 444) <= 0 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 407) + 344LL))(*((_QWORD *)this + 407), 0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 408) + 344LL))(*((_QWORD *)this + 408), 0);
PlayLayer::loadDefaultColors(this);
GJBaseGameLayer::updateLevelColors(this);
v88 = *((_QWORD *)this + 1554);
if ( !v88 )
goto LABEL_64;
LABEL_41:
v89 = *(LevelSettingsObject **)(v88 + 1840);
goto LABEL_42;
}
}
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 407) + 344LL))(*((_QWORD *)this + 407), 1);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 408) + 344LL))(*((_QWORD *)this + 408), 1);
PlayLayer::loadDefaultColors(this);
GJBaseGameLayer::updateLevelColors(this);
v88 = *((_QWORD *)this + 1554);
if ( v88 )
goto LABEL_41;
LABEL_64:
v89 = *((LevelSettingsObject **)this + 409);
LABEL_42:
GJBaseGameLayer::setupLevelStart(this, v89);
*((_BYTE *)this + 12424) = 1;
(*(void (__fastcall **)(PlayLayer *, float))(*(_QWORD *)this + 1192LL))(this, 0.0);
GJBaseGameLayer::updateCamera(this, 0.0);
v90 = (GameManager *)(*(__int64 (__fastcall **)(PlayLayer *, _QWORD))(*(_QWORD *)this + 1288LL))(this, 0);
v91 = (GameManager *)GameManager::sharedState(v90);
GameVariable = (ObjectToolbox *)GameManager::getGameVariable(v91, "0072");
*((_BYTE *)this + 14752) = (_BYTE)GameVariable;
v93 = (ObjectToolbox *)ObjectToolbox::sharedState(GameVariable);
v94 = (const char *)ObjectToolbox::intKeyToFrame(v93, 8);
v125 = 0;
v118 = (char *)v94;
v126 = 0;
v127 = nullptr;
v95 = strlen(v94);
std::string::__init(&v125, v118, v95);
v97 = GameObject::createWithKey((GameObject *)byte_8, v96);
*((_QWORD *)this + 1741) = v97;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v97 + 1264LL))(v97);
v128 = 0;
v129 = 0;
v130 = nullptr;
v98 = *((_QWORD *)this + 1741);
if ( (v125 & 1) != 0 )
{
std::string::__init(&v128, v127, v126);
}
else
{
v130 = v127;
v128 = v125;
v129 = v126;
}
GameObject::addColorSprite(v98, &v128);
if ( (v128 & 1) != 0 )
operator delete(v130);
v99 = *((_QWORD *)this + 1741);
v100 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v99 + 1272LL);
v131 = 0;
v132 = 0;
v133 = nullptr;
if ( (v125 & 1) != 0 )
{
std::string::__init(&v131, v127, v126);
}
else
{
v131 = v125;
v132 = v126;
v133 = v127;
}
v100(v99, &v131);
if ( (v131 & 1) != 0 )
operator delete(v133);
v101 = *((_QWORD *)this + 1741);
v102 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v101 + 1368LL);
v103 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v121, v103);
v102(v101, v121);
*(_BYTE *)(*((_QWORD *)this + 1741) + 559LL) = 1;
PlayLayer::addObject(this, *((GameObject **)this + 1741));
GJBaseGameLayer::createPlayerCollisionBlock(this);
v104 = *((_QWORD *)this + 1791);
v105 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v104 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v121,
*((float *)this + 248) + (float)(*(float *)&v119 * 0.5),
(float)(*((float *)this + 249) + (float)(*((float *)&v119 + 1) * 0.5)) + 85.0);
v105(v104, v121);
if ( *((_BYTE *)this + 12616) )
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 1791) + 1024LL))(*((_QWORD *)this + 1791), 50);
*((_BYTE *)this + 12617) = 1;
(*(void (__fastcall **)(PlayLayer *))(*(_QWORD *)this + 1608LL))(this);
*((_BYTE *)this + 12664) = 0;
PlayLayer::prepareMusic(this, 0);
v106 = (cocos2d::CCDelayTime *)*((unsigned __int8 *)this + 14064);
if ( *((_BYTE *)this + 14064) )
{
v107 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v106, v63);
v108 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, PlayLayer::startGame, 0);
}
else
{
v107 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v106, v63);
v108 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, PlayLayer::onQuit, 0);
}
v109 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v107, v108, 0);
cocos2d::CCNode::runAction(this, v109);
cocos2d::CCNode::scheduleUpdate(this);
GJBaseGameLayer::checkSpawnObjects(this);
GJEffectManager::updateEffects(*((GJEffectManager **)this + 269), 0.0);
(*(void (__fastcall **)(PlayLayer *, float))(*(_QWORD *)this + 1192LL))(this, 0.0);
GJBaseGameLayer::updateLevelColors(this);
GJBaseGameLayer::updateProximityVolumeEffects(this);
PlayLayer::updateTestModeLabel(this);
if ( (unsigned __int8)GJBaseGameLayer::shouldExitHackedLevel(this) )
{
PlayLayer::removeAllObjects(this);
PlayLayer::onQuit((GJGameLevel **)this);
}
if ( (v125 & 1) != 0 )
operator delete(v127);
return _stack_chk_guard;
}