static int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)

{

    int slot_addend;

    slot_addend = (pci_dev->devfn >> 3) - 1;

    return (irq_num + slot_addend) & 3;

}

static int pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num)

{

    int slot_addend;

    slot_addend = (pci_dev->devfn >> 3) - 1;

    return (irq_num + slot_addend) & 3;

}

static int FUNC_0(PCIDevice *VAR_0, int VAR_1)

{

    int VAR_2;

    VAR_2 = (VAR_0->devfn >> 3) - 1;

    return (VAR_1 + VAR_2) & 3;

}

static int FUNC_0(PCIDevice *VAR_0, int VAR_1)
{ int VAR_2; VAR_2 = (VAR_0->devfn >> 3) - 1; return (VAR_1 + VAR_2) & 3; }