I’m no mechanical engineer, but it looks like the square section tube has twisted. Being that it’s a steel rack I would have no problem bending it back. If you did that back and forth five times I would maybe a bit concerned. As far as the rest of the damage, you’d have to see what you can fix...