//
// GJBaseGameLayer::getEasedAreaValue from 0x140228260 to 0x1402283db (379 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x14022947d
// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140229f31
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a732
// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a79d
// > ??> @ 0x1406cd968
//
// 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; // rdx
float v7; // xmm4_4
int m_easeIndex; // r9d
std::_Vector_val>::pointer Myfirst; // r11
bool v11; // cl
int m_easingInBuffer; // ecx
float v13; // xmm0_4
int v14; // ecx
float v15; // xmm1_4
int v17; // ecx
m_gameObject = a3->m_gameObject;
v7 = a4;
if ( m_gameObject->m_easeOutEnabled )
{
if ( a4 <= 0.0099999998 || a4 >= 0.99000001 )
{
v11 = a5;
}
else
{
m_easeIndex = a3->m_easeIndex;
Myfirst = a3->m_easeIndices._Mypair._Myval2._Myfirst;
if ( Myfirst[a6] == m_easeIndex - 2 )
{
v11 = 0;
Myfirst[a6] = m_easeIndex;
}
else
{
v11 = a5;
if ( Myfirst[a6] == m_easeIndex - 1 )
v11 = 1;
Myfirst[a6] = m_easeIndex + v11;
}
}
if ( v11 )
{
m_easingInBuffer = m_gameObject->m_easingInBuffer;
if ( m_easingInBuffer != -1 )
{
v13 = a4;
if ( m_easingInBuffer != -2 )
{
LABEL_13:
v14 = m_easingInBuffer - (int)(float)(v13 * -100.0);
v15 = (float)(int)(float)(a4 * 100.0) * 0.0099999998;
return (float)((float)((float)(a4 - v15)
* (float)(a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14 + 1]
- a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14]))
* 100.0)
+ a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14];
}
return GameToolbox::getEasedValue(v13, m_gameObject->m_easingInType, m_gameObject->m_easingInRate);
}
}
else
{
m_easingInBuffer = m_gameObject->m_easingOutBuffer;
if ( m_easingInBuffer != -1 )
{
v13 = a4;
if ( m_easingInBuffer == -2 )
return GameToolbox::getEasedValue(a4, m_gameObject->m_easingOutType, m_gameObject->m_easingOutRate);
goto LABEL_13;
}
}
}
else
{
v17 = m_gameObject->m_easingInBuffer;
if ( v17 != -1 )
{
v13 = a4;
if ( v17 != -2 )
{
v14 = v17 - (int)(float)(a4 * -100.0);
v15 = (float)(int)(float)(a4 * 100.0) * 0.0099999998;
return (float)((float)((float)(a4 - v15)
* (float)(a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14 + 1]
- a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14]))
* 100.0)
+ a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14];
}
return GameToolbox::getEasedValue(v13, m_gameObject->m_easingInType, m_gameObject->m_easingInRate);
}
}
return v7;
}