God is with you, and He'll help you make spiritual progress--strengthening and encouraging you to keep on keeping on during rough times. It's easy to quit, but it takes faith to press on to victory.
Remember, regaining your mind is a process. We all fail at one time or another. God knows our weaknesses; that's why He gave us 1 John 1:9. Just ask for forgiveness and envision the blood of Jesus washing away your sin.