//
// PlayLayer::updateVisibility from 0x5ce0a0 to 0x5ceef0 (3664 bytes)
//
// 2 xrefs:
// > ??> @ 0x5fef8
// > ??> @ 0x11489b8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayLayer::updateVisibility(PlayLayer *a1, float a2)
{
float *v4; // x25
GJEffectManager *m_effectManager; // x21
cocos2d::CCDirector *v6; // x0
const cocos2d::ccColor3B *v7; // x0
int v8; // w0
int v9; // w2
GJEffectManager *v10; // x0
int v11; // w0
unsigned int *m_start; // x0
unsigned int *m_finish; // x3
unsigned int *v14; // x4
unsigned __int64 v15; // x1
bool v16; // cc
unsigned __int64 v17; // x2
unsigned __int64 v18; // x1
unsigned __int64 v19; // x2
unsigned int *v20; // x5
unsigned __int64 v21; // x4
float v22; // s11
float v23; // s10
cocos2d::CCDirector *v24; // x0
float v25; // s0
__int16 *v26; // x1
PlayerObject *m_player1; // x2
__int16 v28; // w3
float MeteringValue; // s0
float v30; // s12
unsigned __int64 m_activeObjectsCount; // x1
PlayerObject *m_player2; // x0
std::_Hashtable, std::__detail::_Identity, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::_Hashtable_traits>::size_type M_element_count; // x2
__int64 v34; // x22
int v35; // w21
float v36; // s0
float v37; // s1
int m_enterType; // w20
_BOOL4 v39; // w26
int v40; // w24
AnimatedGameObject_vtbl *v41; // x2
AnimatedGameObject *v42; // x28
unsigned __int64 m_mainColorKeyIndex; // x3
unsigned __int64 m_detailColorKeyIndex; // x3
__int64 v45; // x20
const cocos2d::CCPoint *v46; // x0
float m_totalTime; // s0
cocos2d::_ccColor3B *v48; // x26
float *v49; // x20
float v50; // s0
unsigned int *v51; // x1
float m_fadeMargin; // s1
float v53; // s0
float v54; // s3
float v55; // s4
float RelativeMod; // s0
float x; // s1
float v58; // s11
float v59; // s15
float v60; // s2
float v61; // s1
float v62; // s15
float v63; // s2
bool v64; // nf
float v65; // s1
__int64 v66; // x1
float v67; // s15
unsigned __int8 v68; // w1
float v69; // s0
float m_levelFlipping; // s15
cocos2d::CCDirector *v71; // x0
const cocos2d::CCPoint *v72; // x0
void (__fastcall *v73)(GameObject *__hidden, const cocos2d::CCPoint *); // x20
float v74; // s0
_BOOL4 v75; // w20
_BOOL4 v76; // w0
float v77; // s0
AnimatedGameObject_vtbl *v78; // x2
std::__detail::_Hash_node_base *M_nxt; // x0
std::__detail::_Hash_node_base *v80; // x20
float v81; // s0
float v82; // s0
AnimatedGameObject_vtbl *v83; // x2
void (__fastcall *setOpacity)(AnimatedGameObject *__hidden, unsigned __int8); // x20
float v85; // s2
float v86; // s3
float RelativeModNew; // s0
const cocos2d::ccColor3B *v88; // x1
cocos2d::_ccColor3B *v89; // x26
float *v90; // x20
float v91; // s0
unsigned int *v92; // x1
void (__fastcall *setPosition)(GameObject *__hidden, const cocos2d::CCPoint *); // x20
__int64 v94; // x0
float v95; // s15
float v96; // s1
int v97; // w24
FMODAudioEngine *v98; // x0
float v99; // [xsp+A8h] [xbp+A8h]
float v100; // [xsp+ACh] [xbp+ACh]
float v101; // [xsp+B0h] [xbp+B0h]
_BOOL4 m_isDead; // [xsp+B4h] [xbp+B4h]
_BOOL4 isFlipping; // [xsp+B8h] [xbp+B8h]
_BOOL4 v104; // [xsp+BCh] [xbp+BCh]
__int16 v105; // [xsp+C8h] [xbp+C8h] BYREF
char v106; // [xsp+CAh] [xbp+CAh]
cocos2d::ccColor3B v107; // [xsp+D0h] [xbp+D0h] BYREF
__int64 v108; // [xsp+D8h] [xbp+D8h]
__int64 v109; // [xsp+E0h] [xbp+E0h]
float v110; // [xsp+E8h] [xbp+E8h]
float v111; // [xsp+F0h] [xbp+F0h]
cocos2d::CCPoint v112; // [xsp+F8h] [xbp+F8h] BYREF
cocos2d::CCPoint v113; // [xsp+100h] [xbp+100h] BYREF
cocos2d::ccColor3B v114; // 0:^C0.3
cocos2d::CCSize WinSize; // 0:kr00_8.8
cocos2d::CCSize v116; // 0:kr08_8.8
cocos2d::ccHSVValue v117; // 0:x1.16
cocos2d::ccHSVValue v118; // 0:x1.16
cocos2d::CCPoint v119; // 0:s0.4,4:s1.4
cocos2d::CCPoint v120; // 0:s0.4,4:s1.4
v4 = &a1->m_varianceValues.__elems_[1975];
*(float *)&cameraRight = a1->m_gameState.m_cameraPosition2.x + a1->m_cameraWidth;
GJBaseGameLayer::preUpdateVisibility(a1, a2);
GJEffectManager::processColors(a1->m_effectManager);
m_effectManager = a1->m_effectManager;
*(cocos2d::ccColor3B *)&v109 = GJEffectManager::activeColorForIndex(m_effectManager, 1005);
GJEffectManager::calculateLightBGColor(m_effectManager, (cocos2d::ccColor3B)v109);
v6 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v6);
v7 = (const cocos2d::ccColor3B *)((__int64 (__fastcall *)(cocos2d::CCSprite *, float, float))a1->m_background->getColor)(
a1->m_background,
WinSize.width,
WinSize.height);
v114 = GameToolbox::transformColor(v7, v117);
*(cocos2d::ccColor3B *)&v8 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1007);
v9 = v8;
v10 = a1->m_effectManager;
v105 = v9;
v106 = BYTE2(v9);
*(cocos2d::ccColor3B *)&v11 = GJEffectManager::activeColorForIndex(v10, 1000);
*(_QWORD *)&v118.h = v11;
*(_QWORD *)&v118.v = BYTE2(v11);
v107 = (cocos2d::ccColor3B)v11;
*((cocos2d::ccColor3B *)v4 + 256) = GameToolbox::transformColor(&v107, v118);
m_start = a1->m_keyPulses.m_bits.m_start;
m_finish = a1->m_keyPulses.m_bits.m_finish;
if ( m_start != m_finish )
{
v14 = m_start + 2;
v15 = (unsigned __int64)((char *)m_finish - (char *)(m_start + 2)) >> 3;
v16 = v15 > 2;
v17 = (v15 - 1) >> 1;
v18 = v15 + 1;
v19 = v17 + 1;
if ( v16 )
{
v20 = a1->m_keyPulses.m_bits.m_start;
v21 = 0;
do
{
*(_OWORD *)v20 = 0u;
v20 += 4;
++v21;
}
while ( v21 < v19 );
m_start += 4 * v19;
if ( 2 * v19 == v18 )
goto LABEL_9;
v14 = m_start + 2;
}
*(_QWORD *)m_start = 0;
if ( m_finish != v14 )
{
*((_QWORD *)m_start + 1) = 0;
if ( m_finish != m_start + 4 )
*((_QWORD *)m_start + 2) = 0;
}
}
LABEL_9:
v22 = (float)(v110 * 0.5) + -75.0;
v23 = v22 + 110.0;
v24 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getScreenRight(v24);
v26 = &v105;
v101 = (float)(v25 - (float)(v22 + 110.0)) - 90.0;
v100 = v22 - 30.0;
if ( (float)(v107.r + v107.g + v107.b) >= 150.0 )
v26 = (__int16 *)&off_EA3590;
m_player1 = a1->m_player1;
v28 = *v26;
BYTE2(v108) = *((_BYTE *)v26 + 2);
m_isDead = m_player1->m_isDead;
LOWORD(v108) = v28;
isFlipping = GJBaseGameLayer::isFlipping(a1);
if ( *((_BYTE *)v4 + 2312) )
{
v98 = FMODAudioEngine::sharedEngine();
MeteringValue = FMODAudioEngine::getMeteringValue(v98);
}
else
{
MeteringValue = a1->m_audioEffectsLayer->m_audioScale;
}
if ( !*((_BYTE *)v4 + 592) )
{
if ( !*((_BYTE *)v4 + 2192) )
goto LABEL_21;
goto LABEL_137;
}
if ( *((_BYTE *)v4 + 593) )
{
v30 = MeteringValue;
if ( !*((_BYTE *)v4 + 2192) )
goto LABEL_16;
LABEL_137:
MeteringValue = 0.5;
goto LABEL_21;
}
v30 = 0.5;
LABEL_16:
if ( !*((_BYTE *)v4 + 593) )
{
MeteringValue = 0.5;
goto LABEL_22;
}
MeteringValue = v30;
LABEL_21:
v30 = MeteringValue;
LABEL_22:
m_activeObjectsCount = (unsigned int)a1->m_activeObjectsCount;
m_player2 = a1->m_player2;
a1->m_player1->m_audioScale = MeteringValue;
M_element_count = a1->m_blendingColors._M_h._M_element_count;
m_player2->m_audioScale = MeteringValue;
if ( (int)m_activeObjectsCount > 0 )
{
v34 = 0;
v104 = M_element_count != 0;
v35 = 0;
v99 = v22;
while ( 1 )
{
v42 = (AnimatedGameObject *)a1->m_activeObjects.m_start[v34];
LODWORD(m_mainColorKeyIndex) = v42->m_mainColorKeyIndex;
if ( (int)m_mainColorKeyIndex <= 0 )
{
GameObject::updateMainColor(a1->m_activeObjects.m_start[v34], (const cocos2d::ccColor3B *)m_activeObjectsCount);
GameObject::updateSecondaryColor(v42, v88);
}
else
{
m_mainColorKeyIndex = (int)m_mainColorKeyIndex;
if ( ((1LL << (m_mainColorKeyIndex & 0x1F))
& *(_QWORD *)&a1->m_keyPulses.m_bits.m_start[2 * ((unsigned __int64)(int)m_mainColorKeyIndex >> 5)]) == 0 )
{
v48 = a1->m_keyColors.m_start;
v48[(int)m_mainColorKeyIndex] = *GameObject::colorForMode(
a1->m_activeObjects.m_start[v34],
v42->m_activeMainColorID,
1);
LODWORD(v48) = v42->m_mainColorKeyIndex;
v49 = a1->m_keyOpacities.m_start;
v50 = GameObject::opacityModForMode(v42, v42->m_activeMainColorID, 1);
m_mainColorKeyIndex = v42->m_mainColorKeyIndex;
v51 = a1->m_keyPulses.m_bits.m_start;
v49[(int)v48] = v50;
*(_QWORD *)&v51[2 * (m_mainColorKeyIndex >> 5)] |= 1LL << (m_mainColorKeyIndex & 0x1F);
}
v42->updateMainColor(v42, &a1->m_keyColors.m_start[m_mainColorKeyIndex]);
v42->m_baseColor->m_opacity = a1->m_keyOpacities.m_start[v42->m_mainColorKeyIndex];
if ( GameObject::hasSecondaryColor(v42) )
{
m_detailColorKeyIndex = v42->m_detailColorKeyIndex;
if ( ((1LL << (m_detailColorKeyIndex & 0x1F))
& *(_QWORD *)&a1->m_keyPulses.m_bits.m_start[2 * (m_detailColorKeyIndex >> 5)]) == 0 )
{
v89 = a1->m_keyColors.m_start;
v89[m_detailColorKeyIndex] = *GameObject::colorForMode(v42, v42->m_activeDetailColorID, 0);
LODWORD(v89) = v42->m_detailColorKeyIndex;
v90 = a1->m_keyOpacities.m_start;
v91 = GameObject::opacityModForMode(v42, v42->m_activeDetailColorID, 0);
m_detailColorKeyIndex = v42->m_detailColorKeyIndex;
v92 = a1->m_keyPulses.m_bits.m_start;
v90[(int)v89] = v91;
*(_QWORD *)&v92[2 * (m_detailColorKeyIndex >> 5)] |= 1LL << (m_detailColorKeyIndex & 0x1F);
}
v42->updateSecondaryColor(v42, &a1->m_keyColors.m_start[m_detailColorKeyIndex]);
v42->m_detailColor->m_opacity = a1->m_keyOpacities.m_start[v42->m_detailColorKeyIndex];
}
}
if ( v104 && v42->m_isActivated )
{
if ( (v45 = sub_5C955C((_QWORD *)v4 + 290, v42->m_activeMainColorID), GameObject::hasSecondaryColor(v42))
&& sub_5C955C((_QWORD *)v4 + 290, v42->m_activeDetailColorID)
|| v45 )
{
v42->addMainSpriteToParent(v42, 0);
GameObject::addColorSpriteToParent(v42, 0);
}
}
v42->activateObject(v42);
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, AnimatedGameObject *))v42->getRealPosition)(&v113, v42);
cocos2d::CCPoint::operator=(v4 + 543, v36, v37);
if ( v42->m_enterType == -1
&& ((m_enterType = v42->m_exitType, m_enterType != -1)
|| a1->m_enterEffectPosition.x <= (float)(a1->m_gameState.m_cameraPosition2.x + a1->m_halfCameraWidth)) )
{
v39 = 0;
v40 = a1->m_gameState.m_exitChannelMap.m_start[v42->m_enterChannel];
}
else
{
m_enterType = v42->m_enterType;
v39 = 1;
v40 = a1->m_gameState.m_enterChannelMap.m_start[v42->m_enterChannel];
}
if ( v42->m_isUIObject )
{
m_enterType = -14;
v40 = -14;
}
if ( v42->getHasSyncedAnimation(v42) )
{
m_totalTime = a1->m_gameState.m_totalTime;
((void (__fastcall *)(AnimatedGameObject *, __int64, float))v42->updateSyncedAnimation)(
v42,
0xFFFFFFFFLL,
m_totalTime);
}
if ( v42->getHasRotateAction(v42) )
EnhancedGameObject::updateRotateAction(v42, a2);
if ( v42->m_unk367 )
{
AnimatedGameObject::updateChildSpriteColor(v42, v114);
if ( v42->getType(v42) == Collectible )
{
LABEL_64:
v46 = a1->m_hoverNode->getPosition(a1->m_hoverNode);
EffectGameObject::updateInteractiveHover((EffectGameObject *)v42, v46->y);
if ( v42->m_objectID != 143 )
goto LABEL_35;
goto LABEL_65;
}
}
else if ( v42->getType(v42) == Collectible )
{
goto LABEL_64;
}
if ( v42->m_objectID != 143 )
goto LABEL_35;
LABEL_65:
v42->setGlowColor(v42, (const cocos2d::ccColor3B *)v4 + 256);
LABEL_35:
if ( v42->m_unk3F8 )
goto LABEL_50;
if ( v42->m_usesAudioScale && !v42->m_hasNoAudioScale )
{
if ( v42->m_customAudioScale )
v42->setRScale(
v42,
v42->m_minAudioScale + (float)((float)(v30 - 0.1) * (float)(v42->m_maxAudioScale - v42->m_minAudioScale)));
else
v42->setRScale(v42, v30);
}
if ( v42->m_customGlowColor )
{
v41 = v42->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v42->m_glowColorIsLBG )
v41->setGlowColor(v42, (const cocos2d::ccColor3B *)&v105);
else
v41->setGlowColor(v42, (const cocos2d::ccColor3B *)v4 + 256);
}
if ( v42->m_isInvisibleBlock )
{
if ( m_isDead )
{
v42->setGlowColor(v42, (const cocos2d::ccColor3B *)v4 + 256);
v42->setOpacity(v42, 0xFFFFFFFF);
GameObject::setGlowOpacity(v42, 0xFFu);
goto LABEL_46;
}
((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, AnimatedGameObject *))v42->getRealPosition)(&v112, v42);
m_fadeMargin = v42->m_fadeMargin;
if ( v112.x <= a1->m_cameraUnzoomedX )
v53 = v112.x + m_fadeMargin;
else
v53 = v112.x - m_fadeMargin;
v112.x = v53;
cocos2d::CCPoint::CCPoint(&v113, &v112);
v119.y = 0.014286;
v119.x = 0.02;
RelativeMod = PlayLayer::getRelativeMod(a1, v119, 0.0, v54, v55);
x = a1->m_gameState.m_cameraPosition2.x;
v58 = RelativeMod * 255.0;
if ( v112.x <= (float)(v23 + x) )
{
v59 = v100;
v61 = (float)(v99 + x) - v112.x;
v60 = 1.0;
if ( v100 < 1.0 )
goto LABEL_112;
LABEL_72:
v62 = v61 / v59;
v63 = 1.0;
v64 = v62 < 1.0;
if ( v62 >= 1.0 )
goto LABEL_73;
LABEL_113:
if ( v62 <= 0.0 )
{
v65 = 12.75;
v62 = 0.0;
goto LABEL_75;
}
}
else
{
v59 = v101;
v60 = 1.0;
v61 = (float)(v112.x - x) - v23;
if ( v101 >= 1.0 )
goto LABEL_72;
LABEL_112:
v95 = v60;
v63 = 1.0;
v62 = v61 / v95;
v64 = v62 < 1.0;
if ( v62 < 1.0 )
goto LABEL_113;
LABEL_73:
if ( !v64 )
{
v65 = 255.0;
v62 = v63;
LABEL_75:
if ( v58 >= v65 )
v66 = (unsigned __int8)(unsigned int)v65;
else
v66 = (unsigned __int8)(unsigned int)v58;
v42->setOpacity(v42, v66);
v67 = (float)((float)(v62 * 0.85) + 0.15) * 255.0;
if ( v58 >= v67 )
v68 = (unsigned int)v67;
else
v68 = (unsigned int)v58;
GameObject::setGlowOpacity(v42, v68);
v69 = (float)v42->getOpacity(v42) / 255.0;
if ( v69 > 0.8 )
{
*(cocos2d::ccColor3B *)&v113.x = GJEffectManager::getMixedColor(
(cocos2d::ccColor3B)*((_QWORD *)v4 + 96),
(cocos2d::ccColor3B)v108,
(float)((float)(1.0 - (float)((float)(v69 - 0.8) / 0.2)) * 0.3) + 0.7);
v42->setGlowColor(v42, (const cocos2d::ccColor3B *)&v113);
LABEL_46:
if ( v40 != -15 )
goto LABEL_47;
goto LABEL_81;
}
v42->setGlowColor(v42, (const cocos2d::ccColor3B *)v4 + 256);
if ( v40 != -15 )
goto LABEL_47;
goto LABEL_81;
}
}
v65 = (float)((float)(v62 * 0.95) + 0.05) * 255.0;
goto LABEL_75;
}
if ( GameObject::ignoreFade(v42)
|| v40 == -14
|| v42->m_intrinsicDontFade
&& (!v42->m_isSolidColorBlock || !v42->m_baseOrDetailBlending)
&& (unsigned int)(m_enterType + 2) <= 1
&& v40 == -2 )
{
v42->setOpacity(v42, 0xFFFFFFFF);
goto LABEL_46;
}
if ( v40 != -15 )
{
cocos2d::CCPoint::CCPoint(&v112, (const cocos2d::CCPoint *)(v4 + 543));
v81 = v42->m_fadeMargin;
if ( v39 )
v82 = v112.x - v81;
else
v82 = v112.x + v81;
v83 = v42->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v112.x = v82;
setOpacity = v83->setOpacity;
cocos2d::CCPoint::CCPoint(&v113, &v112);
v120.y = 0.0;
v120.x = 70.0;
RelativeModNew = PlayLayer::getRelativeModNew(a1, v120, v85, v86, (bool)&v113, 0);
setOpacity(v42, (unsigned int)(float)(RelativeModNew * 255.0));
LABEL_47:
PlayLayer::applyEnterEffect(a1, v42, v40, v39);
if ( !isFlipping )
goto LABEL_48;
goto LABEL_83;
}
LABEL_81:
if ( GameObject::ignoreEnter(v42) )
goto LABEL_47;
PlayLayer::applyCustomEnterEffect(a1, v42, v39);
if ( !isFlipping )
{
LABEL_48:
if ( *((_BYTE *)v4 + 644) )
{
v42->setFlipX(v42, v42->m_startFlipX);
v42->setFlipY(v42, v42->m_startFlipY);
v42->setRotation(v42, v42->m_startRotationX);
setPosition = v42->setPosition;
v94 = (__int64)v42->getPosition(v42);
setPosition(v42, (const cocos2d::CCPoint *)v94);
}
goto LABEL_50;
}
LABEL_83:
m_levelFlipping = a1->m_gameState.m_levelFlipping;
if ( a1->m_cameraFlip == -1.0 )
m_levelFlipping = 1.0 - m_levelFlipping;
v71 = cocos2d::CCDirector::sharedDirector();
v116 = cocos2d::CCDirector::getWinSize(v71);
v72 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(AnimatedGameObject *, float, float))v42->getPosition)(
v42,
v116.width,
v116.height);
cocos2d::CCPoint::CCPoint(&v112, v72);
v73 = v42->setPosition;
cocos2d::CCPoint::CCPoint(
&v113,
v112.x
+ (float)((float)((float)(v111 / a1->m_gameState.m_cameraZoom)
- (float)((float)(v112.x - a1->m_gameState.m_cameraPosition.x) * 2.0))
* m_levelFlipping),
v112.y);
v73(v42, &v113);
v74 = fabsf(v42->getRotation(v42));
v75 = (int)v74 % 90 != 0;
v76 = v74 != 270.0 && v74 != 90.0;
if ( a1->m_cameraFlip == 1.0 )
{
v96 = a1->m_gameState.m_levelFlipping;
if ( v96 < 0.5 )
{
m_activeObjectsCount = a1->m_gameState.m_unkBool11;
if ( a1->m_gameState.m_unkBool11 )
{
v97 = 1;
if ( v96 <= 0.5 )
{
if ( v74 != 270.0 && v74 != 90.0 )
goto LABEL_122;
LABEL_141:
v42->setFlipY(v42, v97 * v42->m_startFlipY != 0);
LABEL_123:
if ( v75 )
v42->setRotation(v42, (float)v97 * v42->m_startRotationX);
goto LABEL_50;
}
}
goto LABEL_50;
}
}
else
{
v77 = a1->m_gameState.m_levelFlipping;
if ( v77 > 0.5 )
{
m_activeObjectsCount = a1->m_gameState.m_unkBool11;
if ( a1->m_gameState.m_unkBool11 && v77 >= 0.5 )
{
v97 = -1;
if ( !v76 )
goto LABEL_141;
LABEL_122:
v42->setFlipX(v42, v42->m_startFlipX * v97 != 0);
goto LABEL_123;
}
goto LABEL_50;
}
}
v78 = v42->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
if ( v76 )
{
v78->setFlipX(v42, !v42->m_startFlipX);
if ( !v75 )
goto LABEL_50;
LABEL_89:
++v35;
++v34;
v42->setRotation(v42, -v42->m_startRotationX);
if ( a1->m_activeObjectsCount <= v35 )
break;
}
else
{
v78->setFlipY(v42, !v42->m_startFlipY);
if ( v75 )
goto LABEL_89;
LABEL_50:
++v35;
++v34;
if ( a1->m_activeObjectsCount <= v35 )
break;
}
}
}
GJBaseGameLayer::updateEnterEffects(a1, a2);
GJBaseGameLayer::processAreaVisualActions(a1, a2);
GJBaseGameLayer::updateParticles(a1, a2);
M_nxt = a1->m_blendingColors._M_h._M_before_begin._M_nxt;
*((_BYTE *)v4 + 644) = 0;
if ( M_nxt )
{
do
{
v80 = M_nxt->_M_nxt;
operator delete(M_nxt);
M_nxt = v80;
}
while ( v80 );
}
memset(a1->m_blendingColors._M_h._M_buckets, 0, 8LL * *((_QWORD *)v4 + 291));
*((_QWORD *)v4 + 293) = 0;
*((_QWORD *)v4 + 292) = 0;
if ( PlayLayer::shouldDebugDraw(a1) )
a1->updateDebugDraw(a1);
}