#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_mem16_10(float const *, float const *, float *, int, int,
                                float *);
int /*<<< orphan*/ iir_mem16_8(float const *, float const *, float *, int, int,
                               float *);
void iir_mem16(const float *x, const float *_den, float *y, int N, int ord,
               float *_mem, char *stack) {
  if (ord == 10)
    iir_mem16_10(x, _den, y, N, ord, _mem);
  else if (ord == 8)
    iir_mem16_8(x, _den, y, N, ord, _mem);
}


x86 assembly (clang, -O0):
<iir_mem16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
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    116e <iir_mem16+0x4e>
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_mem16_10@plt>
jmp    1199 <iir_mem16+0x79>
cmpl   $0x8,-0x20(%rbp)
jne    1194 <iir_mem16+0x74>
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_mem16_8@plt>
jmp    1199 <iir_mem16+0x79>
add    $0x30,%rsp
pop    %rbp
ret

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

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

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