void bdrv_io_unplugged_begin(BlockDriverState *bs)

{

    BdrvChild *child;



    if (bs->io_plug_disabled++ == 0 && bs->io_plugged > 0) {

        BlockDriver *drv = bs->drv;

        if (drv && drv->bdrv_io_unplug) {

            drv->bdrv_io_unplug(bs);

        }

    }



    QLIST_FOREACH(child, &bs->children, next) {

        bdrv_io_unplugged_begin(child->bs);

    }

}

void bdrv_io_unplugged_begin(BlockDriverState *bs)

{

    BdrvChild *child;



    if (bs->io_plug_disabled++ == 0 && bs->io_plugged > 0) {

        BlockDriver *drv = bs->drv;

        if (drv && drv->bdrv_io_unplug) {

            drv->bdrv_io_unplug(bs);

        }

    }



    QLIST_FOREACH(child, &bs->children, next) {

        bdrv_io_unplugged_begin(child->bs);

    }

}

void FUNC_0(BlockDriverState *VAR_0)

{

    BdrvChild *child;



    if (VAR_0->io_plug_disabled++ == 0 && VAR_0->io_plugged > 0) {

        BlockDriver *drv = VAR_0->drv;

        if (drv && drv->bdrv_io_unplug) {

            drv->bdrv_io_unplug(VAR_0);

        }

    }



    QLIST_FOREACH(child, &VAR_0->children, next) {

        FUNC_0(child->VAR_0);

    }

}

void FUNC_0(BlockDriverState *VAR_0)
{ BdrvChild *child; if (VAR_0->io_plug_disabled++ == 0 && VAR_0->io_plugged > 0) { BlockDriver *drv = VAR_0->drv; if (drv && drv->bdrv_io_unplug) { drv->bdrv_io_unplug(VAR_0); } } QLIST_FOREACH(child, &VAR_0->children, next) { FUNC_0(child->VAR_0); } }