sequencer.c: rework search for start of footer to improve clarity