snap out ofphrasal verb
Definition of snap out of
: to stop being in or to cause (someone) to stop being in (an unhappy condition or mood, a daydream, etc.) I don't know how to get her to snap out of her depression. The sound of a door slamming snapped me out of my daydream. Come on, snap out of it! You can't let your breakup get you so depressed.