Charges send MGM Resorts to net loss of $1.2 billion in four