//
// GameObject::setAreaOpacity from 0x76eabc to 0x76eb44 (136 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x9a52ac
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x9a533c
// > ??> @ 0xb9248
//
// 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:53:12 +0000
//
__int64 __fastcall GameObject::setAreaOpacity(__int64 this, float a2, float a3, int a4)
{
int v4; // w21
__int64 v5; // x19
if ( *(_DWORD *)(this + 1336) != a4 || *(float *)(this + 1332) > a3 )
{
v4 = *(unsigned __int8 *)(this + 1328);
v5 = this;
this = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)this + 912LL))(
this,
(unsigned int)(float)((float)v4 * a2));
*(_BYTE *)(v5 + 1328) = v4;
*(_DWORD *)(v5 + 1336) = a4;
*(float *)(v5 + 1332) = a3;
}
return this;
}