DALLAS — Boeing’s CEO says the company will consider temporarily shutting down production of the 737 Max if the plane’s return is significantly delayed beyond the company’s October forecast.

The comment by Chairman and CEO Dennis Muilenburg underscores the uncertainty swirling around the company and its best-selling plane, which has been grounded since March after two deadly crashes.

Boeing reported Wednesday that it suffered a second-quarter loss of nearly $3 billion as it absorbed financial damage caused by the Max. Revenue plunged 35% after Boeing halted deliveries of any new Max jets.

The huge loss was expected. Boeing removed much of the suspense from earnings day when it announced last week that it would take a $4.9 billion after-tax charge for the Max. The charge was calculated from Boeing’s estimate of the cost of compensating airlines for lost use of their Max planes for several months. It did not include Boeing’s potential liability from dozens of lawsuits filed by relatives of the 346 passengers who died in the two crashes.

Boeing is updating U.S. and foreign regulators daily on its work to fix the plane. Based on those discussions, the company said last week that it expects the Max to resume flying early in the fourth quarter.

The Max assembly line near Seattle has stayed open, although at a reduced rate. The company even hopes to boost production gradually from the current 42 a month to 57 a month next year, but that assumes the plane will fly and Boeing will soon resume deliveries to airlines — jets have been piling up in Boeing lots since March.

”If that estimate of (an October) return to service substantially changes, then we’ll have to consider alternatives,” Muilenburg told analysts. “Those alternatives could include different production rates, they could include a temporary shutdown of the line.”

Muilenburg’s comments implied that the Federal Aviation Adminstration can review the company’s changes to flight-control software in one month. The FAA did not immediately comment, but agency officials in the past have declined to put a timetable on their work.

Chicago-based Boeing Co., which builds planes in Washington state and South Carolina, said it lost $2.94 billion in the quarter, compared with a profit of $2.2 billion a year earlier. It reported an adjusted loss of $5.82 per share.

Revenue tumbled to $15.75 billion from $24.26 billion a year earlier.

The huge charge for the Max caused the quarterly numbers to mean less than usual. Some analysts excluded the charge from their forecast of earnings per share, while others did not, making it difficult if not impossible to judge whether Boeing met, beat or fell short of Wall Street expectations.

Boeing is working to complete changes in flight-control software on the 737 Max that was implicated in the fatal crashes. The company said it is testing the final software changes that it will submit to the FAA for approval.

Some relatives of passengers who died in the crashes — one off the coast of Indonesia in October, the other in Ethiopia in March — have urged Boeing and regulators to scrap the plane. They argue that flight-control software called MCAS is a bandage meant to cover a plane that was more prone to aerodynamic stalls because of the larger size and forward position of its engines compared to previous Boeing 737s.

Among those calling for ditching the plane are longtime consumer crusader Ralph Nader, whose grandniece died in the Ethiopia crash, and Paul Njoroge, a Canadian who told a congressional panel this month about losing his wife, three children and mother-in-law on the same flight.

Even after the second crash, those in the airline industry, including CEOs and pilots, have never wavered in their certainty that the plane will fly again. It has taken far longer than most expected, however, for Boeing to produce a fix for the flight-control system that activated when it should not have on the two flights that crashed.

”There is some frustration, but the general sense I get from the membership is they don’t want anything rushed either,” said Eric Ferguson, new president of the American Airlines pilots’ union. “We will get that airplane back in the air when the time comes, not any sooner.”

Separately, Boeing on Wednesday announced that the first flight of its 777X jumbo jet will be delayed until next year instead of late this year because of problems with the General Electric engines. Boeing still aims to deliver the first planes to airlines in late 2020.

In afternoon trading, Boeing shares were down $10.31, or 2.8%, to $362.76.

Since the first crash in late October, Boeing shares had gained 4% through Tuesday’s closing price, compared with a 13% rise in the S&P 500 index. The gap has widened since an Ethiopian Airlines Max crashed in March — Boeing shares had fallen nearly 12%, while the S&P had gained nearly 10%.