int bdrv_is_inserted(BlockDriverState *bs)

{

    BlockDriver *drv = bs->drv;

    int ret;

    if (!drv)

        return 0;

    if (!drv->bdrv_is_inserted)

        return !bs->tray_open;

    ret = drv->bdrv_is_inserted(bs);

    return ret;

}

int bdrv_is_inserted(BlockDriverState *bs)

{

    BlockDriver *drv = bs->drv;

    int ret;

    if (!drv)

        return 0;

    if (!drv->bdrv_is_inserted)

        return !bs->tray_open;

    ret = drv->bdrv_is_inserted(bs);

    return ret;

}

    int ret;         return !bs->tray_open;     ret = drv->bdrv_is_inserted(bs);     return ret;
int FUNC_0(BlockDriverState *VAR_0)

{

    BlockDriver *drv = VAR_0->drv;

    int VAR_1;

    if (!drv)

        return 0;

    if (!drv->FUNC_0)

        return !VAR_0->tray_open;

    VAR_1 = drv->FUNC_0(VAR_0);

    return VAR_1;

}

int FUNC_0(BlockDriverState *VAR_0)
{ BlockDriver *drv = VAR_0->drv; int VAR_1; if (!drv)
return 0; if (!drv->FUNC_0)
return !VAR_0->tray_open; VAR_1 = drv->FUNC_0(VAR_0); return VAR_1; }