If I go to sleep at midnight and lets say Im in REM at about 5:00am. Now lets say at 5:00 am when im in REM my alarm clock wakes me up.

Now lets say I fall back asleep. Do i go directly back into REM? Or do I have to go through the other stages of sleep al over again?