//
// GameObject::groupOpacityMod from 0x647528 to 0x6475c0 (152 bytes)
//
// 3 xrefs:
// > PlayLayer::opacityForObject @ 0x5c8f80
// > GameObject::opacityModForMode @ 0x64a588
// > ??> @ 0x9cb70
//
// 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
//
float GameObject::groupOpacityMod(GameObject *a1)
{
__int64 v2; // x20
float v3; // s8
int v4; // w21
int v5; // w1
if ( a1->m_opacityGroupCount <= 0 )
{
return 1.0;
}
else
{
v2 = 0;
v3 = 1.0;
v4 = 0;
while ( 1 )
{
++v4;
v5 = a1->m_opacityGroups->__elems_[v2++];
v3 = v3 * GJEffectManager::opacityModForGroup(a1->m_goEffectManager, v5);
if ( v3 <= 0.0 )
break;
if ( a1->m_opacityGroupCount <= v4 )
return v3;
}
return 0.0;
}
}