it is not your fault that your company is laying off, if they gave you NOC then it is very possible to get job to another company and transfer your RP to them.