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.
'02 ///M5 Imola Red / Imola Red '09 335i Alpine White / Coral Red