AMENDED AND RESTATED NOTE PURCHASE AGREEMENT Dated as of October 4, 2017 among AMERICAN AIRLINES, INC., WILMINGTON TRUST COMPANY, as Pass Through Trustee under each of the Pass Through Trust Agreements and WILMINGTON TRUST COMPANY, as Subordination Agent