FIRST AMENDMENT TO AMENDED AND RESTATED LOAN AND SECURITY AGREEMENT AND SHARE REPURCHASE AGREEMENT