"On the software side, the legal questions are just as murky. Can an AI-generated rewrite really be considered clean-room if the model was trained on the original code?"
I don't consider the "decompile and the recompile" rewrites murky at all. I'm not going to tell anyone what to do, but that's not even a gray area, that's not kosher and the game companies can come after you for that.
If you get a high-level description of game mechanics (even if it's obtained from the game binary), save that, feed that into a second model and write code based on that description... well, that's how clean-room reimplmentations are sometimes done. The model was not trained on the source code (or source code generated from the binary), it's going based on a description of what the code does. This doesn't work if the "high level" description is like "this value is loaded into register A, the increment instruction is used, and then..." but it does work if it's like "an X and Y coordinate are passed and the sprite is blitted onto the screen at that location." That type of clean-room implementation has been found over the years to be OK. Of course, you then have all those game graphics, and you're in hot water again if you just drop the original game graphics, sound, and music into the reimplementation.