I heard from dubious sources that the TR-77-580 with the elongated turret was some sort of early prototype which is possible though it's a bit hard to believe. There is also this TR-77-580 with the raised engine deck which I believe was made so it can use the 830 hp MTU engine.
You can see that the engine deck is raised. It could be an early iteration of the TR-77-580M1, as you put it.
I do have an issue with the TR-77-580M. That is a TR-85-800. The engine looks like it, it has the laser range finder, side skirts, road wheels, etc. I don't believe any TR-77-580s ever received the laser range finder that were in service. Even the M1 doesn't have the range finder.
There is a Romanian propaganda movie/documentary??? that has TR-85-800s. Unfortunately, the soundtrack was copyrighted so we can't hear the movie but you can still see it,
https://www.youtube.com/watch?v=eTVFZcbq9Bk