//
// GroupCommandObject2::updateAction from 0xa6b7d0 to 0xa6b8e4 (276 bytes)
//
// 3 xrefs:
// > GroupCommandObject2::step @ 0xa6b98c
// > GroupCommandObject2::step @ 0xa6b9c4
// > ??> @ 0xb4048
//
// 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 GroupCommandObject2::updateAction(GroupCommandObject2 *a1, int a2, float a3)
{
double m_duration; // d2
double m_deltaTimeInFloat; // d1
float v7; // s0
float m_easingRate; // s1
float v9; // s0
double v10; // d0
m_duration = a1->m_duration;
m_deltaTimeInFloat = a1->m_deltaTimeInFloat;
if ( m_duration < 0.00000011920929 )
{
if ( m_deltaTimeInFloat * 8388608.0 >= 1.0 )
goto LABEL_3;
LABEL_13:
if ( m_deltaTimeInFloat * 8388608.0 <= 0.0 )
{
v7 = 0.0;
goto LABEL_6;
}
if ( m_deltaTimeInFloat * 8388608.0 >= 1.0 )
goto LABEL_5;
v10 = m_deltaTimeInFloat / 0.00000011920929;
goto LABEL_10;
}
if ( m_deltaTimeInFloat / m_duration < 1.0 )
{
if ( m_duration < 0.00000011920929 )
goto LABEL_13;
if ( m_deltaTimeInFloat / m_duration <= 0.0 )
{
v7 = 0.0;
goto LABEL_6;
}
}
LABEL_3:
if ( m_duration >= 0.00000011920929 )
{
v10 = m_deltaTimeInFloat / m_duration;
if ( m_deltaTimeInFloat / m_duration >= 1.0 )
goto LABEL_5;
if ( m_duration < 0.00000011920929 )
goto LABEL_9;
LABEL_10:
v7 = v10;
goto LABEL_6;
}
if ( m_deltaTimeInFloat * 8388608.0 < 1.0 )
{
LABEL_9:
v10 = m_deltaTimeInFloat / 0.00000011920929;
goto LABEL_10;
}
LABEL_5:
v7 = 1.0;
LABEL_6:
m_easingRate = a1->m_easingRate;
v9 = a3 - (float)((float)(1.0 - GameToolbox::getEasedValue(v7, a1->m_easingType, m_easingRate)) * a3);
GroupCommandObject2::updateEffectAction(a1, v9, a2);
}