//
// smoothstep from 0x681528 to 0x681590 (104 bytes)
//
// 2 xrefs:
// > calculateK @ 0x6815a0
// > calculateK @ 0x6815ae
//
// 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:56:02 +0000
//
float __fastcall smoothstep(float a1, float a2, float a3)
{
float v3; // s15
v3 = (float)(a3 - a1) / (float)(a2 - a1);
if ( v3 < 0.0 )
{
v3 = 0.0;
}
else if ( v3 > 1.0 )
{
v3 = 1.0;
}
else if ( v3 < 0.0 )
{
v3 = 0.0;
}
return (float)(v3 * v3) * (float)(3.0 - (float)(v3 + v3));
}