Anesthesia: The patient is given general anesthesia or spinal anesthesia with sedation to keep them comfortable during the surgery.