AMENDED AND RESTATED CREDIT AGREEMENT dated as of August 18, 2011 among