AMENDED AND RESTATED CREDIT, SECURITY AND GUARANTY AGREEMENT dated as of May 7, 2018 by and among