Complex sentence: He discovers that the off switch is broken, before running out of air, but he hits the reverse button instead just before he drowns.
Split into simpler sentences: He discovers that the off switch is broken, before running out of air. He hits the reverse button instead, just before he drowns.