def ionX(self, x, arrayX):
        r = []
        s = 0
        w = 0
        
        for d in x:
            w |= int(arrayX[ord(d)-48]) << s
            if (s):
                r.append(chr(165 ^ w & 255))
                w >>= 8
                s -= 2
            else:
                s = 6

        r = ''.join(r)
        return r
dataset/ETHPy150Open mrknow/filmkodi/plugin.video.mrknow/lib/utils/javascriptUtils.py/JsUnIonCube.ionX/original