If I’m reading right, the PVC is in direct contact with the gunite, and broke off more or less flush with that surface.
You will need to chip away the gunite at least an inch deep around the pipe to have space to get a fitting onto the pipe. Here’s where it gets messy - you need an inch of solid, cleanly-cut pipe, so if the pipe broke off really ragged, you may need to chisel out two or more inches of concrete, while being careful not to damage the pipe any worse than it it to be able to trim the end off. Pray that the pipe did not split.
Or, as Rhubarb suggests, can you dig on the backside of the pool wall to access the pipe? If so, your life may be a bit easier and involve somewhat less chiseling and chipping. Either way, you need a good clean and solid inch of pipe with a smooth cut end.
The hardest part is going to be accessing the pipe so you can cut off/clean up the end and splice on new pipe. From there, it’s kinda like tinkertoys to cobble up bits of pipe and fittings to make it all go back together again. Dry-fit things before committing to glue, be sure the parts are clean and dry, and use purple primer before the cement. (Just so you know - the primer and cement are kinda stinky stuff, and neither will come out of any fabric it gets spilled on. True to its name, purple primer will stain your skin purple for two days.) Assuming you didn’t break off any exotic pool parts like jets or nozzles, you’re probably looking at $20-30 worth of parts and PVC cement. And a lot of labor.