Complex sentence: The topmasts could be lowered and replaced from the deck, in the event the sprits were to fail in strong gales and had to be abandoned.
Split into simpler sentences: The topmasts could be lowered and replaced from the deck. In the event, the sprits failed in strong gales and had to be abandoned.