//
// GJBaseGameLayer::visitWithColorFlash from 0x9abcd8 to 0x9abf14 (572 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::visit @ 0x9acb50
// > ??> @ 0x44650
//
// 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:58:12 +0000
//
__int64 __fastcall GJBaseGameLayer::visitWithColorFlash(GJBaseGameLayer *this)
{
int active; // w2
GJEffectManager *v3; // x0
int v4; // w2
GJEffectManager *v5; // x0
__int64 v6; // x0
unsigned __int64 v7; // x0
int v8; // w0
int v9; // w0
__int16 v11; // [xsp+48h] [xbp+48h] BYREF
char v12; // [xsp+4Ah] [xbp+4Ah]
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
__int64 v14; // [xsp+58h] [xbp+58h] BYREF
__int16 v15; // [xsp+60h] [xbp+60h] BYREF
char v16; // [xsp+62h] [xbp+62h]
__int64 v17; // [xsp+68h] [xbp+68h]
__int64 v18; // [xsp+70h] [xbp+70h]
active = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 269), 1000);
v3 = *((GJEffectManager **)this + 269);
v11 = active;
v12 = BYTE2(active);
v4 = GJEffectManager::activeColorForIndex(v3, 1001);
v5 = *((GJEffectManager **)this + 269);
LOWORD(v13) = v4;
BYTE2(v13) = BYTE2(v4);
v6 = GJEffectManager::activeColorForIndex(v5, 1009);
LOWORD(v14) = v6;
BYTE2(v14) = BYTE2(v6);
v7 = GameToolbox::transformColor((unsigned __int8 *)&v11, 0.0, -0.2, 0.2);
v15 = v7;
v16 = BYTE2(v7);
if ( !(_BYTE)v13 && __PAIR16__(BYTE1(v13), 0) == BYTE2(v13) )
{
LOWORD(v17) = (unsigned __int8)v13;
BYTE2(v17) = 0;
}
else
{
v8 = GameToolbox::transformColor((unsigned __int8 *)&v13, 0.0, -0.2, 0.2);
LOWORD(v17) = v8;
BYTE2(v17) = BYTE2(v8);
}
if ( !(_BYTE)v14 && __PAIR16__(BYTE1(v14), 0) == BYTE2(v14) )
{
LOWORD(v18) = v14;
BYTE2(v18) = 0;
}
else
{
v9 = GameToolbox::transformColor((unsigned __int8 *)&v14, 0.0, -0.2, 0.2);
LOWORD(v18) = v9;
BYTE2(v18) = BYTE2(v9);
}
(*(void (__fastcall **)(_QWORD, __int16 *))(**((_QWORD **)this + 493) + 960LL))(*((_QWORD *)this + 493), &v15);
GJGroundLayer::updateGround01Color(*((_QWORD *)this + 495), v17);
GJGroundLayer::updateGround01Color(*((_QWORD *)this + 496), v17);
GJGroundLayer::updateGround02Color(*((_QWORD *)this + 495), v18);
GJGroundLayer::updateGround02Color(*((_QWORD *)this + 496), v18);
cocos2d::CCNode::visit(this);
(*(void (__fastcall **)(_QWORD, __int16 *))(**((_QWORD **)this + 493) + 960LL))(*((_QWORD *)this + 493), &v11);
GJGroundLayer::updateGround01Color(*((_QWORD *)this + 495), v13);
GJGroundLayer::updateGround01Color(*((_QWORD *)this + 496), v13);
GJGroundLayer::updateGround02Color(*((_QWORD *)this + 495), v14);
GJGroundLayer::updateGround02Color(*((_QWORD *)this + 496), v14);
return _stack_chk_guard;
}