static void apic_update_irq(APICState *s)

{

    int irrv, ppr;

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

        return;

    irrv = get_highest_priority_int(s->irr);

    if (irrv < 0)

        return;

    ppr = apic_get_ppr(s);

    if (ppr && (irrv & 0xf0) <= (ppr & 0xf0))

        return;

    cpu_interrupt(s->cpu_env, CPU_INTERRUPT_HARD);

}

static void apic_update_irq(APICState *s)

{

    int irrv, ppr;

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

        return;

    irrv = get_highest_priority_int(s->irr);

    if (irrv < 0)

        return;

    ppr = apic_get_ppr(s);

    if (ppr && (irrv & 0xf0) <= (ppr & 0xf0))

        return;

    cpu_interrupt(s->cpu_env, CPU_INTERRUPT_HARD);

}

static void FUNC_0(APICState *VAR_0)

{

    int VAR_1, VAR_2;

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

        return;

    VAR_1 = get_highest_priority_int(VAR_0->irr);

    if (VAR_1 < 0)

        return;

    VAR_2 = apic_get_ppr(VAR_0);

    if (VAR_2 && (VAR_1 & 0xf0) <= (VAR_2 & 0xf0))

        return;

    cpu_interrupt(VAR_0->cpu_env, CPU_INTERRUPT_HARD);

}

static void FUNC_0(APICState *VAR_0)
{ int VAR_1, VAR_2; if (!(VAR_0->spurious_vec & APIC_SV_ENABLE))
return; VAR_1 = get_highest_priority_int(VAR_0->irr); if (VAR_1 < 0)
return; VAR_2 = apic_get_ppr(VAR_0); if (VAR_2 && (VAR_1 & 0xf0) <= (VAR_2 & 0xf0))
return; cpu_interrupt(VAR_0->cpu_env, CPU_INTERRUPT_HARD); }