Ambien (Zolpidem), slows down brain activity, enabling you to sleep. The immediate-release version helps you sleep faster by dissolving right away. The XR version is composed of two layers — the first layer aids you to fall asleep, and the second dissolves slowly, so you stay asleep.

https://recoverypartnernetwork.com/drug/sleeping-pills/ambien-addiction