#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ memset(float *, int /*<<< orphan*/, int const);
int /*<<< orphan*/ silk_LPC_analysis_filter10_FLP(float *, float const *,
                                                  float const *, int const);
int /*<<< orphan*/ silk_LPC_analysis_filter12_FLP(float *, float const *,
                                                  float const *, int const);
int /*<<< orphan*/ silk_LPC_analysis_filter16_FLP(float *, float const *,
                                                  float const *, int const);
int /*<<< orphan*/ silk_LPC_analysis_filter6_FLP(float *, float const *,
                                                 float const *, int const);
int /*<<< orphan*/ silk_LPC_analysis_filter8_FLP(float *, float const *,
                                                 float const *, int const);
void silk_LPC_analysis_filter_FLP(float r_LPC[], const float PredCoef[],
                                  const float s[], const int length,
                                  const int Order) {
  ;
  switch (Order) {
  case 6:
    silk_LPC_analysis_filter6_FLP(r_LPC, PredCoef, s, length);
    break;
  case 8:
    silk_LPC_analysis_filter8_FLP(r_LPC, PredCoef, s, length);
    break;
  case 10:
    silk_LPC_analysis_filter10_FLP(r_LPC, PredCoef, s, length);
    break;
  case 12:
    silk_LPC_analysis_filter12_FLP(r_LPC, PredCoef, s, length);
    break;
  case 16:
    silk_LPC_analysis_filter16_FLP(r_LPC, PredCoef, s, length);
    break;
  default:;
    break;
  }
  memset((r_LPC), (0), (Order * sizeof(float)));
}


