//
// GJEffectManager::opacityModForGroup from 0x9fd12c to 0x9fd178 (76 bytes)
//
// 8 xrefs:
// > GameObject::groupOpacityMod @ 0x7703e0
// > LevelEditorLayer::updateObjectColors @ 0x78bfa4
// > LevelEditorLayer::updateObjectColors @ 0x78c180
// > LevelEditorLayer::updateVisibility @ 0x78e620
// > LevelEditorLayer::updateVisibility @ 0x78eb80
// > GJBaseGameLayer::opacityForObject @ 0x998964
// > GJEffectManager::runOpacityActionOnGroup @ 0xa06890
// > ??> @ 0x9c9d0
//
// This function is hookable on this platform (idp: arm, 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 12:59:18 +0000
//
float __fastcall GJEffectManager::opacityModForGroup(GJEffectManager *this, int a2)
{
int v2; // w2
__int64 *v3; // x0
int v5; // [xsp+1Ch] [xbp+1Ch] BYREF
v2 = 9999;
if ( a2 <= 9998 )
{
if ( a2 < 0 )
v2 = 0;
else
v2 = a2;
}
v5 = v2;
v3 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 51,
&v5);
if ( v3 )
return *((float *)v3 + 11);
else
return 1.0;
}