//
// GJEffectManager::opacityModForGroup from 0x5c4914 to 0x5c4946 (50 bytes)
//
// 7 xrefs:
// > GameObject::groupOpacityMod @ 0x44e052
// > LevelEditorLayer::updateObjectColors @ 0x4616de
// > LevelEditorLayer::updateObjectColors @ 0x461816
// > LevelEditorLayer::updateVisibility @ 0x4631ec
// > LevelEditorLayer::updateVisibility @ 0x463322
// > GJBaseGameLayer::opacityForObject @ 0x58b626
// > GJEffectManager::runOpacityActionOnGroup @ 0x5c9c7c
//
// 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:52 +0000
//
int __fastcall GJEffectManager::opacityModForGroup(GJEffectManager *this, int a2, unsigned int a3)
{
int v3; // r3
_DWORD *v4; // r0
unsigned int v6[2]; // [sp+4h] [bp-8h] BYREF
v6[0] = a2;
v6[1] = a3;
if ( a2 > 9998 )
v3 = 9999;
else
v3 = a2 & ~(a2 >> 31);
v6[0] = v3;
v4 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 77,
v6);
if ( v4 )
return v4[9];
else
return 1065353216;
}