//
// GameObject::setAreaOpacity from 0x140295830 to 0x1402958c0 (144 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::processAreaEffects @ 0x140331932
// > GJBaseGameLayer::processAreaEffects @ 0x1403319c5
// > ??> @ 0x1408af278
// > ??> @ 0x1408af288
// > ??> @ 0x14091d5ac
//
// 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 11:29:10 +0000
//
void __fastcall GameObject::setAreaOpacity(__int64 a1, float a2, float a3, int a4)
{
float v6; // xmm6_4
if ( *(_DWORD *)(a1 + 1344) != a4 || *(float *)(a1 + 1340) > a3 )
{
v6 = (float)*(unsigned __int8 *)(a1 + 1336);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 320) + 40LL))(
a1 + 320,
(unsigned int)(int)(float)(v6 * a2));
*(_DWORD *)(a1 + 1344) = a4;
*(_BYTE *)(a1 + 1336) = (int)v6;
*(float *)(a1 + 1340) = a3;
}
}