FIRST RESTATEMENT AGREEMENT dated as of August 17, 2017 among