the genitofemoral nerve originates from the upper l1-2 segments of the lumbar plexus. it passes downwards, pierces the psoas major and emerges from its anterior surface. the nerve divides into two branches, the genital branch and the lumboinguinal nerve also known as the femoral branch, both of which then continue downwards and medially to the inguinal and femoral canal respectively.