//
// GJValueTween::step from 0x140205310 to 0x140205391 (129 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::update @ 0x1402389b8
// > GJShaderState::timesyncShaderAction @ 0x140481c65
// > ShaderLayer::update @ 0x140482ad7
// > ??> @ 0x1406ccc60
//
// 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
//
void GJValueTween::step(GJValueTween *a1, float a2)
{
float v3; // xmm6_4
bool v4; // cf
float EasedValue; // xmm3_4
int m_easingType; // edx
float v7; // xmm1_4
if ( !a1->m_finished && !a1->m_disabled )
{
v3 = a2 + a1->m_deltaTime;
v4 = v3 < a1->m_duration;
a1->m_deltaTime = v3;
if ( v4 )
EasedValue = v3 / a1->m_duration;
else
EasedValue = 1.0;
m_easingType = a1->m_easingType;
if ( m_easingType > 0 )
EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);
v7 = (float)(a1->m_toValue - a1->m_fromValue) * EasedValue;
a1->m_finished = v3 >= a1->m_duration;
a1->m_currentValue = v7 + a1->m_fromValue;
}
}