wits wrapped around (something), get (one's)
understand (something), using (one's) mental faculties or intellectual powers.