confusedly

adverb
1
in a way that shows that you are unable to think clearly or to understand what is happening or what somebody is saying
با گیجی, گیج‌کنان, به‌شکل آشفته
2
in a way that is not clear or easy to understand
به طور گیج کننده, با سردرگمی
The film ends confusedly.