FIRST AMENDED AND RESTATED CREDIT AGREEMENT