#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*/ _mm_and_si128(int /*<<< orphan*/, int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_packus_epi16(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_set1_epi16(int);
int /*<<< orphan*/ _mm_srli_epi16(int /*<<< orphan*/, int);
void VP8PlanarTo24b_SSE2(__m128i *const in0, __m128i *const in1,
                         __m128i *const in2, __m128i *const in3,
                         __m128i *const in4, __m128i *const in5) {
  __m128i tmp0, tmp1, tmp2, tmp3, tmp4, tmp5;
  do {
    const __m128i v_mask = _mm_set1_epi16(0x00ff);
    (tmp0) = _mm_packus_epi16(_mm_and_si128((*in0), v_mask),
                              _mm_and_si128((*in1), v_mask));
    (tmp1) = _mm_packus_epi16(_mm_and_si128((*in2), v_mask),
                              _mm_and_si128((*in3), v_mask));
    (tmp2) = _mm_packus_epi16(_mm_and_si128((*in4), v_mask),
                              _mm_and_si128((*in5), v_mask));
    (tmp3) =
        _mm_packus_epi16(_mm_srli_epi16((*in0), 8), _mm_srli_epi16((*in1), 8));
    (tmp4) =
        _mm_packus_epi16(_mm_srli_epi16((*in2), 8), _mm_srli_epi16((*in3), 8));
    (tmp5) =
        _mm_packus_epi16(_mm_srli_epi16((*in4), 8), _mm_srli_epi16((*in5), 8));
  } while (0);
  do {
    const __m128i v_mask = _mm_set1_epi16(0x00ff);
    (*in0) = _mm_packus_epi16(_mm_and_si128((tmp0), v_mask),
                              _mm_and_si128((tmp1), v_mask));
    (*in1) = _mm_packus_epi16(_mm_and_si128((tmp2), v_mask),
                              _mm_and_si128((tmp3), v_mask));
    (*in2) = _mm_packus_epi16(_mm_and_si128((tmp4), v_mask),
                              _mm_and_si128((tmp5), v_mask));
    (*in3) =
        _mm_packus_epi16(_mm_srli_epi16((tmp0), 8), _mm_srli_epi16((tmp1), 8));
    (*in4) =
        _mm_packus_epi16(_mm_srli_epi16((tmp2), 8), _mm_srli_epi16((tmp3), 8));
    (*in5) =
        _mm_packus_epi16(_mm_srli_epi16((tmp4), 8), _mm_srli_epi16((tmp5), 8));
  } while (0);
  do {
    const __m128i v_mask = _mm_set1_epi16(0x00ff);
    (tmp0) = _mm_packus_epi16(_mm_and_si128((*in0), v_mask),
                              _mm_and_si128((*in1), v_mask));
    (tmp1) = _mm_packus_epi16(_mm_and_si128((*in2), v_mask),
                              _mm_and_si128((*in3), v_mask));
    (tmp2) = _mm_packus_epi16(_mm_and_si128((*in4), v_mask),
                              _mm_and_si128((*in5), v_mask));
    (tmp3) =
        _mm_packus_epi16(_mm_srli_epi16((*in0), 8), _mm_srli_epi16((*in1), 8));
    (tmp4) =
        _mm_packus_epi16(_mm_srli_epi16((*in2), 8), _mm_srli_epi16((*in3), 8));
    (tmp5) =
        _mm_packus_epi16(_mm_srli_epi16((*in4), 8), _mm_srli_epi16((*in5), 8));
  } while (0);
  {
    __m128i out0, out1, out2, out3, out4, out5;
    do {
      const __m128i v_mask = _mm_set1_epi16(0x00ff);
      (out0) = _mm_packus_epi16(_mm_and_si128((tmp0), v_mask),
                                _mm_and_si128((tmp1), v_mask));
      (out1) = _mm_packus_epi16(_mm_and_si128((tmp2), v_mask),
                                _mm_and_si128((tmp3), v_mask));
      (out2) = _mm_packus_epi16(_mm_and_si128((tmp4), v_mask),
                                _mm_and_si128((tmp5), v_mask));
      (out3) = _mm_packus_epi16(_mm_srli_epi16((tmp0), 8),
                                _mm_srli_epi16((tmp1), 8));
      (out4) = _mm_packus_epi16(_mm_srli_epi16((tmp2), 8),
                                _mm_srli_epi16((tmp3), 8));
      (out5) = _mm_packus_epi16(_mm_srli_epi16((tmp4), 8),
                                _mm_srli_epi16((tmp5), 8));
    } while (0);
    do {
      const __m128i v_mask = _mm_set1_epi16(0x00ff);
      (*in0) = _mm_packus_epi16(_mm_and_si128((out0), v_mask),
                                _mm_and_si128((out1), v_mask));
      (*in1) = _mm_packus_epi16(_mm_and_si128((out2), v_mask),
                                _mm_and_si128((out3), v_mask));
      (*in2) = _mm_packus_epi16(_mm_and_si128((out4), v_mask),
                                _mm_and_si128((out5), v_mask));
      (*in3) = _mm_packus_epi16(_mm_srli_epi16((out0), 8),
                                _mm_srli_epi16((out1), 8));
      (*in4) = _mm_packus_epi16(_mm_srli_epi16((out2), 8),
                                _mm_srli_epi16((out3), 8));
      (*in5) = _mm_packus_epi16(_mm_srli_epi16((out4), 8),
                                _mm_srli_epi16((out5), 8));
    } while (0);
  }
}


