//
// GJValueTween::step from 0x99916c to 0x9991f8 (140 bytes)
//
// 4 xrefs:
// > GJGameState::updateTweenActions @ 0x9bb1f8
// > GJShaderState::updateTweenActions @ 0xb2e818
// > GJShaderState::timesyncShaderAction @ 0xb2ecb4
// > ??> @ 0xac5b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:58:03 +0000
//
float __fastcall GJValueTween::step(GJValueTween *this, float result)
{
float v2; // s3
float v3; // s1
float EasedValue; // s0
GameToolbox *v6; // x0
float v7; // s4
float v8; // s2
if ( !*((_BYTE *)this + 28) && !*((_BYTE *)this + 29) )
{
v2 = *((float *)this + 2);
v3 = result + *((float *)this + 3);
*((float *)this + 3) = v3;
if ( v3 < v2 )
EasedValue = v3 / v2;
else
EasedValue = 1.0;
v6 = (GameToolbox *)*((unsigned int *)this + 5);
if ( (int)v6 > 0 )
{
EasedValue = GameToolbox::getEasedValue(v6, EasedValue, *((float *)this + 6));
v3 = *((float *)this + 3);
v2 = *((float *)this + 2);
}
v7 = *(float *)this;
v8 = *((float *)this + 1) - *(float *)this;
*((_BYTE *)this + 28) = v3 >= v2;
result = v7 + (float)(v8 * EasedValue);
*((float *)this + 4) = result;
}
return result;
}