Is this basically the PETA question? I heard at some point that PETA or some such similar organization was going around being like "you should prioritize saving your pets' lives on the same level of humans' lives."
I personally would save the human. Morally, I simply put humans above animals in all circumstances. Even if my cat had once saved my life, honestly, it's a cat, it will live maybe 15 years and die anyway, and it had a much happier and less free-willed life than any human would. I love my cats like members of my own family, but really, there are differences that most humans acknowledge. We are willing to put down cats when they are sick and in pain, but not humans, for example, and this is basically the same principle. Human lives are to be saved at almost any cost. Animal lives are pretty expendable. Odds are very high that you will get over the death of your cat way before you will get over, say, the death of your mother or other close parental figure type.
Taking away the squishy moral part, humans are simply more valuable than pet animals, or even work animals for the most part. They are intelligent, creative, and capable on a level that animals simply aren't.
In the end, save the human, either because you value their lives more, or because they contribute more to society.
You could make a point that there is an edge case here for hardcore criminals or such, but...well, at that point, I don't even know.