//
// GJEffectManager::activeOpacityForIndex from 0x5c319c to 0x5c31bc (32 bytes)
//
// 13 xrefs:
// > LevelEditorLayer::updateObjectColors @ 0x461594
// > LevelEditorLayer::updateObjectColors @ 0x4615b8
// > LevelEditorLayer::updateObjectColors @ 0x4616ac
// > LevelEditorLayer::updateObjectColors @ 0x4617e4
// > LevelEditorLayer::updateVisibility @ 0x46309c
// > LevelEditorLayer::updateVisibility @ 0x4630c2
// > LevelEditorLayer::updateVisibility @ 0x4631b6
// > LevelEditorLayer::updateVisibility @ 0x4632ec
// > GJBaseGameLayer::updateLevelColors @ 0x58c5ee
// > GJBaseGameLayer::updateLevelColors @ 0x58c6ea
// > GJBaseGameLayer::updateLevelColors @ 0x58c716
// > GJBaseGameLayer::updateGradientLayers @ 0x5910f2
// > GJBaseGameLayer::updateGradientLayers @ 0x591106
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:51 +0000
//
int __fastcall GJEffectManager::activeOpacityForIndex(GJEffectManager *this, int a2)
{
cocos2d::CCObject *ColorSprite; // r0
float v3; // s15
ColorSprite = GJEffectManager::getColorSprite(this, a2);
if ( ColorSprite )
v3 = *((float *)ColorSprite + 66) / 255.0;
else
v3 = 1.0;
return LODWORD(v3);
}