To make a complete mess of things. Derived from the traditional archery usage where, if the 'cock' feather was uppermost, the arrow would not fly straight.
That was a real cock up.
65👍 20👎