before unless when
The firemen followed the tracks of the dog  [MASK]  they found him barking loudly by the side of a(n)  injured  fireman who was lying on the ground and desperately waiting for  rescue  .