static void apic_update_irq(APICCommonState *s)

{

    if (!(s->spurious_vec & APIC_SV_ENABLE)) {

        return;

    }

    if (apic_irq_pending(s) > 0) {

        cpu_interrupt(s->cpu_env, CPU_INTERRUPT_HARD);

    } else if (apic_accept_pic_intr(&s->busdev.qdev) &&

               pic_get_output(isa_pic)) {

        apic_deliver_pic_intr(&s->busdev.qdev, 1);

    }

}

static void apic_update_irq(APICCommonState *s)

{

    if (!(s->spurious_vec & APIC_SV_ENABLE)) {

        return;

    }

    if (apic_irq_pending(s) > 0) {

        cpu_interrupt(s->cpu_env, CPU_INTERRUPT_HARD);

    } else if (apic_accept_pic_intr(&s->busdev.qdev) &&

               pic_get_output(isa_pic)) {

        apic_deliver_pic_intr(&s->busdev.qdev, 1);

    }

}

static void FUNC_0(APICCommonState *VAR_0)

{

    if (!(VAR_0->spurious_vec & APIC_SV_ENABLE)) {

        return;

    }

    if (apic_irq_pending(VAR_0) > 0) {

        cpu_interrupt(VAR_0->cpu_env, CPU_INTERRUPT_HARD);

    } else if (apic_accept_pic_intr(&VAR_0->busdev.qdev) &&

               pic_get_output(isa_pic)) {

        apic_deliver_pic_intr(&VAR_0->busdev.qdev, 1);

    }

}

static void FUNC_0(APICCommonState *VAR_0)
{ if (!(VAR_0->spurious_vec & APIC_SV_ENABLE)) { return; } if (apic_irq_pending(VAR_0) > 0) { cpu_interrupt(VAR_0->cpu_env, CPU_INTERRUPT_HARD); } else if (apic_accept_pic_intr(&VAR_0->busdev.qdev) && pic_get_output(isa_pic)) { apic_deliver_pic_intr(&VAR_0->busdev.qdev, 1); } }