static inline void vmsvga_fill_rect(struct vmsvga_state_s *s,

                uint32_t c, int x, int y, int w, int h)

{

    DisplaySurface *surface = qemu_console_surface(s->vga.con);

    int bypl = surface_stride(surface);

    int width = surface_bytes_per_pixel(surface) * w;

    int line = h;

    int column;

    uint8_t *fst;

    uint8_t *dst;

    uint8_t *src;

    uint8_t col[4];



    col[0] = c;

    col[1] = c >> 8;

    col[2] = c >> 16;

    col[3] = c >> 24;



    fst = s->vga.vram_ptr + surface_bytes_per_pixel(surface) * x + bypl * y;



    if (line--) {

        dst = fst;

        src = col;

        for (column = width; column > 0; column--) {

            *(dst++) = *(src++);

            if (src - col == surface_bytes_per_pixel(surface)) {

                src = col;

            }

        }

        dst = fst;

        for (; line > 0; line--) {

            dst += bypl;

            memcpy(dst, fst, width);

        }

    }



    vmsvga_update_rect_delayed(s, x, y, w, h);

}

static inline void vmsvga_fill_rect(struct vmsvga_state_s *s,

                uint32_t c, int x, int y, int w, int h)

{

    DisplaySurface *surface = qemu_console_surface(s->vga.con);

    int bypl = surface_stride(surface);

    int width = surface_bytes_per_pixel(surface) * w;

    int line = h;

    int column;

    uint8_t *fst;

    uint8_t *dst;

    uint8_t *src;

    uint8_t col[4];



    col[0] = c;

    col[1] = c >> 8;

    col[2] = c >> 16;

    col[3] = c >> 24;



    fst = s->vga.vram_ptr + surface_bytes_per_pixel(surface) * x + bypl * y;



    if (line--) {

        dst = fst;

        src = col;

        for (column = width; column > 0; column--) {

            *(dst++) = *(src++);

            if (src - col == surface_bytes_per_pixel(surface)) {

                src = col;

            }

        }

        dst = fst;

        for (; line > 0; line--) {

            dst += bypl;

            memcpy(dst, fst, width);

        }

    }



    vmsvga_update_rect_delayed(s, x, y, w, h);

}

static inline void vmsvga_fill_rect(struct vmsvga_state_s *s,
static inline void FUNC_0(struct vmsvga_state_s *VAR_0,

                uint32_t VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5)

{

    DisplaySurface *surface = qemu_console_surface(VAR_0->vga.con);

    int VAR_6 = surface_stride(surface);

    int VAR_7 = surface_bytes_per_pixel(surface) * VAR_4;

    int VAR_8 = VAR_5;

    int VAR_9;

    uint8_t *fst;

    uint8_t *dst;

    uint8_t *src;

    uint8_t col[4];



    col[0] = VAR_1;

    col[1] = VAR_1 >> 8;

    col[2] = VAR_1 >> 16;

    col[3] = VAR_1 >> 24;



    fst = VAR_0->vga.vram_ptr + surface_bytes_per_pixel(surface) * VAR_2 + VAR_6 * VAR_3;



    if (VAR_8--) {

        dst = fst;

        src = col;

        for (VAR_9 = VAR_7; VAR_9 > 0; VAR_9--) {

            *(dst++) = *(src++);

            if (src - col == surface_bytes_per_pixel(surface)) {

                src = col;

            }

        }

        dst = fst;

        for (; VAR_8 > 0; VAR_8--) {

            dst += VAR_6;

            memcpy(dst, fst, VAR_7);

        }

    }



    vmsvga_update_rect_delayed(VAR_0, VAR_2, VAR_3, VAR_4, VAR_5);

}

static inline void FUNC_0(struct vmsvga_state_s *VAR_0,
uint32_t VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5)
{ DisplaySurface *surface = qemu_console_surface(VAR_0->vga.con); int VAR_6 = surface_stride(surface); int VAR_7 = surface_bytes_per_pixel(surface) * VAR_4; int VAR_8 = VAR_5; int VAR_9; uint8_t *fst; uint8_t *dst; uint8_t *src; uint8_t col[4]; col[0] = VAR_1; col[1] = VAR_1 >> 8; col[2] = VAR_1 >> 16; col[3] = VAR_1 >> 24; fst = VAR_0->vga.vram_ptr + surface_bytes_per_pixel(surface) * VAR_2 + VAR_6 * VAR_3; if (VAR_8--) { dst = fst; src = col; for (VAR_9 = VAR_7; VAR_9 > 0; VAR_9--) { *(dst++) = *(src++); if (src - col == surface_bytes_per_pixel(surface)) { src = col; } } dst = fst; for (; VAR_8 > 0; VAR_8--) { dst += VAR_6; memcpy(dst, fst, VAR_7); } } vmsvga_update_rect_delayed(VAR_0, VAR_2, VAR_3, VAR_4, VAR_5); }