//
// GameObject::groupOpacityMod from 0x14019ccb0 to 0x14019cd2d (125 bytes)
//
// 7 xrefs:
// > PlayLayer::updateVisibility @ 0x1403af8a5
// > PlayLayer::updateVisibility @ 0x1403af9f9
// > PlayLayer::updateVisibility @ 0x1403afb93
// > PlayLayer::updateVisibility @ 0x1403afc22
// > PlayLayer::opacityForObject @ 0x1403b02e3
// > ??> @ 0x1406cbe38
// > ??> @ 0x1406cbe44
//
// 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 v1; // rbx
float v2; // xmm1_4
GJEffectManager *m_goEffectManager; // rbp
__int64 m_opacityGroupCount; // rsi
std::array *i; // rdi
v1 = 0;
v2 = 1.0;
if ( a1->m_opacityGroupCount <= 0 )
return v2;
m_goEffectManager = a1->m_goEffectManager;
m_opacityGroupCount = a1->m_opacityGroupCount;
for ( i = a1->m_opacityGroups; ; i = (std::array *)((char *)i + 2) )
{
v2 = v2 * GJEffectManager::opacityModForGroup(m_goEffectManager, i->_Elems[0]);
if ( v2 <= 0.0 )
break;
if ( ++v1 >= m_opacityGroupCount )
return v2;
}
return 0.0;
}