Brand new software that-- and this seems to be missed in the wider discussion-- may be impossible to produce. It may not be possibly for Apple to comply. For instance, you can't install firmware on a locked phone.
It would be absolutely trivial to disable security features before selling to the customer. Afterward is more difficult.