//
// GJMGLayer::updateGroundColor from 0x10002cdf4 to 0x10002ce84 (144 bytes)
//
// 6 xrefs:
// > GJMGLayer::init @ 0x10002ca80
// > GJMGLayer::init @ 0x10002cbc8
// > GJBaseGameLayer::updateLevelColors @ 0x1001ddff4
// > GJBaseGameLayer::updateLevelColors @ 0x1001de014
// > LevelEditorLayer::updateEditorMode @ 0x100359010
// > LevelEditorLayer::updateEditorMode @ 0x100359024
//
// 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 GJMGLayer::updateGroundColor(GJMGLayer *a1, cocos2d::ccColor3B a2, bool a3)
{
__int64 v3; // x8
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x20
__int64 v7; // x0
cocos2d::ccColor3B v8; // [xsp+Ch] [xbp-14h] BYREF
v8 = a2;
v3 = 416;
if ( a3 )
v3 = 408;
v4 = *(__int64 *)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3);
if ( v4 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 472LL))(v4);
if ( (unsigned int)sub_10024A36C(v5) )
{
v6 = 0;
do
{
v7 = sub_10024A388(v5, v6);
(*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v7 + 944LL))(v7, &v8);
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(v5) );
}
}
}