Wiktionary
knock into a cocked hat
vb. Completely nullify, overthrow, demolish, or otherwise defeat an idea, proposition, or argument.