You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is A patient with external hemorrhoids develops pain while passing stools. The nerve mediating this pain is: and explain in detail?
Pudendal nerve: Root Value Course Branches and supply S2, S3,S4 Leaves pelvis through greater sciatic foramen Enter perineum through lesser sciatic foramen Main sensory motor nerve of perineum and sensory nerve of external genitalia Dorsal nerve of penis/Clitoris Inferior rectal nerve supply anal mucosa (lower 1/2) perineal skin and external anal sphincter Perineal nerve Ref: Gray&;s 40th edition Pgno: 1098