Regularity and chaos at critical points of first-order quantum phase transitions