"crying in pain" and "crying with pain" mean pretty much exactly the same thing. "wilting with despair" and "wilting in despair" also mean pretty much exactly the same thing. Saying that a rose is "wilting in/with despair" is poetic language.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.