//
// GJBaseGameLayer::opacityForObject from 0x58b5f4 to 0x58b63e (74 bytes)
//
// 0 xrefs:
//
// 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:02 +0000
//
int __fastcall GJBaseGameLayer::opacityForObject(GJBaseGameLayer *this, GameObject *a2)
{
float v4; // s16
signed int i; // r4
GJEffectManager *v6; // r7
int GroupID; // r0
v4 = 1.0;
if ( *((__int16 *)a2 + 510) > 0 )
{
for ( i = 0; i < *((__int16 *)a2 + 510); ++i )
{
v6 = *((GJEffectManager **)this + 381);
GroupID = GameObject::getGroupID(a2, i);
v4 = v4 * COERCE_FLOAT(GJEffectManager::opacityModForGroup(v6, GroupID));
}
}
return LODWORD(v4);
}