the US IT industry isn't "dying" because of regulation, litigation, or labor unions.
No, it is not. You are exactly right.
It has worker shortage. In fact, an opposite problem to what the heavy industry has. The solution in the short run requires importing immigrants or exporting jobs, period. Long run solution would be to increase the domestic workforce size through more promotion of technical education to kids.