FOOTHILL. AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT