EXECUTION COPY AMENDED AND RESTATED LOAN AGREEMENT