//
// PlayLayer::updateVisibility from 0x1000b7010 to 0x1000b7e21 (3601 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b72e8
//
// 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 __fastcall PlayLayer::updateVisibility(PlayLayer *a1, float a2)
{
GJEffectManager *m_effectManager; // r14
int v4; // eax
cocos2d::CCDirector *v5; // rsi
const cocos2d::ccColor3B *v6; // rax
int v7; // eax
std::__vector_base::pointer begin; // rcx
std::__vector_base::pointer end; // rax
unsigned __int64 v10; // rsi
std::__vector_base::pointer v11; // rdx
__int64 v12; // rsi
unsigned __int64 v13; // rdi
__int64 v14; // r8
__m128 v15; // xmm2
cocos2d::CCDirector *v16; // rax
cocos2d::ccColor3B *v17; // rax
FMODAudioEngine *v18; // rax
bool m_isPracticeMode; // al
float v20; // xmm0_4
float v21; // xmm0_4
__int64 i; // r14
GameObject *v23; // r15
__int64 m_mainColorKeyIndex; // rax
unsigned int v25; // ecx
float v26; // xmm0_4
unsigned __int64 m_detailColorKeyIndex; // rax
unsigned int v28; // ecx
float v29; // xmm0_4
unsigned __int64 v30; // rdi
unsigned __int64 m_activeMainColorID; // rcx
unsigned __int64 v32; // r9
__int64 v33; // rsi
std::__hash_node_base *> *v34; // rax
std::__hash_node_base *>::__next_pointer next; // r8
unsigned __int64 v36; // rdi
std::__hash_node_base *>::__next_pointer v37; // rax
char v38; // r12
unsigned __int64 v39; // rax
unsigned __int64 v40; // rdi
unsigned __int64 m_activeDetailColorID; // rcx
unsigned __int64 v42; // r9
__int64 v43; // rsi
std::__hash_node_base *> *v44; // rax
std::__hash_node_base *>::__next_pointer v45; // r8
unsigned __int64 v46; // rdi
unsigned __int64 v47; // rax
std::__hash_node_base *>::__next_pointer v48; // rax
double v49; // xmm0_8
__int16 m_enterType; // r13
_BOOL4 v51; // edx
std::vector *v52; // rax
bool m_isUIObject; // r12
int v54; // ecx
float m_totalTime; // xmm0_4
__int64 v56; // rax
double v57; // xmm0_8
cocos2d::ccColor3B *v58; // rsi
int v59; // edx
bool v60; // cl
PlayLayer *v61; // rdi
GameObject *v62; // rsi
float m_fadeMargin; // xmm0_4
float v64; // xmm0_4
float v65; // xmm0_4
__int64 v66; // rax
std::__hash_node_base *>::__next_pointer v67; // rdi
std::__hash_node_base *> *v68; // r14
unsigned __int64 v69; // rsi
float v70; // [rsp+0h] [rbp-A0h] BYREF
unsigned __int64 value; // [rsp+8h] [rbp-98h]
std::vector *p_m_exitChannelMap; // [rsp+10h] [rbp-90h]
cocos2d::CCPoint *p_m_enterEffectPosition; // [rsp+18h] [rbp-88h]
std::vector *p_m_enterChannelMap; // [rsp+20h] [rbp-80h]
float v75; // [rsp+28h] [rbp-78h] BYREF
int v76; // [rsp+30h] [rbp-70h]
float v77; // [rsp+34h] [rbp-6Ch]
float v78; // [rsp+38h] [rbp-68h]
float v79; // [rsp+3Ch] [rbp-64h]
cocos2d::ccColor3B *p_m_lightBGColor; // [rsp+40h] [rbp-60h]
float v81; // [rsp+48h] [rbp-58h] BYREF
cocos2d::ccColor3B v82; // [rsp+50h] [rbp-50h] BYREF
float v83; // [rsp+54h] [rbp-4Ch]
float v84; // [rsp+58h] [rbp-48h]
int v85; // [rsp+5Ch] [rbp-44h]
_BOOL4 v86; // [rsp+60h] [rbp-40h]
float v87; // [rsp+64h] [rbp-3Ch]
cocos2d::ccColor3B v88; // [rsp+68h] [rbp-38h] BYREF
float MeteringValue; // [rsp+6Ch] [rbp-34h]
bool isFlipping; // [rsp+72h] [rbp-2Eh]
bool m_isDead; // [rsp+73h] [rbp-2Dh]
cocos2d::ccColor3B v92; // [rsp+74h] [rbp-2Ch] BYREF
double v93; // 0:xmm0_8.8
*(float *)&dword_1009A3EBC = a1->m_gameState.m_cameraPosition2.x + a1->m_cameraWidth;
v87 = a2;
GJBaseGameLayer::preUpdateVisibility(a1, a2);
GJEffectManager::processColors(a1->m_effectManager);
m_effectManager = a1->m_effectManager;
*(cocos2d::ccColor3B *)&v4 = GJEffectManager::activeColorForIndex(m_effectManager, 1005);
GJEffectManager::calculateLightBGColor(m_effectManager, (cocos2d::ccColor3B)v4);
v5 = cocos2d::CCDirector::sharedDirector();
*(cocos2d::CCSize *)&v93 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v70);
v6 = (const cocos2d::ccColor3B *)((__int64 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCDirector *, double))a1->m_background->getColor)(
a1->m_background,
v5,
v93);
*(cocos2d::ccColor3B *)&v7 = GameToolbox::transformColor(v6, 0.0, -0.30000001, 0.40000001);
v76 = v7;
v88 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1007);
v92 = GJEffectManager::activeColorForIndex(a1->m_effectManager, 1000);
a1->m_lightBGColor = GameToolbox::transformColor(&v92, 0.0, -0.2, 0.2);
begin = a1->m_keyPulses.m_bits.__begin_;
end = a1->m_keyPulses.m_bits.__end_;
if ( begin != end )
{
v10 = (char *)end - (char *)begin - 8;
if ( v10 < 0x18 )
{
v11 = a1->m_keyPulses.m_bits.__begin_;
do
{
LABEL_7:
*v11 = 0;
v11 += 2;
}
while ( v11 != end );
goto LABEL_8;
}
v12 = (v10 >> 3) + 1;
v13 = v12 & 0xFFFFFFFFFFFFFFFCLL;
v11 = &begin[2 * (v12 & 0xFFFFFFFFFFFFFFFCLL)];
v14 = 0;
do
{
v15 = _mm_blend_ps(*(__m128 *)&begin[2 * v14 + 4], (__m128)0LL, 5);
*(__m128 *)&begin[2 * v14] = _mm_blend_ps(*(__m128 *)&begin[2 * v14], (__m128)0LL, 5);
*(__m128 *)&begin[2 * v14 + 4] = v15;
v14 += 4;
}
while ( v13 != v14 );
if ( v12 != v13 )
goto LABEL_7;
}
LABEL_8:
v83 = v70;
v16 = cocos2d::CCDirector::sharedDirector();
v84 = sub_100484DA0(v16);
v17 = (cocos2d::ccColor3B *)&unk_100815E10;
if ( v92.r + v92.g + (unsigned int)v92.b < 0x96 )
v17 = &v88;
v82 = *v17;
m_isDead = a1->m_player1->m_isDead;
isFlipping = GJBaseGameLayer::isFlipping(a1);
if ( a1->m_skipAudioStep )
{
v18 = FMODAudioEngine::sharedEngine();
MeteringValue = FMODAudioEngine::getMeteringValue(v18);
m_isPracticeMode = a1->m_isPracticeMode;
if ( !m_isPracticeMode )
goto LABEL_15;
}
else
{
MeteringValue = a1->m_audioEffectsLayer->m_audioScale;
m_isPracticeMode = a1->m_isPracticeMode;
if ( !m_isPracticeMode )
goto LABEL_15;
}
if ( !a1->m_practiceMusicSync )
{
LABEL_16:
MeteringValue = 0.5;
goto LABEL_17;
}
LABEL_15:
if ( a1->m_isSilent )
goto LABEL_16;
LABEL_17:
if ( m_isPracticeMode && !a1->m_practiceMusicSync )
v20 = 0.5;
else
v20 = MeteringValue;
a1->m_player1->m_audioScale = v20;
a1->m_player2->m_audioScale = v20;
if ( a1->m_activeObjectsCount > 0 )
{
v21 = (float)(v83 * 0.5) + -75.0;
v77 = v21 + 110.0;
p_m_lightBGColor = &a1->m_lightBGColor;
v84 = (float)(v84 - (float)(v21 + 110.0)) + -90.0;
v83 = v21;
v78 = v21 + -30.0;
value = a1->m_blendingColors.__table_.__p2_.__value_;
p_m_enterEffectPosition = &a1->m_enterEffectPosition;
p_m_exitChannelMap = &a1->m_gameState.m_exitChannelMap;
p_m_enterChannelMap = &a1->m_gameState.m_enterChannelMap;
v79 = MeteringValue + -0.1;
for ( i = 0; i < a1->m_activeObjectsCount; ++i )
{
v23 = a1->m_activeObjects.__begin_[i];
m_mainColorKeyIndex = v23->m_mainColorKeyIndex;
if ( m_mainColorKeyIndex <= 0 )
{
GameObject::updateMainColor(a1->m_activeObjects.__begin_[i]);
GameObject::updateSecondaryColor(v23);
if ( !v23->m_isActivated )
goto LABEL_93;
}
else
{
v25 = a1->m_keyPulses.m_bits.__begin_[2 * ((unsigned __int64)m_mainColorKeyIndex >> 5)];
if ( !_bittest((const int *)&v25, m_mainColorKeyIndex) )
{
a1->m_keyColors.__begin_[v23->m_mainColorKeyIndex] = *GameObject::colorForMode(
a1->m_activeObjects.__begin_[i],
v23->m_activeMainColorID,
1);
v26 = GameObject::opacityModForMode(v23, v23->m_activeMainColorID, 1);
m_mainColorKeyIndex = v23->m_mainColorKeyIndex;
a1->m_keyOpacities.__begin_[m_mainColorKeyIndex] = v26;
*(_QWORD *)&a1->m_keyPulses.m_bits.__begin_[2 * ((unsigned __int64)m_mainColorKeyIndex >> 5)] |= 1LL << (m_mainColorKeyIndex & 0x1F);
}
((void (__fastcall *)(GameObject *, cocos2d::_ccColor3B *))v23->updateMainColor)(
v23,
&a1->m_keyColors.__begin_[m_mainColorKeyIndex]);
v23->m_baseColor->m_opacity = a1->m_keyOpacities.__begin_[v23->m_mainColorKeyIndex];
if ( GameObject::hasSecondaryColor(v23) )
{
m_detailColorKeyIndex = v23->m_detailColorKeyIndex;
v28 = a1->m_keyPulses.m_bits.__begin_[2 * (m_detailColorKeyIndex >> 5)];
if ( !_bittest((const int *)&v28, m_detailColorKeyIndex) )
{
a1->m_keyColors.__begin_[v23->m_detailColorKeyIndex] = *GameObject::colorForMode(
v23,
v23->m_activeDetailColorID,
0);
v29 = GameObject::opacityModForMode(v23, v23->m_activeDetailColorID, 0);
m_detailColorKeyIndex = v23->m_detailColorKeyIndex;
a1->m_keyOpacities.__begin_[m_detailColorKeyIndex] = v29;
*(_QWORD *)&a1->m_keyPulses.m_bits.__begin_[2 * (m_detailColorKeyIndex >> 5)] |= 1LL << (m_detailColorKeyIndex & 0x1F);
}
((void (__fastcall *)(GameObject *, cocos2d::_ccColor3B *))v23->updateSecondaryColor)(
v23,
&a1->m_keyColors.__begin_[m_detailColorKeyIndex]);
v23->m_detailColor->m_opacity = a1->m_keyOpacities.__begin_[v23->m_detailColorKeyIndex];
}
if ( !v23->m_isActivated )
goto LABEL_93;
}
if ( !value )
goto LABEL_93;
v30 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( !v30 )
{
LABEL_63:
v38 = 0;
if ( GameObject::hasSecondaryColor(v23) )
goto LABEL_64;
goto LABEL_91;
}
m_activeMainColorID = v23->m_activeMainColorID;
v32 = (0x101010101010101LL
* ((((v30 - ((v30 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)
+ (((v30 - ((v30 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)
+ ((((v30 - ((v30 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)
+ (((v30 - ((v30 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4))
& 0xF0F0F0F0F0F0F0FLL)) >> 56;
if ( v32 > 1 )
{
v33 = v23->m_activeMainColorID;
if ( v30 <= m_activeMainColorID )
{
if ( !((v30 | m_activeMainColorID) >> 32) )
{
v33 = (unsigned int)m_activeMainColorID % (unsigned int)v30;
v34 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_[v33];
if ( !v34 )
goto LABEL_63;
goto LABEL_44;
}
v33 = m_activeMainColorID % v30;
}
v34 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_[v33];
if ( !v34 )
goto LABEL_63;
}
else
{
v33 = m_activeMainColorID & (v30 - 1);
v34 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_[v33];
if ( !v34 )
goto LABEL_63;
}
LABEL_44:
next = v34->__next_;
if ( !v34->__next_ )
goto LABEL_63;
if ( (unsigned int)v32 < 2 )
{
v36 = v30 - 1;
while ( 1 )
{
v37 = next[1].__next_;
if ( v37 == (std::__hash_node_base *>::__next_pointer)m_activeMainColorID )
{
if ( LODWORD(next[2].__next_) == (_DWORD)m_activeMainColorID )
goto LABEL_51;
}
else if ( (v36 & (unsigned __int64)v37) != v33 )
{
goto LABEL_63;
}
next = next->__next_;
if ( !next )
goto LABEL_63;
}
}
while ( 1 )
{
v39 = (unsigned __int64)next[1].__next_;
if ( v39 == m_activeMainColorID )
break;
if ( v39 >= v30 )
{
if ( (v30 | v39) >> 32 )
v39 %= v30;
else
v39 = (unsigned int)v39 % (unsigned int)v30;
}
if ( v39 != v33 )
goto LABEL_63;
LABEL_55:
next = next->__next_;
if ( !next )
goto LABEL_63;
}
if ( LODWORD(next[2].__next_) != (_DWORD)m_activeMainColorID )
goto LABEL_55;
LABEL_51:
v38 = 1;
if ( !GameObject::hasSecondaryColor(v23) )
goto LABEL_91;
LABEL_64:
v40 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( v40 )
{
m_activeDetailColorID = v23->m_activeDetailColorID;
v42 = (0x101010101010101LL
* ((((v40 - ((v40 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)
+ (((v40 - ((v40 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)
+ ((((v40 - ((v40 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL)
+ (((v40 - ((v40 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4))
& 0xF0F0F0F0F0F0F0FLL)) >> 56;
if ( v42 <= 1 )
{
v43 = m_activeDetailColorID & (v40 - 1);
v44 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_[v43];
if ( !v44 )
goto LABEL_91;
LABEL_72:
v45 = v44->__next_;
if ( !v44->__next_ )
goto LABEL_91;
if ( (unsigned int)v42 < 2 )
{
v46 = v40 - 1;
while ( 1 )
{
v48 = v45[1].__next_;
if ( v48 == (std::__hash_node_base *>::__next_pointer)m_activeDetailColorID )
{
if ( LODWORD(v45[2].__next_) == (_DWORD)m_activeDetailColorID )
goto LABEL_92;
}
else if ( (v46 & (unsigned __int64)v48) != v43 )
{
goto LABEL_91;
}
v45 = v45->__next_;
if ( !v45 )
goto LABEL_91;
}
}
while ( 2 )
{
v47 = (unsigned __int64)v45[1].__next_;
if ( v47 == m_activeDetailColorID )
{
if ( LODWORD(v45[2].__next_) == (_DWORD)m_activeDetailColorID )
goto LABEL_92;
}
else if ( v47 < v40 )
{
LABEL_81:
if ( v47 != v43 )
goto LABEL_91;
}
else
{
if ( (v40 | v47) >> 32 )
{
v47 %= v40;
goto LABEL_81;
}
if ( (unsigned int)v47 % (unsigned int)v40 != v43 )
goto LABEL_91;
}
v45 = v45->__next_;
if ( !v45 )
goto LABEL_91;
continue;
}
}
v43 = v23->m_activeDetailColorID;
if ( v40 > m_activeDetailColorID )
{
LABEL_71:
v44 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_[v43];
if ( v44 )
goto LABEL_72;
}
else
{
if ( (v40 | m_activeDetailColorID) >> 32 )
{
v43 = m_activeDetailColorID % v40;
goto LABEL_71;
}
v43 = (unsigned int)m_activeDetailColorID % (unsigned int)v40;
v44 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_[v43];
if ( v44 )
goto LABEL_72;
}
}
LABEL_91:
if ( v38 )
{
LABEL_92:
((void (__fastcall *)(GameObject *, _QWORD))v23->addMainSpriteToParent)(v23, 0);
GameObject::addColorSpriteToParent(v23, 0);
}
LABEL_93:
((void (__fastcall *)(GameObject *))v23->activateObject)(v23);
((void (__fastcall *)(float *, GameObject *))v23->getRealPosition)(&v81, v23);
v49 = sub_10028CC90();
m_enterType = v23->m_enterType;
LOBYTE(v51) = 1;
if ( m_enterType == -1 )
{
if ( v23->m_exitType != -1
|| (*(_QWORD *)&v49 = LODWORD(a1->m_enterEffectPosition.x),
m_enterType = -1,
v52 = p_m_enterChannelMap,
*(float *)&v49 <= (float)(a1->m_gameState.m_cameraPosition2.x + a1->m_halfCameraWidth)) )
{
v51 = 0;
v52 = p_m_exitChannelMap;
m_enterType = v23->m_exitType;
}
}
else
{
v52 = p_m_enterChannelMap;
}
v86 = v51;
m_isUIObject = v23->m_isUIObject;
v54 = -14;
if ( !m_isUIObject )
v54 = v52->__begin_[v23->m_enterChannel];
v85 = v54;
if ( ((unsigned __int8 (__fastcall *)(GameObject *, float *, double))v23->getHasSyncedAnimation)(v23, &v81, v49) )
{
m_totalTime = a1->m_gameState.m_totalTime;
((void (__fastcall *)(GameObject *, __int64, float))v23->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].isEqual)(
v23,
0xFFFFFFFFLL,
m_totalTime);
}
if ( ((unsigned __int8 (__fastcall *)(GameObject *))v23->getHasRotateAction)(v23) )
EnhancedGameObject::updateRotateAction((EnhancedGameObject *)v23, v87);
if ( v23->m_unk367 )
AnimatedGameObject::updateChildSpriteColor((AnimatedGameObject *)v23, (cocos2d::ccColor3B)v76);
if ( ((unsigned int (__fastcall *)(GameObject *))v23->getType)(v23) == 30 )
{
v56 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a1->m_hoverNode->getPosition)(a1->m_hoverNode);
EffectGameObject::updateInteractiveHover((EffectGameObject *)v23, *(float *)(v56 + 4));
if ( v23->m_objectID == 143 )
goto LABEL_111;
}
else if ( v23->m_objectID == 143 )
{
LABEL_111:
((void (__fastcall *)(GameObject *, cocos2d::ccColor3B *))v23->setGlowColor)(v23, p_m_lightBGColor);
if ( v23->m_unk3F8 )
continue;
goto LABEL_112;
}
if ( v23->m_unk3F8 )
continue;
LABEL_112:
if ( v23->m_usesAudioScale && !v23->m_hasNoAudioScale )
{
*(_QWORD *)&v57 = LODWORD(MeteringValue);
if ( v23->m_customAudioScale )
{
*(_QWORD *)&v57 = LODWORD(v23->m_maxAudioScale);
*(float *)&v57 = (float)((float)(*(float *)&v57 - v23->m_minAudioScale) * v79) + v23->m_minAudioScale;
}
((void (__fastcall *)(GameObject *, double))v23->setRScale)(v23, v57);
}
if ( v23->m_customGlowColor )
{
v58 = p_m_lightBGColor;
if ( v23->m_glowColorIsLBG )
v58 = &v88;
((void (__fastcall *)(GameObject *, cocos2d::ccColor3B *))v23->setGlowColor)(v23, v58);
}
if ( v23->m_isInvisibleBlock )
{
if ( m_isDead )
{
((void (__fastcall *)(GameObject *, cocos2d::ccColor3B *))v23->setGlowColor)(v23, p_m_lightBGColor);
((void (__fastcall *)(GameObject *, __int64))v23->setOpacity)(v23, 255);
GameObject::setGlowOpacity(v23, 0xFFu);
v59 = v85;
if ( v85 != -15 )
goto LABEL_148;
}
else
{
PlayLayer::updateInvisibleBlock(a1, v23, v77, v83, v84, v78, &v82);
v59 = v85;
if ( v85 != -15 )
goto LABEL_148;
}
}
else
{
if ( !GameObject::ignoreFade(v23) && v85 != -14 )
{
if ( !v23->m_intrinsicDontFade
|| v23->m_isSolidColorBlock && v23->m_baseOrDetailBlending
|| (unsigned __int16)m_enterType < 0xFFFEu
|| m_isUIObject
|| v85 != -2 )
{
if ( v85 == -15 )
goto LABEL_139;
sub_10028CC60(&v81);
m_fadeMargin = v23->m_fadeMargin;
if ( v86 )
{
v81 = v81 - m_fadeMargin;
sub_10028CC60(&v75);
v64 = (float)((float)(a1->m_gameState.m_cameraPosition2.x + a1->m_cameraWidth) - v75) + 0.0;
}
else
{
v81 = m_fadeMargin + v81;
sub_10028CC60(&v75);
v64 = v75 - a1->m_gameState.m_cameraPosition2.x;
}
v65 = cocos2d::clampf(v64 / 70.0, 0.0, 1.0);
((void (__fastcall *)(GameObject *, _QWORD))v23->setOpacity)(
v23,
(unsigned __int8)(int)(float)(v65 * 255.0));
}
else
{
((void (__fastcall *)(GameObject *, __int64))v23->setOpacity)(v23, 255);
}
v59 = v85;
LABEL_148:
v60 = v86;
v61 = a1;
v62 = v23;
LABEL_149:
PlayLayer::applyEnterEffect(v61, v62, v59, v60);
if ( !isFlipping )
{
LABEL_150:
if ( a1->m_resetActiveObjects )
{
((void (__fastcall *)(GameObject *, bool))v23->setFlipX)(v23, v23->m_startFlipX);
((void (__fastcall *)(GameObject *, bool))v23->setFlipY)(v23, v23->m_startFlipY);
((void (__fastcall *)(GameObject *, float))v23->setRotation)(v23, v23->m_startRotationX);
v66 = ((__int64 (__fastcall *)(GameObject *))v23->getPosition)(v23);
((void (__fastcall *)(GameObject *, __int64))v23->setPosition)(v23, v66);
}
continue;
}
goto LABEL_23;
}
((void (__fastcall *)(GameObject *, __int64))v23->setOpacity)(v23, 255);
v59 = v85;
if ( v85 != -15 )
goto LABEL_148;
}
LABEL_139:
if ( GameObject::ignoreEnter(v23) )
{
v60 = v86;
v61 = a1;
v62 = v23;
v59 = -15;
goto LABEL_149;
}
PlayLayer::applyCustomEnterEffect(a1, v23, v86);
if ( !isFlipping )
goto LABEL_150;
LABEL_23:
PlayLayer::screenFlipObject(a1, v23);
}
}
GJBaseGameLayer::updateEnterEffects(a1, v87);
GJBaseGameLayer::processAreaVisualActions(a1, v87);
GJBaseGameLayer::updateParticles(a1, v87);
a1->m_resetActiveObjects = 0;
if ( a1->m_blendingColors.__table_.__p2_.__value_ )
{
v67 = a1->m_blendingColors.__table_.__p1_.__value_.__next_;
if ( v67 )
{
do
{
v68 = v67->__next_;
operator delete(v67);
v67 = v68;
}
while ( v68 );
}
a1->m_blendingColors.__table_.__p1_.__value_.__next_ = nullptr;
v69 = a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;
if ( v69 )
__bzero(a1->m_blendingColors.__table_.__bucket_list_.__ptr_.__value_, 8 * v69);
a1->m_blendingColors.__table_.__p2_.__value_ = 0;
}
if ( a1->m_isDebugDrawEnabled && a1->m_isPracticeMode || a1->m_hitboxesOnDeath && a1->m_playerDied )
((void (__fastcall *)(PlayLayer *))a1->updateDebugDraw)(a1);
}