static void load_cursor(VmncContext *c, const uint8_t *src)

{

    int i, j, p;

    const int bpp   = c->bpp2;

    uint8_t *dst8   =             c->curbits;

    uint16_t *dst16 = (uint16_t *)c->curbits;

    uint32_t *dst32 = (uint32_t *)c->curbits;



    for (j = 0; j < c->cur_h; j++) {

        for (i = 0; i < c->cur_w; i++) {

            p = vmnc_get_pixel(src, bpp, c->bigendian);

            src += bpp;

            if (bpp == 1)

                *dst8++ = p;

            if (bpp == 2)

                *dst16++ = p;

            if (bpp == 4)

                *dst32++ = p;

        }

    }

    dst8  =            c->curmask;

    dst16 = (uint16_t*)c->curmask;

    dst32 = (uint32_t*)c->curmask;

    for (j = 0; j < c->cur_h; j++) {

        for (i = 0; i < c->cur_w; i++) {

            p = vmnc_get_pixel(src, bpp, c->bigendian);

            src += bpp;

            if (bpp == 1)

                *dst8++ = p;

            if (bpp == 2)

                *dst16++ = p;

            if (bpp == 4)

                *dst32++ = p;

        }

    }

}

static void load_cursor(VmncContext *c, const uint8_t *src)

{

    int i, j, p;

    const int bpp   = c->bpp2;

    uint8_t *dst8   =             c->curbits;

    uint16_t *dst16 = (uint16_t *)c->curbits;

    uint32_t *dst32 = (uint32_t *)c->curbits;



    for (j = 0; j < c->cur_h; j++) {

        for (i = 0; i < c->cur_w; i++) {

            p = vmnc_get_pixel(src, bpp, c->bigendian);

            src += bpp;

            if (bpp == 1)

                *dst8++ = p;

            if (bpp == 2)

                *dst16++ = p;

            if (bpp == 4)

                *dst32++ = p;

        }

    }

    dst8  =            c->curmask;

    dst16 = (uint16_t*)c->curmask;

    dst32 = (uint32_t*)c->curmask;

    for (j = 0; j < c->cur_h; j++) {

        for (i = 0; i < c->cur_w; i++) {

            p = vmnc_get_pixel(src, bpp, c->bigendian);

            src += bpp;

            if (bpp == 1)

                *dst8++ = p;

            if (bpp == 2)

                *dst16++ = p;

            if (bpp == 4)

                *dst32++ = p;

        }

    }

}

static void load_cursor(VmncContext *c, const uint8_t *src)             p = vmnc_get_pixel(src, bpp, c->bigendian);             src += bpp;             p = vmnc_get_pixel(src, bpp, c->bigendian);             src += bpp;             src += bpp;
static void FUNC_0(VmncContext *VAR_0, const uint8_t *VAR_1)

{

    int VAR_2, VAR_3, VAR_4;

    const int VAR_5   = VAR_0->bpp2;

    uint8_t *dst8   =             VAR_0->curbits;

    uint16_t *dst16 = (uint16_t *)VAR_0->curbits;

    uint32_t *dst32 = (uint32_t *)VAR_0->curbits;



    for (VAR_3 = 0; VAR_3 < VAR_0->cur_h; VAR_3++) {

        for (VAR_2 = 0; VAR_2 < VAR_0->cur_w; VAR_2++) {

            VAR_4 = vmnc_get_pixel(VAR_1, VAR_5, VAR_0->bigendian);

            VAR_1 += VAR_5;

            if (VAR_5 == 1)

                *dst8++ = VAR_4;

            if (VAR_5 == 2)

                *dst16++ = VAR_4;

            if (VAR_5 == 4)

                *dst32++ = VAR_4;

        }

    }

    dst8  =            VAR_0->curmask;

    dst16 = (uint16_t*)VAR_0->curmask;

    dst32 = (uint32_t*)VAR_0->curmask;

    for (VAR_3 = 0; VAR_3 < VAR_0->cur_h; VAR_3++) {

        for (VAR_2 = 0; VAR_2 < VAR_0->cur_w; VAR_2++) {

            VAR_4 = vmnc_get_pixel(VAR_1, VAR_5, VAR_0->bigendian);

            VAR_1 += VAR_5;

            if (VAR_5 == 1)

                *dst8++ = VAR_4;

            if (VAR_5 == 2)

                *dst16++ = VAR_4;

            if (VAR_5 == 4)

                *dst32++ = VAR_4;

        }

    }

}

static void FUNC_0(VmncContext *VAR_0, const uint8_t *VAR_1)
{ int VAR_2, VAR_3, VAR_4; const int VAR_5   = VAR_0->bpp2; uint8_t *dst8   =             VAR_0->curbits; uint16_t *dst16 = (uint16_t *)VAR_0->curbits; uint32_t *dst32 = (uint32_t *)VAR_0->curbits; for (VAR_3 = 0; VAR_3 < VAR_0->cur_h; VAR_3++) { for (VAR_2 = 0; VAR_2 < VAR_0->cur_w; VAR_2++) { VAR_4 = vmnc_get_pixel(VAR_1, VAR_5, VAR_0->bigendian); VAR_1 += VAR_5; if (VAR_5 == 1)
*dst8++ = VAR_4; if (VAR_5 == 2)
*dst16++ = VAR_4; if (VAR_5 == 4)
*dst32++ = VAR_4; } } dst8  =            VAR_0->curmask; dst16 = (uint16_t*)VAR_0->curmask; dst32 = (uint32_t*)VAR_0->curmask; for (VAR_3 = 0; VAR_3 < VAR_0->cur_h; VAR_3++) { for (VAR_2 = 0; VAR_2 < VAR_0->cur_w; VAR_2++) { VAR_4 = vmnc_get_pixel(VAR_1, VAR_5, VAR_0->bigendian); VAR_1 += VAR_5; if (VAR_5 == 1)
*dst8++ = VAR_4; if (VAR_5 == 2)
*dst16++ = VAR_4; if (VAR_5 == 4)
*dst32++ = VAR_4; } } }