//
// GameToolbox::bounceTime from 0x3ce618 to 0x3ce696 (126 bytes)
//
// 4 xrefs:
// > GameToolbox::getEasedValue @ 0x3ce92c
// > GameToolbox::getEasedValue @ 0x3ce946
// > GameToolbox::getEasedValue @ 0x3ce964
// > GameToolbox::getEasedValue @ 0x3ce972
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:39 +0000
//
int __fastcall GameToolbox::bounceTime(GameToolbox *this, float a2)
{
double v2; // d6
float v3; // s13
float v4; // s15
float v5; // s13
float v6; // s14
bool v7; // nf
v2 = *(float *)&this;
if ( *(float *)&this >= 0.363636364 )
{
if ( v2 >= 0.727272727 )
{
v7 = v2 < 0.909090909;
if ( v2 >= 0.909090909 )
v5 = 0.95455;
else
v5 = 0.81818;
v4 = *(float *)&this - v5;
if ( !v7 )
v5 = 0.98438;
v6 = v4 * 7.5625;
if ( v7 )
v5 = 0.9375;
}
else
{
v4 = *(float *)&this - 0.54545;
v5 = 0.75;
v6 = (float)(*(float *)&this - 0.54545) * 7.5625;
}
v3 = v5 + (float)(v6 * v4);
}
else
{
v3 = (float)(*(float *)&this * 7.5625) * *(float *)&this;
}
return LODWORD(v3);
}