//
// GJGroundLayer::updateGround02Color from 0x545d08 to 0x545d46 (62 bytes)
//
// 9 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x4627f0
// > MenuGameLayer::updateColors @ 0x49223a
// > LevelSelectLayer::scrollLayerMoved @ 0x511cb6
// > GJBaseGameLayer::updateLevelColors @ 0x58c5b2
// > GJBaseGameLayer::updateLevelColors @ 0x58c5bc
// > GJBaseGameLayer::visitWithColorFlash @ 0x59855e
// > GJBaseGameLayer::visitWithColorFlash @ 0x598568
// > GJBaseGameLayer::visitWithColorFlash @ 0x59859a
// > GJBaseGameLayer::visitWithColorFlash @ 0x5985a4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:23 +0000
//
unsigned int __fastcall GJGroundLayer::updateGround02Color(int a1, int a2)
{
unsigned int result; // r0
cocos2d::CCArray *v3; // r5
unsigned int i; // r4
int v5; // r0
int v6; // [sp+4h] [bp-4h] BYREF
v6 = a2;
result = *(_DWORD *)(a1 + 320);
if ( result )
{
result = (*(int (__fastcall **)(unsigned int))(*(_DWORD *)result + 244))(result);
v3 = (cocos2d::CCArray *)result;
if ( result )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(v3);
if ( i >= result )
break;
v5 = cocos2d::CCArray::objectAtIndex(v3, i);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v5 + 480))(v5, &v6);
}
}
}
return result;
}