//
// GJMGLayer::updateGroundOpacity from 0x10002cefc to 0x10002cf84 (136 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x1001de040
// > GJBaseGameLayer::updateLevelColors @ 0x1001de064
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJMGLayer::updateGroundOpacity(GJMGLayer *a1, unsigned __int8 a2, bool a3)
{
__int64 v3; // x8
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x20
__int64 v7; // x21
__int64 v8; // x0
v3 = 416;
if ( a3 )
v3 = 408;
v4 = *(__int64 *)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v3);
if ( v4 )
{
v5 = a2;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 472LL))(v4);
if ( (unsigned int)sub_10024A36C(v6) )
{
v7 = 0;
do
{
v8 = sub_10024A388(v6, v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 896LL))(v8, v5);
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(v6) );
}
}
}