if you have NOC to change sponsor, you can transfer to another company, if you get NOC and exit the country on cancel visa then you can come back next day in new visa,
there are different types of NOC,
if your employer gives you open NOC (it means you can change to any sponsor), if your employer mention somebody in NOC then you can change only to that sponsor., situations differ as per your requirements,