AMENDED AND RESTATED LOAN AGREEMENT dated as of July 20, 2018 among