Etymology
Today it means: In a cocksure manner. Full definition →
From cocksure + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.