In the attached file (alternate_endings.zip) the second alternate ending doesn't return to the start bar for the third and fourth repeats.
RepeatIndexer doesn't seem to record the second repeat bar in the repeated section, so it's skipped during playback.