#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 */
typedef struct TYPE_23__ TYPE_1__;

/* Type definitions */
struct TYPE_23__ {
  int member_0;
  int member_1;
};
typedef TYPE_1__ __m128i;

/* Variables and functions */
TYPE_1__ _mm_add_epi16(TYPE_1__, TYPE_1__);
TYPE_1__ _mm_madd_epi16(TYPE_1__, TYPE_1__);
TYPE_1__ _mm_mulhi_epi16(TYPE_1__, TYPE_1__ const);
TYPE_1__ _mm_shufflehi_epi16(TYPE_1__, int);
TYPE_1__ _mm_shufflelo_epi16(TYPE_1__, int);
TYPE_1__ _mm_slli_epi16(TYPE_1__, int);
TYPE_1__ _mm_srai_epi32(TYPE_1__, int);
int /*<<< orphan*/ print_xmm16(char *, TYPE_1__ *);
int /*<<< orphan*/ print_xmm32(char *, TYPE_1__ *);
extern void nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2(
    __m128i *in_2_v16i_y_uv_vectors, __m128i *out_3_v16i_rgb_vectors) {
  static const __m128i yCoeffs = {0x4A7F4A7F4A7F4A7FLL, 0x4A7F4A7F4A7F4A7FLL};
  __m128i uvRCoeffs = {0x00CC000000CC0000LL, 0x00CC000000CC0000LL};
  __m128i uvGCoeffs = {0xFF98FFCEFF98FFCELL, 0xFF98FFCEFF98FFCELL};
  __m128i uvBCoeffs = {0x0000010200000102LL, 0x0000010200000102LL};
  __m128i uvVect = {0xFF80FF80FF80FF80LL, 0xFF80FF80FF80FF80LL};
  __m128i yVect = {0xFFF0FFF0FFF0FFF0LL, 0xFFF0FFF0FFF0FFF0LL};
  (uvVect) = _mm_add_epi16(in_2_v16i_y_uv_vectors[1], (uvVect));
  (yVect) = _mm_add_epi16(in_2_v16i_y_uv_vectors[0], (yVect));
  print_xmm16("Y - off", &yVect);
  print_xmm16("UV - off", &uvVect);
  (yVect) = _mm_slli_epi16((yVect), 2);
  (yVect) = _mm_mulhi_epi16((yVect), (yCoeffs));
  print_xmm16("(Y - off) * 1.164", &yVect);
  (uvRCoeffs) = _mm_madd_epi16((uvVect), (uvRCoeffs));
  (uvRCoeffs) = _mm_srai_epi32((uvRCoeffs), 7);
  print_xmm32("(U - off)*0 + (V - off) * 1.596", &uvRCoeffs);
  (uvRCoeffs) = _mm_shufflehi_epi16((uvRCoeffs), 0xA0);
  (uvRCoeffs) = _mm_shufflelo_epi16((uvRCoeffs), 0xA0);
  print_xmm16("(U - off)*0 + (V - off) * 1.596", &uvRCoeffs);
  out_3_v16i_rgb_vectors[0] = _mm_add_epi16((yVect), (uvRCoeffs));
  (uvGCoeffs) = _mm_madd_epi16((uvVect), (uvGCoeffs));
  (uvGCoeffs) = _mm_srai_epi32((uvGCoeffs), 7);
  (uvGCoeffs) = _mm_shufflehi_epi16((uvGCoeffs), 0xA0);
  (uvGCoeffs) = _mm_shufflelo_epi16((uvGCoeffs), 0xA0);
  out_3_v16i_rgb_vectors[1] = _mm_add_epi16((yVect), (uvGCoeffs));
  (uvBCoeffs) = _mm_madd_epi16((uvVect), (uvBCoeffs));
  (uvBCoeffs) = _mm_srai_epi32((uvBCoeffs), 7);
  print_xmm32("(U-off)*2.017 + (V-off)*0", &uvBCoeffs);
  (uvBCoeffs) = _mm_shufflehi_epi16((uvBCoeffs), 0xA0);
  (uvBCoeffs) = _mm_shufflelo_epi16((uvBCoeffs), 0xA0);
  print_xmm16("(U-off)*2.017 + (V-off)*0", &uvBCoeffs);
  out_3_v16i_rgb_vectors[2] = _mm_add_epi16((yVect), (uvBCoeffs));
}


