#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 */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ DoSimpleFilter(int /*<<< orphan*/ *const,
                                  int /*<<< orphan*/ *const,
                                  int /*<<< orphan*/ const *);
int /*<<< orphan*/ GetBaseDelta(int /*<<< orphan*/ *const,
                                int /*<<< orphan*/ *const,
                                int /*<<< orphan*/ *const,
                                int /*<<< orphan*/ *const,
                                int /*<<< orphan*/ *);
int /*<<< orphan*/ GetNotHEV(int /*<<< orphan*/ *const,
                             int /*<<< orphan*/ *const,
                             int /*<<< orphan*/ *const,
                             int /*<<< orphan*/ *const, int,
                             int /*<<< orphan*/ *);
int /*<<< orphan*/ Update2Pixels(int /*<<< orphan*/ *const,
                                 int /*<<< orphan*/ *const,
                                 int /*<<< orphan*/ const *,
                                 int /*<<< orphan*/ const *);
int /*<<< orphan*/ _mm_add_epi16(int /*<<< orphan*/ const,
                                 int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_and_si128(int /*<<< orphan*/, int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_andnot_si128(int /*<<< orphan*/,
                                    int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_mulhi_epi16(int /*<<< orphan*/ const,
                                   int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_set1_epi16(int);
int /*<<< orphan*/ _mm_set1_epi8(int);
int /*<<< orphan*/ _mm_setzero_si128();
int /*<<< orphan*/ _mm_unpackhi_epi8(int /*<<< orphan*/ const,
                                     int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_unpacklo_epi8(int /*<<< orphan*/ const,
                                     int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_xor_si128(int /*<<< orphan*/, int /*<<< orphan*/ const);
void DoFilter6(__m128i *const p2, __m128i *const p1, __m128i *const p0,
               __m128i *const q0, __m128i *const q1, __m128i *const q2,
               const __m128i *const mask, int hev_thresh) {
  const __m128i zero = _mm_setzero_si128();
  const __m128i sign_bit = _mm_set1_epi8(0x80);
  __m128i a, not_hev;
  GetNotHEV(p1, p0, q0, q1, hev_thresh, &not_hev);
  {
    {
      *p1 = _mm_xor_si128(*p1, sign_bit);
      *p0 = _mm_xor_si128(*p0, sign_bit);
    };
    {
      *q0 = _mm_xor_si128(*q0, sign_bit);
      *q1 = _mm_xor_si128(*q1, sign_bit);
    };
  };
  {
    *p2 = _mm_xor_si128(*p2, sign_bit);
    *q2 = _mm_xor_si128(*q2, sign_bit);
  };
  GetBaseDelta(p1, p0, q0, q1, &a);
  {
    const __m128i m = _mm_andnot_si128(not_hev, *mask);
    const __m128i f = _mm_and_si128(a, m);
    DoSimpleFilter(p0, q0, &f);
  }
  {
    const __m128i k9 = _mm_set1_epi16(0x0900);
    const __m128i k63 = _mm_set1_epi16(63);
    const __m128i m = _mm_and_si128(not_hev, *mask);
    const __m128i f = _mm_and_si128(a, m);
    const __m128i f_lo = _mm_unpacklo_epi8(zero, f);
    const __m128i f_hi = _mm_unpackhi_epi8(zero, f);
    const __m128i f9_lo = _mm_mulhi_epi16(f_lo, k9);
    const __m128i f9_hi = _mm_mulhi_epi16(f_hi, k9);
    const __m128i a2_lo = _mm_add_epi16(f9_lo, k63);
    const __m128i a2_hi = _mm_add_epi16(f9_hi, k63);
    const __m128i a1_lo = _mm_add_epi16(a2_lo, f9_lo);
    const __m128i a1_hi = _mm_add_epi16(a2_hi, f9_hi);
    const __m128i a0_lo = _mm_add_epi16(a1_lo, f9_lo);
    const __m128i a0_hi = _mm_add_epi16(a1_hi, f9_hi);
    Update2Pixels(p2, q2, &a2_lo, &a2_hi);
    Update2Pixels(p1, q1, &a1_lo, &a1_hi);
    Update2Pixels(p0, q0, &a0_lo, &a0_hi);
  }
}


x86 assembly (clang, -O0):
<DoFilter6>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0x0,%al
call   1070 <_mm_setzero_si128@plt>
mov    %eax,-0x34(%rbp)
mov    $0x80,%edi
call   1080 <_mm_set1_epi8@plt>
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    0x18(%rbp),%r8d
lea    -0x40(%rbp),%r9
call   10a0 <GetNotHEV@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x30(%rbp),%rax
mov    (%rax),%edi
mov    -0x38(%rbp),%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    -0x3c(%rbp),%r8
call   10b0 <GetBaseDelta@plt>
mov    -0x40(%rbp),%edi
mov    0x10(%rbp),%rax
mov    (%rax),%esi
call   10f0 <_mm_andnot_si128@plt>
mov    %eax,-0x44(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x44(%rbp),%esi
call   1100 <_mm_and_si128@plt>
mov    %eax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x48(%rbp),%rdx
call   10d0 <DoSimpleFilter@plt>
mov    $0x900,%edi
call   1090 <_mm_set1_epi16@plt>
mov    %eax,-0x4c(%rbp)
mov    $0x3f,%edi
call   1090 <_mm_set1_epi16@plt>
mov    %eax,-0x50(%rbp)
mov    -0x40(%rbp),%edi
mov    0x10(%rbp),%rax
mov    (%rax),%esi
call   1100 <_mm_and_si128@plt>
mov    %eax,-0x54(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x54(%rbp),%esi
call   1100 <_mm_and_si128@plt>
mov    %eax,-0x58(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1040 <_mm_unpacklo_epi8@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x58(%rbp),%esi
call   1050 <_mm_unpackhi_epi8@plt>
mov    %eax,-0x60(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_mulhi_epi16@plt>
mov    %eax,-0x64(%rbp)
mov    -0x60(%rbp),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_mulhi_epi16@plt>
mov    %eax,-0x68(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,-0x70(%rbp)
mov    -0x6c(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,-0x74(%rbp)
mov    -0x70(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,-0x78(%rbp)
mov    -0x74(%rbp),%edi
mov    -0x64(%rbp),%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x78(%rbp),%edi
mov    -0x68(%rbp),%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,-0x80(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
lea    -0x6c(%rbp),%rdx
lea    -0x70(%rbp),%rcx
call   10c0 <Update2Pixels@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
lea    -0x74(%rbp),%rdx
lea    -0x78(%rbp),%rcx
call   10c0 <Update2Pixels@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x7c(%rbp),%rdx
lea    -0x80(%rbp),%rcx
call   10c0 <Update2Pixels@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DoFilter6>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x38(%rsp)
mov    %r8,%rbx
mov    %rcx,%r15
mov    %rdx,%r13
mov    %rsi,%r12
mov    %rdi,%r14
xor    %eax,%eax
call   1070 <_mm_setzero_si128@plt>
mov    %eax,0x18(%rsp)
mov    $0x80,%edi
call   1080 <_mm_set1_epi8@plt>
mov    %eax,%ebp
lea    0x10(%rsp),%r9
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    0x98(%rsp),%r8d
call   10a0 <GetNotHEV@plt>
mov    (%r12),%edi
mov    %ebp,%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,(%r12)
mov    %r12,0x48(%rsp)
mov    0x0(%r13),%edi
mov    %ebp,%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,0x0(%r13)
mov    %r15,0x30(%rsp)
mov    (%r15),%edi
mov    %ebp,%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,(%r15)
mov    %rbx,%r15
mov    (%rbx),%edi
mov    %ebp,%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
mov    %rbx,0x40(%rsp)
mov    %r14,0x50(%rsp)
mov    (%r14),%edi
mov    %ebp,%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,(%r14)
mov    0x38(%rsp),%rbx
mov    (%rbx),%edi
mov    %ebp,%esi
call   10e0 <_mm_xor_si128@plt>
mov    %eax,(%rbx)
lea    0x14(%rsp),%r8
mov    %r12,%rdi
mov    %r13,%rsi
mov    0x30(%rsp),%rbx
mov    %rbx,%rdx
mov    %r15,%rcx
call   10b0 <GetBaseDelta@plt>
mov    0x10(%rsp),%edi
mov    0x90(%rsp),%rbp
mov    0x0(%rbp),%esi
call   10f0 <_mm_andnot_si128@plt>
mov    0x14(%rsp),%edi
mov    %eax,%esi
call   1100 <_mm_and_si128@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdx
mov    %r13,%rdi
mov    %r13,%r15
mov    %rbx,%rsi
call   10d0 <DoSimpleFilter@plt>
mov    $0x900,%edi
call   1090 <_mm_set1_epi16@plt>
mov    %eax,%r13d
mov    $0x3f,%edi
call   1090 <_mm_set1_epi16@plt>
mov    %eax,%r14d
mov    0x10(%rsp),%edi
mov    0x0(%rbp),%esi
call   1100 <_mm_and_si128@plt>
mov    0x14(%rsp),%edi
mov    %eax,%esi
call   1100 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    0x18(%rsp),%ebp
mov    %ebp,%edi
mov    %eax,%esi
call   1040 <_mm_unpacklo_epi8@plt>
mov    %eax,%r12d
mov    %ebp,%edi
mov    %ebx,%esi
call   1050 <_mm_unpackhi_epi8@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    %r13d,%esi
call   1060 <_mm_mulhi_epi16@plt>
mov    %eax,%r12d
mov    %ebx,%edi
mov    %r13d,%esi
call   1060 <_mm_mulhi_epi16@plt>
mov    %eax,%r13d
mov    %r12d,%edi
mov    %r14d,%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,%ebp
mov    %eax,0xc(%rsp)
mov    %r13d,%edi
mov    %r14d,%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,%ebx
mov    %eax,0x2c(%rsp)
mov    %ebp,%edi
mov    %r12d,%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,%ebp
mov    %eax,0x28(%rsp)
mov    %ebx,%edi
mov    %r13d,%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,%ebx
mov    %eax,0x24(%rsp)
mov    %ebp,%edi
mov    %r12d,%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,0x20(%rsp)
mov    %ebx,%edi
mov    %r13d,%esi
call   1030 <_mm_add_epi16@plt>
mov    %eax,0x1c(%rsp)
lea    0xc(%rsp),%rdx
lea    0x2c(%rsp),%rcx
mov    0x50(%rsp),%rdi
mov    0x38(%rsp),%rsi
call   10c0 <Update2Pixels@plt>
lea    0x28(%rsp),%rdx
lea    0x24(%rsp),%rcx
mov    0x48(%rsp),%rdi
mov    0x40(%rsp),%rsi
call   10c0 <Update2Pixels@plt>
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
mov    %r15,%rdi
mov    0x30(%rsp),%rsi
call   10c0 <Update2Pixels@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @DoFilter6(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32 %7) {
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32
%35 = alloca i32
%36 = alloca i32
store i32* %0, i32** %9
store i32* %1, i32** %10
store i32* %2, i32** %11
store i32* %3, i32** %12
store i32* %4, i32** %13
store i32* %5, i32** %14
store i32* %6, i32** %15
store i32 %7, i32* %16
%37 = call i32 (...) @_mm_setzero_si128()
store i32 %37, i32* %17
%38 = call i32 @_mm_set1_epi8(i32 128)
store i32 %38, i32* %18
%39 = load i32*, i32** %10
%40 = load i32*, i32** %11
%41 = load i32*, i32** %12
%42 = load i32*, i32** %13
%43 = load i32, i32* %16
%44 = call i32 @GetNotHEV(i32* %39, i32* %40, i32* %41, i32* %42, i32 %43, i32* %20)
%45 = load i32*, i32** %10
%46 = load i32, i32* %45
%47 = load i32, i32* %18
%48 = call i32 @_mm_xor_si128(i32 %46, i32 %47)
%49 = load i32*, i32** %10
store i32 %48, i32* %49
%50 = load i32*, i32** %11
%51 = load i32, i32* %50
%52 = load i32, i32* %18
%53 = call i32 @_mm_xor_si128(i32 %51, i32 %52)
%54 = load i32*, i32** %11
store i32 %53, i32* %54
%55 = load i32*, i32** %12
%56 = load i32, i32* %55
%57 = load i32, i32* %18
%58 = call i32 @_mm_xor_si128(i32 %56, i32 %57)
%59 = load i32*, i32** %12
store i32 %58, i32* %59
%60 = load i32*, i32** %13
%61 = load i32, i32* %60
%62 = load i32, i32* %18
%63 = call i32 @_mm_xor_si128(i32 %61, i32 %62)
%64 = load i32*, i32** %13
store i32 %63, i32* %64
%65 = load i32*, i32** %9
%66 = load i32, i32* %65
%67 = load i32, i32* %18
%68 = call i32 @_mm_xor_si128(i32 %66, i32 %67)
%69 = load i32*, i32** %9
store i32 %68, i32* %69
%70 = load i32*, i32** %14
%71 = load i32, i32* %70
%72 = load i32, i32* %18
%73 = call i32 @_mm_xor_si128(i32 %71, i32 %72)
%74 = load i32*, i32** %14
store i32 %73, i32* %74
%75 = load i32*, i32** %10
%76 = load i32*, i32** %11
%77 = load i32*, i32** %12
%78 = load i32*, i32** %13
%79 = call i32 @GetBaseDelta(i32* %75, i32* %76, i32* %77, i32* %78, i32* %19)
%80 = load i32, i32* %20
%81 = load i32*, i32** %15
%82 = load i32, i32* %81
%83 = call i32 @_mm_andnot_si128(i32 %80, i32 %82)
store i32 %83, i32* %21
%84 = load i32, i32* %19
%85 = load i32, i32* %21
%86 = call i32 @_mm_and_si128(i32 %84, i32 %85)
store i32 %86, i32* %22
%87 = load i32*, i32** %11
%88 = load i32*, i32** %12
%89 = call i32 @DoSimpleFilter(i32* %87, i32* %88, i32* %22)
%90 = call i32 @_mm_set1_epi16(i32 2304)
store i32 %90, i32* %23
%91 = call i32 @_mm_set1_epi16(i32 63)
store i32 %91, i32* %24
%92 = load i32, i32* %20
%93 = load i32*, i32** %15
%94 = load i32, i32* %93
%95 = call i32 @_mm_and_si128(i32 %92, i32 %94)
store i32 %95, i32* %25
%96 = load i32, i32* %19
%97 = load i32, i32* %25
%98 = call i32 @_mm_and_si128(i32 %96, i32 %97)
store i32 %98, i32* %26
%99 = load i32, i32* %17
%100 = load i32, i32* %26
%101 = call i32 @_mm_unpacklo_epi8(i32 %99, i32 %100)
store i32 %101, i32* %27
%102 = load i32, i32* %17
%103 = load i32, i32* %26
%104 = call i32 @_mm_unpackhi_epi8(i32 %102, i32 %103)
store i32 %104, i32* %28
%105 = load i32, i32* %27
%106 = load i32, i32* %23
%107 = call i32 @_mm_mulhi_epi16(i32 %105, i32 %106)
store i32 %107, i32* %29
%108 = load i32, i32* %28
%109 = load i32, i32* %23
%110 = call i32 @_mm_mulhi_epi16(i32 %108, i32 %109)
store i32 %110, i32* %30
%111 = load i32, i32* %29
%112 = load i32, i32* %24
%113 = call i32 @_mm_add_epi16(i32 %111, i32 %112)
store i32 %113, i32* %31
%114 = load i32, i32* %30
%115 = load i32, i32* %24
%116 = call i32 @_mm_add_epi16(i32 %114, i32 %115)
store i32 %116, i32* %32
%117 = load i32, i32* %31
%118 = load i32, i32* %29
%119 = call i32 @_mm_add_epi16(i32 %117, i32 %118)
store i32 %119, i32* %33
%120 = load i32, i32* %32
%121 = load i32, i32* %30
%122 = call i32 @_mm_add_epi16(i32 %120, i32 %121)
store i32 %122, i32* %34
%123 = load i32, i32* %33
%124 = load i32, i32* %29
%125 = call i32 @_mm_add_epi16(i32 %123, i32 %124)
store i32 %125, i32* %35
%126 = load i32, i32* %34
%127 = load i32, i32* %30
%128 = call i32 @_mm_add_epi16(i32 %126, i32 %127)
store i32 %128, i32* %36
%129 = load i32*, i32** %9
%130 = load i32*, i32** %14
%131 = call i32 @Update2Pixels(i32* %129, i32* %130, i32* %31, i32* %32)
%132 = load i32*, i32** %10
%133 = load i32*, i32** %13
%134 = call i32 @Update2Pixels(i32* %132, i32* %133, i32* %33, i32* %34)
%135 = load i32*, i32** %11
%136 = load i32*, i32** %12
%137 = call i32 @Update2Pixels(i32* %135, i32* %136, i32* %35, i32* %36)
ret void
}

LLVM IR (-O2):
define void @DoFilter6(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* nocapture %6, i32 %7) {
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = tail call i32 (...) @_mm_setzero_si128()
%19 = tail call i32 @_mm_set1_epi8(i32 128)
%20 = bitcast i32* %9 to i8*
%21 = bitcast i32* %10 to i8*
%22 = call i32 @GetNotHEV(i32* %1, i32* %2, i32* %3, i32* %4, i32 %7, i32* %10)
%23 = load i32, i32* %1
%24 = call i32 @_mm_xor_si128(i32 %23, i32 %19)
store i32 %24, i32* %1
%25 = load i32, i32* %2
%26 = call i32 @_mm_xor_si128(i32 %25, i32 %19)
store i32 %26, i32* %2
%27 = load i32, i32* %3
%28 = call i32 @_mm_xor_si128(i32 %27, i32 %19)
store i32 %28, i32* %3
%29 = load i32, i32* %4
%30 = call i32 @_mm_xor_si128(i32 %29, i32 %19)
store i32 %30, i32* %4
%31 = load i32, i32* %0
%32 = call i32 @_mm_xor_si128(i32 %31, i32 %19)
store i32 %32, i32* %0
%33 = load i32, i32* %5
%34 = call i32 @_mm_xor_si128(i32 %33, i32 %19)
store i32 %34, i32* %5
%35 = call i32 @GetBaseDelta(i32* %1, i32* %2, i32* %3, i32* %4, i32* %9)
%36 = load i32, i32* %10
%37 = load i32, i32* %6
%38 = call i32 @_mm_andnot_si128(i32 %36, i32 %37)
%39 = bitcast i32* %11 to i8*
%40 = load i32, i32* %9
%41 = call i32 @_mm_and_si128(i32 %40, i32 %38)
store i32 %41, i32* %11
%42 = call i32 @DoSimpleFilter(i32* %2, i32* %3, i32* %11)
%43 = call i32 @_mm_set1_epi16(i32 2304)
%44 = call i32 @_mm_set1_epi16(i32 63)
%45 = load i32, i32* %10
%46 = load i32, i32* %6
%47 = call i32 @_mm_and_si128(i32 %45, i32 %46)
%48 = load i32, i32* %9
%49 = call i32 @_mm_and_si128(i32 %48, i32 %47)
%50 = call i32 @_mm_unpacklo_epi8(i32 %18, i32 %49)
%51 = call i32 @_mm_unpackhi_epi8(i32 %18, i32 %49)
%52 = call i32 @_mm_mulhi_epi16(i32 %50, i32 %43)
%53 = call i32 @_mm_mulhi_epi16(i32 %51, i32 %43)
%54 = bitcast i32* %12 to i8*
%55 = call i32 @_mm_add_epi16(i32 %52, i32 %44)
store i32 %55, i32* %12
%56 = bitcast i32* %13 to i8*
%57 = call i32 @_mm_add_epi16(i32 %53, i32 %44)
store i32 %57, i32* %13
%58 = bitcast i32* %14 to i8*
%59 = call i32 @_mm_add_epi16(i32 %55, i32 %52)
store i32 %59, i32* %14
%60 = bitcast i32* %15 to i8*
%61 = call i32 @_mm_add_epi16(i32 %57, i32 %53)
store i32 %61, i32* %15
%62 = bitcast i32* %16 to i8*
%63 = call i32 @_mm_add_epi16(i32 %59, i32 %52)
store i32 %63, i32* %16
%64 = bitcast i32* %17 to i8*
%65 = call i32 @_mm_add_epi16(i32 %61, i32 %53)
store i32 %65, i32* %17
%66 = call i32 @Update2Pixels(i32* %0, i32* %5, i32* %12, i32* %13)
%67 = call i32 @Update2Pixels(i32* %1, i32* %4, i32* %14, i32* %15)
%68 = call i32 @Update2Pixels(i32* %2, i32* %3, i32* %16, i32* %17)
ret void
}