Amended and Restated Loan and Security Agreement