static int tls_read(URLContext *h, uint8_t *buf, int size)

{

    TLSContext *c = h->priv_data;

    size_t processed = 0;

    int ret = SSLRead(c->ssl_context, buf, size, &processed);

    ret = map_ssl_error(ret, processed);

    if (ret > 0)

        return ret;

    if (ret == 0)

        return AVERROR_EOF;

    return print_tls_error(h, ret);

}

static int tls_read(URLContext *h, uint8_t *buf, int size)

{

    TLSContext *c = h->priv_data;

    size_t processed = 0;

    int ret = SSLRead(c->ssl_context, buf, size, &processed);

    ret = map_ssl_error(ret, processed);

    if (ret > 0)

        return ret;

    if (ret == 0)

        return AVERROR_EOF;

    return print_tls_error(h, ret);

}

    size_t processed = 0;     int ret = SSLRead(c->ssl_context, buf, size, &processed);
static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)

{

    TLSContext *c = VAR_0->priv_data;

    size_t processed = 0;

    int VAR_3 = SSLRead(c->ssl_context, VAR_1, VAR_2, &processed);

    VAR_3 = map_ssl_error(VAR_3, processed);

    if (VAR_3 > 0)

        return VAR_3;

    if (VAR_3 == 0)

        return AVERROR_EOF;

    return print_tls_error(VAR_0, VAR_3);

}

static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{ TLSContext *c = VAR_0->priv_data; size_t processed = 0; int VAR_3 = SSLRead(c->ssl_context, VAR_1, VAR_2, &processed); VAR_3 = map_ssl_error(VAR_3, processed); if (VAR_3 > 0)
return VAR_3; if (VAR_3 == 0)
return AVERROR_EOF; return print_tls_error(VAR_0, VAR_3); }