AMENDED AND RESTATED CREDIT AGREEMENT Dated as of June 30, 2017 among HELIX ENERGY SOLUTIONS GROUP, INC., as the Borrower,