//
// GJGroundLayer::updateGround02Color from 0x434450 to 0x43448e (62 bytes)
//
// 9 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x3690a8
// > MenuGameLayer::updateColors @ 0x3a9476
// > LevelSelectLayer::scrollLayerMoved @ 0x4094dc
// > GJBaseGameLayer::updateLevelColors @ 0x46da16
// > GJBaseGameLayer::updateLevelColors @ 0x46da20
// > GJBaseGameLayer::visitWithColorFlash @ 0x479a6a
// > GJBaseGameLayer::visitWithColorFlash @ 0x479a74
// > GJBaseGameLayer::visitWithColorFlash @ 0x479aa6
// > GJBaseGameLayer::visitWithColorFlash @ 0x479ab0
//
// 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 GJGroundLayer::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCSprite *m_ground2Sprite; // r0
cocos2d::CCArray *v3; // r5
unsigned int i; // r4
int v5; // r0
int v6; // [sp+4h] [bp-4h] BYREF
v6 = *(_DWORD *)&a2.r;
m_ground2Sprite = a1->m_ground2Sprite;
if ( m_ground2Sprite )
{
v3 = m_ground2Sprite->getChildren(m_ground2Sprite);
if ( v3 )
{
for ( i = 0; i < cocos2d::CCArray::count(v3); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(v3, i);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v5 + 472))(v5, &v6);
}
}
}
}