Anatomy

A 50-year-old retired army major complained of severe pain in the ear and throat. Pain was episodic and triggered by swallowing, chewing, coughing, and laughing. Symptoms include loss of gag (pharyngeal) reflex; analgesia and anesthesia in the region of the tonsils and dysphagia. Which cranial nerve's lesion produces these neurologic deficits?