AMENDED AND RESTATED FIRST LIEN CREDIT AGREEMENT