A patient with cirrhosis develops confusion, asterixis, and an elevated ammonia level.Which intervention is the priority?