Decompression pseudocode