AMENDED AND RESTATED COMMON STOCK WARRANT