The cat was lying by the mouse hole waiting for the mouse , but *it* was too impatient.

Are "The cat" and "it" the same entity?
yes