static coroutine_fn int quorum_co_flush(BlockDriverState *bs)

{

    BDRVQuorumState *s = bs->opaque;

    QuorumVoteVersion *winner = NULL;

    QuorumVotes error_votes;

    QuorumVoteValue result_value;

    int i;

    int result = 0;



    QLIST_INIT(&error_votes.vote_list);

    error_votes.compare = quorum_64bits_compare;



    for (i = 0; i < s->num_children; i++) {

        result = bdrv_co_flush(s->children[i]->bs);

        result_value.l = result;

        quorum_count_vote(&error_votes, &result_value, i);

    }



    winner = quorum_get_vote_winner(&error_votes);

    result = winner->value.l;



    quorum_free_vote_list(&error_votes);



    return result;

}

static coroutine_fn int quorum_co_flush(BlockDriverState *bs)

{

    BDRVQuorumState *s = bs->opaque;

    QuorumVoteVersion *winner = NULL;

    QuorumVotes error_votes;

    QuorumVoteValue result_value;

    int i;

    int result = 0;



    QLIST_INIT(&error_votes.vote_list);

    error_votes.compare = quorum_64bits_compare;



    for (i = 0; i < s->num_children; i++) {

        result = bdrv_co_flush(s->children[i]->bs);

        result_value.l = result;

        quorum_count_vote(&error_votes, &result_value, i);

    }



    winner = quorum_get_vote_winner(&error_votes);

    result = winner->value.l;



    quorum_free_vote_list(&error_votes);



    return result;

}

        result_value.l = result;         quorum_count_vote(&error_votes, &result_value, i);     winner = quorum_get_vote_winner(&error_votes);     result = winner->value.l;
static coroutine_fn int FUNC_0(BlockDriverState *bs)

{

    BDRVQuorumState *s = bs->opaque;

    QuorumVoteVersion *winner = NULL;

    QuorumVotes error_votes;

    QuorumVoteValue result_value;

    int VAR_0;

    int VAR_1 = 0;



    QLIST_INIT(&error_votes.vote_list);

    error_votes.compare = quorum_64bits_compare;



    for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) {

        VAR_1 = bdrv_co_flush(s->children[VAR_0]->bs);

        result_value.l = VAR_1;

        quorum_count_vote(&error_votes, &result_value, VAR_0);

    }



    winner = quorum_get_vote_winner(&error_votes);

    VAR_1 = winner->value.l;



    quorum_free_vote_list(&error_votes);



    return VAR_1;

}

static coroutine_fn int FUNC_0(BlockDriverState *bs)
{ BDRVQuorumState *s = bs->opaque; QuorumVoteVersion *winner = NULL; QuorumVotes error_votes; QuorumVoteValue result_value; int VAR_0; int VAR_1 = 0; QLIST_INIT(&error_votes.vote_list); error_votes.compare = quorum_64bits_compare; for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) { VAR_1 = bdrv_co_flush(s->children[VAR_0]->bs); result_value.l = VAR_1; quorum_count_vote(&error_votes, &result_value, VAR_0); } winner = quorum_get_vote_winner(&error_votes); VAR_1 = winner->value.l; quorum_free_vote_list(&error_votes); return VAR_1; }