I broke me hip. My doc had to operate on me. He preferred that I would quit smoking but the surgery had to be done so it was
I have a friend who could get no surgery until he quit smoking for 8 weeks. It was an elective knee replacement but he wanted a very good person to do the surgery. He quit. Hasn’t gone back yet.
I am sure you can get some surgeon to do your knee replacement. If you want a big name, highly regarded one, you’ll have to lose weight, quit smoking or be an important politician.