I've worked at two major studios and have seen some terrible code. Neither place had code as terrible as LLMs produce for games, they can't even get non-negotiable basics right a lot of the time.