//
// GJMGLayer::updateGroundColor from 0x434fbc to 0x435004 (72 bytes)
//
// 6 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x369110
// > LevelEditorLayer::updateEditorMode @ 0x36912a
// > GJMGLayer::init @ 0x435146
// > GJMGLayer::init @ 0x43522a
// > GJBaseGameLayer::updateLevelColors @ 0x46db10
// > GJBaseGameLayer::updateLevelColors @ 0x46db3e
//
// 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 GJMGLayer::updateGroundColor(GJMGLayer *a1, cocos2d::ccColor3B a2, bool a3)
{
cocos2d::CCSprite *m_ground1Sprite; // r3
unsigned int v4; // r4
cocos2d::CCArray *v5; // r5
int v6; // r0
int v7; // [sp+4h] [bp-4h] BYREF
v7 = *(_DWORD *)&a2.r;
m_ground1Sprite = a1->m_ground1Sprite;
if ( !a3 )
m_ground1Sprite = a1->m_ground2Sprite;
if ( m_ground1Sprite )
{
v4 = 0;
v5 = (cocos2d::CCArray *)((int (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *))m_ground1Sprite->getChildren)(
m_ground1Sprite,
a1->m_ground2Sprite);
while ( v4 < cocos2d::CCArray::count(v5) )
{
v6 = cocos2d::CCArray::objectAtIndex(v5, v4++);
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v6 + 472))(v6, &v7);
}
}
}