Max will sometimes do that as well, but soon after he throws up the hairball and everything is back to normal. It's hard to describe the sound but it's kind of like a hacking cough sound. The hairball med should help pass the hairball through. If the hacking continues on for any length of time, I'd say time for a visit to the whitecoats.