//
// GameObject::setAreaOpacity from 0x10068dd50 to 0x10068ddc8 (120 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100120f7d
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100121022
//
// 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:06 +0000
//
__int64 __fastcall GameObject::setAreaOpacity(__int64 a1, int a2, float a3, float a4)
{
int v4; // r15d
__int64 result; // rax
if ( *(_DWORD *)(a1 + 1336) != a2 || *(float *)(a1 + 1332) > a4 )
{
v4 = *(unsigned __int8 *)(a1 + 1328);
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 912LL))(
a1,
(unsigned __int8)(int)(float)((float)v4 * a3));
*(_BYTE *)(a1 + 1328) = v4;
*(_DWORD *)(a1 + 1336) = a2;
*(float *)(a1 + 1332) = a4;
}
return result;
}