//
// GameObject::groupOpacityMod from 0x140299d30 to 0x140299dad (125 bytes)
//
// 6 xrefs:
// > PlayLayer::updateVisibility @ 0x14050e3b5
// > PlayLayer::updateVisibility @ 0x14050e506
// > PlayLayer::updateVisibility @ 0x14050e69a
// > PlayLayer::updateVisibility @ 0x14050e729
// > PlayLayer::opacityForObject @ 0x14050ede3
// > ??> @ 0x14091d7c8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:29:12 +0000
//
double __fastcall GameObject::groupOpacityMod(__int64 a1)
{
__int64 v1; // rbx
double v2; // xmm1_8
__int64 v3; // rbp
__int64 v4; // rsi
__int16 *i; // rdi
v1 = 0;
*(_QWORD *)&v2 = 1065353216;
if ( *(__int16 *)(a1 + 1208) <= 0 )
return v2;
v3 = *(_QWORD *)(a1 + 1288);
v4 = *(__int16 *)(a1 + 1208);
for ( i = *(__int16 **)(a1 + 1200); ; ++i )
{
*(float *)&v2 = *(float *)&v2 * GJEffectManager::opacityModForGroup(v3, (unsigned int)*i);
if ( *(float *)&v2 <= 0.0 )
break;
if ( ++v1 >= v4 )
return v2;
}
return 0.0;
}