AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT by and between