#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*/ iir_mem2_10(float const *, float const *, float *, int, int,
                               float *);
int /*<<< orphan*/ iir_mem2_8(float const *, float const *, float *, int, int,
                              float *);
void iir_mem2(const float *x, const float *_den, float *y, int N, int ord,
              float *_mem) {
  if (ord == 10)
    iir_mem2_10(x, _den, y, N, ord, _mem);
  else if (ord == 8)
    iir_mem2_8(x, _den, y, N, ord, _mem);
}


x86 assembly (clang, -O0):
<iir_mem2>:
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    %r9,-0x28(%rbp)
cmpl   $0xa,-0x20(%rbp)
jne    116a <iir_mem2+0x4a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x28(%rbp),%r9
call   1040 <iir_mem2_10@plt>
jmp    1195 <iir_mem2+0x75>
cmpl   $0x8,-0x20(%rbp)
jne    1190 <iir_mem2+0x70>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x28(%rbp),%r9
call   1030 <iir_mem2_8@plt>
jmp    1195 <iir_mem2+0x75>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iir_mem2>:
cmp    $0x8,%r8d
je     1137 <iir_mem2+0x17>
cmp    $0xa,%r8d
jne    1142 <iir_mem2+0x22>
mov    $0xa,%r8d
jmp    1040 <iir_mem2_10@plt>
mov    $0x8,%r8d
jmp    1030 <iir_mem2_8@plt>
ret

LLVM IR (-O0):
define void @iir_mem2(float* %0, float* %1, float* %2, i32 %3, i32 %4, float* %5) {
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
%10 = alloca i32
%11 = alloca i32
%12 = alloca float*
store float* %0, float** %7
store float* %1, float** %8
store float* %2, float** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store float* %5, float** %12
%13 = load i32, i32* %11
%14 = icmp eq i32 %13, 10
br i1 %14, label %15, label %23
15: ; preds = %6
%16 = load float*, float** %7
%17 = load float*, float** %8
%18 = load float*, float** %9
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = load float*, float** %12
%22 = call i32 @iir_mem2_10(float* %16, float* %17, float* %18, i32 %19, i32 %20, float* %21)
br label %35
23: ; preds = %6
%24 = load i32, i32* %11
%25 = icmp eq i32 %24, 8
br i1 %25, label %26, label %34
26: ; preds = %23
%27 = load float*, float** %7
%28 = load float*, float** %8
%29 = load float*, float** %9
%30 = load i32, i32* %10
%31 = load i32, i32* %11
%32 = load float*, float** %12
%33 = call i32 @iir_mem2_8(float* %27, float* %28, float* %29, i32 %30, i32 %31, float* %32)
br label %34
34: ; preds = %26, %23
br label %35
35: ; preds = %34, %15
ret void
}

LLVM IR (-O2):
define void @iir_mem2(float* %0, float* %1, float* %2, i32 %3, i32 %4, float* %5) {
switch i32 %4, label %11 [
i32 10, label %7
i32 8, label %9
]
7: ; preds = %6
%8 = tail call i32 @iir_mem2_10(float* %0, float* %1, float* %2, i32 %3, i32 10, float* %5)
br label %11
9: ; preds = %6
%10 = tail call i32 @iir_mem2_8(float* %0, float* %1, float* %2, i32 %3, i32 8, float* %5)
br label %11
11: ; preds = %6, %9, %7
ret void
}