//
// GJMGLayer::updateGroundColor from 0x7ecc7c to 0x7ecd08 (140 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x6625e8
// > LevelEditorLayer::updateEditorMode @ 0x662608
// > GJMGLayer::init @ 0x7ecf04
// > GJMGLayer::init @ 0x7ed05c
// > GJBaseGameLayer::updateLevelColors @ 0x857f48
// > GJBaseGameLayer::updateLevelColors @ 0x857f80
// > ??> @ 0x80430
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void GJMGLayer::updateGroundColor(GJMGLayer *a1, cocos2d::ccColor3B a2, bool a3)
{
cocos2d::CCSprite *m_ground1Sprite; // x1
cocos2d::CCSprite *m_ground2Sprite; // x0
unsigned int v5; // w19
cocos2d::CCArray *v6; // x20
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
__int64 v10; // [xsp+38h] [xbp+38h] BYREF
v10 = *(_QWORD *)&a2.r;
m_ground1Sprite = a1->m_ground1Sprite;
m_ground2Sprite = a1->m_ground2Sprite;
if ( !a3 )
m_ground1Sprite = m_ground2Sprite;
if ( m_ground1Sprite )
{
v5 = 0;
v6 = m_ground1Sprite->getChildren(m_ground1Sprite);
while ( 1 )
{
v8 = v5 >= (unsigned int)cocos2d::CCArray::count(v6);
v9 = v5++;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(v6, v9);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 944LL))(v7, &v10);
}
}
}