//
// cocos2d::CCActionInterval::step from 0x10018a2f4 to 0x10018a36c (120 bytes)
//
// 30 xrefs:
// > ??> @ 0x1007a5440
// > ??> @ 0x1007a5550
// > ??> @ 0x1007a55d8
// > ??> @ 0x1007a5660
// > ??> @ 0x1007a57e8
// > ??> @ 0x1007a5890
// > ??> @ 0x1007a5930
// > ??> @ 0x1007a59d0
// > ??> @ 0x1007a5a70
// > ??> @ 0x1007a5b10
// > ??> @ 0x1007a5bb0
// > ??> @ 0x1007a5c50
// > ??> @ 0x1007a5cf0
// > ??> @ 0x1007a5d90
// > ??> @ 0x1007a5e30
// > ??> @ 0x1007a5ed0
// > ??> @ 0x1007a5f70
// > ??> @ 0x1007d2dc0
// > ??> @ 0x1007d2e80
// > ??> @ 0x1007d2f28
// > ??> @ 0x1007d2fd0
// > ??> @ 0x1007d3078
// > ??> @ 0x1007d3120
// > ??> @ 0x1007d31e0
// > ??> @ 0x1007d3288
// > ??> @ 0x1007d3348
// > ??> @ 0x1007d33f0
// > ??> @ 0x1007d3498
// > ??> @ 0x1007d3540
// > ??> @ 0x10080cf98
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCActionInterval::step(cocos2d::CCActionInterval *a1, float a2)
{
float v2; // s0
float m_fSpeedMod; // s1
float m_fDuration; // s1
float v5; // s1
if ( a1->m_bFirstTick )
{
a1->m_bFirstTick = 0;
a1->m_elapsed = 0.0;
v2 = 0.0;
}
else
{
m_fSpeedMod = a1->m_fSpeedMod;
if ( m_fSpeedMod != 1.0 )
a2 = m_fSpeedMod * a2;
v2 = a1->m_elapsed + a2;
a1->m_elapsed = v2;
}
m_fDuration = a1->m_fDuration;
if ( m_fDuration < 0.00000011921 )
m_fDuration = 0.00000011921;
v5 = v2 / m_fDuration;
a2 = 1.0;
if ( v5 < 1.0 )
{
a2 = 0.0;
if ( v5 > 0.0 )
a2 = v5;
}
((void (__fastcall *)(cocos2d::CCActionInterval *, __n128))a1->update)(a1, *(__n128 *)&a2);
}