。
I don't get what's going on.
Literal
I [to-は] reason [subject-が] not-understand [emphasis-よ].
わけがわからない ('cannot understand the reason/situation') is a set expression for being confused or at a loss. わけ ('reason, cause, situation') is the grammatical subject of 分からない. Very common casual expression when faced with something incomprehensible.