Exhibit D FORM OF Amended and Restated REGISTRATION RIGHTS AGREEMENT