wrapped around, get (one's) wits

understand, using (one's) mental faculties or intellectual powers.