//
// PlayLayer::setupHasCompleted from 0x10007b210 to 0x10007bf35 (3365 bytes)
//
// 1 xrefs:
// > PlayLayer::processCreateObjectsFromSetup @ 0x10007b0d8
//
// This function is hookable on this platform (idp: pc, 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:20:00 +0000
//
void __fastcall PlayLayer::setupHasCompleted(__int64 a1, __int64 a2, double a3, __m128 a4, double a5, __m128 a6)
{
__int64 v7; // rsi
__int64 v8; // rax
__int64 v9; // rax
unsigned __int64 v10; // rcx
unsigned __int64 v11; // rdx
int v12; // esi
int v13; // edi
__int64 v14; // rax
__int128 *v15; // rax
__int64 v16; // rax
__int64 v17; // rax
char v18; // dl
__int64 ColorAction; // rax
__int64 v20; // rcx
__int16 v21; // dx
__int64 v22; // rdi
__int64 v23; // rax
__int64 v24; // rcx
__int64 v25; // rdx
__int64 v26; // rdx
unsigned __int64 v27; // xmm0_8
__int64 v28; // rax
__int64 v29; // rax
__int64 v30; // r14
__int64 v31; // rdx
__int64 v32; // rax
__int64 v33; // rax
__int64 v34; // rax
__m128 v35; // xmm0
__int64 v36; // rdi
__int64 v37; // rdi
__int64 v38; // r14
__int64 v39; // r9
double v40; // xmm0_8
unsigned int v41; // r14d
__int64 v42; // rdi
__int64 v43; // rax
__int64 v44; // rax
__int64 v45; // rax
__int64 v46; // rdi
__int64 v47; // rdx
__int64 v48; // rax
__int64 v49; // r14
__int64 v50; // rdx
double v51; // xmm0_8
__int64 v52; // rax
__int64 FontFile; // rax
__int64 v54; // rax
__int64 v55; // rax
__int64 v56; // r14
__int64 v57; // r14
int v58; // r14d
int v59; // eax
int v60; // ecx
int v61; // r8d
int v62; // r9d
__int64 v63; // rsi
__int64 v64; // rax
__int64 v65; // rax
__int64 v66; // rax
__int64 v67; // rdi
__int64 v68; // rax
__int16 v69; // cx
__int64 v70; // r14
__int64 v71; // r14
__int64 v72; // r14
__int64 v73; // rax
__int64 v74; // r14
__int64 v75; // r14
bool v76; // al
_QWORD *v77; // r15
_BOOL4 v78; // r14d
__int64 v79; // rax
_QWORD *v80; // rcx
__int64 v81; // rdx
double v82; // xmm0_8
__int64 v83; // rax
__int64 v84; // rax
const char *v85; // r15
size_t v86; // rax
std::string::size_type v87; // r14
char *data; // r12
size_t v89; // r13
__int64 v90; // rax
__int64 v91; // r14
char v92; // r15
__int64 v93; // r14
__int64 v94; // r14
__int64 v95; // rax
__int64 v96; // rsi
__int64 v97; // r14
int v98; // r14d
int v99; // eax
int v100; // ecx
int v101; // r8d
int v102; // r9d
__int64 v103; // rsi
double updated; // xmm0_8
__int64 v105; // rax
__int128 v106; // [rsp+0h] [rbp-100h] BYREF
_BYTE v107[16]; // [rsp+10h] [rbp-F0h] BYREF
void *v108; // [rsp+20h] [rbp-E0h]
_BYTE v109[16]; // [rsp+28h] [rbp-D8h] BYREF
void *v110; // [rsp+38h] [rbp-C8h]
__int128 v111; // [rsp+40h] [rbp-C0h] BYREF
void *__p; // [rsp+50h] [rbp-B0h]
__int128 v113; // [rsp+60h] [rbp-A0h] BYREF
void *v114; // [rsp+70h] [rbp-90h]
__int128 v115; // [rsp+80h] [rbp-80h] BYREF
void *v116; // [rsp+90h] [rbp-70h]
_QWORD *v117; // [rsp+A0h] [rbp-60h]
char v118[8]; // [rsp+ACh] [rbp-54h] BYREF
float v119; // [rsp+B4h] [rbp-4Ch] BYREF
float v120; // [rsp+B8h] [rbp-48h]
float v121; // [rsp+BCh] [rbp-44h]
std::string __dst; // [rsp+C0h] [rbp-40h] BYREF
v7 = cocos2d::CCDirector::sharedDirector(a1, a2);
cocos2d::CCDirector::getWinSize(&v119, v7);
GJBaseGameLayer::createTextLayers(a1);
GJBaseGameLayer::updateSpecialGroupData(a1);
sub_10007BFE0(a1);
sub_10007C1D0(a1);
PlayLayer::scanDynamicSaveObjects(a1);
PlayLayer::scanActiveSaveObjects(a1);
GJBaseGameLayer::processStartPosObjects(a1);
v8 = GameLevelManager::sharedState();
sub_100553200(
&__dst,
v8,
(unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 1936) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 332LL)));
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
if ( __dst.__r_.__value_.__l.__size_ )
goto LABEL_6;
}
else if ( *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1 )
{
goto LABEL_6;
}
std::string::operator=(&__dst, (const std::string *)(*(_QWORD *)(a1 + 1936) + 1760LL));
LABEL_6:
*(_BYTE *)(a1 + 1969) = sub_100586910(*(_QWORD *)(a1 + 1936), &__dst, a1 + 14416);
*(_DWORD *)(a1 + 14488) = 0;
v9 = *(_QWORD *)(a1 + 14416);
v10 = (*(_QWORD *)(a1 + 14424) - v9) >> 2;
if ( v10 >= 3 )
{
v11 = 2;
v12 = 0;
do
{
v13 = *(_DWORD *)(v9 + 4 * v11);
if ( v13 > v12 )
{
*(_DWORD *)(a1 + 14488) = v13;
v12 = v13;
}
v11 += 9LL;
}
while ( v11 < v10 );
}
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
sub_100960450(a1);
PlayLayer::dtLiveMarkersChanged(a1);
v14 = *(_QWORD *)(a1 + 1936);
if ( (*(_BYTE *)(v14 + 1176) & 1) != 0 )
{
sub_10001AD30(&v111, *(const void **)(v14 + 1192), *(_QWORD *)(v14 + 1184));
}
else
{
v15 = (__int128 *)(v14 + 1176);
__p = *((void **)v15 + 2);
v111 = *v15;
}
GJBaseGameLayer::updateLayerCapacity(a1, &v111);
if ( (v111 & 1) != 0 )
operator delete(__p);
GJBaseGameLayer::increaseBatchNodeCapacity(a1);
v16 = *(_QWORD *)(a1 + 3272);
if ( !v16 )
{
v17 = LevelSettingsObject::create();
*(_QWORD *)(a1 + 3272) = v17;
*(_QWORD *)(v17 + 384) = *(_QWORD *)(a1 + 1936);
cocos2d::CCObject::retain(v17);
v16 = *(_QWORD *)(a1 + 3272);
}
v18 = *(_BYTE *)(a1 + 12238);
*(_BYTE *)(*(_QWORD *)(a1 + 3256) + 2832LL) = v18;
*(_BYTE *)(*(_QWORD *)(a1 + 3264) + 2832LL) = v18;
ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(v16 + 320), 1005);
*(_DWORD *)(ColorAction + 80) = 0;
v20 = *(_QWORD *)(a1 + 3256);
v21 = *(_WORD *)(v20 + 2602);
*(_BYTE *)(ColorAction + 74) = *(_BYTE *)(v20 + 2604);
*(_WORD *)(ColorAction + 72) = v21;
*(_BYTE *)(ColorAction + 84) = 1;
v22 = *(_QWORD *)(*(_QWORD *)(a1 + 3272) + 320LL);
v23 = GJEffectManager::getColorAction(v22, 1006);
*(_DWORD *)(v23 + 80) = 0;
v24 = *(_QWORD *)(a1 + 3256);
v25 = *(unsigned __int16 *)(v24 + 2605);
*(_BYTE *)(v23 + 74) = *(_BYTE *)(v24 + 2607);
*(_WORD *)(v23 + 72) = v25;
*(_BYTE *)(v23 + 84) = 1;
v27 = GameManager::sharedState(v22, 1006, v25).u64[0];
if ( *(_DWORD *)(v28 + 872) > *(_DWORD *)(v28 + 876) )
{
GameManager::sharedState(v22, 1006, v26);
v30 = v29;
v27 = GameManager::sharedState(v22, 1006, v31).u64[0];
GameManager::loadDeathEffect(v30, (unsigned int)(*(_DWORD *)(v32 + 872) - *(_DWORD *)(v32 + 876)), *(double *)&v27);
}
GJBaseGameLayer::createBackground(a1, *(unsigned int *)(*(_QWORD *)(a1 + 3272) + 352LL), *(double *)&v27);
v33 = *(_QWORD *)(a1 + 3272);
if ( *(int *)(v33 + 364) > 0 )
{
GJBaseGameLayer::createMiddleground(a1);
v33 = *(_QWORD *)(a1 + 3272);
}
GJBaseGameLayer::createGroundLayer(a1, *(unsigned int *)(v33 + 356), *(unsigned int *)(v33 + 424));
UILayer::togglePlatformerMode(*(_QWORD *)(a1 + 13288), *(unsigned __int8 *)(a1 + 12238));
v34 = *(_QWORD *)(a1 + 3256);
v35 = 0;
v35.f32[0] = (float)*(unsigned __int8 *)(v34 + 2604);
LODWORD(v34) = *(unsigned __int16 *)(v34 + 2602);
a4.f32[0] = (float)(unsigned __int8)v34 / 255.0;
a6.f32[0] = (float)((unsigned int)v34 >> 8) / 255.0;
v35.f32[0] = v35.f32[0] / 255.0;
v36 = *(_QWORD *)(a1 + 12640);
*(__m128 *)&__dst.__r_.__value_.__l.0 = _mm_movelh_ps(
_mm_insert_ps(a4, a6, 16),
_mm_blend_ps(v35, (__m128)xmmword_100A03610, 14));
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v36 + 1360LL))(v36, &__dst);
v37 = *(_QWORD *)(a1 + 12640);
*(__m128 *)&__dst.__r_.__value_.__l.0 = _mm_loadh_ps((const double *)&qword_100A040E8);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v37 + 1392LL))(v37, &__dst);
*(double *)v35.i64 = GJBaseGameLayer::resetPlayer(a1);
v38 = FMODAudioEngine::sharedEngine(*(double *)v35.i64);
GJGameLevel::getAudioFileName(v107, *(_QWORD *)(a1 + 1936));
v39 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 3272) + 350LL);
*(_QWORD *)&v40 = 1065353216;
v121 = 1.0;
FMODAudioEngine::loadMusic(v38, v107, 1, 0, 0, v39, 1.0, 0.0, 1.0);
if ( (v107[0] & 1) != 0 )
operator delete(v108);
v41 = *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 3272) + 384LL) + 608LL);
if ( v41 || *(int *)(*(_QWORD *)(a1 + 1936) + 604LL) >= 20 )
{
v42 = FMODAudioEngine::sharedEngine(COERCE_DOUBLE(1065353216));
FMODAudioEngine::enableMetering(v42);
*(_BYTE *)(a1 + 14408) = 1;
v43 = MusicDownloadManager::sharedState(v42);
v40 = MusicDownloadManager::incrementPriorityForSong(v43, v41);
}
else
{
v105 = FMODAudioEngine::sharedEngine(COERCE_DOUBLE(1065353216));
FMODAudioEngine::disableMetering(v105);
}
v44 = FMODAudioEngine::sharedEngine(v40);
*(_BYTE *)(a1 + 14288) = FMODAudioEngine::getBackgroundMusicVolume(v44) <= 0.0;
LevelTools::getAudioString(v109, *(unsigned int *)(*(_QWORD *)(a1 + 1936) + 604LL));
v45 = AudioEffectsLayer::create(v109);
*(_QWORD *)(a1 + 12688) = v45;
if ( (v109[0] & 1) != 0 )
{
operator delete(v110);
v45 = *(_QWORD *)(a1 + 12688);
}
v117 = (_QWORD *)(a1 + 3272);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3920) + 464LL))(*(_QWORD *)(a1 + 3920), v45, 1);
v46 = *(_QWORD *)(a1 + 12688);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v46 + 344LL))(v46, 0);
GameManager::sharedState(v46, 0, v47);
v49 = v48;
*(_QWORD *)&v51 = GameManager::sharedState(v46, 0, v50).u64[0];
FontFile = GameManager::getFontFile(v49, *(unsigned int *)(v52 + 992), v51);
v54 = cocos2d::CCLabelBMFont::create_3("Attempt 1", FontFile);
*(_QWORD *)(a1 + 14328) = v54;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3920) + 464LL))(
*(_QWORD *)(a1 + 3920),
v54,
1400);
if ( *(_BYTE *)(a1 + 14400) == 1 )
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 14328) + 144LL))(*(_QWORD *)(a1 + 14328), -1.0);
v55 = cocos2d::CCLabelBMFont::create_3("", "chatFont.fnt");
*(_QWORD *)(a1 + 14760) = v55;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v55, 1000);
v56 = *(_QWORD *)(a1 + 14760);
sub_100278250(&__dst, 0.0, 1.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v56 + 296LL))(v56, &__dst);
v57 = *(_QWORD *)(a1 + 14760);
sub_100278250(&v106, 0.0, 0.0);
sub_100278250(v118, 5.0, v120 + -10.0);
sub_100278350(&__dst, &v106, v118);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v57 + 184LL))(v57, &__dst);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 14760) + 1024LL))(*(_QWORD *)(a1 + 14760), 150);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 14760) + 160LL))(*(_QWORD *)(a1 + 14760), 0.5);
PlayLayer::updateInfoLabel(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1576LL))(a1);
if ( *(_BYTE *)(*(_QWORD *)(a1 + 3272) + 340LL) == 1
&& !*(_BYTE *)(a1 + 12616)
&& *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) != 2
&& !*(_BYTE *)(a1 + 12238) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14328) + 344LL))(*(_QWORD *)(a1 + 14328), 0);
v58 = cocos2d::CCDelayTime::create(0.5);
v59 = cocos2d::CCCallFunc::create(a1, PlayLayer::showTwoPlayerGuide, 0);
v63 = sub_10039EB60(v58, v59, 0, v60, v61, v62);
cocos2d::CCNode::runAction(a1, v63);
v121 = 2.0;
}
*(_WORD *)(a1 + 12617) = 257;
*(_BYTE *)(a1 + 12605) = 1;
GJBaseGameLayer::updateCamera(a1, 0.0);
v64 = cocos2d::CCSprite::create_1("slidergroove2.png");
*(_QWORD *)(a1 + 14352) = v64;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v64, 10);
v65 = cocos2d::CCSprite::create_1("sliderBar2.png");
*(_QWORD *)(a1 + 14360) = v65;
*(float *)(a1 + 14368) = *(float *)(*(_QWORD *)(a1 + 14352) + 432LL) + -4.0;
*(_DWORD *)(a1 + 14372) = 1090519040;
v106 = xmmword_100A04210;
v66 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v65 + 1072LL))(v65);
cocos2d::CCTexture2D::setTexParameters(v66, &v106);
v67 = *(_QWORD *)(a1 + 14360);
v68 = *(_QWORD *)(a1 + 3256);
v69 = *(_WORD *)(v68 + 2602);
__dst.__r_.__value_.__s.__data_[1] = *(_BYTE *)(v68 + 2604);
*(_WORD *)&__dst.__r_.__value_.__l.0 = v69;
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v67 + 960LL))(v67, &__dst);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 14352) + 464LL))(
*(_QWORD *)(a1 + 14352),
*(_QWORD *)(a1 + 14360),
0xFFFFFFFFLL);
v70 = *(_QWORD *)(a1 + 14360);
sub_100278250(&__dst, 0.0, 0.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v70 + 296LL))(v70, &__dst);
v71 = *(_QWORD *)(a1 + 14360);
sub_100278250(&__dst, 2.0, 4.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v71 + 184LL))(v71, &__dst);
v72 = *(_QWORD *)(a1 + 14352);
sub_100278250(&__dst, v119 * 0.5, v120 + -8.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v72 + 184LL))(v72, &__dst);
v73 = cocos2d::CCLabelBMFont::create_3("100%", "bigFont.fnt");
*(_QWORD *)(a1 + 14336) = v73;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v73 + 160LL))(v73, 0.5);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 14336), 15);
v74 = *(_QWORD *)(a1 + 14336);
sub_100278250(&__dst, (float)(v119 * 0.5) + 110.0, v120 + -8.0);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v74 + 184LL))(v74, &__dst);
v75 = *(_QWORD *)(a1 + 14336);
sub_100278250(&__dst, 0.0, 0.5);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v75 + 296LL))(v75, &__dst);
PlayLayer::updateProgressbar(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1568LL))(a1);
v76 = 1;
if ( *(_BYTE *)(a1 + 12616) )
{
v77 = v117;
}
else
{
v77 = v117;
if ( !*(_BYTE *)(*v117 + 429LL) )
v76 = *(_DWORD *)(*v117 + 444LL) > 0;
}
v78 = v76;
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 3256) + 344LL))(*(_QWORD *)(a1 + 3256), v76);
(*(void (__fastcall **)(_QWORD, _BOOL4))(**(_QWORD **)(a1 + 3264) + 344LL))(*(_QWORD *)(a1 + 3264), v78);
PlayLayer::loadDefaultColors(a1);
GJBaseGameLayer::updateLevelColors(a1);
v79 = *(_QWORD *)(a1 + 12432);
v80 = (_QWORD *)(v79 + 1840);
if ( !v79 )
v80 = v77;
GJBaseGameLayer::setupLevelStart(a1, *v80);
*(_BYTE *)(a1 + 12424) = 1;
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 1192LL))(a1, 0.0);
GJBaseGameLayer::updateCamera(a1, 0.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1288LL))(a1, 0);
*(_QWORD *)&v82 = GameManager::sharedState(a1, 0, v81).u64[0];
*(_BYTE *)(a1 + 14752) = GameManager::getGameVariable(v83, "0072");
v84 = ObjectToolbox::sharedState(v82);
v85 = (const char *)ObjectToolbox::intKeyToFrame(v84, 8);
v86 = strlen(v85);
if ( v86 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v87 = v86;
if ( v86 >= 0x17 )
{
v89 = 26;
if ( (v86 | 7) != 0x17 )
v89 = (v86 | 7) + 1;
data = (char *)operator new(v89);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__r.__words[0] = v89 + 1;
__dst.__r_.__value_.__l.__size_ = v87;
goto LABEL_51;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v86);
data = __dst.__r_.__value_.__s.__data_;
if ( v86 )
LABEL_51:
memmove(data, v85, v87);
data[v87] = 0;
v90 = GameObject::createWithKey(8);
*(_QWORD *)(a1 + 13928) = v90;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v90 + 1264LL))(v90);
v91 = *(_QWORD *)(a1 + 13928);
v92 = *(_BYTE *)&__dst.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v113, __dst.__r_.__value_.__l.__data_, __dst.__r_.__value_.__l.__size_);
}
else
{
v114 = __dst.__r_.__value_.__l.__data_;
v113 = *(_OWORD *)&__dst.__r_.__value_.__l.0;
}
GameObject::addColorSprite(v91, &v113);
if ( (v113 & 1) != 0 )
operator delete(v114);
v93 = *(_QWORD *)(a1 + 13928);
if ( v92 )
{
sub_10001AD30(&v115, __dst.__r_.__value_.__l.__data_, __dst.__r_.__value_.__l.__size_);
}
else
{
v116 = __dst.__r_.__value_.__l.__data_;
v115 = *(_OWORD *)&__dst.__r_.__value_.__l.0;
}
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v93 + 1272LL))(v93, &v115);
if ( (v115 & 1) != 0 )
operator delete(v116);
v94 = *(_QWORD *)(a1 + 13928);
v95 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3256) + 192LL))(*(_QWORD *)(a1 + 3256));
sub_1002782D0(v118, v95);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v94 + 1368LL))(v94, v118);
v96 = *(_QWORD *)(a1 + 13928);
*(_BYTE *)(v96 + 559) = 1;
PlayLayer::addObject(a1, v96);
GJBaseGameLayer::createPlayerCollisionBlock(a1);
v97 = *(_QWORD *)(a1 + 14328);
sub_100278250(
v118,
(float)(v119 * 0.5) + *(float *)(a1 + 992),
(float)((float)(0.5 * v120) + *(float *)(a1 + 996)) + 85.0);
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v97 + 184LL))(v97, v118);
if ( *(_BYTE *)(a1 + 12616) == 1 )
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 14328) + 1024LL))(*(_QWORD *)(a1 + 14328), 50);
*(_BYTE *)(a1 + 12617) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1608LL))(a1);
*(_BYTE *)(a1 + 12664) = 0;
PlayLayer::prepareMusic(a1, 0);
if ( *(_BYTE *)(a1 + 14064) == 1 )
{
v98 = cocos2d::CCDelayTime::create(v121);
v99 = cocos2d::CCCallFunc::create(a1, PlayLayer::startGame, 0);
}
else
{
v98 = cocos2d::CCDelayTime::create(v121);
v99 = cocos2d::CCCallFunc::create(a1, PlayLayer::onQuit, 0);
}
v103 = sub_10039EB60(v98, v99, 0, v100, v101, v102);
cocos2d::CCNode::runAction(a1, v103);
cocos2d::CCNode::scheduleUpdate(a1);
GJBaseGameLayer::checkSpawnObjects(a1);
GJEffectManager::updateEffects(*(_QWORD *)(a1 + 2152), 0.0);
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 1192LL))(a1, 0.0);
GJBaseGameLayer::updateLevelColors(a1);
updated = GJBaseGameLayer::updateProximityVolumeEffects(a1);
PlayLayer::updateTestModeLabel(a1, updated);
if ( (unsigned __int8)GJBaseGameLayer::shouldExitHackedLevel(a1) )
{
PlayLayer::removeAllObjects(a1);
PlayLayer::onQuit(a1);
}
if ( v92 )
operator delete(__dst.__r_.__value_.__l.__data_);
}