the genitofemoral nerve is responsible for both the sensory (femoral branch) and motor portions (genital branch) of the cremasteric reflex, which describes contraction of the cremasteric muscle when the skin of the superior medial part of the thigh is touched.