Throw your hat at it
To give up or abandon all hope of success.
Heard in Offaly
I've been doin' the Lohho for 20 year now and haven't won a ting on it.' 'Ah, ya may as well throw your hat at it!

Shall I translate it into posh English for you, horse?
How do you do? Here it is in posh English.
I have been entering the lottery for twenty years now and have not won a single thing. Ah, you may as well abandon all hope.
Updated