AMENDED AND RESTATED Registration Rights Agreement