int bdrv_key_required(BlockDriverState *bs)

{

    BlockDriverState *backing_hd = bs->backing_hd;



    if (backing_hd && backing_hd->encrypted && !backing_hd->valid_key)

        return 1;

    return (bs->encrypted && !bs->valid_key);

}

int bdrv_key_required(BlockDriverState *bs)

{

    BlockDriverState *backing_hd = bs->backing_hd;



    if (backing_hd && backing_hd->encrypted && !backing_hd->valid_key)

        return 1;

    return (bs->encrypted && !bs->valid_key);

}

int FUNC_0(BlockDriverState *VAR_0)

{

    BlockDriverState *backing_hd = VAR_0->backing_hd;



    if (backing_hd && backing_hd->encrypted && !backing_hd->valid_key)

        return 1;

    return (VAR_0->encrypted && !VAR_0->valid_key);

}

int FUNC_0(BlockDriverState *VAR_0)
{ BlockDriverState *backing_hd = VAR_0->backing_hd; if (backing_hd && backing_hd->encrypted && !backing_hd->valid_key)
return 1; return (VAR_0->encrypted && !VAR_0->valid_key); }