//
// PulseEffectAction::step from 0x4995b4 to 0x4995e6 (50 bytes)
//
// 3 xrefs:
// > GJEffectManager::updatePulseEffects @ 0x49ad2e
// > GJEffectManager::updatePulseEffects @ 0x49ad8c
// > GJEffectManager::runPulseEffect @ 0x49ebce
//
// 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
//
void PulseEffectAction::step(PulseEffectAction *a1, float a2)
{
float m_fadeInTime; // r1
float m_holdTime; // r2
float m_fadeOutTime; // r3
float v6; // s15
float m_startTime; // s14
float savedregs; // [sp+0h] [bp+0h]
if ( !a1->m_disabled )
{
m_fadeInTime = a1->m_fadeInTime;
m_holdTime = a1->m_holdTime;
m_fadeOutTime = a1->m_fadeOutTime;
v6 = a2 + a1->m_deltaTime;
m_startTime = a1->m_startTime;
a1->m_deltaTime = v6;
a1->m_currentValue = PulseEffectAction::valueForDelta(
COERCE_PULSEEFFECTACTION_(v6 + m_startTime),
m_fadeInTime,
m_holdTime,
m_fadeOutTime,
savedregs);
}
}