Depends upon why the engine failed. Most large outfits have spares. Weather or not the engine is repaired in-house also depends on who owns the engine, if the engine is on a maintenance plan, etc...
Many large outfits lease the engines and pay a flat-rate by the hour for a maintenance plan.
If an operator experiences an un-contained catastrophic failure, then you can expect the engine to go back to the manufacture for analysis.