allow me to inform you that the first "ill" is a adverb and the second one is an adjective.
the first ill "adv" means ''badly''
ill // adj., adv., & n. (Oxford)
1 badly, wrongly (ill-matched)
Is this satisfied you?