x86 assembly (clang, -O0):
<silk_LPC_analysis_filter_FLP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0xfffffffa,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0xa,%eax
ja     1221 <silk_LPC_analysis_filter_FLP+0xc1>
mov    -0x28(%rbp),%rax
lea    0xe65(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1030 <silk_LPC_analysis_filter6_FLP@plt>
jmp    1226 <silk_LPC_analysis_filter_FLP+0xc6>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1050 <silk_LPC_analysis_filter8_FLP@plt>
jmp    1226 <silk_LPC_analysis_filter_FLP+0xc6>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1060 <silk_LPC_analysis_filter10_FLP@plt>
jmp    1226 <silk_LPC_analysis_filter_FLP+0xc6>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1040 <silk_LPC_analysis_filter12_FLP@plt>
jmp    1226 <silk_LPC_analysis_filter_FLP+0xc6>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1080 <silk_LPC_analysis_filter16_FLP@plt>
jmp    1226 <silk_LPC_analysis_filter_FLP+0xc6>
jmp    1226 <silk_LPC_analysis_filter_FLP+0xc6>
mov    -0x8(%rbp),%rdi
movslq -0x20(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1070 <memset@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<silk_LPC_analysis_filter_FLP>:
push   %r14
push   %rbx
push   %rax
mov    %r8d,%ebx
mov    %rdi,%r14
lea    -0x6(%rbx),%eax
cmp    $0xa,%eax
ja     11b2 <silk_LPC_analysis_filter_FLP+0x52>
lea    0xe87(%rip),%rdi
movslq (%rdi,%rax,4),%rax
add    %rdi,%rax
jmp    *%rax
mov    %r14,%rdi
call   1030 <silk_LPC_analysis_filter6_FLP@plt>
jmp    11b2 <silk_LPC_analysis_filter_FLP+0x52>
mov    %r14,%rdi
call   1050 <silk_LPC_analysis_filter8_FLP@plt>
jmp    11b2 <silk_LPC_analysis_filter_FLP+0x52>
mov    %r14,%rdi
call   1060 <silk_LPC_analysis_filter10_FLP@plt>
jmp    11b2 <silk_LPC_analysis_filter_FLP+0x52>
mov    %r14,%rdi
call   1040 <silk_LPC_analysis_filter12_FLP@plt>
jmp    11b2 <silk_LPC_analysis_filter_FLP+0x52>
mov    %r14,%rdi
call   1080 <silk_LPC_analysis_filter16_FLP@plt>
shl    $0x2,%ebx
mov    %r14,%rdi
xor    %esi,%esi
mov    %ebx,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <memset@plt>

LLVM IR (-O0):
define void @silk_LPC_analysis_filter_FLP(float* %0, float* %1, float* %2, i32 %3, i32 %4) {
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
%9 = alloca i32
%10 = alloca i32
store float* %0, float** %6
store float* %1, float** %7
store float* %2, float** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %10
switch i32 %11, label %42 [
i32 6, label %12
i32 8, label %18
i32 10, label %24
i32 12, label %30
i32 16, label %36
]
12: ; preds = %5
%13 = load float*, float** %6
%14 = load float*, float** %7
%15 = load float*, float** %8
%16 = load i32, i32* %9
%17 = call i32 @silk_LPC_analysis_filter6_FLP(float* %13, float* %14, float* %15, i32 %16)
br label %43
18: ; preds = %5
%19 = load float*, float** %6
%20 = load float*, float** %7
%21 = load float*, float** %8
%22 = load i32, i32* %9
%23 = call i32 @silk_LPC_analysis_filter8_FLP(float* %19, float* %20, float* %21, i32 %22)
br label %43
24: ; preds = %5
%25 = load float*, float** %6
%26 = load float*, float** %7
%27 = load float*, float** %8
%28 = load i32, i32* %9
%29 = call i32 @silk_LPC_analysis_filter10_FLP(float* %25, float* %26, float* %27, i32 %28)
br label %43
30: ; preds = %5
%31 = load float*, float** %6
%32 = load float*, float** %7
%33 = load float*, float** %8
%34 = load i32, i32* %9
%35 = call i32 @silk_LPC_analysis_filter12_FLP(float* %31, float* %32, float* %33, i32 %34)
br label %43
36: ; preds = %5
%37 = load float*, float** %6
%38 = load float*, float** %7
%39 = load float*, float** %8
%40 = load i32, i32* %9
%41 = call i32 @silk_LPC_analysis_filter16_FLP(float* %37, float* %38, float* %39, i32 %40)
br label %43
42: ; preds = %5
br label %43
43: ; preds = %42, %36, %30, %24, %18, %12
%44 = load float*, float** %6
%45 = load i32, i32* %10
%46 = sext i32 %45 to i64
%47 = mul i64 %46, 4
%48 = trunc i64 %47 to i32
%49 = call i32 @memset(float* %44, i32 0, i32 %48)
ret void
}

LLVM IR (-O2):
define void @silk_LPC_analysis_filter_FLP(float* %0, float* %1, float* %2, i32 %3, i32 %4) {
switch i32 %4, label %16 [
i32 6, label %6
i32 8, label %8
i32 10, label %10
i32 12, label %12
i32 16, label %14
]
6: ; preds = %5
%7 = tail call i32 @silk_LPC_analysis_filter6_FLP(float* %0, float* %1, float* %2, i32 %3)
br label %16
8: ; preds = %5
%9 = tail call i32 @silk_LPC_analysis_filter8_FLP(float* %0, float* %1, float* %2, i32 %3)
br label %16
10: ; preds = %5
%11 = tail call i32 @silk_LPC_analysis_filter10_FLP(float* %0, float* %1, float* %2, i32 %3)
br label %16
12: ; preds = %5
%13 = tail call i32 @silk_LPC_analysis_filter12_FLP(float* %0, float* %1, float* %2, i32 %3)
br label %16
14: ; preds = %5
%15 = tail call i32 @silk_LPC_analysis_filter16_FLP(float* %0, float* %1, float* %2, i32 %3)
br label %16
16: ; preds = %5, %14, %12, %10, %8, %6
%17 = shl i32 %4, 2
%18 = tail call i32 @memset(float* %0, i32 0, i32 %17)
ret void
}