x86 assembly (clang, -O0):
<nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xe5e(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe5b(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe58(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe55(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe52(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xe16(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   1090 <print_xmm16@plt>
lea    0xe0e(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   1090 <print_xmm16@plt>
mov    -0x38(%rbp),%rdi
mov    $0x2,%esi
call   10b0 <_mm_slli_epi16@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    0xda8(%rip),%rsi
call   1050 <_mm_mulhi_epi16@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xdd1(%rip),%rdi
lea    -0x38(%rbp),%rsi
call   1090 <print_xmm16@plt>
mov    -0x30(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1080 <_mm_madd_epi16@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x7,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xda0(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <print_xmm32@plt>
mov    -0x18(%rbp),%rdi
mov    $0xa0,%esi
call   10a0 <_mm_shufflehi_epi16@plt>
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0xa0,%esi
call   1060 <_mm_shufflelo_epi16@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xd5c(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1090 <print_xmm16@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,%rcx
mov    -0xe8(%rbp),%rax
mov    %rcx,-0x80(%rbp)
mov    -0x80(%rbp),%rcx
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1080 <_mm_madd_epi16@plt>
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x7,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0xa0,%esi
call   10a0 <_mm_shufflehi_epi16@plt>
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0xa0,%esi
call   1060 <_mm_shufflelo_epi16@plt>
mov    %rax,-0xa0(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,%rcx
mov    -0xe0(%rbp),%rax
mov    %rcx,-0xa8(%rbp)
mov    -0xa8(%rbp),%rcx
mov    %rcx,0x8(%rax)
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1080 <_mm_madd_epi16@plt>
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x7,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    0xc4d(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <print_xmm32@plt>
mov    -0x28(%rbp),%rdi
mov    $0xa0,%esi
call   10a0 <_mm_shufflehi_epi16@plt>
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0xa0,%esi
call   1060 <_mm_shufflelo_epi16@plt>
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    0xbfd(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1090 <print_xmm16@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,%rcx
mov    -0xd8(%rbp),%rax
mov    %rcx,-0xd0(%rbp)
mov    -0xd0(%rbp),%rcx
mov    %rcx,0x10(%rax)
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
mov    0x8(%rdi),%rdi
movabs $0xff80ff80ff80ff80,%rsi
ff 80 ff
call   1030 <_mm_add_epi16@plt>
mov    %rax,0x18(%rsp)
mov    (%rbx),%rdi
movabs $0xfff0fff0fff0fff0,%rsi
ff f0 ff
call   1030 <_mm_add_epi16@plt>
mov    %rax,(%rsp)
lea    0xe2c(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1090 <print_xmm16@plt>
lea    0xe22(%rip),%rdi
lea    0x18(%rsp),%rsi
call   1090 <print_xmm16@plt>
mov    (%rsp),%rdi
mov    $0x2,%esi
call   10b0 <_mm_slli_epi16@plt>
mov    %rax,(%rsp)
movabs $0x4a7f4a7f4a7f4a7f,%rsi
4a 7f 4a
mov    %rax,%rdi
call   1050 <_mm_mulhi_epi16@plt>
mov    %rax,(%rsp)
lea    0xdf2(%rip),%rdi
mov    %rbx,%rsi
call   1090 <print_xmm16@plt>
mov    0x18(%rsp),%rdi
movabs $0xcc000000cc0000,%rsi
call   1080 <_mm_madd_epi16@plt>
mov    %rax,%rdi
mov    $0x7,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x10(%rsp)
lea    0xdcf(%rip),%rbx
lea    0x10(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <print_xmm32@plt>
mov    0x10(%rsp),%rdi
mov    $0xa0,%esi
call   10a0 <_mm_shufflehi_epi16@plt>
mov    %rax,0x10(%rsp)
mov    %rax,%rdi
mov    $0xa0,%esi
call   1060 <_mm_shufflelo_epi16@plt>
mov    %rax,0x10(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1090 <print_xmm16@plt>
mov    (%rsp),%rdi
mov    0x10(%rsp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,(%r14)
mov    0x18(%rsp),%rdi
movabs $0xff98ffceff98ffce,%rsi
ff 98 ff
call   1080 <_mm_madd_epi16@plt>
mov    %rax,%rdi
mov    $0x7,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,%rdi
mov    $0xa0,%esi
call   10a0 <_mm_shufflehi_epi16@plt>
mov    %rax,%rdi
mov    $0xa0,%esi
call   1060 <_mm_shufflelo_epi16@plt>
mov    (%rsp),%rdi
mov    %rax,%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,0x8(%r14)
mov    0x18(%rsp),%rdi
movabs $0x10200000102,%rsi
call   1080 <_mm_madd_epi16@plt>
mov    %rax,%rdi
mov    $0x7,%esi
call   1070 <_mm_srai_epi32@plt>
mov    %rax,0x8(%rsp)
lea    0xd25(%rip),%rbx
lea    0x8(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <print_xmm32@plt>
mov    0x8(%rsp),%rdi
mov    $0xa0,%esi
call   10a0 <_mm_shufflehi_epi16@plt>
mov    %rax,0x8(%rsp)
mov    %rax,%rdi
mov    $0xa0,%esi
call   1060 <_mm_shufflelo_epi16@plt>
mov    %rax,0x8(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1090 <print_xmm16@plt>
mov    (%rsp),%rdi
mov    0x8(%rsp),%rsi
call   1030 <_mm_add_epi16@plt>
mov    %rax,0x10(%r14)
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.TYPE_23__ = type { i32, i32 }
@nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.yCoeffs = internal constant %struct.TYPE_23__ { i32 1249856127, i32 1249856127 }
@__const.nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.uvRCoeffs = %struct.TYPE_23__ { i32 13369344, i32 13369344 }
@__const.nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.uvGCoeffs = %struct.TYPE_23__ { i32 -6750258, i32 -6750258 }
@__const.nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.uvBCoeffs = %struct.TYPE_23__ { i32 258, i32 258 }
@__const.nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.uvVect = %struct.TYPE_23__ { i32 -8323200, i32 -8323200 }
@__const.nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.yVect = %struct.TYPE_23__ { i32 -983056, i32 -983056 }
@.str = [8 x i8] c"Y - off\00"
@.str.1 = [9 x i8] c"UV - off\00"
@.str.2 = [18 x i8] c"(Y - off) * 1.164\00"
@.str.3 = [32 x i8] c"(U - off)*0 + (V - off) * 1.596\00"
@.str.4 = [26 x i8] c"(U-off)*2.017 + (V-off)*0\00"
define void @nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2(%struct.TYPE_23__* %0, %struct.TYPE_23__* %1) {
%3 = alloca %struct.TYPE_23__*
%4 = alloca %struct.TYPE_23__*
%5 = alloca %struct.TYPE_23__
%6 = alloca %struct.TYPE_23__
%7 = alloca %struct.TYPE_23__
%8 = alloca %struct.TYPE_23__
%9 = alloca %struct.TYPE_23__
%10 = alloca %struct.TYPE_23__
%11 = alloca %struct.TYPE_23__
%12 = alloca %struct.TYPE_23__
%13 = alloca %struct.TYPE_23__
%14 = alloca %struct.TYPE_23__
%15 = alloca %struct.TYPE_23__
%16 = alloca %struct.TYPE_23__
%17 = alloca %struct.TYPE_23__
%18 = alloca %struct.TYPE_23__
%19 = alloca %struct.TYPE_23__
%20 = alloca %struct.TYPE_23__
%21 = alloca %struct.TYPE_23__
%22 = alloca %struct.TYPE_23__
%23 = alloca %struct.TYPE_23__
%24 = alloca %struct.TYPE_23__
%25 = alloca %struct.TYPE_23__
%26 = alloca %struct.TYPE_23__
%27 = alloca %struct.TYPE_23__
%28 = alloca %struct.TYPE_23__
store %struct.TYPE_23__* %0, %struct.TYPE_23__** %3
store %struct.TYPE_23__* %1, %struct.TYPE_23__** %4
%29 = bitcast %struct.TYPE_23__* %5 to i8*
%30 = bitcast %struct.TYPE_23__* %6 to i8*
%31 = bitcast %struct.TYPE_23__* %7 to i8*
%32 = bitcast %struct.TYPE_23__* %8 to i8*
%33 = bitcast %struct.TYPE_23__* %9 to i8*
%34 = load %struct.TYPE_23__*, %struct.TYPE_23__** %3
%35 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %34, i64 1
%36 = bitcast %struct.TYPE_23__* %35 to i64*
%37 = load i64, i64* %36
%38 = bitcast %struct.TYPE_23__* %8 to i64*
%39 = load i64, i64* %38
%40 = call i64 @_mm_add_epi16(i64 %37, i64 %39)
%41 = bitcast %struct.TYPE_23__* %10 to i64*
store i64 %40, i64* %41
%42 = bitcast %struct.TYPE_23__* %8 to i8*
%43 = bitcast %struct.TYPE_23__* %10 to i8*
%44 = load %struct.TYPE_23__*, %struct.TYPE_23__** %3
%45 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %44, i64 0
%46 = bitcast %struct.TYPE_23__* %45 to i64*
%47 = load i64, i64* %46
%48 = bitcast %struct.TYPE_23__* %9 to i64*
%49 = load i64, i64* %48
%50 = call i64 @_mm_add_epi16(i64 %47, i64 %49)
%51 = bitcast %struct.TYPE_23__* %11 to i64*
store i64 %50, i64* %51
%52 = bitcast %struct.TYPE_23__* %9 to i8*
%53 = bitcast %struct.TYPE_23__* %11 to i8*
%54 = call i32 @print_xmm16(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %struct.TYPE_23__* %9)
%55 = call i32 @print_xmm16(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %struct.TYPE_23__* %8)
%56 = bitcast %struct.TYPE_23__* %9 to i64*
%57 = load i64, i64* %56
%58 = call i64 @_mm_slli_epi16(i64 %57, i32 2)
%59 = bitcast %struct.TYPE_23__* %12 to i64*
store i64 %58, i64* %59
%60 = bitcast %struct.TYPE_23__* %9 to i8*
%61 = bitcast %struct.TYPE_23__* %12 to i8*
%62 = bitcast %struct.TYPE_23__* %9 to i64*
%63 = load i64, i64* %62
%64 = load i64, i64* bitcast (%struct.TYPE_23__* @nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2.yCoeffs to i64*)
%65 = call i64 @_mm_mulhi_epi16(i64 %63, i64 %64)
%66 = bitcast %struct.TYPE_23__* %13 to i64*
store i64 %65, i64* %66
%67 = bitcast %struct.TYPE_23__* %9 to i8*
%68 = bitcast %struct.TYPE_23__* %13 to i8*
%69 = call i32 @print_xmm16(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), %struct.TYPE_23__* %9)
%70 = bitcast %struct.TYPE_23__* %8 to i64*
%71 = load i64, i64* %70
%72 = bitcast %struct.TYPE_23__* %5 to i64*
%73 = load i64, i64* %72
%74 = call i64 @_mm_madd_epi16(i64 %71, i64 %73)
%75 = bitcast %struct.TYPE_23__* %14 to i64*
store i64 %74, i64* %75
%76 = bitcast %struct.TYPE_23__* %5 to i8*
%77 = bitcast %struct.TYPE_23__* %14 to i8*
%78 = bitcast %struct.TYPE_23__* %5 to i64*
%79 = load i64, i64* %78
%80 = call i64 @_mm_srai_epi32(i64 %79, i32 7)
%81 = bitcast %struct.TYPE_23__* %15 to i64*
store i64 %80, i64* %81
%82 = bitcast %struct.TYPE_23__* %5 to i8*
%83 = bitcast %struct.TYPE_23__* %15 to i8*
%84 = call i32 @print_xmm32(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), %struct.TYPE_23__* %5)
%85 = bitcast %struct.TYPE_23__* %5 to i64*
%86 = load i64, i64* %85
%87 = call i64 @_mm_shufflehi_epi16(i64 %86, i32 160)
%88 = bitcast %struct.TYPE_23__* %16 to i64*
store i64 %87, i64* %88
%89 = bitcast %struct.TYPE_23__* %5 to i8*
%90 = bitcast %struct.TYPE_23__* %16 to i8*
%91 = bitcast %struct.TYPE_23__* %5 to i64*
%92 = load i64, i64* %91
%93 = call i64 @_mm_shufflelo_epi16(i64 %92, i32 160)
%94 = bitcast %struct.TYPE_23__* %17 to i64*
store i64 %93, i64* %94
%95 = bitcast %struct.TYPE_23__* %5 to i8*
%96 = bitcast %struct.TYPE_23__* %17 to i8*
%97 = call i32 @print_xmm16(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), %struct.TYPE_23__* %5)
%98 = load %struct.TYPE_23__*, %struct.TYPE_23__** %4
%99 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %98, i64 0
%100 = bitcast %struct.TYPE_23__* %9 to i64*
%101 = load i64, i64* %100
%102 = bitcast %struct.TYPE_23__* %5 to i64*
%103 = load i64, i64* %102
%104 = call i64 @_mm_add_epi16(i64 %101, i64 %103)
%105 = bitcast %struct.TYPE_23__* %18 to i64*
store i64 %104, i64* %105
%106 = bitcast %struct.TYPE_23__* %99 to i8*
%107 = bitcast %struct.TYPE_23__* %18 to i8*
%108 = bitcast %struct.TYPE_23__* %8 to i64*
%109 = load i64, i64* %108
%110 = bitcast %struct.TYPE_23__* %6 to i64*
%111 = load i64, i64* %110
%112 = call i64 @_mm_madd_epi16(i64 %109, i64 %111)
%113 = bitcast %struct.TYPE_23__* %19 to i64*
store i64 %112, i64* %113
%114 = bitcast %struct.TYPE_23__* %6 to i8*
%115 = bitcast %struct.TYPE_23__* %19 to i8*
%116 = bitcast %struct.TYPE_23__* %6 to i64*
%117 = load i64, i64* %116
%118 = call i64 @_mm_srai_epi32(i64 %117, i32 7)
%119 = bitcast %struct.TYPE_23__* %20 to i64*
store i64 %118, i64* %119
%120 = bitcast %struct.TYPE_23__* %6 to i8*
%121 = bitcast %struct.TYPE_23__* %20 to i8*
%122 = bitcast %struct.TYPE_23__* %6 to i64*
%123 = load i64, i64* %122
%124 = call i64 @_mm_shufflehi_epi16(i64 %123, i32 160)
%125 = bitcast %struct.TYPE_23__* %21 to i64*
store i64 %124, i64* %125
%126 = bitcast %struct.TYPE_23__* %6 to i8*
%127 = bitcast %struct.TYPE_23__* %21 to i8*
%128 = bitcast %struct.TYPE_23__* %6 to i64*
%129 = load i64, i64* %128
%130 = call i64 @_mm_shufflelo_epi16(i64 %129, i32 160)
%131 = bitcast %struct.TYPE_23__* %22 to i64*
store i64 %130, i64* %131
%132 = bitcast %struct.TYPE_23__* %6 to i8*
%133 = bitcast %struct.TYPE_23__* %22 to i8*
%134 = load %struct.TYPE_23__*, %struct.TYPE_23__** %4
%135 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %134, i64 1
%136 = bitcast %struct.TYPE_23__* %9 to i64*
%137 = load i64, i64* %136
%138 = bitcast %struct.TYPE_23__* %6 to i64*
%139 = load i64, i64* %138
%140 = call i64 @_mm_add_epi16(i64 %137, i64 %139)
%141 = bitcast %struct.TYPE_23__* %23 to i64*
store i64 %140, i64* %141
%142 = bitcast %struct.TYPE_23__* %135 to i8*
%143 = bitcast %struct.TYPE_23__* %23 to i8*
%144 = bitcast %struct.TYPE_23__* %8 to i64*
%145 = load i64, i64* %144
%146 = bitcast %struct.TYPE_23__* %7 to i64*
%147 = load i64, i64* %146
%148 = call i64 @_mm_madd_epi16(i64 %145, i64 %147)
%149 = bitcast %struct.TYPE_23__* %24 to i64*
store i64 %148, i64* %149
%150 = bitcast %struct.TYPE_23__* %7 to i8*
%151 = bitcast %struct.TYPE_23__* %24 to i8*
%152 = bitcast %struct.TYPE_23__* %7 to i64*
%153 = load i64, i64* %152
%154 = call i64 @_mm_srai_epi32(i64 %153, i32 7)
%155 = bitcast %struct.TYPE_23__* %25 to i64*
store i64 %154, i64* %155
%156 = bitcast %struct.TYPE_23__* %7 to i8*
%157 = bitcast %struct.TYPE_23__* %25 to i8*
%158 = call i32 @print_xmm32(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %struct.TYPE_23__* %7)
%159 = bitcast %struct.TYPE_23__* %7 to i64*
%160 = load i64, i64* %159
%161 = call i64 @_mm_shufflehi_epi16(i64 %160, i32 160)
%162 = bitcast %struct.TYPE_23__* %26 to i64*
store i64 %161, i64* %162
%163 = bitcast %struct.TYPE_23__* %7 to i8*
%164 = bitcast %struct.TYPE_23__* %26 to i8*
%165 = bitcast %struct.TYPE_23__* %7 to i64*
%166 = load i64, i64* %165
%167 = call i64 @_mm_shufflelo_epi16(i64 %166, i32 160)
%168 = bitcast %struct.TYPE_23__* %27 to i64*
store i64 %167, i64* %168
%169 = bitcast %struct.TYPE_23__* %7 to i8*
%170 = bitcast %struct.TYPE_23__* %27 to i8*
%171 = call i32 @print_xmm16(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %struct.TYPE_23__* %7)
%172 = load %struct.TYPE_23__*, %struct.TYPE_23__** %4
%173 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %172, i64 2
%174 = bitcast %struct.TYPE_23__* %9 to i64*
%175 = load i64, i64* %174
%176 = bitcast %struct.TYPE_23__* %7 to i64*
%177 = load i64, i64* %176
%178 = call i64 @_mm_add_epi16(i64 %175, i64 %177)
%179 = bitcast %struct.TYPE_23__* %28 to i64*
store i64 %178, i64* %179
%180 = bitcast %struct.TYPE_23__* %173 to i8*
%181 = bitcast %struct.TYPE_23__* %28 to i8*
ret void
}

LLVM IR (-O2):
%struct.TYPE_23__ = type { i32, i32 }
@.str = [8 x i8] c"Y - off\00"
@.str.1 = [9 x i8] c"UV - off\00"
@.str.2 = [18 x i8] c"(Y - off) * 1.164\00"
@.str.3 = [32 x i8] c"(U - off)*0 + (V - off) * 1.596\00"
@.str.4 = [26 x i8] c"(U-off)*2.017 + (V-off)*0\00"
define void @nnb_upsample_n_convert_y_uv_vectors_to_rgb_vectors_bt601_sse2(%struct.TYPE_23__* nocapture %0, %struct.TYPE_23__* nocapture writeonly %1) {
%3 = alloca i64
%4 = bitcast i64* %3 to %struct.TYPE_23__*
%5 = alloca i64
%6 = bitcast i64* %5 to %struct.TYPE_23__*
%7 = alloca i64
%8 = bitcast i64* %7 to %struct.TYPE_23__*
%9 = alloca i64
%10 = bitcast i64* %9 to %struct.TYPE_23__*
%11 = bitcast i64* %3 to i8*
%12 = bitcast i64* %5 to i8*
%13 = bitcast i64* %7 to i8*
%14 = bitcast i64* %9 to i8*
%15 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %0, i64 1
%16 = bitcast %struct.TYPE_23__* %15 to i64*
%17 = load i64, i64* %16
%18 = tail call i64 @_mm_add_epi16(i64 %17, i64 -35747867511423104)
store i64 %18, i64* %7
%19 = bitcast %struct.TYPE_23__* %0 to i64*
%20 = load i64, i64* %19
%21 = tail call i64 @_mm_add_epi16(i64 %20, i64 -4222189076152336)
store i64 %21, i64* %9
%22 = call i32 @print_xmm16(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %struct.TYPE_23__* %10)
%23 = call i32 @print_xmm16(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), %struct.TYPE_23__* %8)
%24 = load i64, i64* %9
%25 = call i64 @_mm_slli_epi16(i64 %24, i32 2)
store i64 %25, i64* %9
%26 = call i64 @_mm_mulhi_epi16(i64 %25, i64 5368091191420078719)
store i64 %26, i64* %9
%27 = call i32 @print_xmm16(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), %struct.TYPE_23__* %10)
%28 = load i64, i64* %7
%29 = call i64 @_mm_madd_epi16(i64 %28, i64 57420895262343168)
%30 = call i64 @_mm_srai_epi32(i64 %29, i32 7)
store i64 %30, i64* %3
%31 = call i32 @print_xmm32(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), %struct.TYPE_23__* %4)
%32 = load i64, i64* %3
%33 = call i64 @_mm_shufflehi_epi16(i64 %32, i32 160)
store i64 %33, i64* %3
%34 = call i64 @_mm_shufflelo_epi16(i64 %33, i32 160)
store i64 %34, i64* %3
%35 = call i32 @print_xmm16(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), %struct.TYPE_23__* %4)
%36 = load i64, i64* %9
%37 = load i64, i64* %3
%38 = call i64 @_mm_add_epi16(i64 %36, i64 %37)
%39 = bitcast %struct.TYPE_23__* %1 to i64*
store i64 %38, i64* %39
%40 = load i64, i64* %7
%41 = call i64 @_mm_madd_epi16(i64 %40, i64 -28992133061345330)
%42 = call i64 @_mm_srai_epi32(i64 %41, i32 7)
%43 = call i64 @_mm_shufflehi_epi16(i64 %42, i32 160)
%44 = call i64 @_mm_shufflelo_epi16(i64 %43, i32 160)
%45 = load i64, i64* %9
%46 = call i64 @_mm_add_epi16(i64 %45, i64 %44)
%47 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %1, i64 1
%48 = bitcast %struct.TYPE_23__* %47 to i64*
store i64 %46, i64* %48
%49 = load i64, i64* %7
%50 = call i64 @_mm_madd_epi16(i64 %49, i64 1108101562626)
%51 = call i64 @_mm_srai_epi32(i64 %50, i32 7)
store i64 %51, i64* %5
%52 = call i32 @print_xmm32(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %struct.TYPE_23__* %6)
%53 = load i64, i64* %5
%54 = call i64 @_mm_shufflehi_epi16(i64 %53, i32 160)
store i64 %54, i64* %5
%55 = call i64 @_mm_shufflelo_epi16(i64 %54, i32 160)
store i64 %55, i64* %5
%56 = call i32 @print_xmm16(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %struct.TYPE_23__* %6)
%57 = load i64, i64* %9
%58 = load i64, i64* %5
%59 = call i64 @_mm_add_epi16(i64 %57, i64 %58)
%60 = getelementptr inbounds %struct.TYPE_23__, %struct.TYPE_23__* %1, i64 2
%61 = bitcast %struct.TYPE_23__* %60 to i64*
store i64 %59, i64* %61
ret void
}