what happens to the IP when these companies go BK?
In a Chapter 11 reorganization, the company in question wants to continue operating and will presumably try to keep as much of its “core” IP as possible. In a Chapter 7 liquidation, the IP is typically sold to the highest bidder.