//
// GameObject::setAreaOpacity from 0x44cf9c to 0x44d004 (104 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x593d14
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x593d68
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:35 +0000
//
int __fastcall GameObject::setAreaOpacity(int this, float a2, float a3, int a4)
{
int v5; // r4
float *v6; // r5
unsigned __int8 v8; // r7
v5 = this;
v6 = (float *)(this + 1152);
if ( *(_DWORD *)(this + 1156) != a4 || a3 < *v6 )
{
v8 = *(_BYTE *)(this + 1148);
this = (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)this + 456))(
this,
(unsigned __int8)(unsigned int)(float)(a2 * (float)v8));
*(_BYTE *)(v5 + 1148) = v8;
*(_DWORD *)(v5 + 1156) = a4;
*v6 = a3;
}
return this;
}