Retched = past tense of Retch = vomit, or try to vomit.

Wretched (adj.) =

In a deplorable state of distress or misfortune; miserable: “the wretched prisoners huddling in the stinking cages”...