AMENDMENT NO. 3 TO AMENDED AND RESTATED CREDIT FACILITY AGREEMENT and convertible noteS