Throw your hat at it

exp.

Heard in Offaly

To give up or abandon all hope of success.

In use

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!

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.