//
// GJGroundLayer::updateGround02Color from 0x7ebad0 to 0x7ebb4c (124 bytes)
//
// 10 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x662574
// > MenuGameLayer::updateColors @ 0x6c8fe8
// > LevelSelectLayer::scrollLayerMoved @ 0x79ce40
// > GJBaseGameLayer::updateLevelColors @ 0x857e0c
// > GJBaseGameLayer::updateLevelColors @ 0x857e18
// > GJBaseGameLayer::visitWithColorFlash @ 0x86abdc
// > GJBaseGameLayer::visitWithColorFlash @ 0x86abe8
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac2c
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac38
// > ??> @ 0xc4bf0
//
// 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 GJGroundLayer::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCSprite *m_ground2Sprite; // x0
unsigned int v3; // w19
cocos2d::CCArray *v4; // x20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
v8 = *(_QWORD *)&a2.r;
m_ground2Sprite = a1->m_ground2Sprite;
if ( m_ground2Sprite )
{
v3 = 0;
v4 = m_ground2Sprite->getChildren(m_ground2Sprite);
if ( v4 )
{
while ( 1 )
{
v6 = v3 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v3++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(v4, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 944LL))(v5, &v8);
}
}
}
}