Car totaled- is it normal to have attempted repair costs deducted from the payout?

I’d be discussing that with my insurance company. It doesn’t seem like the repairs should have been subtracted…but that’s just my opinion.