//
// GJBaseGameLayer::getEasedAreaValue from 0x593b98 to 0x593c3c (164 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x59e6e8
// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x59ebda
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x59ee4a
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x59eef8
//
// 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:53:07 +0000
//
float __fastcall GJBaseGameLayer::getEasedAreaValue(
GJBaseGameLayer *this,
GameObject *a2,
EnterEffectInstance *a3,
float a4,
bool a5,
int a6)
{
int v7; // r3
GJBaseGameLayer *v8; // r4
int v9; // r1
int v10; // r0
int v11; // r2
int v12; // r6
float *v13; // r5
GameToolbox *v14; // r1
float v15; // r2
float v16; // r3
int v18; // [sp+14h] [bp+14h]
v7 = *((_DWORD *)a3 + 38);
v8 = this;
v9 = a5;
if ( *(_BYTE *)(v7 + 1781) )
{
if ( a4 > 0.01 && a4 < 0.99 )
{
v10 = *((_DWORD *)a3 + 46);
v11 = *((_DWORD *)a3 + 43);
v12 = *(_DWORD *)(v10 + 4 * a6);
if ( v12 == v11 - 2 )
{
v9 = 0;
}
else if ( v12 == v11 - 1 )
{
v9 = 1;
}
*(_DWORD *)(v10 + 4 * a6) = v11 + v9;
}
if ( v9 )
{
v13 = (float *)(v7 + 1732);
this = v8;
v14 = (GameToolbox *)LODWORD(a4);
v18 = *(_DWORD *)(v7 + 1736);
v15 = *(float *)(v7 + 1728);
}
else
{
v14 = (GameToolbox *)LODWORD(a4);
v13 = (float *)(v7 + 1744);
this = v8;
v18 = *(_DWORD *)(v7 + 1748);
v15 = *(float *)(v7 + 1740);
}
v16 = *v13;
}
else
{
v14 = (GameToolbox *)LODWORD(a4);
v18 = *(_DWORD *)(v7 + 1736);
v15 = *(float *)(v7 + 1728);
v16 = *(float *)(v7 + 1732);
}
return GJBaseGameLayer::getEnterEasingValue(this, v14, v15, v16, v18);
}