When you get older, things tend to break.
You need to use good gear and try not to crash.
I suspect your future dirt riding might be limited?
I crashed bad last year, and have not been dirt riding since (no bike).
I was looking for a tw200, I might be able to ride that without it ending in a helicopter ride, maybe..
After dirt riding for 40 years, I have one leg that works right.
All my other limbs (plus my back) are trashed.
I did break my ankle on the working leg, but it does not bother me at all.
The damage was nothing like yours.
Hope you heal up 100%!