static int rtc_load_td(QEMUFile *f, void *opaque, int version_id)

{

    RTCState *s = opaque;



    if (version_id != 1)

        return -EINVAL;



    s->irq_coalesced = qemu_get_be32(f);

    s->period = qemu_get_be32(f);

    rtc_coalesced_timer_update(s);

    return 0;

}

static int rtc_load_td(QEMUFile *f, void *opaque, int version_id)

{

    RTCState *s = opaque;



    if (version_id != 1)

        return -EINVAL;



    s->irq_coalesced = qemu_get_be32(f);

    s->period = qemu_get_be32(f);

    rtc_coalesced_timer_update(s);

    return 0;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)

{

    RTCState *s = VAR_1;



    if (VAR_2 != 1)

        return -EINVAL;



    s->irq_coalesced = qemu_get_be32(VAR_0);

    s->period = qemu_get_be32(VAR_0);

    rtc_coalesced_timer_update(s);

    return 0;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{ RTCState *s = VAR_1; if (VAR_2 != 1)
return -EINVAL; s->irq_coalesced = qemu_get_be32(VAR_0); s->period = qemu_get_be32(VAR_0); rtc_coalesced_timer_update(s); return 0; }