Bankruptcy is intended to be (though is not often in actuality) a temporary restructuring period. A lot of companies just end up liquidating while under bankruptcy proceedings, but Atari emerged from Chapter 11 in 2014 after a year of restructuring and selling off IPs to pay their bills. Now they're doing a bunch of stuff, including casinos and hotels.