//
// GJGroundLayer::updateGround02Color from 0x9168f0 to 0x91696c (124 bytes)
//
// 10 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x78db50
// > MenuGameLayer::updateColors @ 0x7da018
// > LevelSelectLayer::scrollLayerMoved @ 0x8c4318
// > GJBaseGameLayer::updateLevelColors @ 0x99a340
// > GJBaseGameLayer::updateLevelColors @ 0x99a34c
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abe58
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abe64
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abea8
// > GJBaseGameLayer::visitWithColorFlash @ 0x9abeb4
// > ??> @ 0x1000a8
//
// 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::updateGround02Color(__int64 a1, __int64 a2)
{
__int64 result; // x0
unsigned int v3; // w19
cocos2d::CCArray *v4; // x20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
v8 = a2;
result = *(_QWORD *)(a1 + 416);
if ( result )
{
v3 = 0;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 488LL))(result);
v4 = (cocos2d::CCArray *)result;
if ( result )
{
while ( 1 )
{
v6 = v3 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v3;
result = (__int64)v4;
++v3;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(v4, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 960LL))(v5, &v8);
}
}
}
return result;
}