static void curl_multi_do(void *arg)

{

    BDRVCURLState *s = (BDRVCURLState *)arg;

    int running;

    int r;



    if (!s->multi) {

        return;

    }



    do {

        r = curl_multi_socket_all(s->multi, &running);

    } while(r == CURLM_CALL_MULTI_PERFORM);



    curl_multi_read(s);

}

static void curl_multi_do(void *arg)

{

    BDRVCURLState *s = (BDRVCURLState *)arg;

    int running;

    int r;



    if (!s->multi) {

        return;

    }



    do {

        r = curl_multi_socket_all(s->multi, &running);

    } while(r == CURLM_CALL_MULTI_PERFORM);



    curl_multi_read(s);

}

static void FUNC_0(void *VAR_0)

{

    BDRVCURLState *s = (BDRVCURLState *)VAR_0;

    int VAR_1;

    int VAR_2;



    if (!s->multi) {

        return;

    }



    do {

        VAR_2 = curl_multi_socket_all(s->multi, &VAR_1);

    } while(VAR_2 == CURLM_CALL_MULTI_PERFORM);



    curl_multi_read(s);

}

static void FUNC_0(void *VAR_0)
{ BDRVCURLState *s = (BDRVCURLState *)VAR_0; int VAR_1; int VAR_2; if (!s->multi) { return; } do { VAR_2 = curl_multi_socket_all(s->multi, &VAR_1); } while(VAR_2 == CURLM_CALL_MULTI_PERFORM); curl_multi_read(s); }