AMENDED AND RESTATED ORIGINATION AGREEMENT