AMENDED AND RESTATED PATENT LICENSING AGREEMENT