Cold and warm molecular gas in the outflow of 4C 12.50