Unfortunately, if those are all the 'ends' you see, you're going to have to work out whether the inside terminations are connected together to the single outside termination, or whether another termination is buried or broken.

At a minimum, to have your pump / filter inside, you'll need one complete line coming from the pool, and another complete line returning to the pool. Your pictures don't tell me whether that's the case, or not.

It might be better to simply start over, and run 2 new lines yourself.