static void pci_change_irq_level(PCIDevice *pci_dev, int irq_num, int change)

{

    PCIBus *bus;

    for (;;) {

        bus = pci_dev->bus;

        irq_num = bus->map_irq(pci_dev, irq_num);

        if (bus->set_irq)

            break;

        pci_dev = bus->parent_dev;

    }

    bus->irq_count[irq_num] += change;

    bus->set_irq(bus->irq_opaque, irq_num, bus->irq_count[irq_num] != 0);

}

static void pci_change_irq_level(PCIDevice *pci_dev, int irq_num, int change)

{

    PCIBus *bus;

    for (;;) {

        bus = pci_dev->bus;

        irq_num = bus->map_irq(pci_dev, irq_num);

        if (bus->set_irq)

            break;

        pci_dev = bus->parent_dev;

    }

    bus->irq_count[irq_num] += change;

    bus->set_irq(bus->irq_opaque, irq_num, bus->irq_count[irq_num] != 0);

}

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

{

    PCIBus *bus;

    for (;;) {

        bus = VAR_0->bus;

        VAR_1 = bus->map_irq(VAR_0, VAR_1);

        if (bus->set_irq)

            break;

        VAR_0 = bus->parent_dev;

    }

    bus->irq_count[VAR_1] += VAR_2;

    bus->set_irq(bus->irq_opaque, VAR_1, bus->irq_count[VAR_1] != 0);

}

static void FUNC_0(PCIDevice *VAR_0, int VAR_1, int VAR_2)
{ PCIBus *bus; for (;;) { bus = VAR_0->bus; VAR_1 = bus->map_irq(VAR_0, VAR_1); if (bus->set_irq)
break; VAR_0 = bus->parent_dev; } bus->irq_count[VAR_1] += VAR_2; bus->set_irq(bus->irq_opaque, VAR_1, bus->irq_count[VAR_1] != 0); }