Could a reputable non-Apple repair shop put a different processor in my iPhone, and would the phone still work?
A reputable repair shop won't swap your iPhone's processor for a different one. The processor is soldered to a logic board built for one specific model. Replacing it would take rare micro-soldering skills, and the rest of the board would probably reject the new chip anyway.