800 shut down, now idles at 4000

About a month ago I noticed my 800 with BB kit was making a clanking sound at idle that went away after reving up a little. Only did it a few times when cold. I took it to the dunes and rode it hard with paddles 4 days straight. Ran perfect with plenty of power, but on the last evening there it shut down after a few full throttle hill climbs followed by 5 minutes of low rpm low range crawling. I assumed it was hot and shut itself down, after 10 minutes I started it back up and it would only idle at 4000 rpm so I had to start it in gear and limp it back to camp 3 miles (no one available to tow me) and when I gave it any throttle it would flutter with no acceleration. I’m sure my top end is destroyed but it ran smoothly with no noises the whole ride back to camp. Any suggestions before I tear it down? Thanks in advance.