Wow that's scary man! I'm really sorry to hear! God was in the car with you there man! For a car to have an impact like that and write off, and you come out alive.
That's a good day.
Father had the same experience in an old Mazda 626 with an upgraded engine, I think it was an SR20 swap
Coming down the road in the back of piarco airport there before the new roads were built, around 12 am in the morning, and we doing real numbers coming down, when a car was coming in the opposite direction, so we slowed down a bit. The other driver fell asleep at the wheel, and drifted onto our lane, to avoid the driver and the 2 kids in the other car, my dad slammed brakes and swerved, our car rolled 4 times until it slammed into a tree and wrapped around it. I remember coming out the car with a few scratches and a bloody hand.
My dad broke a few ribs and his hand when he was holding me down,
Car was written off but thankfully we both lived to race another day