Ḥakīm and Ḥākim are two Arabic titles derived from the same triliteral root Ḥ-K-M "appoint, choose, judge".