//
// GJMGLayer::updateGroundOpacity from 0x7ed22c to 0x7ed2b4 (136 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x857fa4
// > GJBaseGameLayer::updateLevelColors @ 0x857fc8
// > ??> @ 0xa5150
//
// 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 GJMGLayer::updateGroundOpacity(GJMGLayer *a1, unsigned __int8 a2, bool a3)
{
unsigned int v3; // w21
cocos2d::CCSprite *m_ground1Sprite; // x1
cocos2d::CCSprite *m_ground2Sprite; // x0
unsigned int v6; // w19
cocos2d::CCArray *v7; // x20
__int64 v8; // x0
bool v9; // cf
unsigned int v10; // w1
v3 = a2;
m_ground1Sprite = a1->m_ground1Sprite;
m_ground2Sprite = a1->m_ground2Sprite;
if ( !a3 )
m_ground1Sprite = m_ground2Sprite;
if ( m_ground1Sprite )
{
v6 = 0;
v7 = m_ground1Sprite->getChildren(m_ground1Sprite);
while ( 1 )
{
v9 = v6 >= (unsigned int)cocos2d::CCArray::count(v7);
v10 = v6++;
if ( v9 )
break;
v8 = cocos2d::CCArray::objectAtIndex(v7, v10);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 896LL))(v8, v3);
}
}
}