//
// GJGroundLayer::updateGround02Color from 0x1005eb4d0 to 0x1005eb555 (133 bytes)
//
// 11 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x1000de90d
// > LevelEditorLayer::updateEditorMode @ 0x1000de987
// > GJBaseGameLayer::updateLevelColors @ 0x10011469c
// > GJBaseGameLayer::updateLevelColors @ 0x1001146ab
// > GJBaseGameLayer::visitWithColorFlash @ 0x1001650a8
// > GJBaseGameLayer::visitWithColorFlash @ 0x1001650b7
// > GJBaseGameLayer::visitWithColorFlash @ 0x10016511e
// > GJBaseGameLayer::visitWithColorFlash @ 0x100165137
// > LevelSelectLayer::scrollLayerMoved @ 0x10043439d
// > MenuGameLayer::updateColors @ 0x1004fabc4
// > MenuGameLayer::update @ 0x1004fac76
//
// 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 __fastcall GJGroundLayer::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)
{
__int64 v2; // rax
cocos2d::CCSprite *m_ground2Sprite; // rdi
__int64 v4; // rax
__int64 v5; // rbx
unsigned int v6; // r14d
__int64 v7; // rax
cocos2d::ccColor3B v8; // [rsp+0h] [rbp-1Ch] BYREF
char v9; // [rsp+3h] [rbp-19h]
v9 = HIBYTE(v2);
v8 = a2;
m_ground2Sprite = a1->m_ground2Sprite;
if ( m_ground2Sprite )
{
v4 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_ground2Sprite->getChildren)(m_ground2Sprite);
if ( v4 )
{
v5 = v4;
if ( (unsigned int)sub_100720070(v4) )
{
v6 = 0;
do
{
v7 = sub_1007200C0(v5, v6);
(*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v7 + 944LL))(v7, &v8);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(v5) );
}
}
}
}