The correct answer is Each firm adjusts its output so that its costs, including profit, are covered.
There are no companies which want to not sell all of their manufactured goods. In such a scenario, every company would strive to cover all costs and always end up profiting, it is not a thing where some companies accept losses since no company ever wants to have a loss, losses are just sometimes inevitable.