What happens to your pet after the separation?

Know, What happens to the custody of your pet after the separation?