static int pci_ich9_uninit(PCIDevice *dev)

{

    struct AHCIPCIState *d;

    d = DO_UPCAST(struct AHCIPCIState, card, dev);



    if (msi_enabled(dev)) {

        msi_uninit(dev);

    }



    qemu_unregister_reset(ahci_reset, d);

    ahci_uninit(&d->ahci);



    return 0;

}

static int pci_ich9_uninit(PCIDevice *dev)

{

    struct AHCIPCIState *d;

    d = DO_UPCAST(struct AHCIPCIState, card, dev);



    if (msi_enabled(dev)) {

        msi_uninit(dev);

    }



    qemu_unregister_reset(ahci_reset, d);

    ahci_uninit(&d->ahci);



    return 0;

}

    if (msi_enabled(dev)) {         msi_uninit(dev);
static int FUNC_0(PCIDevice *VAR_0)

{

    struct AHCIPCIState *VAR_1;

    VAR_1 = DO_UPCAST(struct AHCIPCIState, card, VAR_0);



    if (msi_enabled(VAR_0)) {

        msi_uninit(VAR_0);

    }



    qemu_unregister_reset(ahci_reset, VAR_1);

    ahci_uninit(&VAR_1->ahci);



    return 0;

}

static int FUNC_0(PCIDevice *VAR_0)
{ struct AHCIPCIState *VAR_1; VAR_1 = DO_UPCAST(struct AHCIPCIState, card, VAR_0); if (msi_enabled(VAR_0)) { msi_uninit(VAR_0); } qemu_unregister_reset(ahci_reset, VAR_1); ahci_uninit(&VAR_1->ahci); return 0; }