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


x86 assembly (clang, -O0):
<filter_mem16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x18(%rbp),%rax
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    117c <filter_mem16+0x5c>
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_mem16_10@plt>
jmp    11b0 <filter_mem16+0x90>
cmpl   $0x8,-0x28(%rbp)
jne    11ab <filter_mem16+0x8b>
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_mem16_8@plt>
jmp    11b0 <filter_mem16+0x90>
add    $0x30,%rsp
pop    %rbp
ret

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

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

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