//
// GJMGLayer::updateGroundColor from 0x917a9c to 0x917b28 (140 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x78dbc4
// > LevelEditorLayer::updateEditorMode @ 0x78dbe4
// > GJMGLayer::init @ 0x917d88
// > GJMGLayer::init @ 0x917ee4
// > GJBaseGameLayer::updateLevelColors @ 0x99a47c
// > GJBaseGameLayer::updateLevelColors @ 0x99a4b4
// > ??> @ 0xaac68
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:57:20 +0000
//
cocos2d::CCArray *__fastcall GJMGLayer::updateGroundColor(__int64 a1, __int64 a2, char a3)
{
cocos2d::CCArray *v3; // x1
cocos2d::CCArray *result; // 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 = a2;
v3 = *(cocos2d::CCArray **)(a1 + 408);
result = *(cocos2d::CCArray **)(a1 + 416);
if ( !a3 )
v3 = result;
if ( v3 )
{
v5 = 0;
v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCArray *))(*(_QWORD *)v3 + 488LL))(v3);
while ( 1 )
{
v8 = v5 >= (unsigned int)cocos2d::CCArray::count(v6);
v9 = v5;
result = v6;
++v5;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(v6, v9);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 960LL))(v7, &v10);
}
}
return result;
}