//
// PlayLayer::updateVisibility from 0x14050de00 to 0x14050edd5 (4053 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407d5de8
// > ??> @ 0x14092aa34
//
// 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 11:33:30 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall PlayLayer::updateVisibility(__int64 a1, float a2, __int64 a3, float a4)
{
__int64 v6; // rcx
__int64 v7; // rcx
char *ColorSprite; // rax
unsigned __int16 v9; // cx
char v10; // dl
__int64 v11; // rcx
__int64 v12; // rax
unsigned __int16 *v13; // rax
char *v14; // rax
char v15; // al
char *v16; // rax
unsigned __int16 v17; // bx
unsigned __int8 v18; // di
__int64 v19; // rcx
_DWORD *i; // rax
int v21; // xmm6_4
float v22; // xmm11_4
cocos2d::CCDirector *v23; // rax
float v24; // xmm13_4
__int16 *v25; // rcx
float v26; // xmm0_4
__int64 v27; // rax
int v28; // xmm8_4
char v29; // al
__int64 v30; // r15
__int64 v31; // rdx
const struct cocos2d::CCPoint *v32; // r14
unsigned __int8 *v33; // rdi
unsigned __int64 v34; // rax
int v35; // ecx
_QWORD *v36; // r15
__int64 v37; // rbx
__int64 v38; // rax
__int64 *v39; // r14
__int64 v40; // r12
__int64 v41; // r13
__int64 *v42; // rbx
int v43; // ecx
double v44; // xmm0_8
unsigned __int64 v45; // rdx
int v46; // ecx
__int64 v47; // rbx
__int64 v48; // rax
__int64 v49; // rbx
__int64 v50; // r12
int v51; // ecx
double v52; // xmm0_8
unsigned __int64 v53; // rdx
int v54; // r9d
_QWORD *v55; // r10
__int64 v56; // rcx
__int64 v57; // rdx
__int64 v58; // rbx
__int64 v59; // rax
int v60; // ecx
double v61; // xmm0_8
int v62; // edx
__int64 v63; // rbx
__int64 v64; // rax
int v65; // ecx
double v66; // xmm0_8
int v67; // r9d
unsigned __int64 v68; // r8
__int64 v69; // r11
__int64 v70; // rcx
char v71; // al
__int64 v72; // rax
__int16 v73; // dx
bool v74; // r12
__int64 v75; // rax
unsigned int v76; // r15d
int v77; // r13d
__int64 v78; // rdx
__int64 v79; // rcx
cocos2d::CCArray *v80; // r14
unsigned int j; // ebx
struct cocos2d::CCObject *v82; // rax
__int64 v83; // rdx
int v84; // r8d
int v85; // r9d
float v86; // xmm1_4
__int16 *v87; // rdx
unsigned __int8 *v88; // rcx
__int64 v89; // rax
float v90; // xmm1_4
cocos2d *v91; // rcx
float v92; // xmm0_4
__int64 v93; // rdx
__int64 v94; // rcx
int v95; // ebx
__int64 v96; // rbx
__int64 v97; // rax
__int64 result; // rax
__int16 v99; // [rsp+40h] [rbp-C0h] BYREF
char v100; // [rsp+42h] [rbp-BEh]
__int16 v101; // [rsp+50h] [rbp-B0h] BYREF
char v102; // [rsp+52h] [rbp-AEh]
__int16 v103; // [rsp+60h] [rbp-A0h] BYREF
char v104; // [rsp+62h] [rbp-9Eh]
float v105; // [rsp+68h] [rbp-98h] BYREF
int v106; // [rsp+70h] [rbp-90h] BYREF
int v107; // [rsp+74h] [rbp-8Ch]
int v108; // [rsp+78h] [rbp-88h]
int v109; // [rsp+7Ch] [rbp-84h]
int v110; // [rsp+80h] [rbp-80h]
void *v111; // [rsp+88h] [rbp-78h] BYREF
int v112; // [rsp+94h] [rbp-6Ch]
__int64 v113; // [rsp+98h] [rbp-68h]
__int64 v114; // [rsp+A0h] [rbp-60h]
float v115[42]; // [rsp+A8h] [rbp-58h] BYREF
unsigned __int16 v116; // [rsp+190h] [rbp+90h] BYREF
char v117; // [rsp+192h] [rbp+92h]
__int16 v118; // [rsp+1A0h] [rbp+A0h] BYREF
char v119; // [rsp+1A2h] [rbp+A2h]
__int16 v120; // [rsp+1A8h] [rbp+A8h] BYREF
char v121; // [rsp+1AAh] [rbp+AAh]
*(float *)&dword_1409097B4 = *(float *)(a1 + 1292) + *(float *)(a1 + 13148);
if ( *(_BYTE *)(a1 + 15180) && (*(_QWORD *)(a1 + 2176) || *(_QWORD *)(a1 + 2184)) )
{
GJBaseGameLayer::syncDeathMarkerFlip(a1);
a4 = *(float *)(a1 + 13148) + 40.0;
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)&v106,
*(float *)(a1 + 1292) - 20.0,
*(float *)(a1 + 1296) - 20.0,
a4,
*(float *)(a1 + 13152) + 40.0);
v6 = *(_QWORD *)(a1 + 2184);
if ( v6 )
DeathMarkerLayer::updateVisibility(v6, (float *)&v106);
v7 = *(_QWORD *)(a1 + 2176);
if ( v7 )
DeathMarkerLayer::updateVisibility(v7, (float *)&v106);
}
GJBaseGameLayer::preUpdateVisibility(a1, a2);
GJEffectManager::processColors(*(_QWORD *)(a1 + 2408));
ColorSprite = GJEffectManager::getColorSprite(*(_QWORD *)(a1 + 2408), 1005);
if ( ColorSprite )
{
v9 = *(_WORD *)(ColorSprite + 327);
v10 = ColorSprite[329];
}
else
{
v9 = -1;
v10 = -1;
}
v116 = v9;
v117 = v10;
GJEffectManager::calculateLightBGColor(*(_QWORD *)(a1 + 2408), (__int64)&v116);
v12 = cocos2d::CCDirector::sharedDirector(v11);
cocos2d::CCDirector::getWinSize(v12, v115);
v13 = (unsigned __int16 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 4320) + 320LL) + 8LL))(*(_QWORD *)(a1 + 4320) + 320LL);
LOWORD(v112) = 257;
v106 = 0;
v107 = -1097229926;
v108 = 1053609165;
v109 = v112;
GameToolbox::transformColor((__int64)&v99, v13, (float *)&v106);
v14 = GJEffectManager::getColorSprite(*(_QWORD *)(a1 + 2408), 1007);
if ( v14 )
{
v120 = *(_WORD *)(v14 + 327);
v15 = v14[329];
}
else
{
v120 = -1;
v15 = -1;
}
v121 = v15;
v16 = GJEffectManager::getColorSprite(*(_QWORD *)(a1 + 2408), 1000);
if ( v16 )
{
v17 = *(_WORD *)(v16 + 327);
v18 = v16[329];
}
else
{
v17 = -1;
v18 = -1;
}
v117 = v18;
v116 = v17;
LOWORD(v112) = 257;
v106 = 0;
v107 = -1102263091;
v108 = 1045220557;
v109 = v112;
GameToolbox::transformColor((__int64)&v118, &v116, (float *)&v106);
*(_WORD *)(a1 + 13216) = v118;
*(_BYTE *)(a1 + 13218) = v119;
for ( i = *(_DWORD **)(a1 + 15520); i != *(_DWORD **)(a1 + 15528); ++i )
{
v19 = 0;
*i = 0;
}
v21 = 1056964608;
v22 = (float)(v115[0] * 0.5) - 75.0;
v23 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19);
v24 = (float)(cocos2d::CCDirector::getScreenRight(v23) - (float)(v22 + 110.0)) - 90.0;
v25 = &v120;
if ( (float)((unsigned __int8)v17 + HIBYTE(v116) + v18) >= 150.0 )
v25 = &word_140704524;
v103 = *v25;
v104 = *((_BYTE *)v25 + 2);
LOBYTE(v118) = *(_BYTE *)(*(_QWORD *)(a1 + 3512) + 2504LL);
v26 = *(float *)(a1 + 1052);
LOBYTE(v116) = v26 != 0.0 && v26 != 1.0;
if ( *(_BYTE *)(a1 + 15064) )
{
v27 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v111 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v111);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v27 = qword_14090BF60;
}
v28 = *(_DWORD *)(v27 + 528);
}
else
{
v28 = *(_DWORD *)(*(_QWORD *)(a1 + 13168) + 580LL);
}
v29 = *(_BYTE *)(a1 + 13024);
if ( v29 && !*(_BYTE *)(a1 + 13025) || *(_BYTE *)(a1 + 14944) )
v28 = 1056964608;
if ( !v29 || *(_BYTE *)(a1 + 13025) )
v21 = v28;
*(_DWORD *)(*(_QWORD *)(a1 + 3512) + 2740LL) = v21;
*(_DWORD *)(*(_QWORD *)(a1 + 3520) + 2740LL) = v21;
v30 = *(_QWORD *)(a1 + 15256);
v113 = v30;
v110 = 0;
if ( *(int *)(a1 + 13208) > 0 )
{
v31 = 0;
v114 = 0;
v32 = (const struct cocos2d::CCPoint *)(a1 + 14924);
while ( 1 )
{
v33 = *(unsigned __int8 **)(*(_QWORD *)(a1 + 13184) + 8 * v31);
v34 = *((int *)v33 + 332);
if ( (int)v34 <= 0 )
{
v58 = *(_QWORD *)v33;
v59 = GameObject::colorForMode((__int64)v33, *((_DWORD *)v33 + 165), 1);
(*(void (__fastcall **)(unsigned __int8 *, __int64))(v58 + 1432))(v33, v59);
a4 = 1.0;
if ( *((int *)v33 + 165) > 0 )
{
v60 = (int)*(float *)(*((_QWORD *)v33 + 159) + 320LL);
if ( (unsigned __int8)v60 < 0xFAu )
a4 = (float)(unsigned __int8)v60 * 0.0040000002;
}
if ( *((__int16 *)v33 + 604) > 0 )
{
v61 = GameObject::groupOpacityMod((__int64)v33);
a4 = a4 * *(float *)&v61;
}
*(float *)(*((_QWORD *)v33 + 138) + 8LL) = a4;
if ( *((_QWORD *)v33 + 112) )
{
v62 = *((_DWORD *)v33 + 166);
if ( v62 || *((_WORD *)v33 + 588) )
{
v63 = *(_QWORD *)v33;
v64 = GameObject::colorForMode((__int64)v33, v62, 0);
(*(void (__fastcall **)(unsigned __int8 *, __int64))(v63 + 1440))(v33, v64);
a4 = 1.0;
if ( *((int *)v33 + 166) > 0 )
{
v65 = (int)*(float *)(*((_QWORD *)v33 + 160) + 320LL);
if ( (unsigned __int8)v65 < 0xFAu )
a4 = (float)(unsigned __int8)v65 * 0.0040000002;
}
if ( *((__int16 *)v33 + 604) > 0 )
{
v66 = GameObject::groupOpacityMod((__int64)v33);
a4 = a4 * *(float *)&v66;
}
*(float *)(*((_QWORD *)v33 + 139) + 8LL) = a4;
}
}
}
else
{
v35 = *(_DWORD *)(*(_QWORD *)(a1 + 15520) + 4 * ((v34 >> 5) + ((v34 - 32 * (v34 >> 5)) >> 5)));
v36 = (_QWORD *)(a1 + 15472);
if ( _bittest(&v35, ((_BYTE)v34 - 32 * (unsigned __int8)(v34 >> 5)) & 0x1F) )
{
v39 = (__int64 *)(a1 + 15496);
}
else
{
v37 = *v36 + 3LL * *((int *)v33 + 332);
v38 = GameObject::colorForMode((__int64)v33, *((_DWORD *)v33 + 165), 1);
*(_WORD *)v37 = *(_WORD *)v38;
*(_BYTE *)(v37 + 2) = *(_BYTE *)(v38 + 2);
v39 = (__int64 *)(a1 + 15496);
v40 = *((int *)v33 + 332);
v41 = *(_QWORD *)(a1 + 15496);
a4 = 1.0;
v42 = (__int64 *)(a1 + 15496);
if ( *((int *)v33 + 165) > 0 )
{
v43 = (int)*(float *)(*((_QWORD *)v33 + 159) + 320LL);
if ( (unsigned __int8)v43 < 0xFAu )
{
a4 = (float)(unsigned __int8)v43 * 0.0040000002;
v42 = (__int64 *)(a1 + 15496);
}
}
if ( *((__int16 *)v33 + 604) > 0 )
{
v44 = GameObject::groupOpacityMod((__int64)v33);
a4 = a4 * *(float *)&v44;
v39 = v42;
}
*(float *)(v41 + 4 * v40) = a4;
v45 = ((unsigned __int64)*((int *)v33 + 332) >> 5)
+ ((*((int *)v33 + 332) - 32 * ((unsigned __int64)*((int *)v33 + 332) >> 5)) >> 5);
*(_DWORD *)(*(_QWORD *)(a1 + 15520) + 4 * v45) |= 1 << ((v33[1328]
- 32 * ((unsigned __int64)*((int *)v33 + 332) >> 5))
& 0x1F);
}
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v33 + 1432LL))(
v33,
*v36 + 3LL * *((int *)v33 + 332));
*(_DWORD *)(*((_QWORD *)v33 + 138) + 8LL) = *(_DWORD *)(*v39 + 4LL * *((int *)v33 + 332));
if ( *((_QWORD *)v33 + 112) )
{
v46 = *(_DWORD *)(*(_QWORD *)(a1 + 15520)
+ 4
* (((unsigned __int64)*((int *)v33 + 333) >> 5)
+ ((*((int *)v33 + 333) - 32 * ((unsigned __int64)*((int *)v33 + 333) >> 5)) >> 5)));
if ( !_bittest(
&v46,
((unsigned __int8)*((_DWORD *)v33 + 333)
- 32 * (unsigned __int8)((unsigned __int64)*((int *)v33 + 333) >> 5))
& 0x1F) )
{
v47 = *v36 + 3LL * *((int *)v33 + 333);
v48 = GameObject::colorForMode((__int64)v33, *((_DWORD *)v33 + 166), 0);
*(_WORD *)v47 = *(_WORD *)v48;
*(_BYTE *)(v47 + 2) = *(_BYTE *)(v48 + 2);
v49 = *((int *)v33 + 333);
v50 = *v39;
a4 = 1.0;
if ( *((int *)v33 + 166) > 0 )
{
v51 = (int)*(float *)(*((_QWORD *)v33 + 160) + 320LL);
if ( (unsigned __int8)v51 < 0xFAu )
{
a4 = (float)(unsigned __int8)v51 * 0.0040000002;
v36 = (_QWORD *)(a1 + 15472);
v39 = (__int64 *)(a1 + 15496);
}
}
if ( *((__int16 *)v33 + 604) > 0 )
{
v52 = GameObject::groupOpacityMod((__int64)v33);
a4 = a4 * *(float *)&v52;
}
*(float *)(v50 + 4 * v49) = a4;
v53 = ((unsigned __int64)*((int *)v33 + 333) >> 5)
+ ((*((int *)v33 + 333) - 32 * ((unsigned __int64)*((int *)v33 + 333) >> 5)) >> 5);
*(_DWORD *)(*(_QWORD *)(a1 + 15520) + 4 * v53) |= 1 << ((v33[1332]
- 32 * ((unsigned __int64)*((int *)v33 + 333) >> 5))
& 0x1F);
}
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v33 + 1440LL))(
v33,
*v36 + 3LL * *((int *)v33 + 333));
*(_DWORD *)(*((_QWORD *)v33 + 139) + 8LL) = *(_DWORD *)(*v39 + 4LL * *((int *)v33 + 333));
}
v30 = v113;
v32 = (const struct cocos2d::CCPoint *)(a1 + 14924);
}
if ( v33[773] && v30 )
break;
LABEL_94:
(*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 1152LL))(v33);
v72 = (*(__int64 (__fastcall **)(unsigned __int8 *, int *))(*(_QWORD *)v33 + 1208LL))(v33, &v106);
cocos2d::CCPoint::operator=(v32, v72);
v73 = *((_WORD *)v33 + 508);
if ( v73 != -1 )
{
v74 = 1;
v75 = *(_QWORD *)(a1 + 1576);
goto LABEL_99;
}
if ( *((_WORD *)v33 + 509) != 0xFFFF )
{
v74 = 0;
LABEL_98:
v75 = *(_QWORD *)(a1 + 1600);
v73 = *((_WORD *)v33 + 509);
goto LABEL_99;
}
v86 = *(float *)(a1 + 13160) + *(float *)(a1 + 1292);
v74 = *(float *)v32 > v86;
if ( *(float *)v32 <= v86 )
goto LABEL_98;
v75 = *(_QWORD *)(a1 + 1576);
LABEL_99:
v76 = *(_DWORD *)(v75 + 4LL * *((__int16 *)v33 + 510));
v77 = v73;
if ( v33[1353] )
{
v77 = -14;
v76 = -14;
}
if ( (*(unsigned __int8 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 1576LL))(v33) )
(*(void (__fastcall **)(unsigned __int8 *, __int64, __int64))(*(_QWORD *)v33 + 1696LL))(v33, v78, 0xFFFFFFFFLL);
if ( (*(unsigned __int8 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 1584LL))(v33) )
EnhancedGameObject::updateRotateAction((__int64)v33, a2);
if ( v33[895] )
{
v101 = v99;
v102 = v100;
v79 = *((_QWORD *)v33 + 186);
if ( v79 )
{
v80 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v79 + 480LL))(v79);
for ( j = 0; j < cocos2d::CCArray::count(v80); ++j )
{
v82 = cocos2d::CCArray::objectAtIndex(v80, j);
(**((void (__fastcall ***)(__int64, __int16 *))v82 + 40))((__int64)v82 + 320, &v101);
}
v32 = (const struct cocos2d::CCPoint *)(a1 + 14924);
}
}
if ( (*(unsigned int (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 1648LL))(v33) == 30 )
{
(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 2264) + 200LL))(*(_QWORD *)(a1 + 2264));
EffectGameObject::updateInteractiveHover(v33);
}
if ( *((_DWORD *)v33 + 259) == 143 )
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v33 + 1352LL))(v33, a1 + 13216);
if ( v33[1040] )
goto LABEL_152;
if ( v33[976] && !v33[977] )
(*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 1304LL))(v33);
if ( v33[1081] )
{
v87 = &v120;
if ( !v33[1082] )
v87 = (__int16 *)(a1 + 13216);
(*(void (__fastcall **)(unsigned __int8 *, __int16 *))(*(_QWORD *)v33 + 1352LL))(v33, v87);
}
if ( v33[1080] )
{
if ( (_BYTE)v118 )
{
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v33 + 1352LL))(v33, a1 + 13216);
LOBYTE(v93) = -1;
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*((_QWORD *)v33 + 40) + 40LL))(v33 + 320, v93);
v94 = *((_QWORD *)v33 + 94);
if ( v94 )
{
v95 = (int)(float)(*((float *)v33 + 271) * 255.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v94 + 320) + 40LL))(v94 + 320, (unsigned __int8)v95);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v33 + 94) + 952LL))(
*((_QWORD *)v33 + 94),
(unsigned __int8)v95);
}
}
else
{
a4 = v22;
PlayLayer::updateInvisibleBlock(a1, (_DWORD)v33, v84, v85, LODWORD(v24), v22 - 30.0, (__int64)&v103);
}
LABEL_147:
if ( v76 != -15 )
goto LABEL_134;
goto LABEL_148;
}
if ( v33[1043] || v76 == -14 )
{
LOBYTE(v83) = -1;
(*(void (__fastcall **)(unsigned __int8 *, __int64))(*((_QWORD *)v33 + 40) + 40LL))(v33 + 320, v83);
goto LABEL_147;
}
if ( v33[1041] && (!v33[1044] || !v33[1120]) && (unsigned int)(v77 + 2) <= 1 && v76 == -2 )
{
v88 = v33 + 320;
v89 = *((_QWORD *)v33 + 40);
LOBYTE(v83) = -1;
LABEL_133:
(*(void (__fastcall **)(unsigned __int8 *, __int64))(v89 + 40))(v88, v83);
LABEL_134:
PlayLayer::applyEnterEffect(a1, v33, v76, v74);
goto LABEL_135;
}
if ( v76 != -15 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v105, v32);
v90 = *((float *)v33 + 213);
if ( v74 )
v105 = v105 - v90;
else
v105 = v105 + v90;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v111, (const struct cocos2d::CCPoint *)&v105);
v92 = cocos2d::clampf(v91, 0.0, 1.0, a4);
v88 = v33 + 320;
v83 = (unsigned int)(int)(float)(v92 * 255.0);
v89 = *((_QWORD *)v33 + 40);
goto LABEL_133;
}
LABEL_148:
if ( v33[1042] )
goto LABEL_134;
PlayLayer::applyCustomEnterEffect(a1, v33, v74);
LABEL_135:
if ( (_BYTE)v116 )
{
PlayLayer::screenFlipObject(a1, v33);
}
else if ( *(_BYTE *)(a1 + 13084) )
{
(*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)v33 + 1088LL))(v33, v33[1004]);
(*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)v33 + 1096LL))(v33, v33[1005]);
(*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 352LL))(v33);
v96 = *(_QWORD *)v33;
v97 = (*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v33 + 200LL))(v33);
(*(void (__fastcall **)(unsigned __int8 *, __int64))(v96 + 184))(v33, v97);
}
LABEL_152:
++v110;
v31 = ++v114;
v30 = v113;
if ( v110 >= *(_DWORD *)(a1 + 13208) )
goto LABEL_153;
}
v54 = *((_DWORD *)v33 + 165);
v55 = (_QWORD *)(a1 + 15240);
v56 = *(_QWORD *)(a1 + 15264);
v57 = *(_QWORD *)(v56
+ 16
* (*(_QWORD *)(a1 + 15288)
& (0x100000001B3LL
* (HIBYTE(v54)
^ (0x100000001B3LL
* (BYTE2(v54)
^ (0x100000001B3LL
* (BYTE1(v54) ^ (0x100000001B3LL * ((unsigned __int8)v54 ^ 0xCBF29CE484222325uLL)))))))))
+ 8);
if ( v57 != *(_QWORD *)(a1 + 15248) )
{
if ( v54 == *(_DWORD *)(v57 + 16) )
goto LABEL_81;
while ( v57 != *(_QWORD *)(v56
+ 16
* (*(_QWORD *)(a1 + 15288)
& (0x100000001B3LL
* ((unsigned __int8)HIBYTE(*((_DWORD *)v33 + 165))
^ (0x100000001B3LL
* ((unsigned __int8)BYTE2(*((_DWORD *)v33 + 165))
^ (0x100000001B3LL
* ((unsigned __int8)BYTE1(*((_DWORD *)v33 + 165))
^ (0x100000001B3LL * ((unsigned __int8)v54 ^ 0xCBF29CE484222325uLL)))))))))) )
{
v57 = *(_QWORD *)(v57 + 8);
if ( v54 == *(_DWORD *)(v57 + 16) )
{
v55 = (_QWORD *)(a1 + 15240);
goto LABEL_81;
}
}
v55 = (_QWORD *)(a1 + 15240);
}
v57 = 0;
LABEL_81:
if ( !*((_QWORD *)v33 + 112) )
goto LABEL_90;
v67 = *((_DWORD *)v33 + 166);
v68 = v55[6]
& (0x100000001B3LL
* (HIBYTE(v67)
^ (0x100000001B3LL
* (BYTE2(v67)
^ (0x100000001B3LL * (BYTE1(v67) ^ (0x100000001B3LL * ((unsigned __int8)v67 ^ 0xCBF29CE484222325uLL))))))));
v69 = v55[3];
v70 = *(_QWORD *)(v69 + 16 * v68 + 8);
if ( v70 != v55[1] )
{
if ( v67 == *(_DWORD *)(v70 + 16) )
goto LABEL_88;
while ( v70 != *(_QWORD *)(v69 + 16 * v68) )
{
v70 = *(_QWORD *)(v70 + 8);
if ( v67 == *(_DWORD *)(v70 + 16) )
goto LABEL_88;
}
}
v70 = 0;
LABEL_88:
if ( v70 )
{
v71 = 1;
LABEL_91:
if ( v57 || v71 )
{
(*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)v33 + 1128LL))(v33, 0);
GameObject::addColorSpriteToParent((__int64)v33, 0);
}
goto LABEL_94;
}
LABEL_90:
v71 = 0;
goto LABEL_91;
}
LABEL_153:
GJBaseGameLayer::updateEnterEffects(a1, a2);
GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1696), 3u, a2, 1);
GJBaseGameLayer::processAreaEffects(a1, (__int64 *)(a1 + 1720), 4u, a2, 1);
GJBaseGameLayer::updateParticles(a1);
*(_BYTE *)(a1 + 13084) = 0;
sub_14003EB60((_QWORD *)(a1 + 15240));
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1160LL))(a1) )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1152LL))(a1);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1168LL))(a1);
if ( (_BYTE)result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1152LL))(a1);
return result;
}