What are the roles of the two names in ضَرَبَ حَامِدٌ مَحْمُودًا?

Maf'ul Bihi: The Receiver of the Action