static av_always_inline int setup_classifs(vorbis_context *vc,

                                           vorbis_residue *vr,

                                           uint8_t *do_not_decode,

                                           unsigned ch_used,

                                           int partition_count)

{

    int p, j, i;

    unsigned c_p_c         = vc->codebooks[vr->classbook].dimensions;

    unsigned inverse_class = ff_inverse[vr->classifications];

    unsigned temp, temp2;

    for (p = 0, j = 0; j < ch_used; ++j) {

        if (!do_not_decode[j]) {

            temp = get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table,

                                     vc->codebooks[vr->classbook].nb_bits, 3);



            av_dlog(NULL, "Classword: %u\n", temp);



            if ((int)temp < 0)

                return temp;



            av_assert0(vr->classifications > 1); //needed for inverse[]



            if (temp <= 65536) {

                for (i = partition_count + c_p_c - 1; i >= partition_count; i--) {

                    temp2 = (((uint64_t)temp) * inverse_class) >> 32;



                    if (i < vr->ptns_to_read)

                        vr->classifs[p + i] = temp - temp2 * vr->classifications;

                    temp = temp2;

                }

            } else {

                for (i = partition_count + c_p_c - 1; i >= partition_count; i--) {

                    temp2 = temp / vr->classifications;



                    if (i < vr->ptns_to_read)

                        vr->classifs[p + i] = temp - temp2 * vr->classifications;

                    temp = temp2;

                }

            }

        }

        p += vr->ptns_to_read;

    }

    return 0;

}

static av_always_inline int setup_classifs(vorbis_context *vc,

                                           vorbis_residue *vr,

                                           uint8_t *do_not_decode,

                                           unsigned ch_used,

                                           int partition_count)

{

    int p, j, i;

    unsigned c_p_c         = vc->codebooks[vr->classbook].dimensions;

    unsigned inverse_class = ff_inverse[vr->classifications];

    unsigned temp, temp2;

    for (p = 0, j = 0; j < ch_used; ++j) {

        if (!do_not_decode[j]) {

            temp = get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table,

                                     vc->codebooks[vr->classbook].nb_bits, 3);



            av_dlog(NULL, "Classword: %u\n", temp);



            if ((int)temp < 0)

                return temp;



            av_assert0(vr->classifications > 1); 



            if (temp <= 65536) {

                for (i = partition_count + c_p_c - 1; i >= partition_count; i--) {

                    temp2 = (((uint64_t)temp) * inverse_class) >> 32;



                    if (i < vr->ptns_to_read)

                        vr->classifs[p + i] = temp - temp2 * vr->classifications;

                    temp = temp2;

                }

            } else {

                for (i = partition_count + c_p_c - 1; i >= partition_count; i--) {

                    temp2 = temp / vr->classifications;



                    if (i < vr->ptns_to_read)

                        vr->classifs[p + i] = temp - temp2 * vr->classifications;

                    temp = temp2;

                }

            }

        }

        p += vr->ptns_to_read;

    }

    return 0;

}

                                           int partition_count)                     if (i < vr->ptns_to_read)                     if (i < vr->ptns_to_read)         p += vr->ptns_to_read;
static av_always_inline int FUNC_0(vorbis_context *vc,

                                           vorbis_residue *vr,

                                           uint8_t *do_not_decode,

                                           unsigned ch_used,

                                           int partition_count)

{

    int VAR_0, VAR_1, VAR_2;

    unsigned VAR_3         = vc->codebooks[vr->classbook].dimensions;

    unsigned VAR_4 = ff_inverse[vr->classifications];

    unsigned VAR_5, VAR_6;

    for (VAR_0 = 0, VAR_1 = 0; VAR_1 < ch_used; ++VAR_1) {

        if (!do_not_decode[VAR_1]) {

            VAR_5 = get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table,

                                     vc->codebooks[vr->classbook].nb_bits, 3);



            av_dlog(NULL, "Classword: %u\n", VAR_5);



            if ((int)VAR_5 < 0)

                return VAR_5;



            av_assert0(vr->classifications > 1); 



            if (VAR_5 <= 65536) {

                for (VAR_2 = partition_count + VAR_3 - 1; VAR_2 >= partition_count; VAR_2--) {

                    VAR_6 = (((uint64_t)VAR_5) * VAR_4) >> 32;



                    if (VAR_2 < vr->ptns_to_read)

                        vr->classifs[VAR_0 + VAR_2] = VAR_5 - VAR_6 * vr->classifications;

                    VAR_5 = VAR_6;

                }

            } else {

                for (VAR_2 = partition_count + VAR_3 - 1; VAR_2 >= partition_count; VAR_2--) {

                    VAR_6 = VAR_5 / vr->classifications;



                    if (VAR_2 < vr->ptns_to_read)

                        vr->classifs[VAR_0 + VAR_2] = VAR_5 - VAR_6 * vr->classifications;

                    VAR_5 = VAR_6;

                }

            }

        }

        VAR_0 += vr->ptns_to_read;

    }

    return 0;

}

static av_always_inline int FUNC_0(vorbis_context *vc,
vorbis_residue *vr,
uint8_t *do_not_decode,
unsigned ch_used,
int partition_count)
{ int VAR_0, VAR_1, VAR_2; unsigned VAR_3         = vc->codebooks[vr->classbook].dimensions; unsigned VAR_4 = ff_inverse[vr->classifications]; unsigned VAR_5, VAR_6; for (VAR_0 = 0, VAR_1 = 0; VAR_1 < ch_used; ++VAR_1) { if (!do_not_decode[VAR_1]) { VAR_5 = get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table,
vc->codebooks[vr->classbook].nb_bits, 3); av_dlog(NULL, "Classword: %u\n", VAR_5); if ((int)VAR_5 < 0)
return VAR_5; av_assert0(vr->classifications > 1); if (VAR_5 <= 65536) { for (VAR_2 = partition_count + VAR_3 - 1; VAR_2 >= partition_count; VAR_2--) { VAR_6 = (((uint64_t)VAR_5) * VAR_4) >> 32; if (VAR_2 < vr->ptns_to_read)
vr->classifs[VAR_0 + VAR_2] = VAR_5 - VAR_6 * vr->classifications; VAR_5 = VAR_6; } } else { for (VAR_2 = partition_count + VAR_3 - 1; VAR_2 >= partition_count; VAR_2--) { VAR_6 = VAR_5 / vr->classifications; if (VAR_2 < vr->ptns_to_read)
vr->classifs[VAR_0 + VAR_2] = VAR_5 - VAR_6 * vr->classifications; VAR_5 = VAR_6; } } } VAR_0 += vr->ptns_to_read; } return 0; }