EXHIBIT 12 AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT