Failed AUD

I found out this morning that I failed AUD miserably... Checked advisory score over and over again hoping to see a different score....Hoping NASBA punched wrong number... I really don't understand what I did wrong... I studied with CPAexcel, listened/watched all the video lectures, worked on all the MCQs, revisiting all the incorrect answers over and over again. What I'm I missing here? What should I do now? I long do I have to study before the retake? Any advise would be greatly appreciated. So depressed...I can't think straight...