//
// GJValueTween::step from 0x10010dfa0 to 0x10010e037 (151 bytes)
//
// 3 xrefs:
// > GJShaderState::updateTweenActions @ 0x1003c9f84
// > GJShaderState::timesyncShaderAction @ 0x1003ca1c5
// > ShaderLayer::update @ 0x1003cbfa4
//
// 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 __fastcall GJValueTween::step(GJValueTween *a1, float a2)
{
float m_deltaTime; // xmm0_4
float m_duration; // xmm1_4
float EasedValue; // xmm2_4
int m_easingType; // eax
if ( !a1->m_finished && !a1->m_disabled )
{
m_deltaTime = a2 + a1->m_deltaTime;
a1->m_deltaTime = m_deltaTime;
m_duration = a1->m_duration;
if ( m_deltaTime >= m_duration )
{
EasedValue = 1.0;
m_easingType = a1->m_easingType;
if ( m_easingType <= 0 )
{
LABEL_8:
a1->m_currentValue = (float)((float)(a1->m_toValue - a1->m_fromValue) * EasedValue) + a1->m_fromValue;
a1->m_finished = m_deltaTime >= m_duration;
return;
}
}
else
{
EasedValue = m_deltaTime / m_duration;
m_easingType = a1->m_easingType;
if ( m_easingType <= 0 )
goto LABEL_8;
}
EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);
m_duration = a1->m_duration;
m_deltaTime = a1->m_deltaTime;
goto LABEL_8;
}
}