AMENDED AND RESTATED SENIOR SUBORDINATED SECURED CONVERTIBLE NOTE AMENDMENT AGREEMENT AND WAIVER