static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed){
    int i, ret= -1;
    int av_unused mm_flags = av_get_cpu_flags();
    int need_emms= 0;
    if (c->compensation_distance)
        dst_size = FFMIN(dst_size, c->compensation_distance);
    for(i=0; i<dst->ch_count; i++){
#if HAVE_MMXEXT_INLINE
#if HAVE_SSE2_INLINE
             if(c->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_SSE2)) ret= swri_resample_int16_sse2 (c, (int16_t*)dst->ch[i], (const int16_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
        else
#endif
             if(c->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_MMX2 )){
                 ret= swri_resample_int16_mmx2 (c, (int16_t*)dst->ch[i], (const int16_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
                 need_emms= 1;
             } else
#endif
             if(c->format == AV_SAMPLE_FMT_S16P) ret= swri_resample_int16(c, (int16_t*)dst->ch[i], (const int16_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
        else if(c->format == AV_SAMPLE_FMT_S32P) ret= swri_resample_int32(c, (int32_t*)dst->ch[i], (const int32_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#if HAVE_AVX_INLINE
        else if(c->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_AVX))
                                                 ret= swri_resample_float_avx (c, (float*)dst->ch[i], (const float*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#endif
#if HAVE_SSE_INLINE
        else if(c->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_SSE))
                                                 ret= swri_resample_float_sse (c, (float*)dst->ch[i], (const float*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#endif
        else if(c->format == AV_SAMPLE_FMT_FLTP) ret= swri_resample_float(c, (float  *)dst->ch[i], (const float  *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#if HAVE_SSE2_INLINE
        else if(c->format == AV_SAMPLE_FMT_DBLP && (mm_flags&AV_CPU_FLAG_SSE2))
                                                 ret= swri_resample_double_sse2(c,(double *)dst->ch[i], (const double *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#endif
        else if(c->format == AV_SAMPLE_FMT_DBLP) ret= swri_resample_double(c,(double *)dst->ch[i], (const double *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
    if(need_emms)
        emms_c();
    return ret;
static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed){
    int i, ret= -1;
    int av_unused mm_flags = av_get_cpu_flags();
    int need_emms= 0;
    if (c->compensation_distance)
        dst_size = FFMIN(dst_size, c->compensation_distance);
    for(i=0; i<dst->ch_count; i++){
#if HAVE_MMXEXT_INLINE
#if HAVE_SSE2_INLINE
             if(c->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_SSE2)) ret= swri_resample_int16_sse2 (c, (int16_t*)dst->ch[i], (const int16_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
        else
#endif
             if(c->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_MMX2 )){
                 ret= swri_resample_int16_mmx2 (c, (int16_t*)dst->ch[i], (const int16_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
                 need_emms= 1;
             } else
#endif
             if(c->format == AV_SAMPLE_FMT_S16P) ret= swri_resample_int16(c, (int16_t*)dst->ch[i], (const int16_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
        else if(c->format == AV_SAMPLE_FMT_S32P) ret= swri_resample_int32(c, (int32_t*)dst->ch[i], (const int32_t*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#if HAVE_AVX_INLINE
        else if(c->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_AVX))
                                                 ret= swri_resample_float_avx (c, (float*)dst->ch[i], (const float*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#endif
#if HAVE_SSE_INLINE
        else if(c->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_SSE))
                                                 ret= swri_resample_float_sse (c, (float*)dst->ch[i], (const float*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#endif
        else if(c->format == AV_SAMPLE_FMT_FLTP) ret= swri_resample_float(c, (float  *)dst->ch[i], (const float  *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#if HAVE_SSE2_INLINE
        else if(c->format == AV_SAMPLE_FMT_DBLP && (mm_flags&AV_CPU_FLAG_SSE2))
                                                 ret= swri_resample_double_sse2(c,(double *)dst->ch[i], (const double *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
#endif
        else if(c->format == AV_SAMPLE_FMT_DBLP) ret= swri_resample_double(c,(double *)dst->ch[i], (const double *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count);
    if(need_emms)
        emms_c();
    return ret;
static int FUNC_0(ResampleContext *VAR_0, AudioData *VAR_1, int VAR_2, AudioData *VAR_3, int VAR_4, int *VAR_5){
    int VAR_6, VAR_7= -1;
    int VAR_8 mm_flags = av_get_cpu_flags();
    int VAR_9= 0;
    if (VAR_0->compensation_distance)
        VAR_2 = FFMIN(VAR_2, VAR_0->compensation_distance);
    for(VAR_6=0; VAR_6<VAR_1->ch_count; VAR_6++){
#if HAVE_MMXEXT_INLINE
#if HAVE_SSE2_INLINE
             if(VAR_0->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_SSE2)) VAR_7= swri_resample_int16_sse2 (VAR_0, (int16_t*)VAR_1->ch[VAR_6], (const int16_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
        else
#endif
             if(VAR_0->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_MMX2 )){
                 VAR_7= swri_resample_int16_mmx2 (VAR_0, (int16_t*)VAR_1->ch[VAR_6], (const int16_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
                 VAR_9= 1;
             } else
#endif
             if(VAR_0->format == AV_SAMPLE_FMT_S16P) VAR_7= swri_resample_int16(VAR_0, (int16_t*)VAR_1->ch[VAR_6], (const int16_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
        else if(VAR_0->format == AV_SAMPLE_FMT_S32P) VAR_7= swri_resample_int32(VAR_0, (int32_t*)VAR_1->ch[VAR_6], (const int32_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
#if HAVE_AVX_INLINE
        else if(VAR_0->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_AVX))
                                                 VAR_7= swri_resample_float_avx (VAR_0, (float*)VAR_1->ch[VAR_6], (const float*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
#endif
#if HAVE_SSE_INLINE
        else if(VAR_0->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_SSE))
                                                 VAR_7= swri_resample_float_sse (VAR_0, (float*)VAR_1->ch[VAR_6], (const float*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
#endif
        else if(VAR_0->format == AV_SAMPLE_FMT_FLTP) VAR_7= swri_resample_float(VAR_0, (float  *)VAR_1->ch[VAR_6], (const float  *)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
#if HAVE_SSE2_INLINE
        else if(VAR_0->format == AV_SAMPLE_FMT_DBLP && (mm_flags&AV_CPU_FLAG_SSE2))
                                                 VAR_7= swri_resample_double_sse2(VAR_0,(double *)VAR_1->ch[VAR_6], (const double *)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
#endif
        else if(VAR_0->format == AV_SAMPLE_FMT_DBLP) VAR_7= swri_resample_double(VAR_0,(double *)VAR_1->ch[VAR_6], (const double *)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count);
    if(VAR_9)
        emms_c();
    return VAR_7;
static int FUNC_0(ResampleContext *VAR_0, AudioData *VAR_1, int VAR_2, AudioData *VAR_3, int VAR_4, int *VAR_5){ int VAR_6, VAR_7= -1; int VAR_8 mm_flags = av_get_cpu_flags(); int VAR_9= 0; if (VAR_0->compensation_distance)
VAR_2 = FFMIN(VAR_2, VAR_0->compensation_distance); for(VAR_6=0; VAR_6<VAR_1->ch_count; VAR_6++){ #if HAVE_MMXEXT_INLINE
#if HAVE_SSE2_INLINE
if(VAR_0->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_SSE2)) VAR_7= swri_resample_int16_sse2 (VAR_0, (int16_t*)VAR_1->ch[VAR_6], (const int16_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); else
#endif
if(VAR_0->format == AV_SAMPLE_FMT_S16P && (mm_flags&AV_CPU_FLAG_MMX2 )){ VAR_7= swri_resample_int16_mmx2 (VAR_0, (int16_t*)VAR_1->ch[VAR_6], (const int16_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); VAR_9= 1; } else #endif
if(VAR_0->format == AV_SAMPLE_FMT_S16P) VAR_7= swri_resample_int16(VAR_0, (int16_t*)VAR_1->ch[VAR_6], (const int16_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); else if(VAR_0->format == AV_SAMPLE_FMT_S32P) VAR_7= swri_resample_int32(VAR_0, (int32_t*)VAR_1->ch[VAR_6], (const int32_t*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); #if HAVE_AVX_INLINE
else if(VAR_0->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_AVX))
VAR_7= swri_resample_float_avx (VAR_0, (float*)VAR_1->ch[VAR_6], (const float*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); #endif
#if HAVE_SSE_INLINE
else if(VAR_0->format == AV_SAMPLE_FMT_FLTP && (mm_flags&AV_CPU_FLAG_SSE))
VAR_7= swri_resample_float_sse (VAR_0, (float*)VAR_1->ch[VAR_6], (const float*)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); #endif
else if(VAR_0->format == AV_SAMPLE_FMT_FLTP) VAR_7= swri_resample_float(VAR_0, (float  *)VAR_1->ch[VAR_6], (const float  *)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); #if HAVE_SSE2_INLINE
else if(VAR_0->format == AV_SAMPLE_FMT_DBLP && (mm_flags&AV_CPU_FLAG_SSE2))
VAR_7= swri_resample_double_sse2(VAR_0,(double *)VAR_1->ch[VAR_6], (const double *)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); #endif
else if(VAR_0->format == AV_SAMPLE_FMT_DBLP) VAR_7= swri_resample_double(VAR_0,(double *)VAR_1->ch[VAR_6], (const double *)VAR_3->ch[VAR_6], VAR_5, VAR_4, VAR_2, VAR_6+1==VAR_1->ch_count); if(VAR_9)
emms_c(); return VAR_7;