Please kindly accept the following patch. I recently stumbled upon a (fairly standard) SquashFS 3.x LZMA image that was in Motorola byte order (big endian) and it worked like a charm.