public long rewind(long count) {
		if (count < 0) {
			throw new IllegalArgumentException("Cannot rewind a negative number");
		}
		while (!steps.isEmpty()) {
			int lastIndex = steps.size() - 1;
			count = steps.get(lastIndex).rewind(count);
			if (count >= 0) {
				steps.remove(lastIndex);
			}
			if (count <= 0) {
				break;
			}
		}
		return Long.max(0, count);
	}
Rewind this sequence the given step count

<p>
This modifies the sequence in place, removing the given count from the end of the sequence.
Any step whose count is reduced to 0 as a result of rewinding is removed entirely from the
sequence. Note that each sleigh step (modification) counts as one step when rewinding.

@param count the step count to rewind
@return if count exceeds the steps of this sequence, the (positive) difference remaining
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/model/time/schedule/Sequence.java