In AUH airport there is a US pre-clearance facility. Practically works like you are already checked into the US territory and the officers are americans and TSA.
So cannot still understands.
US Pre-Clearance Facility | Check-in & Passport Control | Airport Information | Abu Dhabi International Airport