static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)

{

    int block_size;

    const ModeTab *mtab = tctx->mtab;

    int size = tctx->avctx->channels*mtab->fmode[ftype].sub;

    int16_t *tmp_perm = (int16_t *) tctx->tmp_buf;



    if (ftype == FT_PPC) {

        size  = tctx->avctx->channels;

        block_size = mtab->ppc_shape_len;

    } else

        block_size = mtab->size / mtab->fmode[ftype].sub;



    permutate_in_line(tmp_perm, tctx->n_div[ftype], size,

                      block_size, tctx->length[ftype],

                      tctx->length_change[ftype], ftype);



    transpose_perm(tctx->permut[ftype], tmp_perm, tctx->n_div[ftype],

                   tctx->length[ftype], tctx->length_change[ftype]);



    linear_perm(tctx->permut[ftype], tctx->permut[ftype], size,

                size*block_size);

}

static av_cold void construct_perm_table(TwinContext *tctx,enum FrameType ftype)

{

    int block_size;

    const ModeTab *mtab = tctx->mtab;

    int size = tctx->avctx->channels*mtab->fmode[ftype].sub;

    int16_t *tmp_perm = (int16_t *) tctx->tmp_buf;



    if (ftype == FT_PPC) {

        size  = tctx->avctx->channels;

        block_size = mtab->ppc_shape_len;

    } else

        block_size = mtab->size / mtab->fmode[ftype].sub;



    permutate_in_line(tmp_perm, tctx->n_div[ftype], size,

                      block_size, tctx->length[ftype],

                      tctx->length_change[ftype], ftype);



    transpose_perm(tctx->permut[ftype], tmp_perm, tctx->n_div[ftype],

                   tctx->length[ftype], tctx->length_change[ftype]);



    linear_perm(tctx->permut[ftype], tctx->permut[ftype], size,

                size*block_size);

}

    int size = tctx->avctx->channels*mtab->fmode[ftype].sub;     } else
static av_cold void FUNC_0(TwinContext *tctx,enum FrameType ftype)

{

    int VAR_0;

    const ModeTab *VAR_1 = tctx->VAR_1;

    int VAR_2 = tctx->avctx->channels*VAR_1->fmode[ftype].sub;

    int16_t *tmp_perm = (int16_t *) tctx->tmp_buf;



    if (ftype == FT_PPC) {

        VAR_2  = tctx->avctx->channels;

        VAR_0 = VAR_1->ppc_shape_len;

    } else

        VAR_0 = VAR_1->VAR_2 / VAR_1->fmode[ftype].sub;



    permutate_in_line(tmp_perm, tctx->n_div[ftype], VAR_2,

                      VAR_0, tctx->length[ftype],

                      tctx->length_change[ftype], ftype);



    transpose_perm(tctx->permut[ftype], tmp_perm, tctx->n_div[ftype],

                   tctx->length[ftype], tctx->length_change[ftype]);



    linear_perm(tctx->permut[ftype], tctx->permut[ftype], VAR_2,

                VAR_2*VAR_0);

}

static av_cold void FUNC_0(TwinContext *tctx,enum FrameType ftype)
{ int VAR_0; const ModeTab *VAR_1 = tctx->VAR_1; int VAR_2 = tctx->avctx->channels*VAR_1->fmode[ftype].sub; int16_t *tmp_perm = (int16_t *) tctx->tmp_buf; if (ftype == FT_PPC) { VAR_2  = tctx->avctx->channels; VAR_0 = VAR_1->ppc_shape_len; } else VAR_0 = VAR_1->VAR_2 / VAR_1->fmode[ftype].sub; permutate_in_line(tmp_perm, tctx->n_div[ftype], VAR_2,
VAR_0, tctx->length[ftype],
tctx->length_change[ftype], ftype); transpose_perm(tctx->permut[ftype], tmp_perm, tctx->n_div[ftype],
tctx->length[ftype], tctx->length_change[ftype]); linear_perm(tctx->permut[ftype], tctx->permut[ftype], VAR_2,
VAR_2*VAR_0); }