//
// GJBaseGameLayer::opacityForObject from 0x998918 to 0x998998 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0xfc148
// > ??> @ 0x1435e58
// > ??> @ 0x1475728
//
// 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:58:03 +0000
//
float __fastcall GJBaseGameLayer::opacityForObject(GJBaseGameLayer *this, GameObject *a2)
{
float v4; // s8
signed int v5; // w19
unsigned int v6; // w1
GJEffectManager *v7; // x21
int GroupID; // w0
float v9; // s0
if ( *((__int16 *)a2 + 584) <= 0 )
return 1.0;
v4 = 1.0;
v5 = 0;
do
{
v6 = v5;
v7 = *((GJEffectManager **)this + 269);
++v5;
GroupID = GameObject::getGroupID(a2, v6);
GJEffectManager::opacityModForGroup(v7, GroupID);
v4 = v4 * v9;
}
while ( *((__int16 *)a2 + 584) > v5 );
return v4;
}