#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_17__ TYPE_1__;

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

/* Variables and functions */
TYPE_1__ _mm_and_si128(TYPE_1__, TYPE_1__ const);
TYPE_1__ _mm_packs_epi32(TYPE_1__, TYPE_1__);
int /*<<< orphan*/ _mm_packus_epi16(TYPE_1__, TYPE_1__);
TYPE_1__ _mm_srli_si128(TYPE_1__, int);
int /*<<< orphan*/ _mm_storeu_si128(TYPE_1__ *, int /*<<< orphan*/);
extern void unaligned_dst_repack_uyvy_to_yuv422p_sse2(__m128i *input,
                                                      __m128i *y_output,
                                                      __m128i *u_output,
                                                      __m128i *v_output) {
  static const __m128i mask_luma = {0xFF00FF00FF00FF00LL, 0xFF00FF00FF00FF00LL};
  static const __m128i mask_cb = {0x000000FF000000FFLL, 0x000000FF000000FFLL};
  static const __m128i mask_cr = {0x00FF000000FF0000LL, 0x00FF000000FF0000LL};
  __m128i scratch = {0x0LL, 0x0LL};
  __m128i scratch2 = {0x0LL, 0x0LL};
  __m128i scratch3 = {0x0LL, 0x0LL};
  ;
  (scratch) = _mm_and_si128((input)[0], (mask_luma));
  (scratch) = _mm_srli_si128((scratch), 1);
  (scratch2) = _mm_and_si128((input)[1], (mask_luma));
  (scratch2) = _mm_srli_si128((scratch2), 1);
  _mm_storeu_si128(&(y_output[0]), (_mm_packus_epi16((scratch), (scratch2))));
  (scratch) = _mm_and_si128((input)[2], (mask_luma));
  (scratch) = _mm_srli_si128((scratch), 1);
  (scratch2) = _mm_and_si128((input)[3], (mask_luma));
  (scratch2) = _mm_srli_si128((scratch2), 1);
  _mm_storeu_si128(&(y_output[1]), (_mm_packus_epi16((scratch), (scratch2))));
  (scratch) = _mm_and_si128((input)[0], (mask_cb));
  (scratch2) = _mm_and_si128((input)[1], (mask_cb));
  (scratch) = _mm_packs_epi32((scratch), (scratch2));
  (scratch2) = _mm_and_si128((input)[2], (mask_cb));
  (scratch3) = _mm_and_si128((input)[3], (mask_cb));
  (scratch2) = _mm_packs_epi32((scratch2), (scratch3));
  _mm_storeu_si128(&(*u_output), (_mm_packus_epi16((scratch), (scratch2))));
  (scratch) = _mm_and_si128((input)[0], (mask_cr));
  (scratch) = _mm_srli_si128((scratch), 2);
  (scratch2) = _mm_and_si128((input)[1], (mask_cr));
  (scratch2) = _mm_srli_si128((scratch2), 2);
  (scratch) = _mm_packs_epi32((scratch), (scratch2));
  (scratch2) = _mm_and_si128((input)[2], (mask_cr));
  (scratch2) = _mm_srli_si128((scratch2), 2);
  (scratch3) = _mm_and_si128((input)[3], (mask_cr));
  (scratch3) = _mm_srli_si128((scratch3), 2);
  (scratch2) = _mm_packs_epi32((scratch2), (scratch3));
  _mm_storeu_si128(&(*v_output), (_mm_packus_epi16((scratch), (scratch2))));
}


