static int count_contiguous_free_clusters(uint64_t nb_clusters, uint64_t *l2_table)

{

    int i;



    for (i = 0; i < nb_clusters; i++) {

        int type = qcow2_get_cluster_type(be64_to_cpu(l2_table[i]));



        if (type != QCOW2_CLUSTER_UNALLOCATED) {

            break;

        }

    }



    return i;

}

static int count_contiguous_free_clusters(uint64_t nb_clusters, uint64_t *l2_table)

{

    int i;



    for (i = 0; i < nb_clusters; i++) {

        int type = qcow2_get_cluster_type(be64_to_cpu(l2_table[i]));



        if (type != QCOW2_CLUSTER_UNALLOCATED) {

            break;

        }

    }



    return i;

}

static int FUNC_0(uint64_t VAR_0, uint64_t *VAR_1)

{

    int VAR_2;



    for (VAR_2 = 0; VAR_2 < VAR_0; VAR_2++) {

        int type = qcow2_get_cluster_type(be64_to_cpu(VAR_1[VAR_2]));



        if (type != QCOW2_CLUSTER_UNALLOCATED) {

            break;

        }

    }



    return VAR_2;

}

static int FUNC_0(uint64_t VAR_0, uint64_t *VAR_1)
{ int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_0; VAR_2++) { int type = qcow2_get_cluster_type(be64_to_cpu(VAR_1[VAR_2])); if (type != QCOW2_CLUSTER_UNALLOCATED) { break; } } return VAR_2; }