static void cirrus_mem_writeb_mode4and5_8bpp(CirrusVGAState * s,

					     unsigned mode,

					     unsigned offset,

					     uint32_t mem_value)

{

    int x;

    unsigned val = mem_value;

    uint8_t *dst;



    dst = s->vram_ptr + offset;

    for (x = 0; x < 8; x++) {

	if (val & 0x80) {

	    *dst = s->cirrus_shadow_gr1;

	} else if (mode == 5) {

	    *dst = s->cirrus_shadow_gr0;

	}

	val <<= 1;

	dst++;

    }

    cpu_physical_memory_set_dirty(s->vram_offset + offset);

    cpu_physical_memory_set_dirty(s->vram_offset + offset + 7);

}

static void cirrus_mem_writeb_mode4and5_8bpp(CirrusVGAState * s,

					     unsigned mode,

					     unsigned offset,

					     uint32_t mem_value)

{

    int x;

    unsigned val = mem_value;

    uint8_t *dst;



    dst = s->vram_ptr + offset;

    for (x = 0; x < 8; x++) {

	if (val & 0x80) {

	    *dst = s->cirrus_shadow_gr1;

	} else if (mode == 5) {

	    *dst = s->cirrus_shadow_gr0;

	}

	val <<= 1;

	dst++;

    }

    cpu_physical_memory_set_dirty(s->vram_offset + offset);

    cpu_physical_memory_set_dirty(s->vram_offset + offset + 7);

}

    dst = s->vram_ptr + offset;     dst = s->vram_ptr + offset;
static void FUNC_0(CirrusVGAState * VAR_0,

					     unsigned VAR_1,

					     unsigned VAR_2,

					     uint32_t VAR_3)

{

    int VAR_4;

    unsigned VAR_5 = VAR_3;

    uint8_t *dst;



    dst = VAR_0->vram_ptr + VAR_2;

    for (VAR_4 = 0; VAR_4 < 8; VAR_4++) {

	if (VAR_5 & 0x80) {

	    *dst = VAR_0->cirrus_shadow_gr1;

	} else if (VAR_1 == 5) {

	    *dst = VAR_0->cirrus_shadow_gr0;

	}

	VAR_5 <<= 1;

	dst++;

    }

    cpu_physical_memory_set_dirty(VAR_0->vram_offset + VAR_2);

    cpu_physical_memory_set_dirty(VAR_0->vram_offset + VAR_2 + 7);

}

static void FUNC_0(CirrusVGAState * VAR_0,
unsigned VAR_1,
unsigned VAR_2,
uint32_t VAR_3)
{ int VAR_4; unsigned VAR_5 = VAR_3; uint8_t *dst; dst = VAR_0->vram_ptr + VAR_2; for (VAR_4 = 0; VAR_4 < 8; VAR_4++) { if (VAR_5 & 0x80) { *dst = VAR_0->cirrus_shadow_gr1; } else if (VAR_1 == 5) { *dst = VAR_0->cirrus_shadow_gr0; } VAR_5 <<= 1; dst++; } cpu_physical_memory_set_dirty(VAR_0->vram_offset + VAR_2); cpu_physical_memory_set_dirty(VAR_0->vram_offset + VAR_2 + 7); }