Brrr, how oxygen played a role in the Earth’s deep freeze