AMENDMENT NO. 9 AND WAIVER TO AMENDED AND RESTATED LOAN AGREEMENT