// // smoothstep from 0x54b3b0 to 0x54b418 (104 bytes) // // 2 xrefs: // > calculateK @ 0x54b428 // > calculateK @ 0x54b436 // // 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 // 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)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source