Thats an antique CI bent pan branch.
You could put the toilet back on the other wall where it was originally, and box the back wall out to fit, or, remove the CI branch and a setion of pipe and rejig the stack.
If you need to find a tradesperson to get your job done, please try our local search below, or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Are you a trade or supplier? You can create your listing free at DIYnot Local