//
// PulseEffectAction::valueForDelta from 0x1002d9430 to 0x1002d9483 (83 bytes)
//
// 0 xrefs:
//
// 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 PulseEffectAction::valueForDelta(PulseEffectAction *a1, float a2, float a3, float a4, float a5)
{
float v5; // xmm4_4
if ( a3 > a2 )
return a2 / a3;
if ( (float)(a3 + a4) >= a2 )
return 1.0;
v5 = 0.0;
if ( a5 <= 0.0 )
return v5;
return 1.0 - (float)((float)((float)(a2 - a3) - a4) / a5);
}