If you have balls, you have a Y, or because of SRY gene. Your friend has the normal X and one mutated X that's mostly a Y chromosome that didn't form correctly, but still contains most of the Y chromosome genes and critically the SRY gene.
The whole XXX and XXY or XXXX and XXXXY and all the other genetic oddities that occur are still males if it ends in a Y.
If you have balls, you have a Y, or because of SRY gene. Your friend has the normal X and one mutated X that's mostly a Y chromosome that didn't form correctly, but still contains most of the Y chromosome genes and critically the SRY gene.
The whole XXX and XXY or XXXX and XXXXY and all the other genetic oddities that occur are still males if it ends in a Y.