void *qemu_try_blockalign(BlockDriverState *bs, size_t size)

{

    size_t align = bdrv_opt_mem_align(bs);



    /* Ensure that NULL is never returned on success */

    assert(align > 0);

    if (size == 0) {

        size = align;

    }



    return qemu_try_memalign(align, size);

}

void *qemu_try_blockalign(BlockDriverState *bs, size_t size)

{

    size_t align = bdrv_opt_mem_align(bs);



    

    assert(align > 0);

    if (size == 0) {

        size = align;

    }



    return qemu_try_memalign(align, size);

}

void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)

{

    size_t align = bdrv_opt_mem_align(VAR_0);



    

    assert(align > 0);

    if (VAR_1 == 0) {

        VAR_1 = align;

    }



    return qemu_try_memalign(align, VAR_1);

}

void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)
{ size_t align = bdrv_opt_mem_align(VAR_0); assert(align > 0); if (VAR_1 == 0) { VAR_1 = align; } return qemu_try_memalign(align, VAR_1); }