//
// PulseEffectAction::valueForDelta from 0x499550 to 0x4995ae (94 bytes)
//
// 1 xrefs:
// > PulseEffectAction::step @ 0x4995de
//
// 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 PulseEffectAction::valueForDelta(PulseEffectAction *a1, float a2, float a3, float a4, float a5)
{
if ( *(float *)&a1 < a2 )
return *(float *)&a1 / a2;
if ( *(float *)&a1 <= (float)(a2 + a3) )
return 1.0;
if ( a4 <= 0.0 )
return 0.0;
return 1.0 - (float)((float)((float)(*(float *)&a1 - a2) - a3) / a4);
}