How so? The iPhone is literally just a computer and the vast majority of computers are cleanly separate from their software.
The idea that a CPU is going to come out of reset and start executing instructions that you provide at the reset vector is thirty years out of date.
ref. https://doc.coreboot.org/northbridge/intel/haswell/mrc.bin.h...
... plus Intel's microcode.