//
// PlayLayer::updateVisibility from 0x700cd4 to 0x701b10 (3644 bytes)
//
// 2 xrefs:
// > ??> @ 0x82fc0
// > ??> @ 0x14288e8
//
// 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:03 +0000
//
__int64 __fastcall PlayLayer::updateVisibility(PlayLayer *this, float a2)
{
char *v4; // x25
GJEffectManager *v5; // x21
__int64 active; // x0
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x0
unsigned __int8 *v9; // x0
int v10; // w0
int v11; // w2
GJEffectManager *v12; // x0
__int64 v13; // x0
unsigned __int64 v14; // x0
cocos2d::CCDirector *i; // x0
float v16; // s11
float v17; // s10
cocos2d::CCDirector *v18; // x0
float v19; // s0
__int64 *v20; // x1
__int64 v21; // x2
__int16 v22; // w3
FMODAudioEngine *isFlipping; // x0
float MeteringValue; // s0
float v25; // s11
__int64 v26; // x23
int v27; // w22
int v28; // w20
int v29; // w27
int v30; // w24
__int64 v31; // x2
cocos2d::CCDirector *v32; // x0
__int64 *v33; // x28
__int64 v34; // x3
unsigned __int64 v35; // x3
_BOOL4 v36; // w20
__int64 v37; // x0
float v38; // s0
__int64 v39; // x20
__int64 v40; // x26
__int64 v41; // x0
__int64 v42; // x20
int v43; // s0
float v44; // s1
float v45; // s0
float RelativeMod; // s0
float v47; // s1
float v48; // s14
float v49; // s13
float v50; // s2
float v51; // s1
float v52; // s13
float v53; // s2
bool v54; // nf
float v55; // s1
__int64 v56; // x1
float v57; // s13
unsigned __int8 v58; // w1
float v59; // s0
float v60; // s13
cocos2d::CCDirector *v61; // x0
const cocos2d::CCPoint *v62; // x0
void (__fastcall *v63)(__int64 *, __int64 *); // x20
float v64; // s0
_BOOL4 v65; // w20
_BOOL4 v66; // w0
float v67; // s0
int v68; // w24
_QWORD *v69; // x0
_QWORD *v70; // x20
__int64 v71; // x2
__int64 v72; // x0
float v74; // s0
float v75; // s0
void (__fastcall *v76)(__int64 *, _QWORD); // x20
float v77; // s0
__int64 v78; // x20
__int64 v79; // x26
__int64 v80; // x0
__int64 v81; // x20
int v82; // s0
void (__fastcall *v83)(__int64 *, __int64); // x20
__int64 v84; // x0
float v85; // s13
float v86; // s1
__int64 v87; // x2
__int64 MixedColor; // x0
FMODAudioEngine *v89; // x0
float v90; // [xsp+A8h] [xbp+A8h]
float v91; // [xsp+ACh] [xbp+ACh]
float v92; // [xsp+B0h] [xbp+B0h]
int v93; // [xsp+B4h] [xbp+B4h]
unsigned int v94; // [xsp+B8h] [xbp+B8h]
_BOOL4 v95; // [xsp+BCh] [xbp+BCh]
int v96; // [xsp+C0h] [xbp+C0h]
__int16 v97; // [xsp+C8h] [xbp+C8h] BYREF
char v98; // [xsp+CAh] [xbp+CAh]
__int16 v99; // [xsp+D0h] [xbp+D0h] BYREF
unsigned __int8 v100; // [xsp+D2h] [xbp+D2h]
__int64 v101; // [xsp+D8h] [xbp+D8h]
__int64 v102; // [xsp+E0h] [xbp+E0h]
__int64 v103; // [xsp+E8h] [xbp+E8h] BYREF
__int64 v104; // [xsp+F0h] [xbp+F0h] BYREF
__int64 v105; // [xsp+F8h] [xbp+F8h] BYREF
__int64 v106; // [xsp+100h] [xbp+100h] BYREF
v4 = (char *)this + 12288;
*(float *)&cameraRight = *((float *)this + 301) + *((float *)this + 3167);
PlayLayer::dtUpdateLiveMarkers(this);
GJBaseGameLayer::preUpdateVisibility(this, a2);
GJEffectManager::processColors(*((GJEffectManager **)this + 269));
v5 = *((GJEffectManager **)this + 269);
active = GJEffectManager::activeColorForIndex(v5, 1005);
LOWORD(v102) = active;
BYTE2(v102) = BYTE2(active);
v7 = (cocos2d::CCDirector *)GJEffectManager::calculateLightBGColor(v5, v102);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(&v103, v8);
v9 = (unsigned __int8 *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 493) + 944LL))(*((_QWORD *)this + 493));
v10 = GameToolbox::transformColor(v9, 0.0, -0.3, 0.4);
LOWORD(v96) = v10;
BYTE2(v96) = BYTE2(v10);
v11 = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 269), 1007);
v12 = *((GJEffectManager **)this + 269);
v97 = v11;
v98 = BYTE2(v11);
v13 = GJEffectManager::activeColorForIndex(v12, 1000);
v99 = v13;
v100 = BYTE2(v13);
v14 = GameToolbox::transformColor((unsigned __int8 *)&v99, 0.0, -0.2, 0.2);
*((_WORD *)v4 + 224) = v14;
v4[450] = BYTE2(v14);
for ( i = *((cocos2d::CCDirector **)this + 1855);
i != *((cocos2d::CCDirector **)this + 1856);
i = (cocos2d::CCDirector *)((char *)i + 8) )
{
*(_QWORD *)i &= 0xFFFFFFFF00000000LL;
}
v16 = (float)(*(float *)&v103 * 0.5) + -75.0;
v17 = v16 + 110.0;
v92 = v16;
v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(i);
cocos2d::CCDirector::getScreenRight(v18);
v91 = (float)(v19 - (float)(v16 + 110.0)) - 90.0;
v90 = v16 - 30.0;
if ( (float)((unsigned __int8)v99 + HIBYTE(v99) + v100) < 150.0 )
v20 = (__int64 *)&v97;
else
v20 = &qword_1121250;
v21 = *((_QWORD *)this + 407);
v22 = *(_WORD *)v20;
BYTE2(v101) = *((_BYTE *)v20 + 2);
v93 = *(unsigned __int8 *)(v21 + 2424);
LOWORD(v101) = v22;
isFlipping = (FMODAudioEngine *)(unsigned __int8)GJBaseGameLayer::isFlipping(this);
v94 = (unsigned __int8)isFlipping;
if ( v4[2120] )
{
v89 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(isFlipping);
MeteringValue = FMODAudioEngine::getMeteringValue(v89);
}
else
{
MeteringValue = *(float *)(*((_QWORD *)this + 1586) + 580LL);
}
if ( !v4[256] )
{
if ( !v4[2000] )
goto LABEL_14;
goto LABEL_137;
}
if ( v4[257] )
{
v25 = MeteringValue;
if ( !v4[2000] )
goto LABEL_10;
LABEL_137:
MeteringValue = 0.5;
goto LABEL_14;
}
v25 = 0.5;
LABEL_10:
if ( !v4[257] )
{
MeteringValue = 0.5;
goto LABEL_15;
}
MeteringValue = v25;
LABEL_14:
v25 = MeteringValue;
LABEL_15:
*(float *)(*((_QWORD *)this + 407) + 2636LL) = MeteringValue;
*(float *)(*((_QWORD *)this + 408) + 2636LL) = MeteringValue;
if ( *((int *)this + 3182) > 0 )
{
v26 = 0;
v27 = 0;
v95 = *((_QWORD *)this + 1826) != 0;
while ( 1 )
{
v33 = *(__int64 **)(*((_QWORD *)this + 1588) + v26);
LODWORD(v34) = *((_DWORD *)v33 + 330);
if ( (int)v34 <= 0 )
{
GameObject::updateMainColor(*(GameObject **)(*((_QWORD *)this + 1588) + v26));
GameObject::updateSecondaryColor((GameObject *)v33);
}
else
{
v34 = (int)v34;
if ( ((1LL << ((unsigned __int8)v34 - 32 * (unsigned __int8)((unsigned __int64)(int)v34 >> 5)))
& *(_QWORD *)(*((_QWORD *)this + 1855) + 8 * ((unsigned __int64)(int)v34 >> 5))) == 0 )
{
v39 = 3LL * (int)v34;
v40 = *((_QWORD *)this + 1849);
v41 = GameObject::colorForMode(*(GameObject **)(*((_QWORD *)this + 1588) + v26), *((_DWORD *)v33 + 164), 1);
*(_WORD *)(v40 + v39) = *(_WORD *)v41;
*(_BYTE *)(v40 + v39 + 2) = *(_BYTE *)(v41 + 2);
LODWORD(v40) = *((_DWORD *)v33 + 330);
v42 = *((_QWORD *)this + 1852);
GameObject::opacityModForMode((GameObject *)v33, *((_DWORD *)v33 + 164), 1);
*(_DWORD *)(v42 + 4LL * (int)v40) = v43;
*(_QWORD *)(*((_QWORD *)this + 1855) + 8 * ((unsigned __int64)*((int *)v33 + 330) >> 5)) |= 1LL << (*((_DWORD *)v33 + 330) - 32 * (unsigned __int8)((unsigned __int64)*((int *)v33 + 330) >> 5));
v34 = *((int *)v33 + 330);
}
(*(void (__fastcall **)(__int64 *, __int64))(*v33 + 1584))(v33, *((_QWORD *)this + 1849) + 3 * v34);
*(_DWORD *)(v33[137] + 8) = *(_DWORD *)(*((_QWORD *)this + 1852) + 4LL * *((int *)v33 + 330));
if ( (unsigned __int8)GameObject::hasSecondaryColor((GameObject *)v33) )
{
v35 = *((int *)v33 + 331);
if ( ((1LL << ((unsigned __int8)v35 - 32 * (unsigned __int8)(v35 >> 5)))
& *(_QWORD *)(*((_QWORD *)this + 1855) + 8 * (v35 >> 5))) == 0 )
{
v78 = 3 * v35;
v79 = *((_QWORD *)this + 1849);
v80 = GameObject::colorForMode((GameObject *)v33, *((_DWORD *)v33 + 165), 0);
*(_WORD *)(v79 + v78) = *(_WORD *)v80;
*(_BYTE *)(v79 + v78 + 2) = *(_BYTE *)(v80 + 2);
LODWORD(v79) = *((_DWORD *)v33 + 331);
v81 = *((_QWORD *)this + 1852);
GameObject::opacityModForMode((GameObject *)v33, *((_DWORD *)v33 + 165), 0);
*(_DWORD *)(v81 + 4LL * (int)v79) = v82;
*(_QWORD *)(*((_QWORD *)this + 1855) + 8 * ((unsigned __int64)*((int *)v33 + 331) >> 5)) |= 1LL << (*((_DWORD *)v33 + 331) - 32 * (unsigned __int8)((unsigned __int64)*((int *)v33 + 331) >> 5));
v35 = *((int *)v33 + 331);
}
(*(void (__fastcall **)(__int64 *, unsigned __int64))(*v33 + 1592))(v33, *((_QWORD *)this + 1849) + 3 * v35);
*(_DWORD *)(v33[138] + 8) = *(_DWORD *)(*((_QWORD *)this + 1852) + 4LL * *((int *)v33 + 331));
}
}
if ( v95 && *((_BYTE *)v33 + 773) )
{
LODWORD(v106) = *((_DWORD *)v33 + 164);
v36 = std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)v4 + 287,
(int *)&v106) != nullptr;
if ( (unsigned __int8)GameObject::hasSecondaryColor((GameObject *)v33) )
{
LODWORD(v106) = *((_DWORD *)v33 + 165);
if ( std::__hash_table,std::equal_to,std::allocator>::find(
(_QWORD *)v4 + 287,
(int *)&v106)
|| v36 )
{
LABEL_55:
(*(void (__fastcall **)(__int64 *, _QWORD))(*v33 + 1280))(v33, 0);
GameObject::addColorSpriteToParent((GameObject *)v33, 0);
}
}
else if ( v36 )
{
goto LABEL_55;
}
}
(*(void (__fastcall **)(__int64 *))(*v33 + 1304))(v33);
(*(void (__fastcall **)(__int64 *__return_ptr, __int64 *))(*v33 + 1360))(&v106, v33);
cocos2d::CCPoint::operator=(v4 + 1980, &v106);
if ( *((__int16 *)v33 + 504) == -1
&& ((v28 = *((__int16 *)v33 + 505), v28 != -1)
|| *((float *)this + 3567) <= (float)(*((float *)this + 301) + *((float *)this + 3170))) )
{
v29 = 0;
v30 = *(_DWORD *)(*((_QWORD *)this + 182) + 4LL * *((__int16 *)v33 + 506));
}
else
{
v28 = *((__int16 *)v33 + 504);
v29 = 1;
v30 = *(_DWORD *)(*((_QWORD *)this + 179) + 4LL * *((__int16 *)v33 + 506));
}
if ( *((_BYTE *)v33 + 1345) )
{
v28 = -14;
v30 = -14;
}
if ( (*(unsigned __int8 (__fastcall **)(__int64 *))(*v33 + 1728))(v33) )
{
v38 = *((double *)this + 115);
(*(void (__fastcall **)(__int64 *, __int64, float))(*v33 + 1848))(v33, 0xFFFFFFFFLL, v38);
}
if ( (*(unsigned __int8 (__fastcall **)(__int64 *))(*v33 + 1736))(v33) )
EnhancedGameObject::updateRotateAction((EnhancedGameObject *)v33, a2);
if ( *((_BYTE *)v33 + 887) )
{
AnimatedGameObject::updateChildSpriteColor(v33, v96);
if ( (*(unsigned int (__fastcall **)(__int64 *))(*v33 + 1800))(v33) == 30 )
{
LABEL_60:
v37 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 254) + 192LL))(*((_QWORD *)this + 254));
EffectGameObject::updateInteractiveHover((EffectGameObject *)v33, *(float *)(v37 + 4));
if ( *((_DWORD *)v33 + 257) != 143 )
goto LABEL_28;
goto LABEL_61;
}
}
else if ( (*(unsigned int (__fastcall **)(__int64 *))(*v33 + 1800))(v33) == 30 )
{
goto LABEL_60;
}
if ( *((_DWORD *)v33 + 257) != 143 )
goto LABEL_28;
LABEL_61:
(*(void (__fastcall **)(__int64 *, char *))(*v33 + 1504))(v33, v4 + 448);
LABEL_28:
if ( *((_BYTE *)v33 + 1032) )
goto LABEL_43;
if ( *((_BYTE *)v33 + 968) && !*((_BYTE *)v33 + 969) )
{
if ( *((_BYTE *)v33 + 1054) )
(*(void (__fastcall **)(__int64 *, float))(*v33 + 1456))(
v33,
*((float *)v33 + 264) + (float)((float)(v25 - 0.1) * (float)(*((float *)v33 + 265) - *((float *)v33 + 264))));
else
(*(void (__fastcall **)(__int64 *, float))(*v33 + 1456))(v33, v25);
}
if ( *((_BYTE *)v33 + 1073) )
{
v31 = *v33;
if ( *((_BYTE *)v33 + 1074) )
(*(void (__fastcall **)(__int64 *, __int16 *))(v31 + 1504))(v33, &v97);
else
(*(void (__fastcall **)(__int64 *, char *))(v31 + 1504))(v33, v4 + 448);
}
if ( *((_BYTE *)v33 + 1072) )
{
if ( v93 )
{
(*(void (__fastcall **)(__int64 *, char *))(*v33 + 1504))(v33, v4 + 448);
(*(void (__fastcall **)(__int64 *, __int64))(*v33 + 912))(v33, 0xFFFFFFFFLL);
GameObject::setGlowOpacity((GameObject *)v33, 0xFFu);
goto LABEL_39;
}
(*(void (__fastcall **)(__int64 *__return_ptr, __int64 *))(*v33 + 1360))(&v105, v33);
v44 = *((float *)v33 + 211);
if ( *(float *)&v105 <= *((float *)this + 3169) )
v45 = *(float *)&v105 + v44;
else
v45 = *(float *)&v105 - v44;
*(float *)&v105 = v45;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v106, (const cocos2d::CCPoint *)&v105);
RelativeMod = PlayLayer::getRelativeMod((__int64)this, (float *)&v106, 0.02, 0.014286, 0.0);
v47 = *((float *)this + 301);
v48 = RelativeMod * 255.0;
if ( *(float *)&v105 <= (float)(v17 + v47) )
{
v49 = v90;
v51 = (float)(v92 + v47) - *(float *)&v105;
v50 = 1.0;
if ( v90 < 1.0 )
goto LABEL_116;
LABEL_68:
v52 = v51 / v49;
v53 = 1.0;
v54 = v52 < 1.0;
if ( v52 >= 1.0 )
goto LABEL_69;
LABEL_117:
if ( v52 <= 0.0 )
{
v55 = 12.75;
v52 = 0.0;
goto LABEL_71;
}
}
else
{
v49 = v91;
v50 = 1.0;
v51 = (float)(*(float *)&v105 - v47) - v17;
if ( v91 >= 1.0 )
goto LABEL_68;
LABEL_116:
v85 = v50;
v53 = 1.0;
v52 = v51 / v85;
v54 = v52 < 1.0;
if ( v52 < 1.0 )
goto LABEL_117;
LABEL_69:
if ( !v54 )
{
v55 = 255.0;
v52 = v53;
LABEL_71:
if ( v48 >= v55 )
v56 = (unsigned __int8)(unsigned int)v55;
else
v56 = (unsigned __int8)(unsigned int)v48;
(*(void (__fastcall **)(__int64 *, __int64))(*v33 + 912))(v33, v56);
v57 = (float)((float)(v52 * 0.85) + 0.15) * 255.0;
if ( v48 >= v57 )
v58 = (unsigned int)v57;
else
v58 = (unsigned int)v48;
GameObject::setGlowOpacity((GameObject *)v33, v58);
v59 = (float)(*(unsigned __int8 (__fastcall **)(__int64 *))(*v33 + 896))(v33) / 255.0;
if ( v59 > 0.8 )
{
MixedColor = GJEffectManager::getMixedColor(
*((_QWORD *)v4 + 56),
v101,
(float)((float)(1.0 - (float)((float)(v59 - 0.8) / 0.2)) * 0.3) + 0.7);
LOWORD(v106) = MixedColor;
BYTE2(v106) = BYTE2(MixedColor);
(*(void (__fastcall **)(__int64 *, __int64 *))(*v33 + 1504))(v33, &v106);
LABEL_39:
if ( v30 != -15 )
goto LABEL_40;
goto LABEL_77;
}
(*(void (__fastcall **)(__int64 *, char *))(*v33 + 1504))(v33, v4 + 448);
if ( v30 != -15 )
goto LABEL_40;
goto LABEL_77;
}
}
v55 = (float)((float)(v52 * 0.95) + 0.05) * 255.0;
goto LABEL_71;
}
if ( (unsigned __int8)GameObject::ignoreFade((GameObject *)v33)
|| v30 == -14
|| *((_BYTE *)v33 + 1033)
&& (!*((_BYTE *)v33 + 1036) || !*((_BYTE *)v33 + 1112))
&& (unsigned int)(v28 + 2) <= 1
&& v30 == -2 )
{
(*(void (__fastcall **)(__int64 *, __int64))(*v33 + 912))(v33, 0xFFFFFFFFLL);
goto LABEL_39;
}
if ( v30 != -15 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, (const cocos2d::CCPoint *)(v4 + 1980));
v74 = *((float *)v33 + 211);
if ( v29 )
v75 = *(float *)&v105 - v74;
else
v75 = *(float *)&v105 + v74;
*(float *)&v105 = v75;
v76 = *(void (__fastcall **)(__int64 *, _QWORD))(*v33 + 912);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v106, (const cocos2d::CCPoint *)&v105);
PlayLayer::getRelativeModNew((float *)this, (float *)&v106, 70.0, 0.0, 0, v29);
v76(v33, (unsigned int)(float)(v77 * 255.0));
LABEL_40:
PlayLayer::applyEnterEffect(this, (GameObject *)v33, v30, v29);
v32 = (cocos2d::CCDirector *)v94;
if ( !v94 )
goto LABEL_41;
goto LABEL_79;
}
LABEL_77:
if ( (unsigned __int8)GameObject::ignoreEnter((GameObject *)v33) )
goto LABEL_40;
PlayLayer::applyCustomEnterEffect((GJEffectManager **)this, (GameObject *)v33, v29);
v32 = (cocos2d::CCDirector *)v94;
if ( !v94 )
{
LABEL_41:
if ( v4[316] )
{
(*(void (__fastcall **)(__int64 *, _QWORD))(*v33 + 1240))(v33, *((unsigned __int8 *)v33 + 996));
(*(void (__fastcall **)(__int64 *, _QWORD))(*v33 + 1248))(v33, *((unsigned __int8 *)v33 + 997));
(*(void (__fastcall **)(__int64 *, float))(*v33 + 360))(v33, *((float *)v33 + 243));
v83 = *(void (__fastcall **)(__int64 *, __int64))(*v33 + 184);
v84 = (*(__int64 (__fastcall **)(__int64 *))(*v33 + 192))(v33);
v83(v33, v84);
}
goto LABEL_43;
}
LABEL_79:
v60 = *((float *)this + 251);
if ( *((float *)this + 3141) == -1.0 )
v60 = 1.0 - v60;
v61 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v32);
cocos2d::CCDirector::getWinSize(&v104, v61);
v62 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64 *))(*v33 + 192))(v33);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, v62);
v63 = *(void (__fastcall **)(__int64 *, __int64 *))(*v33 + 184);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v106,
*(float *)&v105
+ (float)((float)((float)(*(float *)&v104 / *((float *)this + 106))
- (float)((float)(*(float *)&v105 - *((float *)this + 248)) * 2.0))
* v60),
*((float *)&v105 + 1));
v63(v33, &v106);
v64 = fabsf((*(float (__fastcall **)(__int64 *))(*v33 + 368))(v33));
v65 = (int)v64 % 90 != 0;
v66 = v64 != 270.0 && v64 != 90.0;
if ( *((float *)this + 3141) == 1.0 )
{
v86 = *((float *)this + 251);
if ( v86 < 0.5 )
{
if ( !*((_BYTE *)this + 1008) )
goto LABEL_43;
v68 = 1;
if ( v86 > 0.5 )
goto LABEL_43;
if ( v64 != 270.0 && v64 != 90.0 )
goto LABEL_86;
goto LABEL_135;
}
goto LABEL_123;
}
v67 = *((float *)this + 251);
if ( v67 <= 0.5 )
{
LABEL_123:
v87 = *v33;
if ( !v66 )
{
(*(void (__fastcall **)(__int64 *, _QWORD))(v87 + 1248))(v33, *((unsigned __int8 *)v33 + 997) ^ 1u);
if ( !v65 )
goto LABEL_43;
LABEL_125:
(*(void (__fastcall **)(__int64 *, float))(*v33 + 360))(v33, -*((float *)v33 + 243));
goto LABEL_43;
}
(*(void (__fastcall **)(__int64 *, _QWORD))(v87 + 1240))(v33, *((unsigned __int8 *)v33 + 996) ^ 1u);
if ( v65 )
goto LABEL_125;
LABEL_43:
++v27;
v26 += 8;
if ( *((_DWORD *)this + 3182) <= v27 )
break;
}
else
{
if ( !*((_BYTE *)this + 1008) || v67 < 0.5 )
goto LABEL_43;
v68 = -1;
if ( v66 )
{
LABEL_86:
(*(void (__fastcall **)(__int64 *, bool))(*v33 + 1240))(v33, *((unsigned __int8 *)v33 + 996) * v68 != 0);
goto LABEL_87;
}
LABEL_135:
(*(void (__fastcall **)(__int64 *, bool))(*v33 + 1248))(v33, v68 * *((unsigned __int8 *)v33 + 997) != 0);
LABEL_87:
if ( !v65 )
goto LABEL_43;
++v27;
v26 += 8;
(*(void (__fastcall **)(__int64 *, float))(*v33 + 360))(v33, (float)v68 * *((float *)v33 + 243));
if ( *((_DWORD *)this + 3182) <= v27 )
break;
}
}
}
GJBaseGameLayer::updateEnterEffects(this, a2);
GJBaseGameLayer::processAreaVisualActions(this, a2);
GJBaseGameLayer::updateParticles(this, a2);
v4[316] = 0;
if ( *((_QWORD *)this + 1826) )
{
v69 = *((_QWORD **)this + 1825);
if ( v69 )
{
do
{
v70 = (_QWORD *)*v69;
operator delete(v69);
v69 = v70;
}
while ( v70 );
}
v71 = *((_QWORD *)this + 1824);
v72 = 0;
*((_QWORD *)this + 1825) = 0;
if ( v71 )
{
do
*(_QWORD *)(*((_QWORD *)this + 1823) + 8 * v72++) = 0;
while ( v72 != v71 );
}
*((_QWORD *)this + 1826) = 0;
}
if ( (unsigned __int8)PlayLayer::shouldDebugDraw(this) )
(*(void (__fastcall **)(PlayLayer *))(*(_QWORD *)this + 1304LL))(this);
return _stack_chk_guard;
}