The company posted a first-quarter loss of $389.1 million, compared with a profit of $23.2 million a year earlier.