San Francisco depth enough to turn back San Bernardino Valley in men's quarterfinals