#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*/ vp8e_filter_block2d_bil_first_pass(unsigned char const *,
                                                      unsigned short *,
                                                      unsigned int, int, int,
                                                      int, int *);
int /*<<< orphan*/ vp8e_filter_block2d_bil_second_pass(unsigned short *,
                                                       unsigned char *, int,
                                                       int, int, int, int *);
void vp8e_filter_block2d_bil(const unsigned char *src_ptr,
                             unsigned char *output_ptr,
                             unsigned int src_pixels_per_line, int *HFilter,
                             int *VFilter) {
  unsigned short FData[20 * 16];
  vp8e_filter_block2d_bil_first_pass(src_ptr, FData, src_pixels_per_line, 1, 9,
                                     8, HFilter);
  vp8e_filter_block2d_bil_second_pass(FData, output_ptr, 8, 8, 8, 8, VFilter);
}


x86 assembly (clang, -O0):
<vp8e_filter_block2d_bil>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2c0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x2b0(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rax
mov    $0x1,%ecx
mov    $0x9,%r8d
mov    $0x8,%r9d
mov    %rax,(%rsp)
call   1030 <vp8e_filter_block2d_bil_first_pass@plt>
lea    -0x2b0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%rax
mov    $0x8,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %rax,(%rsp)
call   1040 <vp8e_filter_block2d_bil_second_pass@plt>
add    $0x2c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vp8e_filter_block2d_bil>:
push   %r15
push   %r14
push   %rbx
sub    $0x290,%rsp
mov    %r8,%r14
mov    %rsi,%rbx
mov    %rcx,(%rsp)
lea    0x10(%rsp),%r15
mov    %r15,%rsi
mov    $0x1,%ecx
mov    $0x9,%r8d
mov    $0x8,%r9d
call   1030 <vp8e_filter_block2d_bil_first_pass@plt>
mov    %r14,(%rsp)
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
mov    $0x8,%ecx
mov    $0x8,%r8d
mov    $0x8,%r9d
call   1040 <vp8e_filter_block2d_bil_second_pass@plt>
add    $0x290,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @vp8e_filter_block2d_bil(i8* %0, i8* %1, i32 %2, i32* %3, i32* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca [320 x i16]
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32* %3, i32** %9
store i32* %4, i32** %10
%12 = load i8*, i8** %6
%13 = getelementptr inbounds [320 x i16], [320 x i16]* %11, i64 0, i64 0
%14 = load i32, i32* %8
%15 = load i32*, i32** %9
%16 = call i32 @vp8e_filter_block2d_bil_first_pass(i8* %12, i16* %13, i32 %14, i32 1, i32 9, i32 8, i32* %15)
%17 = getelementptr inbounds [320 x i16], [320 x i16]* %11, i64 0, i64 0
%18 = load i8*, i8** %7
%19 = load i32*, i32** %10
%20 = call i32 @vp8e_filter_block2d_bil_second_pass(i16* %17, i8* %18, i32 8, i32 8, i32 8, i32 8, i32* %19)
ret void
}

LLVM IR (-O2):
define void @vp8e_filter_block2d_bil(i8* %0, i8* %1, i32 %2, i32* %3, i32* %4) {
%6 = alloca [320 x i16]
%7 = bitcast [320 x i16]* %6 to i8*
%8 = getelementptr inbounds [320 x i16], [320 x i16]* %6, i64 0, i64 0
%9 = call i32 @vp8e_filter_block2d_bil_first_pass(i8* %0, i16* %8, i32 %2, i32 1, i32 9, i32 8, i32* %3)
%10 = call i32 @vp8e_filter_block2d_bil_second_pass(i16* %8, i8* %1, i32 8, i32 8, i32 8, i32 8, i32* %4)
ret void
}