AMENDED AND RESTATED LOAN AGREEMENT by and among