A newborn infant is noted to have increased pigmentation of his skin and genitalia, perineal hypospadias with bifid scrotum, and a 2-cm phallus with chordee. Gonads are palpable in the inguinal canal, and no uterus is visualized on ultrasound examination. The most likely diagnosis is: