//
// GJGroundLayer::updateGround01Color from 0x7eba54 to 0x7ebad0 (124 bytes)
//
// 12 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x662568
// > MenuGameLayer::updateColors @ 0x6c8fb8
// > LevelSelectLayer::scrollLayerMoved @ 0x79cdf4
// > GJGroundLayer::init @ 0x7ec158
// > GJGroundLayer::init @ 0x7ec228
// > GJBaseGameLayer::updateLevelColors @ 0x857dc4
// > GJBaseGameLayer::updateLevelColors @ 0x857dd0
// > GJBaseGameLayer::visitWithColorFlash @ 0x86abc4
// > GJBaseGameLayer::visitWithColorFlash @ 0x86abd0
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac14
// > GJBaseGameLayer::visitWithColorFlash @ 0x86ac20
// > ??> @ 0xac3e0
//
// 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::updateGround01Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)
{
unsigned int v2; // w19
cocos2d::CCArray *v3; // x20
__int64 v4; // x0
bool v5; // cf
unsigned int v6; // w1
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
v2 = 0;
v7 = *(_QWORD *)&a2.r;
v3 = a1->m_ground1Sprite->getChildren(a1->m_ground1Sprite);
if ( v3 )
{
while ( 1 )
{
v5 = v2 >= (unsigned int)cocos2d::CCArray::count(v3);
v6 = v2++;
if ( v5 )
break;
v4 = cocos2d::CCArray::objectAtIndex(v3, v6);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 944LL))(v4, &v7);
}
}
}