static void qvirtio_pci_foreach_callback(

                        QPCIDevice *dev, int devfn, void *data)

{

    QVirtioPCIForeachData *d = data;

    QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(dev);



    if (vpcidev->vdev.device_type == d->device_type &&

        (!d->has_slot || vpcidev->pdev->devfn == d->slot << 3)) {

        d->func(&vpcidev->vdev, d->user_data);

    } else {

        g_free(vpcidev);

    }

}

static void qvirtio_pci_foreach_callback(

                        QPCIDevice *dev, int devfn, void *data)

{

    QVirtioPCIForeachData *d = data;

    QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(dev);



    if (vpcidev->vdev.device_type == d->device_type &&

        (!d->has_slot || vpcidev->pdev->devfn == d->slot << 3)) {

        d->func(&vpcidev->vdev, d->user_data);

    } else {

        g_free(vpcidev);

    }

}

        g_free(vpcidev);
static void FUNC_0(

                        QPCIDevice *VAR_0, int VAR_1, void *VAR_2)

{

    QVirtioPCIForeachData *d = VAR_2;

    QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(VAR_0);



    if (vpcidev->vdev.device_type == d->device_type &&

        (!d->has_slot || vpcidev->pdev->VAR_1 == d->slot << 3)) {

        d->func(&vpcidev->vdev, d->user_data);

    } else {

        g_free(vpcidev);

    }

}

static void FUNC_0(
QPCIDevice *VAR_0, int VAR_1, void *VAR_2)
{ QVirtioPCIForeachData *d = VAR_2; QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(VAR_0); if (vpcidev->vdev.device_type == d->device_type &&
(!d->has_slot || vpcidev->pdev->VAR_1 == d->slot << 3)) { d->func(&vpcidev->vdev, d->user_data); } else { g_free(vpcidev); } }