Pathology

A 48-year-old man with a longstanding history of chronic constipation complains of anal itching and discomfort toward the end of the day. He describes a perianal pain when sitting and finds himself sitting sideways to avoid discomfort. Physical examination reveals painful varicose dilations in the anal region, associated with edema. Which of the following is the most likely diagnosis?