I found the decompression routine and I hate it. it's big and complicated and there's calls to subfunctions.reimplementing this will be a nightmare