static void release_drive(Object *obj, const char *name, void *opaque)

{

    DeviceState *dev = DEVICE(obj);

    Property *prop = opaque;

    BlockBackend **ptr = qdev_get_prop_ptr(dev, prop);



    if (*ptr) {

        blk_detach_dev(*ptr, dev);

        blockdev_auto_del(*ptr);

    }

}

static void release_drive(Object *obj, const char *name, void *opaque)

{

    DeviceState *dev = DEVICE(obj);

    Property *prop = opaque;

    BlockBackend **ptr = qdev_get_prop_ptr(dev, prop);



    if (*ptr) {

        blk_detach_dev(*ptr, dev);

        blockdev_auto_del(*ptr);

    }

}

        blk_detach_dev(*ptr, dev);
static void FUNC_0(Object *VAR_0, const char *VAR_1, void *VAR_2)

{

    DeviceState *dev = DEVICE(VAR_0);

    Property *prop = VAR_2;

    BlockBackend **ptr = qdev_get_prop_ptr(dev, prop);



    if (*ptr) {

        blk_detach_dev(*ptr, dev);

        blockdev_auto_del(*ptr);

    }

}

static void FUNC_0(Object *VAR_0, const char *VAR_1, void *VAR_2)
{ DeviceState *dev = DEVICE(VAR_0); Property *prop = VAR_2; BlockBackend **ptr = qdev_get_prop_ptr(dev, prop); if (*ptr) { blk_detach_dev(*ptr, dev); blockdev_auto_del(*ptr); } }