Ouchhhhh. That's really unfortunate man. If they do write it off, fight tooth and nail. Make it a point that to replace that car with an identical once isn't the same as another 01 530i on auto trader. Receipts for your recent work may help, too. They will throw many low balls at you. You just need to prove the opposite.
'12 M3 ZCP Alpine White + Fox Red Extended