//
// sub_10004DF98 from 0x10004df98 to 0x10004e048 (176 bytes)
//
// 4 xrefs:
// > GameToolbox::getEasedValue @ 0x10004e250
// > GameToolbox::getEasedValue @ 0x10004e2f0
// > GameToolbox::getEasedValue @ 0x10004e344
// > GameToolbox::getEasedValue @ 0x10004e410
//
// 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 10:57:42 +0000
//
float __fastcall sub_10004DF98(float a1)
{
double v1; // d1
float v3; // s0
float v4; // s1
float v5; // s2
v1 = a1;
if ( a1 < 0.363636364 )
return (float)(a1 * 7.5625) * a1;
if ( v1 >= 0.727272727 )
{
if ( v1 >= 0.909090909 )
{
v3 = a1 + -0.95455;
v4 = v3 * 7.5625;
v5 = 0.98438;
}
else
{
v3 = a1 + -0.81818;
v4 = v3 * 7.5625;
v5 = 0.9375;
}
}
else
{
v3 = a1 + -0.54545;
v4 = v3 * 7.5625;
v5 = 0.75;
}
return v5 + (float)(v4 * v3);
}