AMENDED AND RESTATED CREDIT AGREEMENT by and among