//
// GJGroundLayer::updateGround02Color from 0x10002c30c to 0x10002c390 (132 bytes)
//
// 9 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddef8
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddf04
// > GJBaseGameLayer::visitWithColorFlash @ 0x100209088
// > GJBaseGameLayer::visitWithColorFlash @ 0x100209094
// > GJBaseGameLayer::visitWithColorFlash @ 0x1002090ec
// > GJBaseGameLayer::visitWithColorFlash @ 0x100209100
// > LevelEditorLayer::updateEditorMode @ 0x100358f98
// > MenuGameLayer::updateColors @ 0x10039b394
// > LevelSelectLayer::scrollLayerMoved @ 0x100403654
//
// 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::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCSprite *m_ground2Sprite; // x0
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x20
__int64 v6; // x0
cocos2d::ccColor3B v7; // [xsp+Ch] [xbp-14h] BYREF
v7 = a2;
m_ground2Sprite = a1->m_ground2Sprite;
if ( m_ground2Sprite )
{
v3 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_ground2Sprite->getChildren)(m_ground2Sprite);
if ( v3 )
{
v4 = v3;
if ( (unsigned int)sub_10024A36C(v3) )
{
v5 = 0;
do
{
v6 = sub_10024A388(v4, v5);
(*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v6 + 944LL))(v6, &v7);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(v4) );
}
}
}
}