This is a conditional sentence. The first clause is in the past perfect tense ('would have done'), which indicates a hypothetical situation in the past. The second clause should therefore be in the past perfect tense as well, using 'had' + past participle.
Let's look at the options:
Therefore, the correct option completes the third conditional sentence, expressing an unreal condition in the past and its unreal result.
hadn't lost