//
// GJMGLayer::updateGroundOpacity from 0x918088 to 0x918110 (136 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x99a4d8
// > GJBaseGameLayer::updateLevelColors @ 0x99a4fc
// > ??> @ 0xd8e08
//
// 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::updateGroundOpacity(GJMGLayer *this, unsigned __int8 a2, char a3)
{
unsigned int v3; // w21
__int64 v4; // x1
cocos2d::CCArray *result; // x0
unsigned int v6; // w19
cocos2d::CCArray *v7; // x20
__int64 v8; // x0
bool v9; // cf
unsigned int v10; // w1
v3 = a2;
v4 = *((_QWORD *)this + 51);
result = *((cocos2d::CCArray **)this + 52);
if ( !a3 )
v4 = (__int64)result;
if ( v4 )
{
v6 = 0;
v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 488LL))(v4);
while ( 1 )
{
v9 = v6 >= (unsigned int)cocos2d::CCArray::count(v7);
v10 = v6;
result = v7;
++v6;
if ( v9 )
break;
v8 = cocos2d::CCArray::objectAtIndex(v7, v10);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 912LL))(v8, v3);
}
}
return result;
}