A 25-year-old man presents with a 1-day history of sudden onset, severe, unilateral testicular pain. The pain started abruptly while he was playing football. On examination, the left testis is swollen, tender, and lying high and horizontally in the scrotum. The cremasteric reflex is absent on the left side. What is the most appropriate immediate action?