Had you gotten up early, you wouldn't have needed to stay up late.

如果你起得早,你就不必熬夜了。