1/3 & 2.4 Endings

Any way to get this structure? I can’t seem to get it?

ending.png

Ahh, never would have thought to look there.

Certainly works cosmetically…playback is a bit buggy, after taking the 2nd ending it goes all the way back to the start of the flow rather than the preceding start repeat bar line, but I can live with that.