AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT Dated as of July 31, 1998