x86 assembly (clang, -O0):
<unaligned_dst_repack_uyvy_to_yuv422p_sse2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    -0x28(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
lea    -0x38(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1050 <memset@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    0xe47(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0xe0d(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x1,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <_mm_packus_epi16@plt>
mov    -0x118(%rbp),%rdi
mov    %eax,%esi
call   1070 <_mm_storeu_si128@plt>
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0xdad(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rdi
mov    0xd73(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x1,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x110(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <_mm_packus_epi16@plt>
mov    -0x110(%rbp),%rdi
mov    %eax,%esi
call   1070 <_mm_storeu_si128@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    0xd18(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0xcf8(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0xcb3(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rdi
mov    0xc8d(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0xa0(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <_mm_packus_epi16@plt>
mov    -0x108(%rbp),%rdi
mov    %eax,%esi
call   1070 <_mm_storeu_si128@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    0xc2b(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x2,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0xbe5(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x2,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %rax,-0xd0(%rbp)
mov    -0xd0(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0xb80(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0xd8(%rbp)
mov    -0xd8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x2,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%rdi
mov    0xb3a(%rip),%rsi
call   1080 <_mm_and_si128@plt>
mov    %rax,-0xe8(%rbp)
mov    -0xe8(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    $0x2,%esi
call   1060 <_mm_srli_si128@plt>
mov    %rax,-0xf0(%rbp)
mov    -0xf0(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %rax,-0xf8(%rbp)
mov    -0xf8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <_mm_packus_epi16@plt>
mov    -0x100(%rbp),%rdi
mov    %eax,%esi
call   1070 <_mm_storeu_si128@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unaligned_dst_repack_uyvy_to_yuv422p_sse2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
mov    (%rdi),%rdi
movabs $0xff00ff00ff00ff00,%r13
mov    %r13,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x1,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rax,%rbp
mov    0x8(%rbx),%rdi
mov    %r13,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x1,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <_mm_packus_epi16@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1060 <_mm_storeu_si128@plt>
mov    0x10(%rbx),%rdi
mov    %r13,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x1,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rax,%rbp
mov    0x18(%rbx),%rdi
mov    %r13,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x1,%esi
call   1050 <_mm_srli_si128@plt>
add    $0x8,%r12
mov    %rbp,%rdi
mov    %rax,%rsi
call   1030 <_mm_packus_epi16@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1060 <_mm_storeu_si128@plt>
mov    (%rbx),%rdi
movabs $0xff000000ff,%r12
mov    %r12,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rbp
mov    0x8(%rbx),%rdi
mov    %r12,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %rax,%r13
mov    0x10(%rbx),%rdi
mov    %r12,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rbp
mov    0x18(%rbx),%rdi
mov    %r12,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %r13,%rdi
mov    %rax,%rsi
call   1030 <_mm_packus_epi16@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1060 <_mm_storeu_si128@plt>
mov    (%rbx),%rdi
movabs $0xff000000ff0000,%r15
mov    %r15,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x2,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rax,%rbp
mov    0x8(%rbx),%rdi
mov    %r15,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x2,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %rax,%r12
mov    0x10(%rbx),%rdi
mov    %r15,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x2,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rax,%rbp
mov    0x18(%rbx),%rdi
mov    %r15,%rsi
call   1070 <_mm_and_si128@plt>
mov    %rax,%rdi
mov    $0x2,%esi
call   1050 <_mm_srli_si128@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
call   1040 <_mm_packs_epi32@plt>
mov    %r12,%rdi
mov    %rax,%rsi
call   1030 <_mm_packus_epi16@plt>
mov    %r14,%rdi
mov    %eax,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <_mm_storeu_si128@plt>

LLVM IR (-O0):
%struct.TYPE_17__ = type { i32, i32 }
@unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_luma = internal constant %struct.TYPE_17__ { i32 -16711936, i32 -16711936 }
@unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cb = internal constant %struct.TYPE_17__ { i32 255, i32 255 }
@unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cr = internal constant %struct.TYPE_17__ { i32 16711680, i32 16711680 }
define void @unaligned_dst_repack_uyvy_to_yuv422p_sse2(%struct.TYPE_17__* %0, %struct.TYPE_17__* %1, %struct.TYPE_17__* %2, %struct.TYPE_17__* %3) {
%5 = alloca %struct.TYPE_17__*
%6 = alloca %struct.TYPE_17__*
%7 = alloca %struct.TYPE_17__*
%8 = alloca %struct.TYPE_17__*
%9 = alloca %struct.TYPE_17__
%10 = alloca %struct.TYPE_17__
%11 = alloca %struct.TYPE_17__
%12 = alloca %struct.TYPE_17__
%13 = alloca %struct.TYPE_17__
%14 = alloca %struct.TYPE_17__
%15 = alloca %struct.TYPE_17__
%16 = alloca %struct.TYPE_17__
%17 = alloca %struct.TYPE_17__
%18 = alloca %struct.TYPE_17__
%19 = alloca %struct.TYPE_17__
%20 = alloca %struct.TYPE_17__
%21 = alloca %struct.TYPE_17__
%22 = alloca %struct.TYPE_17__
%23 = alloca %struct.TYPE_17__
%24 = alloca %struct.TYPE_17__
%25 = alloca %struct.TYPE_17__
%26 = alloca %struct.TYPE_17__
%27 = alloca %struct.TYPE_17__
%28 = alloca %struct.TYPE_17__
%29 = alloca %struct.TYPE_17__
%30 = alloca %struct.TYPE_17__
%31 = alloca %struct.TYPE_17__
%32 = alloca %struct.TYPE_17__
%33 = alloca %struct.TYPE_17__
%34 = alloca %struct.TYPE_17__
%35 = alloca %struct.TYPE_17__
store %struct.TYPE_17__* %0, %struct.TYPE_17__** %5
store %struct.TYPE_17__* %1, %struct.TYPE_17__** %6
store %struct.TYPE_17__* %2, %struct.TYPE_17__** %7
store %struct.TYPE_17__* %3, %struct.TYPE_17__** %8
%36 = bitcast %struct.TYPE_17__* %9 to i8*
%37 = bitcast %struct.TYPE_17__* %10 to i8*
%38 = bitcast %struct.TYPE_17__* %11 to i8*
%39 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%40 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %39, i64 0
%41 = bitcast %struct.TYPE_17__* %40 to i64*
%42 = load i64, i64* %41
%43 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_luma to i64*)
%44 = call i64 @_mm_and_si128(i64 %42, i64 %43)
%45 = bitcast %struct.TYPE_17__* %12 to i64*
store i64 %44, i64* %45
%46 = bitcast %struct.TYPE_17__* %9 to i8*
%47 = bitcast %struct.TYPE_17__* %12 to i8*
%48 = bitcast %struct.TYPE_17__* %9 to i64*
%49 = load i64, i64* %48
%50 = call i64 @_mm_srli_si128(i64 %49, i32 1)
%51 = bitcast %struct.TYPE_17__* %13 to i64*
store i64 %50, i64* %51
%52 = bitcast %struct.TYPE_17__* %9 to i8*
%53 = bitcast %struct.TYPE_17__* %13 to i8*
%54 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%55 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %54, i64 1
%56 = bitcast %struct.TYPE_17__* %55 to i64*
%57 = load i64, i64* %56
%58 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_luma to i64*)
%59 = call i64 @_mm_and_si128(i64 %57, i64 %58)
%60 = bitcast %struct.TYPE_17__* %14 to i64*
store i64 %59, i64* %60
%61 = bitcast %struct.TYPE_17__* %10 to i8*
%62 = bitcast %struct.TYPE_17__* %14 to i8*
%63 = bitcast %struct.TYPE_17__* %10 to i64*
%64 = load i64, i64* %63
%65 = call i64 @_mm_srli_si128(i64 %64, i32 1)
%66 = bitcast %struct.TYPE_17__* %15 to i64*
store i64 %65, i64* %66
%67 = bitcast %struct.TYPE_17__* %10 to i8*
%68 = bitcast %struct.TYPE_17__* %15 to i8*
%69 = load %struct.TYPE_17__*, %struct.TYPE_17__** %6
%70 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %69, i64 0
%71 = bitcast %struct.TYPE_17__* %9 to i64*
%72 = load i64, i64* %71
%73 = bitcast %struct.TYPE_17__* %10 to i64*
%74 = load i64, i64* %73
%75 = call i32 @_mm_packus_epi16(i64 %72, i64 %74)
%76 = call i32 @_mm_storeu_si128(%struct.TYPE_17__* %70, i32 %75)
%77 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%78 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %77, i64 2
%79 = bitcast %struct.TYPE_17__* %78 to i64*
%80 = load i64, i64* %79
%81 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_luma to i64*)
%82 = call i64 @_mm_and_si128(i64 %80, i64 %81)
%83 = bitcast %struct.TYPE_17__* %16 to i64*
store i64 %82, i64* %83
%84 = bitcast %struct.TYPE_17__* %9 to i8*
%85 = bitcast %struct.TYPE_17__* %16 to i8*
%86 = bitcast %struct.TYPE_17__* %9 to i64*
%87 = load i64, i64* %86
%88 = call i64 @_mm_srli_si128(i64 %87, i32 1)
%89 = bitcast %struct.TYPE_17__* %17 to i64*
store i64 %88, i64* %89
%90 = bitcast %struct.TYPE_17__* %9 to i8*
%91 = bitcast %struct.TYPE_17__* %17 to i8*
%92 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%93 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %92, i64 3
%94 = bitcast %struct.TYPE_17__* %93 to i64*
%95 = load i64, i64* %94
%96 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_luma to i64*)
%97 = call i64 @_mm_and_si128(i64 %95, i64 %96)
%98 = bitcast %struct.TYPE_17__* %18 to i64*
store i64 %97, i64* %98
%99 = bitcast %struct.TYPE_17__* %10 to i8*
%100 = bitcast %struct.TYPE_17__* %18 to i8*
%101 = bitcast %struct.TYPE_17__* %10 to i64*
%102 = load i64, i64* %101
%103 = call i64 @_mm_srli_si128(i64 %102, i32 1)
%104 = bitcast %struct.TYPE_17__* %19 to i64*
store i64 %103, i64* %104
%105 = bitcast %struct.TYPE_17__* %10 to i8*
%106 = bitcast %struct.TYPE_17__* %19 to i8*
%107 = load %struct.TYPE_17__*, %struct.TYPE_17__** %6
%108 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %107, i64 1
%109 = bitcast %struct.TYPE_17__* %9 to i64*
%110 = load i64, i64* %109
%111 = bitcast %struct.TYPE_17__* %10 to i64*
%112 = load i64, i64* %111
%113 = call i32 @_mm_packus_epi16(i64 %110, i64 %112)
%114 = call i32 @_mm_storeu_si128(%struct.TYPE_17__* %108, i32 %113)
%115 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%116 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %115, i64 0
%117 = bitcast %struct.TYPE_17__* %116 to i64*
%118 = load i64, i64* %117
%119 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cb to i64*)
%120 = call i64 @_mm_and_si128(i64 %118, i64 %119)
%121 = bitcast %struct.TYPE_17__* %20 to i64*
store i64 %120, i64* %121
%122 = bitcast %struct.TYPE_17__* %9 to i8*
%123 = bitcast %struct.TYPE_17__* %20 to i8*
%124 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%125 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %124, i64 1
%126 = bitcast %struct.TYPE_17__* %125 to i64*
%127 = load i64, i64* %126
%128 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cb to i64*)
%129 = call i64 @_mm_and_si128(i64 %127, i64 %128)
%130 = bitcast %struct.TYPE_17__* %21 to i64*
store i64 %129, i64* %130
%131 = bitcast %struct.TYPE_17__* %10 to i8*
%132 = bitcast %struct.TYPE_17__* %21 to i8*
%133 = bitcast %struct.TYPE_17__* %9 to i64*
%134 = load i64, i64* %133
%135 = bitcast %struct.TYPE_17__* %10 to i64*
%136 = load i64, i64* %135
%137 = call i64 @_mm_packs_epi32(i64 %134, i64 %136)
%138 = bitcast %struct.TYPE_17__* %22 to i64*
store i64 %137, i64* %138
%139 = bitcast %struct.TYPE_17__* %9 to i8*
%140 = bitcast %struct.TYPE_17__* %22 to i8*
%141 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%142 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %141, i64 2
%143 = bitcast %struct.TYPE_17__* %142 to i64*
%144 = load i64, i64* %143
%145 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cb to i64*)
%146 = call i64 @_mm_and_si128(i64 %144, i64 %145)
%147 = bitcast %struct.TYPE_17__* %23 to i64*
store i64 %146, i64* %147
%148 = bitcast %struct.TYPE_17__* %10 to i8*
%149 = bitcast %struct.TYPE_17__* %23 to i8*
%150 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%151 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %150, i64 3
%152 = bitcast %struct.TYPE_17__* %151 to i64*
%153 = load i64, i64* %152
%154 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cb to i64*)
%155 = call i64 @_mm_and_si128(i64 %153, i64 %154)
%156 = bitcast %struct.TYPE_17__* %24 to i64*
store i64 %155, i64* %156
%157 = bitcast %struct.TYPE_17__* %11 to i8*
%158 = bitcast %struct.TYPE_17__* %24 to i8*
%159 = bitcast %struct.TYPE_17__* %10 to i64*
%160 = load i64, i64* %159
%161 = bitcast %struct.TYPE_17__* %11 to i64*
%162 = load i64, i64* %161
%163 = call i64 @_mm_packs_epi32(i64 %160, i64 %162)
%164 = bitcast %struct.TYPE_17__* %25 to i64*
store i64 %163, i64* %164
%165 = bitcast %struct.TYPE_17__* %10 to i8*
%166 = bitcast %struct.TYPE_17__* %25 to i8*
%167 = load %struct.TYPE_17__*, %struct.TYPE_17__** %7
%168 = bitcast %struct.TYPE_17__* %9 to i64*
%169 = load i64, i64* %168
%170 = bitcast %struct.TYPE_17__* %10 to i64*
%171 = load i64, i64* %170
%172 = call i32 @_mm_packus_epi16(i64 %169, i64 %171)
%173 = call i32 @_mm_storeu_si128(%struct.TYPE_17__* %167, i32 %172)
%174 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%175 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %174, i64 0
%176 = bitcast %struct.TYPE_17__* %175 to i64*
%177 = load i64, i64* %176
%178 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cr to i64*)
%179 = call i64 @_mm_and_si128(i64 %177, i64 %178)
%180 = bitcast %struct.TYPE_17__* %26 to i64*
store i64 %179, i64* %180
%181 = bitcast %struct.TYPE_17__* %9 to i8*
%182 = bitcast %struct.TYPE_17__* %26 to i8*
%183 = bitcast %struct.TYPE_17__* %9 to i64*
%184 = load i64, i64* %183
%185 = call i64 @_mm_srli_si128(i64 %184, i32 2)
%186 = bitcast %struct.TYPE_17__* %27 to i64*
store i64 %185, i64* %186
%187 = bitcast %struct.TYPE_17__* %9 to i8*
%188 = bitcast %struct.TYPE_17__* %27 to i8*
%189 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%190 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %189, i64 1
%191 = bitcast %struct.TYPE_17__* %190 to i64*
%192 = load i64, i64* %191
%193 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cr to i64*)
%194 = call i64 @_mm_and_si128(i64 %192, i64 %193)
%195 = bitcast %struct.TYPE_17__* %28 to i64*
store i64 %194, i64* %195
%196 = bitcast %struct.TYPE_17__* %10 to i8*
%197 = bitcast %struct.TYPE_17__* %28 to i8*
%198 = bitcast %struct.TYPE_17__* %10 to i64*
%199 = load i64, i64* %198
%200 = call i64 @_mm_srli_si128(i64 %199, i32 2)
%201 = bitcast %struct.TYPE_17__* %29 to i64*
store i64 %200, i64* %201
%202 = bitcast %struct.TYPE_17__* %10 to i8*
%203 = bitcast %struct.TYPE_17__* %29 to i8*
%204 = bitcast %struct.TYPE_17__* %9 to i64*
%205 = load i64, i64* %204
%206 = bitcast %struct.TYPE_17__* %10 to i64*
%207 = load i64, i64* %206
%208 = call i64 @_mm_packs_epi32(i64 %205, i64 %207)
%209 = bitcast %struct.TYPE_17__* %30 to i64*
store i64 %208, i64* %209
%210 = bitcast %struct.TYPE_17__* %9 to i8*
%211 = bitcast %struct.TYPE_17__* %30 to i8*
%212 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%213 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %212, i64 2
%214 = bitcast %struct.TYPE_17__* %213 to i64*
%215 = load i64, i64* %214
%216 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cr to i64*)
%217 = call i64 @_mm_and_si128(i64 %215, i64 %216)
%218 = bitcast %struct.TYPE_17__* %31 to i64*
store i64 %217, i64* %218
%219 = bitcast %struct.TYPE_17__* %10 to i8*
%220 = bitcast %struct.TYPE_17__* %31 to i8*
%221 = bitcast %struct.TYPE_17__* %10 to i64*
%222 = load i64, i64* %221
%223 = call i64 @_mm_srli_si128(i64 %222, i32 2)
%224 = bitcast %struct.TYPE_17__* %32 to i64*
store i64 %223, i64* %224
%225 = bitcast %struct.TYPE_17__* %10 to i8*
%226 = bitcast %struct.TYPE_17__* %32 to i8*
%227 = load %struct.TYPE_17__*, %struct.TYPE_17__** %5
%228 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %227, i64 3
%229 = bitcast %struct.TYPE_17__* %228 to i64*
%230 = load i64, i64* %229
%231 = load i64, i64* bitcast (%struct.TYPE_17__* @unaligned_dst_repack_uyvy_to_yuv422p_sse2.mask_cr to i64*)
%232 = call i64 @_mm_and_si128(i64 %230, i64 %231)
%233 = bitcast %struct.TYPE_17__* %33 to i64*
store i64 %232, i64* %233
%234 = bitcast %struct.TYPE_17__* %11 to i8*
%235 = bitcast %struct.TYPE_17__* %33 to i8*
%236 = bitcast %struct.TYPE_17__* %11 to i64*
%237 = load i64, i64* %236
%238 = call i64 @_mm_srli_si128(i64 %237, i32 2)
%239 = bitcast %struct.TYPE_17__* %34 to i64*
store i64 %238, i64* %239
%240 = bitcast %struct.TYPE_17__* %11 to i8*
%241 = bitcast %struct.TYPE_17__* %34 to i8*
%242 = bitcast %struct.TYPE_17__* %10 to i64*
%243 = load i64, i64* %242
%244 = bitcast %struct.TYPE_17__* %11 to i64*
%245 = load i64, i64* %244
%246 = call i64 @_mm_packs_epi32(i64 %243, i64 %245)
%247 = bitcast %struct.TYPE_17__* %35 to i64*
store i64 %246, i64* %247
%248 = bitcast %struct.TYPE_17__* %10 to i8*
%249 = bitcast %struct.TYPE_17__* %35 to i8*
%250 = load %struct.TYPE_17__*, %struct.TYPE_17__** %8
%251 = bitcast %struct.TYPE_17__* %9 to i64*
%252 = load i64, i64* %251
%253 = bitcast %struct.TYPE_17__* %10 to i64*
%254 = load i64, i64* %253
%255 = call i32 @_mm_packus_epi16(i64 %252, i64 %254)
%256 = call i32 @_mm_storeu_si128(%struct.TYPE_17__* %250, i32 %255)
ret void
}

LLVM IR (-O2):
%struct.TYPE_17__ = type { i32, i32 }
define void @unaligned_dst_repack_uyvy_to_yuv422p_sse2(%struct.TYPE_17__* nocapture %0, %struct.TYPE_17__* %1, %struct.TYPE_17__* %2, %struct.TYPE_17__* %3) {
%5 = bitcast %struct.TYPE_17__* %0 to i64*
%6 = load i64, i64* %5
%7 = tail call i64 @_mm_and_si128(i64 %6, i64 -71777214294589696)
%8 = tail call i64 @_mm_srli_si128(i64 %7, i32 1)
%9 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %0, i64 1
%10 = bitcast %struct.TYPE_17__* %9 to i64*
%11 = load i64, i64* %10
%12 = tail call i64 @_mm_and_si128(i64 %11, i64 -71777214294589696)
%13 = tail call i64 @_mm_srli_si128(i64 %12, i32 1)
%14 = tail call i32 @_mm_packus_epi16(i64 %8, i64 %13)
%15 = tail call i32 @_mm_storeu_si128(%struct.TYPE_17__* %1, i32 %14)
%16 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %0, i64 2
%17 = bitcast %struct.TYPE_17__* %16 to i64*
%18 = load i64, i64* %17
%19 = tail call i64 @_mm_and_si128(i64 %18, i64 -71777214294589696)
%20 = tail call i64 @_mm_srli_si128(i64 %19, i32 1)
%21 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %0, i64 3
%22 = bitcast %struct.TYPE_17__* %21 to i64*
%23 = load i64, i64* %22
%24 = tail call i64 @_mm_and_si128(i64 %23, i64 -71777214294589696)
%25 = tail call i64 @_mm_srli_si128(i64 %24, i32 1)
%26 = getelementptr inbounds %struct.TYPE_17__, %struct.TYPE_17__* %1, i64 1
%27 = tail call i32 @_mm_packus_epi16(i64 %20, i64 %25)
%28 = tail call i32 @_mm_storeu_si128(%struct.TYPE_17__* %26, i32 %27)
%29 = load i64, i64* %5
%30 = tail call i64 @_mm_and_si128(i64 %29, i64 1095216660735)
%31 = load i64, i64* %10
%32 = tail call i64 @_mm_and_si128(i64 %31, i64 1095216660735)
%33 = tail call i64 @_mm_packs_epi32(i64 %30, i64 %32)
%34 = load i64, i64* %17
%35 = tail call i64 @_mm_and_si128(i64 %34, i64 1095216660735)
%36 = load i64, i64* %22
%37 = tail call i64 @_mm_and_si128(i64 %36, i64 1095216660735)
%38 = tail call i64 @_mm_packs_epi32(i64 %35, i64 %37)
%39 = tail call i32 @_mm_packus_epi16(i64 %33, i64 %38)
%40 = tail call i32 @_mm_storeu_si128(%struct.TYPE_17__* %2, i32 %39)
%41 = load i64, i64* %5
%42 = tail call i64 @_mm_and_si128(i64 %41, i64 71776119077928960)
%43 = tail call i64 @_mm_srli_si128(i64 %42, i32 2)
%44 = load i64, i64* %10
%45 = tail call i64 @_mm_and_si128(i64 %44, i64 71776119077928960)
%46 = tail call i64 @_mm_srli_si128(i64 %45, i32 2)
%47 = tail call i64 @_mm_packs_epi32(i64 %43, i64 %46)
%48 = load i64, i64* %17
%49 = tail call i64 @_mm_and_si128(i64 %48, i64 71776119077928960)
%50 = tail call i64 @_mm_srli_si128(i64 %49, i32 2)
%51 = load i64, i64* %22
%52 = tail call i64 @_mm_and_si128(i64 %51, i64 71776119077928960)
%53 = tail call i64 @_mm_srli_si128(i64 %52, i32 2)
%54 = tail call i64 @_mm_packs_epi32(i64 %50, i64 %53)
%55 = tail call i32 @_mm_packus_epi16(i64 %47, i64 %54)
%56 = tail call i32 @_mm_storeu_si128(%struct.TYPE_17__* %3, i32 %55)
ret void
}