to throw up or to be exhausted
Corri tanto que quase botei os bofes pra fora.
I ran so much I almost threw up.
A reference to the lungs (bofes, an animal's lights), suggesting physical exhaustion so extreme you could cough them up.
Falando's Idiom Trainer teaches you to recognize idiom meanings and create sentences using them, so you can speak like a Brazilian.