Good luck with the repair, it will be cool to see pictures before, during and after. So long as you’ve factored at least twice what you think it will cost, you’ll be fairly safe - as mentioned by a few of us, the damage you think has happened is only 50% of the story, there is a high likelihood that there is more extensive damage, especially on modern saws that are built notoriously flimsy with thin magnesium castings and light / weak parts.
That’s not bagging on stihl, it’s a product of its time and consumer demands. You run over a stihl 07 from the 50’s and your truck will get more damage than the saw!
(Exaggerating but you get my point).