//
// GroupCommandObject2::reset from 0x58a9c8 to 0x58ab44 (380 bytes)
//
// 4 xrefs:
// > GJEffectManager::resetTempGroupCommands @ 0x49df56
// > GJEffectManager::createFollowCommand @ 0x4a542a
// > GJEffectManager::createPlayerFollowCommand @ 0x4a5486
// > GroupCommandObject2::GroupCommandObject2 @ 0x58ab7c
//
// 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::reset(GroupCommandObject2 *a1)
{
int v1; // r3
KeyframeObject *m_start; // r7
KeyframeObject *m_finish; // r8
KeyframeObject *v5; // r6
int *v6; // r3
v1 = dword_AB90CC;
a1->m_easingType = 0;
a1->m_moveModX = 1.0;
a1->m_moveModY = 1.0;
a1->m_groupCommandUniqueID = v1;
a1->m_targetGroupID = 0;
dword_AB90CC = v1 + 1;
a1->m_centerGroupID = 0;
a1->m_easingRate = 0.0;
a1->m_duration = 0.0;
a1->m_deltaTime = 0.0;
a1->m_currentXOffset = 0.0;
a1->m_currentYOffset = 0.0;
a1->m_deltaX = 0.0;
a1->m_deltaY = 0.0;
a1->m_oldDeltaX = 0.0;
a1->m_oldDeltaY = 0.0;
a1->m_lockedCurrentXOffset = 0.0;
a1->m_lockedCurrentYOffset = 0.0;
a1->m_currentRotateOrTransformValue = 0.0;
a1->m_currentRotateOrTransformDelta = 0.0;
a1->m_someInterpValue1RelatedOne = 0.0;
a1->m_someInterpValue2RelatedOne = 0.0;
a1->m_finished = 0;
a1->m_disabled = 0;
a1->m_finishRelated = 0;
a1->m_lockToPlayerX = 0;
a1->m_lockToPlayerY = 0;
a1->m_lockToCameraX = 0;
a1->m_lockToCameraY = 0;
a1->m_lockedInX = 0;
a1->m_lockedInY = 0;
a1->m_rotationOffset = 0.0;
a1->m_followXMod = 1.0;
a1->m_followYMod = 1.0;
a1->m_someInterpValue1 = 1.0;
a1->m_someInterpValue2 = 1.0;
a1->m_keyframeRelated = 0.0;
a1->m_targetScaleX = 0.0;
a1->m_targetScaleY = 0.0;
a1->m_transformTriggerProperty450 = 0.0;
a1->m_transformTriggerProperty451 = 0.0;
a1->m_someInterpValue1RelatedZero = 0.0;
a1->m_someInterpValue2RelatedZero = 0.0;
a1->m_someInterpValue1Related = 0.0;
a1->m_someInterpValue2Related = 0.0;
a1->m_followYSpeed = 0.0;
a1->m_followYDelay = 0.0;
a1->m_followYMaxSpeed = 0.0;
a1->m_deltaX_3 = 0.0;
a1->m_deltaY_3 = 0.0;
a1->m_oldDeltaX_3 = 0.0;
a1->m_oldDeltaY_3 = 0.0;
a1->m_Delta_3_Related = 0.0;
a1->m_unkDoubleMaybeUnused = 0.0;
a1->m_lockObjectRotation = 0;
a1->m_targetPlayer = 0;
a1->m_commandType = 0;
a1->m_onlyMove = 0;
a1->m_transformRelatedFalse = 0;
a1->m_relativeRotation = 0;
a1->m_followYOffset = 0;
a1->m_triggerUniqueID = 0;
a1->m_controlID = 0;
a1->m_actionType1 = 0;
a1->m_actionType2 = 0;
a1->m_actionValue1 = 0.0;
m_start = a1->m_keyframes.m_start;
m_finish = a1->m_keyframes.m_finish;
a1->m_actionValue2 = 0.0;
v5 = m_start;
a1->m_someInterpValue1RelatedFalse = 0;
a1->m_deltaTimeInFloat = 0.0;
a1->m_alreadyUpdated = 1;
a1->m_doUpdate = 0;
while ( v5 != m_finish )
{
tk::spline::~spline((void **)&v5->m_spline2.m_x.m_start);
tk::spline::~spline((void **)&v5->m_spline1.m_x.m_start);
++v5;
}
v6 = a1->m_remapKeys.m_start;
a1->m_keyframes.m_finish = m_start;
a1->m_splineRelated.x = 0.0;
a1->m_remapKeys.m_finish = v6;
a1->m_splineRelated.y = 0.0;
a1->m_gameObject = nullptr;
a1->m_gameObjectRotation = 0.0;
a1->m_someInterpValue2RelatedTrue = 0;
a1->m_unkInt204 = 0;
}