static void scsi_qdev_unrealize(DeviceState *qdev, Error **errp)

{

    SCSIDevice *dev = SCSI_DEVICE(qdev);



    if (dev->vmsentry) {

        qemu_del_vm_change_state_handler(dev->vmsentry);

    }

    scsi_device_unrealize(dev, errp);

}

static void scsi_qdev_unrealize(DeviceState *qdev, Error **errp)

{

    SCSIDevice *dev = SCSI_DEVICE(qdev);



    if (dev->vmsentry) {

        qemu_del_vm_change_state_handler(dev->vmsentry);

    }

    scsi_device_unrealize(dev, errp);

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)

{

    SCSIDevice *dev = SCSI_DEVICE(VAR_0);



    if (dev->vmsentry) {

        qemu_del_vm_change_state_handler(dev->vmsentry);

    }

    scsi_device_unrealize(dev, VAR_1);

}

static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{ SCSIDevice *dev = SCSI_DEVICE(VAR_0); if (dev->vmsentry) { qemu_del_vm_change_state_handler(dev->vmsentry); } scsi_device_unrealize(dev, VAR_1); }