# Yahweh has mixed a spirit of distortion into her midst
"Yahweh has judged them by distorting their thoughts" or "Yahweh has judged Egypt by distorting its leaders' thoughts, as intoxicating drinks confuse people's thoughts"
# distortion
"perverseness" or "confusion"
# into her midst
"within Egypt"
# like a drunk staggering in his vomit
Isaiah speaks of the people of Egypt doing what is wrong as if they were made to wander about like a drunken person.