x86 assembly (clang, -O0):
<VP8PlanarTo24b_SSE2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
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    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0x8c(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0x8c(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0x88(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0x88(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0x84(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%edi
mov    -0x4c(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0x84(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0x80(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0x80(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0x7c(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0x7c(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0x78(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0x78(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x48(%rbp)
jmp    129b <VP8PlanarTo24b_SSE2+0x15b>
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,-0x50(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xa4(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xa4(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x3c(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xa0(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xa0(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0x9c(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x50(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0x9c(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x34(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0x98(%rbp)
mov    -0x38(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0x98(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x3c(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0x94(%rbp)
mov    -0x40(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0x94(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0x90(%rbp)
mov    -0x48(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0x90(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
jmp    13df <VP8PlanarTo24b_SSE2+0x29f>
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,-0x54(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xbc(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xbc(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x34(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xb8(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xb8(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xb4(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%edi
mov    -0x54(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xb4(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xb0(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xb0(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xac(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xac(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x44(%rbp)
mov    -0x28(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xa8(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xa8(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x48(%rbp)
jmp    1529 <VP8PlanarTo24b_SSE2+0x3e9>
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,-0x70(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xd4(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xd4(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x58(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xd0(%rbp)
mov    -0x40(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xd0(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x44(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xcc(%rbp)
mov    -0x48(%rbp),%edi
mov    -0x70(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xcc(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x60(%rbp)
mov    -0x34(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xc8(%rbp)
mov    -0x38(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xc8(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x64(%rbp)
mov    -0x3c(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xc4(%rbp)
mov    -0x40(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xc4(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x68(%rbp)
mov    -0x44(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xc0(%rbp)
mov    -0x48(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xc0(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,-0x6c(%rbp)
jmp    164f <VP8PlanarTo24b_SSE2+0x50f>
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,-0x74(%rbp)
mov    -0x58(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xec(%rbp)
mov    -0x5c(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xec(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x60(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xe8(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xe8(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x68(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,-0xe4(%rbp)
mov    -0x6c(%rbp),%edi
mov    -0x74(%rbp),%esi
call   1060 <_mm_and_si128@plt>
mov    -0xe4(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x58(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xe0(%rbp)
mov    -0x5c(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xe0(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x60(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xdc(%rbp)
mov    -0x64(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xdc(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x68(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,-0xd8(%rbp)
mov    -0x6c(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    -0xd8(%rbp),%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<VP8PlanarTo24b_SSE2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x40(%rsp)
mov    %r8,0x28(%rsp)
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%r14
mov    %rsi,0x20(%rsp)
mov    %rdi,%rbp
mov    %rdi,0x30(%rsp)
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,%ebx
mov    0x0(%rbp),%edi
mov    %eax,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%r13d
mov    (%r14),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %r13d,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x14(%rsp)
mov    (%r12),%edi
mov    %r12,0x38(%rsp)
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    (%r15),%edi
mov    %r15,%r13
mov    %r15,0x48(%rsp)
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x1c(%rsp)
mov    0x28(%rsp),%r14
mov    (%r14),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    0x40(%rsp),%r15
mov    (%r15),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0xc(%rsp)
mov    0x30(%rsp),%rbp
mov    0x0(%rbp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    0x20(%rsp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x8(%rsp)
mov    (%r12),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    0x0(%r13),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x10(%rsp)
mov    (%r14),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    (%r15),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%ebx
mov    %eax,0x18(%rsp)
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,%r14d
mov    0x14(%rsp),%r12d
mov    %r12d,%edi
mov    %eax,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%r15d
mov    0x1c(%rsp),%r13d
mov    %r13d,%edi
mov    %r14d,%esi
call   1060 <_mm_and_si128@plt>
mov    %r15d,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x0(%rbp)
mov    0xc(%rsp),%r15d
mov    %r15d,%edi
mov    %r14d,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%edi
mov    %r14d,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x10(%rsp),%edi
mov    %r14d,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x38(%rsp),%rcx
mov    %eax,(%rcx)
mov    %r12d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebp
mov    %r13d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x48(%rsp),%r12
mov    %eax,(%r12)
mov    %r15d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x28(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x10(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebp
mov    0x18(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x40(%rsp),%r14
mov    %eax,(%r14)
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,%ebx
mov    0x30(%rsp),%r15
mov    (%r15),%edi
mov    %eax,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    0x20(%rsp),%rax
mov    (%rax),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x8(%rsp)
mov    0x38(%rsp),%r13
mov    0x0(%r13),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    (%r12),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0xc(%rsp)
mov    0x28(%rsp),%r12
mov    (%r12),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebp
mov    (%r14),%edi
mov    %ebx,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x54(%rsp)
mov    (%r15),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    0x20(%rsp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x50(%rsp)
mov    0x0(%r13),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    0x48(%rsp),%rax
mov    (%rax),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x10(%rsp)
mov    (%r12),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    (%r14),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%r14d
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,%ebp
mov    0x8(%rsp),%edi
mov    %eax,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    0xc(%rsp),%r15d
mov    %r15d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x1c(%rsp)
mov    0x54(%rsp),%r13d
mov    %r13d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    0x50(%rsp),%r12d
mov    %r12d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x18(%rsp)
mov    0x10(%rsp),%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x14(%rsp)
mov    0x8(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0xc(%rsp)
mov    %r13d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,0x8(%rsp)
mov    0x10(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    %eax,%r14d
mov    $0xff,%edi
call   1050 <_mm_set1_epi16@plt>
mov    %eax,%ebp
mov    0x1c(%rsp),%r13d
mov    %r13d,%edi
mov    %eax,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    0x18(%rsp),%r15d
mov    %r15d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x30(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x14(%rsp),%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    0xc(%rsp),%r12d
mov    %r12d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x8(%rsp),%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    %ebp,%esi
call   1060 <_mm_and_si128@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x38(%rsp),%rcx
mov    %eax,(%rcx)
mov    %r13d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x48(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x14(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x28(%rsp),%rcx
mov    %eax,(%rcx)
mov    0x8(%rsp),%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    $0x8,%esi
call   1040 <_mm_srli_epi16@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <_mm_packus_epi16@plt>
mov    0x40(%rsp),%rcx
mov    %eax,(%rcx)
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @VP8PlanarTo24b_SSE2(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture %5) {
%7 = tail call i32 @_mm_set1_epi16(i32 255)
%8 = load i32, i32* %0
%9 = tail call i32 @_mm_and_si128(i32 %8, i32 %7)
%10 = load i32, i32* %1
%11 = tail call i32 @_mm_and_si128(i32 %10, i32 %7)
%12 = tail call i32 @_mm_packus_epi16(i32 %9, i32 %11)
%13 = load i32, i32* %2
%14 = tail call i32 @_mm_and_si128(i32 %13, i32 %7)
%15 = load i32, i32* %3
%16 = tail call i32 @_mm_and_si128(i32 %15, i32 %7)
%17 = tail call i32 @_mm_packus_epi16(i32 %14, i32 %16)
%18 = load i32, i32* %4
%19 = tail call i32 @_mm_and_si128(i32 %18, i32 %7)
%20 = load i32, i32* %5
%21 = tail call i32 @_mm_and_si128(i32 %20, i32 %7)
%22 = tail call i32 @_mm_packus_epi16(i32 %19, i32 %21)
%23 = load i32, i32* %0
%24 = tail call i32 @_mm_srli_epi16(i32 %23, i32 8)
%25 = load i32, i32* %1
%26 = tail call i32 @_mm_srli_epi16(i32 %25, i32 8)
%27 = tail call i32 @_mm_packus_epi16(i32 %24, i32 %26)
%28 = load i32, i32* %2
%29 = tail call i32 @_mm_srli_epi16(i32 %28, i32 8)
%30 = load i32, i32* %3
%31 = tail call i32 @_mm_srli_epi16(i32 %30, i32 8)
%32 = tail call i32 @_mm_packus_epi16(i32 %29, i32 %31)
%33 = load i32, i32* %4
%34 = tail call i32 @_mm_srli_epi16(i32 %33, i32 8)
%35 = load i32, i32* %5
%36 = tail call i32 @_mm_srli_epi16(i32 %35, i32 8)
%37 = tail call i32 @_mm_packus_epi16(i32 %34, i32 %36)
%38 = tail call i32 @_mm_set1_epi16(i32 255)
%39 = tail call i32 @_mm_and_si128(i32 %12, i32 %38)
%40 = tail call i32 @_mm_and_si128(i32 %17, i32 %38)
%41 = tail call i32 @_mm_packus_epi16(i32 %39, i32 %40)
store i32 %41, i32* %0
%42 = tail call i32 @_mm_and_si128(i32 %22, i32 %38)
%43 = tail call i32 @_mm_and_si128(i32 %27, i32 %38)
%44 = tail call i32 @_mm_packus_epi16(i32 %42, i32 %43)
store i32 %44, i32* %1
%45 = tail call i32 @_mm_and_si128(i32 %32, i32 %38)
%46 = tail call i32 @_mm_and_si128(i32 %37, i32 %38)
%47 = tail call i32 @_mm_packus_epi16(i32 %45, i32 %46)
store i32 %47, i32* %2
%48 = tail call i32 @_mm_srli_epi16(i32 %12, i32 8)
%49 = tail call i32 @_mm_srli_epi16(i32 %17, i32 8)
%50 = tail call i32 @_mm_packus_epi16(i32 %48, i32 %49)
store i32 %50, i32* %3
%51 = tail call i32 @_mm_srli_epi16(i32 %22, i32 8)
%52 = tail call i32 @_mm_srli_epi16(i32 %27, i32 8)
%53 = tail call i32 @_mm_packus_epi16(i32 %51, i32 %52)
store i32 %53, i32* %4
%54 = tail call i32 @_mm_srli_epi16(i32 %32, i32 8)
%55 = tail call i32 @_mm_srli_epi16(i32 %37, i32 8)
%56 = tail call i32 @_mm_packus_epi16(i32 %54, i32 %55)
store i32 %56, i32* %5
%57 = tail call i32 @_mm_set1_epi16(i32 255)
%58 = load i32, i32* %0
%59 = tail call i32 @_mm_and_si128(i32 %58, i32 %57)
%60 = load i32, i32* %1
%61 = tail call i32 @_mm_and_si128(i32 %60, i32 %57)
%62 = tail call i32 @_mm_packus_epi16(i32 %59, i32 %61)
%63 = load i32, i32* %2
%64 = tail call i32 @_mm_and_si128(i32 %63, i32 %57)
%65 = load i32, i32* %3
%66 = tail call i32 @_mm_and_si128(i32 %65, i32 %57)
%67 = tail call i32 @_mm_packus_epi16(i32 %64, i32 %66)
%68 = load i32, i32* %4
%69 = tail call i32 @_mm_and_si128(i32 %68, i32 %57)
%70 = load i32, i32* %5
%71 = tail call i32 @_mm_and_si128(i32 %70, i32 %57)
%72 = tail call i32 @_mm_packus_epi16(i32 %69, i32 %71)
%73 = load i32, i32* %0
%74 = tail call i32 @_mm_srli_epi16(i32 %73, i32 8)
%75 = load i32, i32* %1
%76 = tail call i32 @_mm_srli_epi16(i32 %75, i32 8)
%77 = tail call i32 @_mm_packus_epi16(i32 %74, i32 %76)
%78 = load i32, i32* %2
%79 = tail call i32 @_mm_srli_epi16(i32 %78, i32 8)
%80 = load i32, i32* %3
%81 = tail call i32 @_mm_srli_epi16(i32 %80, i32 8)
%82 = tail call i32 @_mm_packus_epi16(i32 %79, i32 %81)
%83 = load i32, i32* %4
%84 = tail call i32 @_mm_srli_epi16(i32 %83, i32 8)
%85 = load i32, i32* %5
%86 = tail call i32 @_mm_srli_epi16(i32 %85, i32 8)
%87 = tail call i32 @_mm_packus_epi16(i32 %84, i32 %86)
%88 = tail call i32 @_mm_set1_epi16(i32 255)
%89 = tail call i32 @_mm_and_si128(i32 %62, i32 %88)
%90 = tail call i32 @_mm_and_si128(i32 %67, i32 %88)
%91 = tail call i32 @_mm_packus_epi16(i32 %89, i32 %90)
%92 = tail call i32 @_mm_and_si128(i32 %72, i32 %88)
%93 = tail call i32 @_mm_and_si128(i32 %77, i32 %88)
%94 = tail call i32 @_mm_packus_epi16(i32 %92, i32 %93)
%95 = tail call i32 @_mm_and_si128(i32 %82, i32 %88)
%96 = tail call i32 @_mm_and_si128(i32 %87, i32 %88)
%97 = tail call i32 @_mm_packus_epi16(i32 %95, i32 %96)
%98 = tail call i32 @_mm_srli_epi16(i32 %62, i32 8)
%99 = tail call i32 @_mm_srli_epi16(i32 %67, i32 8)
%100 = tail call i32 @_mm_packus_epi16(i32 %98, i32 %99)
%101 = tail call i32 @_mm_srli_epi16(i32 %72, i32 8)
%102 = tail call i32 @_mm_srli_epi16(i32 %77, i32 8)
%103 = tail call i32 @_mm_packus_epi16(i32 %101, i32 %102)
%104 = tail call i32 @_mm_srli_epi16(i32 %82, i32 8)
%105 = tail call i32 @_mm_srli_epi16(i32 %87, i32 8)
%106 = tail call i32 @_mm_packus_epi16(i32 %104, i32 %105)
%107 = tail call i32 @_mm_set1_epi16(i32 255)
%108 = tail call i32 @_mm_and_si128(i32 %91, i32 %107)
%109 = tail call i32 @_mm_and_si128(i32 %94, i32 %107)
%110 = tail call i32 @_mm_packus_epi16(i32 %108, i32 %109)
store i32 %110, i32* %0
%111 = tail call i32 @_mm_and_si128(i32 %97, i32 %107)
%112 = tail call i32 @_mm_and_si128(i32 %100, i32 %107)
%113 = tail call i32 @_mm_packus_epi16(i32 %111, i32 %112)
store i32 %113, i32* %1
%114 = tail call i32 @_mm_and_si128(i32 %103, i32 %107)
%115 = tail call i32 @_mm_and_si128(i32 %106, i32 %107)
%116 = tail call i32 @_mm_packus_epi16(i32 %114, i32 %115)
store i32 %116, i32* %2
%117 = tail call i32 @_mm_srli_epi16(i32 %91, i32 8)
%118 = tail call i32 @_mm_srli_epi16(i32 %94, i32 8)
%119 = tail call i32 @_mm_packus_epi16(i32 %117, i32 %118)
store i32 %119, i32* %3
%120 = tail call i32 @_mm_srli_epi16(i32 %97, i32 8)
%121 = tail call i32 @_mm_srli_epi16(i32 %100, i32 8)
%122 = tail call i32 @_mm_packus_epi16(i32 %120, i32 %121)
store i32 %122, i32* %4
%123 = tail call i32 @_mm_srli_epi16(i32 %103, i32 8)
%124 = tail call i32 @_mm_srli_epi16(i32 %106, i32 8)
%125 = tail call i32 @_mm_packus_epi16(i32 %123, i32 %124)
store i32 %125, i32* %5
ret void
}