Retake Mentality

So I just got back my score for REG and I didn't pass for the second time. I know what I need to do when it comes to the actual material, but I struggle a lot with maintaining focus. I know a lot of people know the mental toll of not passing a part of the CPA exam (especially REG), so I was wondering if anyone had tips to keeping yourself upbeat and focused for studying the retake? I think that was my biggest issue when studying for my first retake.