static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin,

				     int off_pitch, int bytesperline,

				     int lines)

{

    int y;

    int off_cur;

    int off_cur_end;



    for (y = 0; y < lines; y++) {

	off_cur = off_begin;

	off_cur_end = off_cur + bytesperline;

	off_cur &= TARGET_PAGE_MASK;

	while (off_cur < off_cur_end) {

	    cpu_physical_memory_set_dirty(s->vram_offset + off_cur);

	    off_cur += TARGET_PAGE_SIZE;

	}

	off_begin += off_pitch;

    }

}

static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin,

				     int off_pitch, int bytesperline,

				     int lines)

{

    int y;

    int off_cur;

    int off_cur_end;



    for (y = 0; y < lines; y++) {

	off_cur = off_begin;

	off_cur_end = off_cur + bytesperline;

	off_cur &= TARGET_PAGE_MASK;

	while (off_cur < off_cur_end) {

	    cpu_physical_memory_set_dirty(s->vram_offset + off_cur);

	    off_cur += TARGET_PAGE_SIZE;

	}

	off_begin += off_pitch;

    }

}

	off_cur_end = off_cur + bytesperline;
static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1,

				     int VAR_2, int VAR_3,

				     int VAR_4)

{

    int VAR_5;

    int VAR_6;

    int VAR_7;



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

	VAR_6 = VAR_1;

	VAR_7 = VAR_6 + VAR_3;

	VAR_6 &= TARGET_PAGE_MASK;

	while (VAR_6 < VAR_7) {

	    cpu_physical_memory_set_dirty(VAR_0->vram_offset + VAR_6);

	    VAR_6 += TARGET_PAGE_SIZE;

	}

	VAR_1 += VAR_2;

    }

}

static void FUNC_0(CirrusVGAState * VAR_0, int VAR_1,
int VAR_2, int VAR_3,
int VAR_4)
{ int VAR_5; int VAR_6; int VAR_7; for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) { VAR_6 = VAR_1; VAR_7 = VAR_6 + VAR_3; VAR_6 &= TARGET_PAGE_MASK; while (VAR_6 < VAR_7) { cpu_physical_memory_set_dirty(VAR_0->vram_offset + VAR_6); VAR_6 += TARGET_PAGE_SIZE; } VAR_1 += VAR_2; } }