static inline int64_t bs_get_v(const uint8_t **bs)

{

    int64_t v = 0;

    int br = 0;

    int c;



    do {

        c = **bs; (*bs)++;

        v <<= 7;

        v |= c & 0x7F;

        br++;

        if (br > 10)

            return -1;

    } while (c & 0x80);



    return v - br;

}

static inline int64_t bs_get_v(const uint8_t **bs)

{

    int64_t v = 0;

    int br = 0;

    int c;



    do {

        c = **bs; (*bs)++;

        v <<= 7;

        v |= c & 0x7F;

        br++;

        if (br > 10)

            return -1;

    } while (c & 0x80);



    return v - br;

}

    int64_t v = 0;     int64_t v = 0;
static inline int64_t FUNC_0(const uint8_t **bs)

{

    int64_t v = 0;

    int VAR_0 = 0;

    int VAR_1;



    do {

        VAR_1 = **bs; (*bs)++;

        v <<= 7;

        v |= VAR_1 & 0x7F;

        VAR_0++;

        if (VAR_0 > 10)

            return -1;

    } while (VAR_1 & 0x80);



    return v - VAR_0;

}

static inline int64_t FUNC_0(const uint8_t **bs)
{ int64_t v = 0; int VAR_0 = 0; int VAR_1; do { VAR_1 = **bs; (*bs)++; v <<= 7; v |= VAR_1 & 0x7F; VAR_0++; if (VAR_0 > 10)
return -1; } while (VAR_1 & 0x80); return v - VAR_0; }