static const uint8_t *pcx_rle_decode(const uint8_t *src, uint8_t *dst,

                            unsigned int bytes_per_scanline, int compressed) {

    unsigned int i = 0;

    unsigned char run, value;



    if (compressed) {

        while (i<bytes_per_scanline) {

            run = 1;

            value = *src++;

            if (value >= 0xc0) {

                run = value & 0x3f;

                value = *src++;

            }

            while (i<bytes_per_scanline && run--)

                dst[i++] = value;

        }

    } else {

        memcpy(dst, src, bytes_per_scanline);

        src += bytes_per_scanline;

    }



    return src;

}

static const uint8_t *pcx_rle_decode(const uint8_t *src, uint8_t *dst,

                            unsigned int bytes_per_scanline, int compressed) {

    unsigned int i = 0;

    unsigned char run, value;



    if (compressed) {

        while (i<bytes_per_scanline) {

            run = 1;

            value = *src++;

            if (value >= 0xc0) {

                run = value & 0x3f;

                value = *src++;

            }

            while (i<bytes_per_scanline && run--)

                dst[i++] = value;

        }

    } else {

        memcpy(dst, src, bytes_per_scanline);

        src += bytes_per_scanline;

    }



    return src;

}

static const uint8_t *pcx_rle_decode(const uint8_t *src, uint8_t *dst,                             unsigned int bytes_per_scanline, int compressed) {             value = *src++;                 value = *src++;         memcpy(dst, src, bytes_per_scanline);         src += bytes_per_scanline;     return src;
static const uint8_t *FUNC_0(const uint8_t *src, uint8_t *dst,

                            unsigned int bytes_per_scanline, int compressed) {

    unsigned int VAR_0 = 0;

    unsigned char VAR_1, VAR_2;



    if (compressed) {

        while (VAR_0<bytes_per_scanline) {

            VAR_1 = 1;

            VAR_2 = *src++;

            if (VAR_2 >= 0xc0) {

                VAR_1 = VAR_2 & 0x3f;

                VAR_2 = *src++;

            }

            while (VAR_0<bytes_per_scanline && VAR_1--)

                dst[VAR_0++] = VAR_2;

        }

    } else {

        memcpy(dst, src, bytes_per_scanline);

        src += bytes_per_scanline;

    }



    return src;

}

static const uint8_t *FUNC_0(const uint8_t *src, uint8_t *dst,
unsigned int bytes_per_scanline, int compressed) { unsigned int VAR_0 = 0; unsigned char VAR_1, VAR_2; if (compressed) { while (VAR_0<bytes_per_scanline) { VAR_1 = 1; VAR_2 = *src++; if (VAR_2 >= 0xc0) { VAR_1 = VAR_2 & 0x3f; VAR_2 = *src++; } while (VAR_0<bytes_per_scanline && VAR_1--)
dst[VAR_0++] = VAR_2; } } else { memcpy(dst, src, bytes_per_scanline); src += bytes_per_scanline; } return src; }