//
// GJBaseGameLayer::visitWithColorFlash from 0x1001444d0 to 0x10014469b (459 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::visit @ 0x100143c3b
//
// 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 12:24:57 +0000
//
__int64 __fastcall GJBaseGameLayer::visitWithColorFlash(__int64 a1)
{
__int64 active; // rax
int v2; // r13d
int v3; // r15d
__int64 v4; // rax
unsigned int v5; // r14d
unsigned int v6; // r12d
__int16 v8; // [rsp+8h] [rbp-38h] BYREF
char v9; // [rsp+Ah] [rbp-36h]
__int16 v10; // [rsp+Ch] [rbp-34h] BYREF
char v11; // [rsp+Eh] [rbp-32h]
unsigned __int16 v12; // [rsp+10h] [rbp-30h] BYREF
unsigned __int8 v13; // [rsp+12h] [rbp-2Eh]
unsigned __int16 v14; // [rsp+14h] [rbp-2Ch] BYREF
unsigned __int8 v15; // [rsp+16h] [rbp-2Ah]
active = GJEffectManager::activeColorForIndex(*(_QWORD *)(a1 + 2152), 1000);
v10 = active;
v11 = BYTE2(active);
v2 = GJEffectManager::activeColorForIndex(*(_QWORD *)(a1 + 2152), 1001);
v12 = v2;
v13 = BYTE2(v2);
v3 = GJEffectManager::activeColorForIndex(*(_QWORD *)(a1 + 2152), 1009);
v14 = v3;
v15 = BYTE2(v3);
v4 = GameToolbox::transformColor(&v10, 0.0, -0.2, 0.2);
v8 = v4;
v9 = BYTE2(v4);
v5 = 0;
v6 = 0;
if ( (v2 & 0xFFFFFF) != 0 )
v6 = GameToolbox::transformColor(&v12, 0.0, -0.2, 0.2);
if ( (v3 & 0xFFFFFF) != 0 )
v5 = GameToolbox::transformColor(&v14, 0.0, -0.2, 0.2);
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 3944) + 960LL))(*(_QWORD *)(a1 + 3944), &v8);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3960), v6);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3968), v6);
GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3960), v5);
GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3968), v5);
cocos2d::CCNode::visit(a1);
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 3944) + 960LL))(*(_QWORD *)(a1 + 3944), &v10);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3960), (v13 << 16) | (unsigned int)v12);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3968), (v13 << 16) | (unsigned int)v12);
GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3960), (v15 << 16) | (unsigned int)v14);
return GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3968), (v15 << 16) | (unsigned int)v14);
}