//
// GJGroundLayer::updateGround01Color from 0x916874 to 0x9168f0 (124 bytes)
//
// 12 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x78db44
// > MenuGameLayer::updateColors @ 0x7d9fe8
// > LevelSelectLayer::scrollLayerMoved @ 0x8c42cc
// > GJGroundLayer::init @ 0x916f74
// > GJGroundLayer::init @ 0x917048
// > GJBaseGameLayer::updateLevelColors @ 0x99a2f8
// > GJBaseGameLayer::updateLevelColors @ 0x99a304
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abe40
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abe4c
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abe90
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abe9c
// > ??> @ 0xe1a90
//
// 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:19 +0000
//
__int64 __fastcall GJGroundLayer::updateGround01Color(__int64 a1, __int64 a2)
{
unsigned int v2; // w19
__int64 result; // x0
cocos2d::CCArray *v4; // x20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
v2 = 0;
v8 = a2;
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 488LL))(*(_QWORD *)(a1 + 408));
v4 = (cocos2d::CCArray *)result;
if ( result )
{
while ( 1 )
{
v6 = v2 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v2;
result = (__int64)v4;
++v2;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(v4, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 960LL))(v5, &v8);
}
}
return result;
}