//
// GJGroundLayer::updateGround01Color from 0x10002c1e0 to 0x10002c260 (128 bytes)
//
// 11 xrefs:
// > GJGroundLayer::init @ 0x10002bd6c
// > GJGroundLayer::init @ 0x10002be44
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddec4
// > GJBaseGameLayer::updateLevelColors @ 0x1001dded0
// > GJBaseGameLayer::visitWithColorFlash @ 0x100209070
// > GJBaseGameLayer::visitWithColorFlash @ 0x10020907c
// > GJBaseGameLayer::visitWithColorFlash @ 0x1002090c4
// > GJBaseGameLayer::visitWithColorFlash @ 0x1002090d8
// > LevelEditorLayer::updateEditorMode @ 0x100358f88
// > MenuGameLayer::updateColors @ 0x10039b360
// > LevelSelectLayer::scrollLayerMoved @ 0x100403608
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJGroundLayer::updateGround01Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)
{
__int64 v2; // x0
__int64 v3; // x19
__int64 v4; // x20
__int64 v5; // x0
cocos2d::ccColor3B v6; // [xsp+Ch] [xbp-14h] BYREF
v6 = a2;
v2 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_ground1Sprite->getChildren)(a1->m_ground1Sprite);
if ( v2 )
{
v3 = v2;
if ( (unsigned int)sub_10024A36C(v2) )
{
v4 = 0;
do
{
v5 = sub_10024A388(v3, v4);
(*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v5 + 944LL))(v5, &v6);
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(v3) );
}
}
}