//
// GameObject::opacityModForMode from 0x10069c240 to 0x10069c2ff (191 bytes)
//
// 2 xrefs:
// > PlayLayer::updateVisibility @ 0x100084d18
// > PlayLayer::updateVisibility @ 0x100084df1
//
// 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:35:16 +0000
//
float __fastcall GameObject::opacityModForMode(__int64 a1, int a2, unsigned __int8 a3)
{
int v3; // eax
float result; // xmm0_4
float v5; // xmm0_4
__int64 v6; // r14
float v7; // xmm1_4
float v8; // [rsp+Ch] [rbp-14h]
if ( a2 > 0 && (v3 = (int)*(float *)(*(_QWORD *)(a1 + 8LL * (a3 ^ 1u) + 1264) + 316LL), (unsigned __int8)v3 < 0xFAu) )
{
result = (float)(unsigned __int8)v3 * 0.0040000002;
if ( *(__int16 *)(a1 + 1200) <= 0 )
return result;
}
else
{
result = 1.0;
if ( *(__int16 *)(a1 + 1200) <= 0 )
return result;
}
v8 = result;
v5 = 1.0;
v6 = 0;
do
{
v5 = GJEffectManager::opacityModForGroup(*(_QWORD *)(a1 + 1280), *(__int16 *)(*(_QWORD *)(a1 + 1192) + 2 * v6)) * v5;
v7 = 0.0;
if ( v5 <= 0.0 )
break;
++v6;
v7 = v5;
}
while ( v6 < *(__int16 *)(a1 + 1200) );
return v8 * v7;
}