Amended and restated Registration Rights and Lockup Agreement