//
// PulseEffectAction::valueForDelta from 0x9f8e5c to 0x9f8ea8 (76 bytes)
//
// 2 xrefs:
// > PulseEffectAction::step @ 0x9f8ee0
// > ??> @ 0xa2e38
//
// 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:59:15 +0000
//
float __fastcall PulseEffectAction::valueForDelta(PulseEffectAction *this, float a2, float a3, float a4, float a5)
{
if ( a2 < a3 )
return a2 / a3;
if ( a2 <= (float)(a3 + a4) )
return 1.0;
if ( a5 <= 0.0 )
return 0.0;
return 1.0 - (float)((float)((float)(a2 - a3) - a4) / a5);
}