static int cirrus_bitblt_common_patterncopy(CirrusVGAState * s,

					    const uint8_t * src)

{

    uint8_t *dst;



    dst = s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask);



    if (blit_is_unsafe(s, false))

        return 0;



    (*s->cirrus_rop) (s, dst, src,

                      s->cirrus_blt_dstpitch, 0,

                      s->cirrus_blt_width, s->cirrus_blt_height);

    cirrus_invalidate_region(s, s->cirrus_blt_dstaddr,

                             s->cirrus_blt_dstpitch, s->cirrus_blt_width,

                             s->cirrus_blt_height);

    return 1;

}

static int cirrus_bitblt_common_patterncopy(CirrusVGAState * s,

					    const uint8_t * src)

{

    uint8_t *dst;



    dst = s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask);



    if (blit_is_unsafe(s, false))

        return 0;



    (*s->cirrus_rop) (s, dst, src,

                      s->cirrus_blt_dstpitch, 0,

                      s->cirrus_blt_width, s->cirrus_blt_height);

    cirrus_invalidate_region(s, s->cirrus_blt_dstaddr,

                             s->cirrus_blt_dstpitch, s->cirrus_blt_width,

                             s->cirrus_blt_height);

    return 1;

}

static int FUNC_0(CirrusVGAState * VAR_0,

					    const uint8_t * VAR_1)

{

    uint8_t *dst;



    dst = VAR_0->vga.vram_ptr + (VAR_0->cirrus_blt_dstaddr & VAR_0->cirrus_addr_mask);



    if (blit_is_unsafe(VAR_0, false))

        return 0;



    (*VAR_0->cirrus_rop) (VAR_0, dst, VAR_1,

                      VAR_0->cirrus_blt_dstpitch, 0,

                      VAR_0->cirrus_blt_width, VAR_0->cirrus_blt_height);

    cirrus_invalidate_region(VAR_0, VAR_0->cirrus_blt_dstaddr,

                             VAR_0->cirrus_blt_dstpitch, VAR_0->cirrus_blt_width,

                             VAR_0->cirrus_blt_height);

    return 1;

}

static int FUNC_0(CirrusVGAState * VAR_0,
const uint8_t * VAR_1)
{ uint8_t *dst; dst = VAR_0->vga.vram_ptr + (VAR_0->cirrus_blt_dstaddr & VAR_0->cirrus_addr_mask); if (blit_is_unsafe(VAR_0, false))
return 0; (*VAR_0->cirrus_rop) (VAR_0, dst, VAR_1,
VAR_0->cirrus_blt_dstpitch, 0,
VAR_0->cirrus_blt_width, VAR_0->cirrus_blt_height); cirrus_invalidate_region(VAR_0, VAR_0->cirrus_blt_dstaddr,
VAR_0->cirrus_blt_dstpitch, VAR_0->cirrus_blt_width,
VAR_0->cirrus_blt_height); return 1; }