static void ape_unpack_stereo(APEContext *ctx, int count)

{

    int32_t left, right;

    int32_t *decoded0 = ctx->decoded[0];

    int32_t *decoded1 = ctx->decoded[1];



    if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {

        /* We are pure silence, so we're done. */

        av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n");

        return;

    }



    entropy_decode(ctx, count, 1);

    ape_apply_filters(ctx, decoded0, decoded1, count);



    /* Now apply the predictor decoding */

    predictor_decode_stereo(ctx, count);



    /* Decorrelate and scale to output depth */

    while (count--) {

        left = *decoded1 - (*decoded0 / 2);

        right = left + *decoded0;



        *(decoded0++) = left;

        *(decoded1++) = right;

    }

}

static void ape_unpack_stereo(APEContext *ctx, int count)

{

    int32_t left, right;

    int32_t *decoded0 = ctx->decoded[0];

    int32_t *decoded1 = ctx->decoded[1];



    if (ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) {

        

        av_log(ctx->avctx, AV_LOG_DEBUG, "pure silence stereo\n");

        return;

    }



    entropy_decode(ctx, count, 1);

    ape_apply_filters(ctx, decoded0, decoded1, count);



    

    predictor_decode_stereo(ctx, count);



    

    while (count--) {

        left = *decoded1 - (*decoded0 / 2);

        right = left + *decoded0;



        *(decoded0++) = left;

        *(decoded1++) = right;

    }

}

static void FUNC_0(APEContext *VAR_0, int VAR_1)

{

    int32_t left, right;

    int32_t *decoded0 = VAR_0->decoded[0];

    int32_t *decoded1 = VAR_0->decoded[1];



    if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) {

        

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "pure silence stereo\n");

        return;

    }



    entropy_decode(VAR_0, VAR_1, 1);

    ape_apply_filters(VAR_0, decoded0, decoded1, VAR_1);



    

    predictor_decode_stereo(VAR_0, VAR_1);



    

    while (VAR_1--) {

        left = *decoded1 - (*decoded0 / 2);

        right = left + *decoded0;



        *(decoded0++) = left;

        *(decoded1++) = right;

    }

}

static void FUNC_0(APEContext *VAR_0, int VAR_1)
{ int32_t left, right; int32_t *decoded0 = VAR_0->decoded[0]; int32_t *decoded1 = VAR_0->decoded[1]; if (VAR_0->frameflags & APE_FRAMECODE_STEREO_SILENCE) { av_log(VAR_0->avctx, AV_LOG_DEBUG, "pure silence stereo\n"); return; } entropy_decode(VAR_0, VAR_1, 1); ape_apply_filters(VAR_0, decoded0, decoded1, VAR_1); predictor_decode_stereo(VAR_0, VAR_1); while (VAR_1--) { left = *decoded1 - (*decoded0 / 2); right = left + *decoded0; *(decoded0++) = left; *(decoded1++) = right; } }