Snap out of (something)

To return to a normal state.

The man finally snapped out of his depression and was able to return to work.