mean friend

i have a friend who is overly sarcastic to the point where they're just plain mean. i can't talk to them about ANYTHING with them saying something rude with the intent to be "witty." It's so exhausting and I'm honestly getting to the point where I want to cut them off. I try to pretend it doesn't bother me but in reality it IRKS my soul. How do I confront them without getting some sarcastic response back?