Applied online. A call with recruiter, 2 phone screens, got to on site interview. Had a total of 4 rounds of technical one on ones. First 2 went fine. Last 2 were with people who had made up their minds before it started. Of the bad ones, the 1st guy was as vague as can be with his questions, kept checking his phone while I replied and wouldn't let me finish my answers, will start on with next question. He was a bit rude and tried to find fault in almost all of my responses, even with ones that were right. Questions were very theoretical. I thought that that round went bad, but the worst was yet to come. The final round was with a guy who has a PhD, he mentioned that quite a few times, during the interview. He started critiquing my resume and pointed out things that I should change. He was very vague, loud, rude and arrogant. He wouldn't let me finish my answers either. Oh, and according to him, he sleeps and wakes up in code, so I had to be careful with what I say.
Once it clearly goes from going good to going bad, probably means they have made up their mind. Don't waste your time and energy after that, bid adieu, which I should have done. In retrospect, some of the mistakes obviously fall on me, but their entire approach to the interview is not justified.