static inline void vmsvga_update_rect(struct vmsvga_state_s *s,

                int x, int y, int w, int h)

{

#ifndef DIRECT_VRAM

    int line = h;

    int bypl = s->bypp * s->width;

    int width = s->bypp * w;

    int start = s->bypp * x + bypl * y;

    uint8_t *src = s->vram + start;

    uint8_t *dst = s->ds->data + start;



    for (; line > 0; line --, src += bypl, dst += bypl)

        memcpy(dst, src, width);

#endif



    dpy_update(s->ds, x, y, w, h);

}

static inline void vmsvga_update_rect(struct vmsvga_state_s *s,

                int x, int y, int w, int h)

{

#ifndef DIRECT_VRAM

    int line = h;

    int bypl = s->bypp * s->width;

    int width = s->bypp * w;

    int start = s->bypp * x + bypl * y;

    uint8_t *src = s->vram + start;

    uint8_t *dst = s->ds->data + start;



    for (; line > 0; line --, src += bypl, dst += bypl)

        memcpy(dst, src, width);

#endif



    dpy_update(s->ds, x, y, w, h);

}

    int line = h;     int bypl = s->bypp * s->width;     int width = s->bypp * w;     int start = s->bypp * x + bypl * y;     uint8_t *src = s->vram + start;     uint8_t *dst = s->ds->data + start;
static inline void FUNC_0(struct vmsvga_state_s *VAR_0,

                int VAR_1, int VAR_2, int VAR_3, int VAR_4)

{

#ifndef DIRECT_VRAM

    int VAR_5 = VAR_4;

    int VAR_6 = VAR_0->bypp * VAR_0->VAR_7;

    int VAR_7 = VAR_0->bypp * VAR_3;

    int VAR_8 = VAR_0->bypp * VAR_1 + VAR_6 * VAR_2;

    uint8_t *src = VAR_0->vram + VAR_8;

    uint8_t *dst = VAR_0->ds->data + VAR_8;



    for (; VAR_5 > 0; VAR_5 --, src += VAR_6, dst += VAR_6)

        memcpy(dst, src, VAR_7);

#endif



    dpy_update(VAR_0->ds, VAR_1, VAR_2, VAR_3, VAR_4);

}

static inline void FUNC_0(struct vmsvga_state_s *VAR_0,
int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{ #ifndef DIRECT_VRAM
int VAR_5 = VAR_4; int VAR_6 = VAR_0->bypp * VAR_0->VAR_7; int VAR_7 = VAR_0->bypp * VAR_3; int VAR_8 = VAR_0->bypp * VAR_1 + VAR_6 * VAR_2; uint8_t *src = VAR_0->vram + VAR_8; uint8_t *dst = VAR_0->ds->data + VAR_8; for (; VAR_5 > 0; VAR_5 --, src += VAR_6, dst += VAR_6) memcpy(dst, src, VAR_7); #endif
dpy_update(VAR_0->ds, VAR_1, VAR_2, VAR_3, VAR_4); }