Cremasteric muscle is supplied by