//
// GJBaseGameLayer::opacityForObject from 0x10012efe0 to 0x10012f06a (138 bytes)
//
// 2 xrefs:
// > ??> @ 0x100ac3dc8
// > ??> @ 0x100ac5078
//
// 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 12:24:46 +0000
//
float __fastcall GJBaseGameLayer::opacityForObject(__int64 a1, __int64 a2)
{
float result; // xmm0_4
unsigned int v3; // r15d
__int64 v4; // r12
unsigned int GroupID; // eax
if ( *(__int16 *)(a2 + 1168) <= 0 )
return 1.0;
result = 1.0;
v3 = 0;
do
{
v4 = *(_QWORD *)(a1 + 2152);
GroupID = GameObject::getGroupID(a2, v3);
result = result * GJEffectManager::opacityModForGroup(v4, GroupID);
++v3;
}
while ( (int)v3 < *(__int16 *)(a2 + 1168) );
return result;
}