what I keep wondering is what kind of laws will be rendered useless with the precedent they'll cause. Can this be beginning of the end of copyright and intellectual property?
Why are you wondering? Any law that limits the ability of capital owners to extract wealth will be overturned, and not just from AI, that's global in every industry everywhere there are humans.
In a way, I think so. Just let the code recreate existing code, say it's AI code and doesn't break any copyright laws
Doubt it. I'm sure it will have an exclusion where for example using genAI to train on or replicate leaked or reverse-engineered Windows code will constitute copyright infringement, but doing the same for copyleft will be allowed. Always in favor of corporate interests.
Copyright, possibly. Intellectual property more broadly, no. AI has 0 impact on trademark law, quite clearly (which is anchored in consumer protection, in principle). Patent law is perhaps more related, but it's still pretty far.