//
// GJBaseGameLayer::getEasedAreaValue from 0x4740b0 to 0x474154 (164 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x47d574
// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x47da5a
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x47dcca
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x47dd78
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
float GJBaseGameLayer::getEasedAreaValue(
GJBaseGameLayer *a1,
GameObject *a2,
EnterEffectInstance *a3,
float a4,
bool a5,
int a6)
{
EnterEffectObject *m_gameObject; // r3
GJBaseGameLayer *v8; // r4
_BOOL4 v9; // r1
int *m_start; // r0
int m_easeIndex; // r2
int v12; // r6
float *p_m_easingInRate; // r5
float v14; // r1
int m_easingInType; // r2
float m_easingInRate; // r3
int m_easingInBuffer; // [sp+14h] [bp+14h]
m_gameObject = a3->m_gameObject;
v8 = a1;
v9 = a5;
if ( m_gameObject->m_easeOutEnabled )
{
if ( a4 > 0.01 && a4 < 0.99 )
{
m_start = a3->m_easeIndices.m_start;
m_easeIndex = a3->m_easeIndex;
v12 = m_start[a6];
if ( v12 == m_easeIndex - 2 )
{
v9 = 0;
}
else if ( v12 == m_easeIndex - 1 )
{
v9 = 1;
}
m_start[a6] = m_easeIndex + v9;
}
if ( v9 )
{
p_m_easingInRate = &m_gameObject->m_easingInRate;
a1 = v8;
v14 = a4;
m_easingInBuffer = m_gameObject->m_easingInBuffer;
m_easingInType = m_gameObject->m_easingInType;
}
else
{
v14 = a4;
p_m_easingInRate = &m_gameObject->m_easingOutRate;
a1 = v8;
m_easingInBuffer = m_gameObject->m_easingOutBuffer;
m_easingInType = m_gameObject->m_easingOutType;
}
m_easingInRate = *p_m_easingInRate;
}
else
{
v14 = a4;
m_easingInBuffer = m_gameObject->m_easingInBuffer;
m_easingInType = m_gameObject->m_easingInType;
m_easingInRate = m_gameObject->m_easingInRate;
}
return GJBaseGameLayer::getEnterEasingValue(a1, v14, m_easingInType, m_easingInRate, m_easingInBuffer);
}