//
// PulseEffectAction::valueForDelta from 0x5c26e0 to 0x5c273e (94 bytes)
//
// 1 xrefs:
// > PulseEffectAction::step @ 0x5c276e
//
// 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:53:50 +0000
//
int __fastcall PulseEffectAction::valueForDelta(PulseEffectAction *this, float a2, float a3, float a4, float a5)
{
float v5; // s15
if ( *(float *)&this >= a2 )
{
if ( *(float *)&this <= (float)(a2 + a3) )
{
v5 = 1.0;
}
else if ( a4 <= 0.0 )
{
v5 = 0.0;
}
else
{
v5 = 1.0 - (float)((float)((float)(*(float *)&this - a2) - a3) / a4);
}
}
else
{
v5 = *(float *)&this / a2;
}
return LODWORD(v5);
}