What does the haḍm–khaḍm–qaḍm sequence depict?

The Alexandrian Maqāmah — A Traveler’s Ambition and a Complaint before the Judge