#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*/ mb_lpf_horizontal_edge_w_avx2_16(unsigned char *, int,
                                                    unsigned char const *,
                                                    unsigned char const *,
                                                    unsigned char const *);
int /*<<< orphan*/ mb_lpf_horizontal_edge_w_avx2_8(unsigned char *, int,
                                                   unsigned char const *,
                                                   unsigned char const *,
                                                   unsigned char const *);
void vp9_lpf_horizontal_16_avx2(unsigned char *s, int p,
                                const unsigned char *_blimit,
                                const unsigned char *_limit,
                                const unsigned char *_thresh, int count) {
  if (count == 1)
    mb_lpf_horizontal_edge_w_avx2_8(s, p, _blimit, _limit, _thresh);
  else
    mb_lpf_horizontal_edge_w_avx2_16(s, p, _blimit, _limit, _thresh);
}


x86 assembly (clang, -O0):
<vp9_lpf_horizontal_16_avx2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
cmpl   $0x1,-0x2c(%rbp)
jne    1166 <vp9_lpf_horizontal_16_avx2+0x46>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1040 <mb_lpf_horizontal_edge_w_avx2_8@plt>
jmp    117e <vp9_lpf_horizontal_16_avx2+0x5e>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <mb_lpf_horizontal_edge_w_avx2_16@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vp9_lpf_horizontal_16_avx2>:
cmp    $0x1,%r9d
jne    112b <vp9_lpf_horizontal_16_avx2+0xb>
jmp    1040 <mb_lpf_horizontal_edge_w_avx2_8@plt>
jmp    1030 <mb_lpf_horizontal_edge_w_avx2_16@plt>

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

LLVM IR (-O2):
define void @vp9_lpf_horizontal_16_avx2(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4, i32 %5) {
%7 = icmp eq i32 %5, 1
br i1 %7, label %8, label %10
8: ; preds = %6
%9 = tail call i32 @mb_lpf_horizontal_edge_w_avx2_8(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4)
br label %12
10: ; preds = %6
%11 = tail call i32 @mb_lpf_horizontal_edge_w_avx2_16(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4)
br label %12
12: ; preds = %10, %8
ret void
}