What is the grammatical role of al-ḥalīm in yarnū al-ḥalīm?

Imruʾ al-Qays: Hair, Sensory Similes, and Enduring Love (Verses 35–42)