Which nerve passes through the superficial inguinal ring and may therefore be endangered during inguinal hernia repair?

A) Femoral nerve
B) Iliohypogastric nerve
C) Genitofemoral nerve
D) Obturator nerve