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


x86 assembly (clang, -O0):
<filter_mem2>:
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    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
cmpl   $0xa,-0x28(%rbp)
jne    1178 <filter_mem2+0x58>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    0x10(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <filter_mem2_10@plt>
jmp    11ac <filter_mem2+0x8c>
cmpl   $0x8,-0x28(%rbp)
jne    11a7 <filter_mem2+0x87>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    0x10(%rbp),%rax
mov    %rax,(%rsp)
call   1030 <filter_mem2_8@plt>
jmp    11ac <filter_mem2+0x8c>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<filter_mem2>:
cmp    $0x8,%r9d
je     1143 <filter_mem2+0x23>
cmp    $0xa,%r9d
jne    114e <filter_mem2+0x2e>
push   %rax
mov    0x10(%rsp),%rax
mov    %rax,(%rsp)
mov    $0xa,%r9d
call   1040 <filter_mem2_10@plt>
pop    %rax
ret
mov    $0x8,%r9d
jmp    1030 <filter_mem2_8@plt>
ret

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

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