//
// GJBaseGameLayer::visitWithColorFlash from 0x1002a604c to 0x1002a61fc (432 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::visit @ 0x1002a5dfc
//
// 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 11:02:15 +0000
//
__int64 __fastcall GJBaseGameLayer::visitWithColorFlash(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
int v4; // w20
int v5; // w21
int v6; // w0
int v7; // w20
int v8; // w21
__int16 v10; // [xsp+0h] [xbp-40h] BYREF
char v11; // [xsp+2h] [xbp-3Eh]
unsigned __int16 v12; // [xsp+4h] [xbp-3Ch] BYREF
unsigned __int8 v13; // [xsp+6h] [xbp-3Ah]
unsigned __int16 v14; // [xsp+8h] [xbp-38h] BYREF
unsigned __int8 v15; // [xsp+Ah] [xbp-36h]
__int16 v16; // [xsp+Ch] [xbp-34h] BYREF
char v17; // [xsp+Eh] [xbp-32h]
v2 = sub_10000F5A4(*(_QWORD *)(a1 + 2152), 1000);
v16 = v2;
v17 = BYTE2(v2);
v3 = sub_10000F5A4(*(_QWORD *)(a1 + 2152), 1001);
v4 = v3 & 0xFFFFFF;
v14 = v3;
v15 = BYTE2(v3);
v5 = sub_10000F5A4(*(_QWORD *)(a1 + 2152), 1009);
v12 = v5;
v13 = BYTE2(v5);
v6 = sub_10004A1DC((__int64)&v16, 0.0, -0.2, 0.2);
v10 = v6;
v11 = BYTE2(v6);
if ( v4 )
v7 = sub_10004A1DC((__int64)&v14, 0.0, -0.2, 0.2) & 0xFFFFFF;
else
v7 = 0;
if ( (v5 & 0xFFFFFF) != 0 )
v8 = sub_10004A1DC((__int64)&v12, 0.0, -0.2, 0.2) & 0xFFFFFF;
else
v8 = 0;
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 3944) + 960LL))(*(_QWORD *)(a1 + 3944), &v10);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3960), v7);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3968), v7);
GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3960), v8);
GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3968), v8);
cocos2d::CCNode::visit(a1);
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 3944) + 960LL))(*(_QWORD *)(a1 + 3944), &v16);
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3960), v14 | (v15 << 16));
GJGroundLayer::updateGround01Color(*(_QWORD *)(a1 + 3968), v14 | (v15 << 16));
GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3960), v12 | (v13 << 16));
return GJGroundLayer::updateGround02Color(*(_QWORD *)(a1 + 3968), v12 | (v13 << 16));
}