I can say that it seems incredibly likely that such mechanisms would involve some or all the parts of the human brain that are known to intersect with general sociality, given that gender—as opposed to biological sex—is fundamentally a set of social behaviors tied to how one’s self and one’s body interact in a social environment.