//
// PlayLayer::updateVisibility from 0x1403af3a0 to 0x1403b02d8 (3896 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405c9bb0
// > ??> @ 0x1406d6d10
//
// 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
//
// Hidden C++ exception states: #wind=1
void PlayLayer::updateVisibility(PlayLayer *a1, float a2)
{
ColorActionSprite *ColorSprite; // rax
__int16 v5; // cx
GLubyte b; // dl
__int64 v7; // rcx
cocos2d::CCDirector *v8; // rax
const cocos2d::ccColor3B *v9; // rax
ColorActionSprite *v10; // rax
char v11; // al
ColorActionSprite *v12; // rax
__int16 v13; // bx
GLubyte v14; // di
__int64 v15; // rcx
std::_Vector_val>::pointer i; // rax
float v17; // xmm6_4
float v18; // xmm11_4
cocos2d::CCDirector *v19; // rax
float v20; // xmm13_4
__int16 *v21; // rcx
float m_levelFlipping; // xmm0_4
__int64 v23; // rax
float m_audioScale; // xmm8_4
bool m_isPracticeMode; // al
std::_List_val>::size_type Mysize; // r15
__int64 v27; // rdx
cocos2d::CCPoint *p_m_enterEffectPosition; // r14
std::_Simple_types::value_type v29; // rdi
unsigned __int64 m_mainColorKeyIndex; // rax
std::_Simple_types::value_type v31; // ecx
std::vector *p_m_keyColors; // r15
cocos2d::ccColor3B *v33; // rbx
std::vector *p_m_keyOpacities; // r14
__int64 v35; // r12
std::_Vector_val>::pointer Myfirst; // r13
float v37; // xmm3_4
std::vector *v38; // rbx
int v39; // ecx
unsigned __int64 v40; // rcx
unsigned __int64 v41; // rdx
std::_Simple_types::value_type v42; // ecx
cocos2d::ccColor3B *v43; // rbx
__int64 m_detailColorKeyIndex; // rbx
std::_Vector_val>::pointer v45; // r12
float v46; // xmm3_4
int v47; // ecx
unsigned __int64 v48; // r8
unsigned int m_activeMainColorID; // r9d
std::_Vector_val>, std::_Iterator_base0>>>::pointer v50; // rdx
std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr Ptr; // r8
GameObject_vtbl *v52; // rbx
const cocos2d::ccColor3B *v53; // rax
float v54; // xmm3_4
int m_opacity; // ecx
int m_activeDetailColorID; // edx
GameObject_vtbl *v57; // rbx
const cocos2d::ccColor3B *v58; // rax
float v59; // xmm3_4
int v60; // ecx
unsigned int v61; // r9d
unsigned __int64 v62; // r10
std::_Vector_val>, std::_Iterator_base0>>>::pointer v63; // rdx
std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr v64; // rcx
char v65; // al
__int64 v66; // rax
__int16 m_enterType; // dx
bool v68; // r12
std::_Vector_val>::pointer v69; // rax
int v70; // r15d
int v71; // r13d
__int64 v72; // rdx
__int64 v73; // rcx
cocos2d::CCArray *v74; // r14
unsigned int j; // ebx
struct cocos2d::CCObject *v76; // rax
__int64 v77; // rdx
const cocos2d::CCPoint *v78; // rax
float v79; // xmm1_4
cocos2d::ccColor3B *p_m_lightBGColor; // rdx
cocos2d::CCRGBAProtocol *v81; // rcx
cocos2d::CCRGBAProtocol_vtbl *v82; // rax
float m_fadeMargin; // xmm1_4
cocos2d *v84; // rcx
float v85; // xmm0_4
__int64 v86; // rdx
cocos2d::CCSprite *m_glowSprite; // rcx
int v88; // ebx
GameObject_vtbl *v89; // rbx
__int64 v90; // rax
cocos2d::ccColor3B v91; // [rsp+40h] [rbp-C0h] BYREF
cocos2d::ccColor3B v92; // [rsp+50h] [rbp-B0h] BYREF
cocos2d::ccColor3B v93; // [rsp+60h] [rbp-A0h] BYREF
cocos2d::CCPoint v94; // [rsp+68h] [rbp-98h] BYREF
int v95; // [rsp+70h] [rbp-90h]
cocos2d::ccHSVValue v96; // [rsp+80h] [rbp-80h] BYREF
FMODAudioEngine *v97; // [rsp+90h] [rbp-70h] BYREF
int v98; // [rsp+9Ch] [rbp-64h]
std::_List_val>::size_type v99; // [rsp+A0h] [rbp-60h]
__int64 v100; // [rsp+A8h] [rbp-58h]
float v101; // [rsp+B0h] [rbp-50h]
cocos2d::ccColor3B v102; // [rsp+1A0h] [rbp+A0h] BYREF
cocos2d::ccColor3B v103; // [rsp+1B0h] [rbp+B0h] BYREF
__int16 v104; // [rsp+1B8h] [rbp+B8h] BYREF
char v105; // [rsp+1BAh] [rbp+BAh]
*(float *)&dword_1406C10BC = a1->m_cameraWidth + a1->m_gameState.m_cameraPosition2.x;
GJBaseGameLayer::preUpdateVisibility(a1, a2);
GJEffectManager::processColors(a1->m_effectManager);
ColorSprite = GJEffectManager::getColorSprite(a1->m_effectManager, 1005);
if ( ColorSprite )
{
v5 = *(_WORD *)&ColorSprite->m_copyColor.r;
b = ColorSprite->m_copyColor.b;
}
else
{
v5 = -1;
b = -1;
}
*(_WORD *)&v102.r = v5;
v102.b = b;
GJEffectManager::calculateLightBGColor(a1->m_effectManager, &v102);
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(v8);
v9 = a1->m_background->getColor(&a1->m_background->cocos2d::CCRGBAProtocol);
LOWORD(v98) = 257;
v96.h = 0.0;
v96.s = -0.30000001;
v96.v = 0.40000001;
*(_DWORD *)&v96.absoluteSaturation = v98;
GameToolbox::transformColor(&v91, v9, &v96);
v10 = GJEffectManager::getColorSprite(a1->m_effectManager, 1007);
if ( v10 )
{
v104 = *(_WORD *)&v10->m_copyColor.r;
v11 = v10->m_copyColor.b;
}
else
{
v104 = -1;
v11 = -1;
}
v105 = v11;
v12 = GJEffectManager::getColorSprite(a1->m_effectManager, 1000);
if ( v12 )
{
v13 = *(_WORD *)&v12->m_copyColor.r;
v14 = v12->m_copyColor.b;
}
else
{
v13 = -1;
v14 = -1;
}
v102.b = v14;
*(_WORD *)&v102.r = v13;
LOWORD(v98) = 257;
v96.h = 0.0;
v96.s = -0.2;
v96.v = 0.2;
*(_DWORD *)&v96.absoluteSaturation = v98;
GameToolbox::transformColor(&v103, &v102, &v96);
a1->m_lightBGColor = v103;
for ( i = a1->m_keyPulses.m_bits._Mypair._Myval2._Myfirst; i != a1->m_keyPulses.m_bits._Mypair._Myval2._Mylast; ++i )
{
v15 = 0;
*i = 0;
}
v17 = 0.5;
v18 = (float)(v101 * 0.5) - 75.0;
v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15);
v20 = (float)(cocos2d::CCDirector::getScreenRight(v19) - (float)(v18 + 110.0)) - 90.0;
v21 = &v104;
if ( (float)((unsigned __int8)v13 + v102.g + v14) >= 150.0 )
v21 = &word_140529BB8;
v93 = *(cocos2d::ccColor3B *)v21;
v103.r = a1->m_player1->m_isDead;
m_levelFlipping = a1->m_gameState.m_levelFlipping;
v102.r = m_levelFlipping != 0.0 && m_levelFlipping != 1.0;
if ( a1->m_skipAudioStep )
{
v23 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v97 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v97);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v23 = qword_1406C2E88;
}
m_audioScale = *(float *)(v23 + 528);
}
else
{
m_audioScale = a1->m_audioEffectsLayer->m_audioScale;
}
m_isPracticeMode = a1->m_isPracticeMode;
if ( m_isPracticeMode && !a1->m_practiceMusicSync || a1->m_isSilent )
m_audioScale = 0.5;
if ( !m_isPracticeMode || a1->m_practiceMusicSync )
v17 = m_audioScale;
a1->m_player1->m_audioScale = v17;
a1->m_player2->m_audioScale = v17;
Mysize = a1->m_blendingColors._List._Mypair._Myval2._Mysize;
v99 = Mysize;
v95 = 0;
if ( a1->m_activeObjectsCount > 0 )
{
v27 = 0;
v100 = 0;
p_m_enterEffectPosition = &a1->m_enterEffectPosition;
while ( 1 )
{
v29 = a1->m_activeObjects._Mypair._Myval2._Myfirst[v27];
m_mainColorKeyIndex = v29->m_mainColorKeyIndex;
if ( (int)m_mainColorKeyIndex <= 0 )
{
v52 = v29->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v53 = GameObject::colorForMode(v29, v29->m_activeMainColorID, 1);
v52->updateMainColor(v29, v53);
v54 = 1.0;
if ( v29->m_activeMainColorID > 0 )
{
m_opacity = (int)v29->m_mainActionSprite->m_opacity;
if ( (unsigned __int8)m_opacity < 0xFAu )
v54 = (float)(unsigned __int8)m_opacity * 0.0040000002;
}
if ( v29->m_opacityGroupCount > 0 )
v54 = v54 * GameObject::groupOpacityMod(v29);
v29->m_baseColor->m_opacity = v54;
if ( v29->m_colorSprite )
{
m_activeDetailColorID = v29->m_activeDetailColorID;
if ( m_activeDetailColorID || v29->m_groupCount )
{
v57 = v29->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v58 = GameObject::colorForMode(v29, m_activeDetailColorID, 0);
v57->updateSecondaryColor(v29, v58);
v59 = 1.0;
if ( v29->m_activeDetailColorID > 0 )
{
v60 = (int)v29->m_detailActionSprite->m_opacity;
if ( (unsigned __int8)v60 < 0xFAu )
v59 = (float)(unsigned __int8)v60 * 0.0040000002;
}
if ( v29->m_opacityGroupCount > 0 )
v59 = v59 * GameObject::groupOpacityMod(v29);
v29->m_detailColor->m_opacity = v59;
}
}
}
else
{
v31 = a1->m_keyPulses.m_bits._Mypair._Myval2._Myfirst[(m_mainColorKeyIndex >> 5)
+ ((m_mainColorKeyIndex - 32 * (m_mainColorKeyIndex >> 5)) >> 5)];
p_m_keyColors = &a1->m_keyColors;
if ( _bittest(
(const int *)&v31,
((_BYTE)m_mainColorKeyIndex - 32 * (unsigned __int8)(m_mainColorKeyIndex >> 5)) & 0x1F) )
{
p_m_keyOpacities = &a1->m_keyOpacities;
}
else
{
v33 = &p_m_keyColors->_Mypair._Myval2._Myfirst[v29->m_mainColorKeyIndex];
*v33 = *GameObject::colorForMode(v29, v29->m_activeMainColorID, 1);
p_m_keyOpacities = &a1->m_keyOpacities;
v35 = v29->m_mainColorKeyIndex;
Myfirst = a1->m_keyOpacities._Mypair._Myval2._Myfirst;
v37 = 1.0;
v38 = &a1->m_keyOpacities;
if ( v29->m_activeMainColorID > 0 )
{
v39 = (int)v29->m_mainActionSprite->m_opacity;
if ( (unsigned __int8)v39 < 0xFAu )
{
v37 = (float)(unsigned __int8)v39 * 0.0040000002;
v38 = &a1->m_keyOpacities;
}
}
if ( v29->m_opacityGroupCount > 0 )
{
v37 = v37 * GameObject::groupOpacityMod(v29);
p_m_keyOpacities = v38;
}
Myfirst[v35] = v37;
v40 = (unsigned __int64)v29->m_mainColorKeyIndex >> 5;
v41 = (v29->m_mainColorKeyIndex - 32 * v40) >> 5;
a1->m_keyPulses.m_bits._Mypair._Myval2._Myfirst[v40 + v41] |= 1 << ((LOBYTE(v29->m_mainColorKeyIndex)
- 32 * v40)
& 0x1F);
}
v29->updateMainColor(v29, &p_m_keyColors->_Mypair._Myval2._Myfirst[v29->m_mainColorKeyIndex]);
v29->m_baseColor->m_opacity = p_m_keyOpacities->_Mypair._Myval2._Myfirst[v29->m_mainColorKeyIndex];
if ( v29->m_colorSprite )
{
v42 = a1->m_keyPulses.m_bits._Mypair._Myval2._Myfirst[((unsigned __int64)v29->m_detailColorKeyIndex >> 5)
+ ((v29->m_detailColorKeyIndex
- 32
* ((unsigned __int64)v29->m_detailColorKeyIndex >> 5)) >> 5)];
if ( !_bittest(
(const int *)&v42,
((unsigned __int8)v29->m_detailColorKeyIndex
- 32 * (unsigned __int8)((unsigned __int64)v29->m_detailColorKeyIndex >> 5))
& 0x1F) )
{
v43 = &p_m_keyColors->_Mypair._Myval2._Myfirst[v29->m_detailColorKeyIndex];
*v43 = *GameObject::colorForMode(v29, v29->m_activeDetailColorID, 0);
m_detailColorKeyIndex = v29->m_detailColorKeyIndex;
v45 = p_m_keyOpacities->_Mypair._Myval2._Myfirst;
v46 = 1.0;
if ( v29->m_activeDetailColorID > 0 )
{
v47 = (int)v29->m_detailActionSprite->m_opacity;
if ( (unsigned __int8)v47 < 0xFAu )
{
v46 = (float)(unsigned __int8)v47 * 0.0040000002;
p_m_keyColors = &a1->m_keyColors;
p_m_keyOpacities = &a1->m_keyOpacities;
}
}
if ( v29->m_opacityGroupCount > 0 )
v46 = v46 * GameObject::groupOpacityMod(v29);
v45[m_detailColorKeyIndex] = v46;
v48 = ((unsigned __int64)v29->m_detailColorKeyIndex >> 5)
+ ((v29->m_detailColorKeyIndex - 32 * ((unsigned __int64)v29->m_detailColorKeyIndex >> 5)) >> 5);
a1->m_keyPulses.m_bits._Mypair._Myval2._Myfirst[v48] |= 1 << ((v29->m_detailColorKeyIndex
- 32
* ((unsigned __int64)v29->m_detailColorKeyIndex >> 5))
& 0x1F);
}
v29->updateSecondaryColor(v29, &p_m_keyColors->_Mypair._Myval2._Myfirst[v29->m_detailColorKeyIndex]);
v29->m_detailColor->m_opacity = p_m_keyOpacities->_Mypair._Myval2._Myfirst[v29->m_detailColorKeyIndex];
}
Mysize = v99;
p_m_enterEffectPosition = &a1->m_enterEffectPosition;
}
if ( v29->m_isActivated && Mysize )
break;
LABEL_86:
v29->activateObject(v29);
v66 = ((__int64 (__fastcall *)(std::_Simple_types::value_type, cocos2d::ccHSVValue *))v29->getRealPosition)(
v29,
&v96);
cocos2d::CCPoint::operator=(p_m_enterEffectPosition, v66);
m_enterType = v29->m_enterType;
if ( m_enterType != -1 )
{
v68 = 1;
v69 = a1->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst;
goto LABEL_91;
}
if ( v29->m_exitType != -1 )
{
v68 = 0;
LABEL_90:
v69 = a1->m_gameState.m_exitChannelMap._Mypair._Myval2._Myfirst;
m_enterType = v29->m_exitType;
goto LABEL_91;
}
v79 = a1->m_halfCameraWidth + a1->m_gameState.m_cameraPosition2.x;
v68 = p_m_enterEffectPosition->x > v79;
if ( p_m_enterEffectPosition->x <= v79 )
goto LABEL_90;
v69 = a1->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst;
LABEL_91:
v70 = v69[v29->m_enterChannel];
v71 = m_enterType;
if ( v29->m_isUIObject )
{
v71 = -14;
v70 = -14;
}
if ( v29->getHasSyncedAnimation(v29) )
((void (__fastcall *)(std::_Simple_types::value_type, __int64, __int64))v29->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable[1].acceptVisitor)(
v29,
v72,
0xFFFFFFFFLL);
if ( v29->getHasRotateAction(v29) )
EnhancedGameObject::updateRotateAction((EnhancedGameObject *)v29, a2);
if ( v29->m_unk367 )
{
v92 = v91;
v73 = *(_QWORD *)&v29[1].m_sAdditionalTransform.d;
if ( v73 )
{
v74 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v73 + 464LL))(v73);
for ( j = 0; j < cocos2d::CCArray::count(v74); ++j )
{
v76 = cocos2d::CCArray::objectAtIndex(v74, j);
(**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))&v76[5].m_unknown2)(
(__int64)&v76[5].m_unknown2,
&v92);
}
p_m_enterEffectPosition = &a1->m_enterEffectPosition;
}
}
if ( v29->getType(v29) == Collectible )
{
v78 = a1->m_hoverNode->getPosition_0(a1->m_hoverNode);
EffectGameObject::updateInteractiveHover((EffectGameObject *)v29, v78->y);
}
if ( v29->m_objectID == 143 )
v29->setGlowColor(v29, &a1->m_lightBGColor);
if ( v29->m_unk3F8 )
goto LABEL_144;
if ( v29->m_usesAudioScale && !v29->m_hasNoAudioScale )
((void (__fastcall *)(std::_Simple_types::value_type))v29->setRScale)(v29);
if ( v29->m_customGlowColor )
{
p_m_lightBGColor = (cocos2d::ccColor3B *)&v104;
if ( !v29->m_glowColorIsLBG )
p_m_lightBGColor = &a1->m_lightBGColor;
v29->setGlowColor(v29, p_m_lightBGColor);
}
if ( v29->m_isInvisibleBlock )
{
if ( v103.r )
{
v29->setGlowColor(v29, &a1->m_lightBGColor);
LOBYTE(v86) = -1;
v29->setOpacity(&v29->cocos2d::CCRGBAProtocol, v86);
m_glowSprite = v29->m_glowSprite;
if ( m_glowSprite )
{
v88 = (int)(float)(v29->m_opacityMod * 255.0);
m_glowSprite->setOpacity(&m_glowSprite->cocos2d::CCRGBAProtocol, v88);
v29->m_glowSprite->setChildOpacity(v29->m_glowSprite, v88);
}
}
else
{
PlayLayer::updateInvisibleBlock(a1, v29, v18 + 110.0, v18, v20, v18 - 30.0, &v93);
}
LABEL_139:
if ( v70 != -15 )
goto LABEL_126;
goto LABEL_140;
}
if ( v29->m_ignoreFade || v70 == -14 )
{
LOBYTE(v77) = -1;
v29->setOpacity(&v29->cocos2d::CCRGBAProtocol, v77);
goto LABEL_139;
}
if ( v29->m_intrinsicDontFade
&& (!v29->m_isSolidColorBlock || !v29->m_baseOrDetailBlending)
&& (unsigned int)(v71 + 2) <= 1
&& v70 == -2 )
{
v81 = &v29->cocos2d::CCRGBAProtocol;
v82 = v29->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;
LOBYTE(v77) = -1;
LABEL_125:
v82->setOpacity(v81, v77);
LABEL_126:
PlayLayer::applyEnterEffect(a1, v29, v70, v68);
goto LABEL_127;
}
if ( v70 != -15 )
{
cocos2d::CCPoint::CCPoint(&v94);
m_fadeMargin = v29->m_fadeMargin;
if ( v68 )
v94.x = v94.x - m_fadeMargin;
else
v94.x = v94.x + m_fadeMargin;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v97);
v85 = cocos2d::clampf(v84, 0.0, 1.0);
v81 = &v29->cocos2d::CCRGBAProtocol;
v82 = v29->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable;
v77 = (unsigned int)(int)(float)(v85 * 255.0);
goto LABEL_125;
}
LABEL_140:
if ( v29->m_ignoreEnter )
goto LABEL_126;
PlayLayer::applyCustomEnterEffect(a1, v29, v68);
LABEL_127:
if ( v102.r )
{
PlayLayer::screenFlipObject(a1, v29);
}
else if ( a1->m_resetActiveObjects )
{
v29->setFlipX(v29, v29->m_startFlipX);
v29->setFlipY(v29, v29->m_startFlipY);
((void (__fastcall *)(std::_Simple_types::value_type))v29->setRotation)(v29);
v89 = v29->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v90 = (__int64)v29->getPosition_0(v29);
v89->setPosition_0(v29, (const cocos2d::CCPoint *)v90);
}
LABEL_144:
++v95;
v27 = ++v100;
Mysize = v99;
if ( v95 >= a1->m_activeObjectsCount )
goto LABEL_145;
}
m_activeMainColorID = v29->m_activeMainColorID;
v50 = a1->m_blendingColors._Vec._Mypair._Myval2._Myfirst;
Ptr = v50[2
* ((0x100000001B3LL
* (((unsigned __int64)m_activeMainColorID >> 24)
^ (0x100000001B3LL
* (BYTE2(m_activeMainColorID)
^ (0x100000001B3LL
* ((0x100000001B3LL * ((unsigned __int8)m_activeMainColorID ^ 0xCBF29CE484222325uLL))
^ BYTE1(m_activeMainColorID)))))))
& a1->m_blendingColors._Mask)
+ 1]._Ptr;
if ( Ptr != a1->m_blendingColors._List._Mypair._Myval2._Myhead )
{
if ( m_activeMainColorID == *((_DWORD *)Ptr + 4) )
goto LABEL_73;
while ( Ptr != v50[2
* ((0x100000001B3LL
* (((unsigned __int64)(unsigned int)v29->m_activeMainColorID >> 24)
^ (0x100000001B3LL
* ((unsigned __int8)BYTE2(v29->m_activeMainColorID)
^ (0x100000001B3LL
* ((0x100000001B3LL * ((unsigned __int8)m_activeMainColorID ^ 0xCBF29CE484222325uLL))
^ (unsigned __int8)BYTE1(v29->m_activeMainColorID)))))))
& a1->m_blendingColors._Mask)]._Ptr )
{
Ptr = *((std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr *)Ptr
+ 1);
if ( m_activeMainColorID == *((_DWORD *)Ptr + 4) )
goto LABEL_73;
}
}
Ptr = nullptr;
LABEL_73:
if ( !v29->m_colorSprite )
goto LABEL_82;
v61 = v29->m_activeDetailColorID;
v62 = (0x100000001B3LL
* (((unsigned __int64)v61 >> 24)
^ (0x100000001B3LL
* (BYTE2(v61)
^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v61 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v61)))))))
& a1->m_blendingColors._Mask;
v63 = a1->m_blendingColors._Vec._Mypair._Myval2._Myfirst;
v64 = v63[2 * v62 + 1]._Ptr;
if ( v64 != a1->m_blendingColors._List._Mypair._Myval2._Myhead )
{
if ( v61 == *((_DWORD *)v64 + 4) )
goto LABEL_80;
while ( v64 != v63[2 * v62]._Ptr )
{
v64 = *((std::_List_unchecked_const_iterator>, std::_Iterator_base0>::_Nodeptr *)v64
+ 1);
if ( v61 == *((_DWORD *)v64 + 4) )
goto LABEL_80;
}
}
v64 = nullptr;
LABEL_80:
if ( v64 )
{
v65 = 1;
LABEL_83:
if ( Ptr || v65 )
{
v29->addMainSpriteToParent(v29, 0);
GameObject::addColorSpriteToParent(v29, 0);
}
goto LABEL_86;
}
LABEL_82:
v65 = 0;
goto LABEL_83;
}
LABEL_145:
GJBaseGameLayer::updateEnterEffects(a1, a2);
GJBaseGameLayer::processAreaEffects(a1, &a1->m_gameState.m_fadeEffectInstances, (GJAreaActionType)3, a2, 1);
GJBaseGameLayer::processAreaEffects(a1, &a1->m_gameState.m_tintEffectInstances, Tint, a2, 1);
GJBaseGameLayer::updateParticles(a1, a2);
a1->m_resetActiveObjects = 0;
sub_14005E0D0(&a1->m_blendingColors._Traitsobj._Mypair._Myval2._Myval2);
if ( a1->m_isDebugDrawEnabled && a1->m_isPracticeMode || a1->m_hitboxesOnDeath && a1->m_playerDied )
a1->updateDebugDraw(a1);
}