In 90 percent of these individuals, the syndrome is caused by the Y chromosome’s SRY gene, which triggers male reproductive development, being atypically included in the crossing over of genetic information that takes place between the pseudoautosomal regions of the X and Y chromosomes during meiosis in the father.[2][7] When the X with the SRY gene combines with a normal X from the mother during fertilization, the result is an XX genetic male. Less common are SRY-negative individuals, those who are genetically females, which can be caused by a mutation in an autosomal or X chromosomal gene.[2] The masculinization of XX males is variable.
I googled it for you.
https://en.wikipedia.org/wiki/XX_male_syndrome