static void qemu_mod_timer_ns(QEMUTimer *ts, int64_t expire_time)

{

    QEMUTimer **pt, *t;



    qemu_del_timer(ts);



    /* add the timer in the sorted list */

    /* NOTE: this code must be signal safe because

       qemu_timer_expired() can be called from a signal. */

    pt = &active_timers[ts->clock->type];

    for(;;) {

        t = *pt;

        if (!t)

            break;

        if (t->expire_time > expire_time)

            break;

        pt = &t->next;

    }

    ts->expire_time = expire_time;

    ts->next = *pt;

    *pt = ts;



    /* Rearm if necessary  */

    if (pt == &active_timers[ts->clock->type]) {

        if (!alarm_timer->pending) {

            qemu_rearm_alarm_timer(alarm_timer);

        }

        /* Interrupt execution to force deadline recalculation.  */

        if (use_icount)

            qemu_notify_event();

    }

}

static void qemu_mod_timer_ns(QEMUTimer *ts, int64_t expire_time)

{

    QEMUTimer **pt, *t;



    qemu_del_timer(ts);



    

    



    pt = &active_timers[ts->clock->type];

    for(;;) {

        t = *pt;

        if (!t)

            break;

        if (t->expire_time > expire_time)

            break;

        pt = &t->next;

    }

    ts->expire_time = expire_time;

    ts->next = *pt;

    *pt = ts;



    

    if (pt == &active_timers[ts->clock->type]) {

        if (!alarm_timer->pending) {

            qemu_rearm_alarm_timer(alarm_timer);

        }

        

        if (use_icount)

            qemu_notify_event();

    }

}

        if (use_icount)
static void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1)

{

    QEMUTimer **pt, *t;



    qemu_del_timer(VAR_0);



    

    



    pt = &active_timers[VAR_0->clock->type];

    for(;;) {

        t = *pt;

        if (!t)

            break;

        if (t->VAR_1 > VAR_1)

            break;

        pt = &t->next;

    }

    VAR_0->VAR_1 = VAR_1;

    VAR_0->next = *pt;

    *pt = VAR_0;



    

    if (pt == &active_timers[VAR_0->clock->type]) {

        if (!alarm_timer->pending) {

            qemu_rearm_alarm_timer(alarm_timer);

        }

        

        if (use_icount)

            qemu_notify_event();

    }

}

static void FUNC_0(QEMUTimer *VAR_0, int64_t VAR_1)
{ QEMUTimer **pt, *t; qemu_del_timer(VAR_0); pt = &active_timers[VAR_0->clock->type]; for(;;) { t = *pt; if (!t)
break; if (t->VAR_1 > VAR_1)
break; pt = &t->next; } VAR_0->VAR_1 = VAR_1; VAR_0->next = *pt; *pt = VAR_0; if (pt == &active_timers[VAR_0->clock->type]) { if (!alarm_timer->pending) { qemu_rearm_alarm_timer(alarm_timer); } if (use_icount)
qemu_notify_event(); } }