AMENDED AND RESTATED SENIOR SECURED REVOLVING CREDIT AGREEMENT dated as of August 4, 2016 among