Sorry to hear of your cable "poppage." It is a mild pain in the ass to replace the clutch cable in Iron Bellies, as I'd described here with a step-by-step guide for replacement for 5-speeds here:
https://forum.classicmotorworks.com/index.php/topic,25968.msg299030.html#msg299030. The good news for you is that you apparently have the later and improved "articulated" or "hinged" cable end holder in your gearbox instead of the simple forked one in my '05. I am led to understand that those wiggly ones are gentler on the cable and less prone to stress and snap them, but I guess the downside is that they're a lot finnickier to prise the old cable out of, huh?
So, I've felt your pain, as Bill Clinton used to regularly assure us unfortunate underlings rather unconvincingly. My chief bit of advice at this juncture would be NOT to use that spare Royal Enfield OEM cable you have on hand. They are excrement. I mean, there's good reason new bikes came with spare cables. What other brand of new bike feels obliged to come with a full set of spare cables? Instead, take a little time and spend a few more Rupees and insist on the MUCH sturdier Barnett brand heavy duty one. Our Forum hosts Hitchcocks can fix you up with a variety of them to suit your bike as shown here:
https://accessories.hitchcocksmotorcycles.com/s.nl?ext=F&sc=1&category=&search=Barnett%20clutch. I know it's hard to walk away from a cable that's already right there on hand, but you'd do well to do so, especially if you're having to wait on a fresh gearbox cover gasket anyhow. In fact, replacing all the other OEM cables with Barnett ones too wouldn't be the worst idea anyone's ever had. Upon their arrival in the Sultanate, I'd also recommend hanging the cable(s) by one end and just drip-feeding them with a nice light machine oil, like 3-in-1 brand, until they commence dripping out the lower end. This will make them smooth as silk and ward off the corrosion to which those cable innards must be particularly prone down there in pretty much the rainiest spot on earth.
On a related note, every rider, whatever the ride, should have an appropriate assortment of suitable adjustable screw-on cable barrel ends in their tool pouch just to get home when they inevitably go "Pop!" Here's a spot on eBay to get you well started on the search for the appropriate ones:
https://www.ebay.com/i/122238831080?var=422590744757.
"Let me take you home, Big Boy."