LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: Predictor11_SSE2
static WEBP_INLINE uint32_t Select_SSE2(uint32_t a, uint32_t b, uint32_t c) {
  int pa_minus_pb;
  const __m128i zero = _mm_setzero_si128();
  const __m128i A0 = _mm_cvtsi32_si128((int)a);
  const __m128i B0 = _mm_cvtsi32_si128((int)b);
  const __m128i C0 = _mm_cvtsi32_si128((int)c);
  const __m128i AC0 = _mm_subs_epu8(A0, C0);
  const __m128i CA0 = _mm_subs_epu8(C0, A0);
  const __m128i BC0 = _mm_subs_epu8(B0, C0);
  const __m128i CB0 = _mm_subs_epu8(C0, B0);
  const __m128i AC = _mm_or_si128(AC0, CA0);
  const __m128i BC = _mm_or_si128(BC0, CB0);
  const __m128i pa = _mm_unpacklo_epi8(AC, zero);  // |a - c|
  const __m128i pb = _mm_unpacklo_epi8(BC, zero);  // |b - c|
  const __m128i diff = _mm_sub_epi16(pb, pa);
  {
    int16_t out[8];
    _mm_storeu_si128((__m128i*)out, diff);
    pa_minus_pb = out[0] + out[1] + out[2] + out[3];
  }
  return (pa_minus_pb <= 0) ? a : b;
}

// Assembly:
movd (%rsi), %xmm0
movd (%rdi), %xmm1
movd -0x4(%rsi), %xmm2
movdqa %xmm2, %xmm3
psubusb %xmm0, %xmm3
psubusb %xmm2, %xmm0
por %xmm3, %xmm0
movdqa %xmm1, %xmm3
psubusb %xmm2, %xmm3
psubusb %xmm1, %xmm2
por %xmm3, %xmm2
pxor %xmm1, %xmm1
punpcklbw %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
psubw %xmm0, %xmm2
punpcklwd %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1],xmm0[2],xmm2[2],xmm0[3],xmm2[3]
psrad $0x10, %xmm0
pshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
paddd %xmm0, %xmm1
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
paddd %xmm1, %xmm0
movd %xmm0, %eax
testl %eax, %eax
jg 0xd9846
movl (%rsi), %eax
retq
movl (%rdi), %eax
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: Predictor13_SSE2
static WEBP_INLINE uint32_t ClampedAddSubtractHalf_SSE2(uint32_t c0,
                                                        uint32_t c1,
                                                        uint32_t c2) {
  const __m128i zero = _mm_setzero_si128();
  const __m128i C0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128((int)c0), zero);
  const __m128i C1 = _mm_unpacklo_epi8(_mm_cvtsi32_si128((int)c1), zero);
  const __m128i B0 = _mm_unpacklo_epi8(_mm_cvtsi32_si128((int)c2), zero);
  const __m128i avg = _mm_add_epi16(C1, C0);
  const __m128i A0 = _mm_srli_epi16(avg, 1);
  const __m128i A1 = _mm_sub_epi16(A0, B0);
  const __m128i BgtA = _mm_cmpgt_epi16(B0, A0);
  const __m128i A2 = _mm_sub_epi16(A1, BgtA);
  const __m128i A3 = _mm_srai_epi16(A2, 1);
  const __m128i A4 = _mm_add_epi16(A0, A3);
  const __m128i A5 = _mm_packus_epi16(A4, A4);
  return (uint32_t)_mm_cvtsi128_si32(A5);
}

// Assembly:
movd (%rdi), %xmm0
punpcklbw %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
movd (%rsi), %xmm1
punpcklbw %xmm1, %xmm1    # xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
movd -0x4(%rsi), %xmm2
pxor %xmm3, %xmm3
punpcklbw %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1],xmm2[2],xmm3[2],xmm2[3],xmm3[3],xmm2[4],xmm3[4],xmm2[5],xmm3[5],xmm2[6],xmm3[6],xmm2[7],xmm3[7]
movdqa %xmm1, %xmm3
pand %xmm0, %xmm3
pxor %xmm0, %xmm1
psrlw $0x1, %xmm1
pand 0x3f323(%rip), %xmm1    # 0x118bd0
paddb %xmm3, %xmm1
pand 0x432f7(%rip), %xmm1    # 0x11cbb0
movdqa %xmm1, %xmm0
psubw %xmm2, %xmm0
pcmpgtw %xmm1, %xmm2
psubw %xmm2, %xmm0
psraw $0x1, %xmm0
paddw %xmm1, %xmm0
packuswb %xmm0, %xmm0
movd %xmm0, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: PredictorAdd0_SSE2
static void PredictorAdd0_SSE2(const uint32_t* in, const uint32_t* upper,
                               int num_pixels, uint32_t* out) {
  int i;
  const __m128i black = _mm_set1_epi32((int)ARGB_BLACK);
  for (i = 0; i + 4 <= num_pixels; i += 4) {
    const __m128i src = _mm_loadu_si128((const __m128i*)&in[i]);
    const __m128i res = _mm_add_epi8(src, black);
    _mm_storeu_si128((__m128i*)&out[i], res);
  }
  if (i != num_pixels) {
    VP8LPredictorsAdd_C[0](in + i, NULL, num_pixels - i, out + i);
  }
  (void)upper;
}

// Assembly:
movslq %edx, %r8
xorl %eax, %eax
movdqa 0x432e8(%rip), %xmm0    # 0x11cbd0
xorl %esi, %esi
leaq 0x4(%rsi), %r9
cmpq %r8, %r9
jg 0xd990a
movdqu (%rdi,%rsi,4), %xmm1
paddb %xmm0, %xmm1
movdqu %xmm1, (%rcx,%rsi,4)
addq $-0x10, %rax
movq %r9, %rsi
jmp 0xd98ea
cmpl %esi, %edx
jne 0xd990f
retq
leaq 0x97dfa(%rip), %r8      # 0x171710
movq (%r8), %r8
subq %rax, %rdi
subl %esi, %edx
subq %rax, %rcx
xorl %esi, %esi
jmpq *%r8
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: PredictorAdd1_SSE2
static void PredictorAdd1_SSE2(const uint32_t* in, const uint32_t* upper,
                               int num_pixels, uint32_t* out) {
  int i;
  __m128i prev = _mm_set1_epi32((int)out[-1]);
  for (i = 0; i + 4 <= num_pixels; i += 4) {
    // a | b | c | d
    const __m128i src = _mm_loadu_si128((const __m128i*)&in[i]);
    // 0 | a | b | c
    const __m128i shift0 = _mm_slli_si128(src, 4);
    // a | a + b | b + c | c + d
    const __m128i sum0 = _mm_add_epi8(src, shift0);
    // 0 | 0 | a | a + b
    const __m128i shift1 = _mm_slli_si128(sum0, 8);
    // a | a + b | a + b + c | a + b + c + d
    const __m128i sum1 = _mm_add_epi8(sum0, shift1);
    const __m128i res = _mm_add_epi8(sum1, prev);
    _mm_storeu_si128((__m128i*)&out[i], res);
    // replicate prev output on the four lanes
    prev = _mm_shuffle_epi32(res, (3 << 0) | (3 << 2) | (3 << 4) | (3 << 6));
  }
  if (i != num_pixels) {
    VP8LPredictorsAdd_C[1](in + i, upper + i, num_pixels - i, out + i);
  }
}

// Assembly:
movd -0x4(%rcx), %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movslq %edx, %r9
xorl %eax, %eax
xorl %r8d, %r8d
leaq 0x4(%r8), %r10
cmpq %r9, %r10
jg 0xd9979
movdqu (%rdi,%r8,4), %xmm1
movdqa %xmm1, %xmm2
pslldq $0x4, %xmm2             # xmm2 = zero,zero,zero,zero,xmm2[0,1,2,3,4,5,6,7,8,9,10,11]
paddb %xmm1, %xmm2
movdqa %xmm2, %xmm1
pslldq $0x8, %xmm1             # xmm1 = zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7]
paddb %xmm0, %xmm2
paddb %xmm1, %xmm2
movdqu %xmm2, (%rcx,%r8,4)
pshufd $0xff, %xmm2, %xmm0     # xmm0 = xmm2[3,3,3,3]
addq $-0x10, %rax
movq %r10, %r8
jmp 0xd9938
cmpl %r8d, %edx
jne 0xd997f
retq
leaq 0x97d8a(%rip), %r9      # 0x171710
movq 0x8(%r9), %r9
subq %rax, %rdi
subq %rax, %rsi
subl %r8d, %edx
subq %rax, %rcx
jmpq *%r9
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: AddGreenToBlueAndRed_SSE2
static void AddGreenToBlueAndRed_SSE2(const uint32_t* const src, int num_pixels,
                                      uint32_t* dst) {
  int i;
  for (i = 0; i + 4 <= num_pixels; i += 4) {
    const __m128i in = _mm_loadu_si128((const __m128i*)&src[i]); // argb
    const __m128i A = _mm_srli_epi16(in, 8);     // 0 a 0 g
    const __m128i B = _mm_shufflelo_epi16(A, _MM_SHUFFLE(2, 2, 0, 0));
    const __m128i C = _mm_shufflehi_epi16(B, _MM_SHUFFLE(2, 2, 0, 0));  // 0g0g
    const __m128i out = _mm_add_epi8(in, C);
    _mm_storeu_si128((__m128i*)&dst[i], out);
  }
  // fallthrough and finish off with plain-C
  if (i != num_pixels) {
    VP8LAddGreenToBlueAndRed_C(src + i, num_pixels - i, dst + i);
  }
}

// Assembly:
movslq %esi, %r8
xorl %eax, %eax
xorl %ecx, %ecx
leaq 0x4(%rcx), %r9
cmpq %r8, %r9
jg 0xda1a0
movdqu (%rdi,%rcx,4), %xmm0
pshuflw $0xa0, %xmm0, %xmm1     # xmm1 = xmm0[0,0,2,2,4,5,6,7]
pshufhw $0xa0, %xmm1, %xmm1     # xmm1 = xmm1[0,1,2,3,4,4,6,6]
psrlw $0x8, %xmm1
paddb %xmm0, %xmm1
movdqu %xmm1, (%rdx,%rcx,4)
addq $-0x10, %rax
movq %r9, %rcx
jmp 0xda171
cmpl %ecx, %esi
jne 0xda1a5
retq
subq %rax, %rdi
subl %ecx, %esi
subq %rax, %rdx
jmp 0xd1b3c
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: TransformColorInverse_SSE2
static void TransformColorInverse_SSE2(const VP8LMultipliers* const m,
                                       const uint32_t* const src,
                                       int num_pixels, uint32_t* dst) {
// sign-extended multiplying constants, pre-shifted by 5.
#define CST(X)  (((int16_t)(m->X << 8)) >> 5)   // sign-extend
#define MK_CST_16(HI, LO) \
  _mm_set1_epi32((int)(((uint32_t)(HI) << 16) | ((LO) & 0xffff)))
  const __m128i mults_rb = MK_CST_16(CST(green_to_red_), CST(green_to_blue_));
  const __m128i mults_b2 = MK_CST_16(CST(red_to_blue_), 0);
#undef MK_CST_16
#undef CST
  const __m128i mask_ag = _mm_set1_epi32((int)0xff00ff00);  // alpha-green masks
  int i;
  for (i = 0; i + 4 <= num_pixels; i += 4) {
    const __m128i in = _mm_loadu_si128((const __m128i*)&src[i]); // argb
    const __m128i A = _mm_and_si128(in, mask_ag);     // a   0   g   0
    const __m128i B = _mm_shufflelo_epi16(A, _MM_SHUFFLE(2, 2, 0, 0));
    const __m128i C = _mm_shufflehi_epi16(B, _MM_SHUFFLE(2, 2, 0, 0));  // g0g0
    const __m128i D = _mm_mulhi_epi16(C, mults_rb);    // x dr  x db1
    const __m128i E = _mm_add_epi8(in, D);             // x r'  x   b'
    const __m128i F = _mm_slli_epi16(E, 8);            // r' 0   b' 0
    const __m128i G = _mm_mulhi_epi16(F, mults_b2);    // x db2  0  0
    const __m128i H = _mm_srli_epi32(G, 8);            // 0  x db2  0
    const __m128i I = _mm_add_epi8(H, F);              // r' x  b'' 0
    const __m128i J = _mm_srli_epi16(I, 8);            // 0  r'  0  b''
    const __m128i out = _mm_or_si128(J, A);
    _mm_storeu_si128((__m128i*)&dst[i], out);
  }
  // Fall-back to C-version for left-overs.
  if (i != num_pixels) {
    VP8LTransformColorInverse_C(m, src + i, num_pixels - i, dst + i);
  }
}

// Assembly:
movsbl (%rdi), %eax
shll $0x13, %eax
movsbl 0x1(%rdi), %r8d
andl $0x1fff, %r8d           # imm = 0x1FFF
leal (%rax,%r8,8), %eax
movd %eax, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movsbl 0x2(%rdi), %eax
shll $0x3, %eax
movd %eax, %xmm1
pshufd $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
pslld $0x10, %xmm1
movslq %edx, %r9
xorl %eax, %eax
movdqa 0x429ed(%rip), %xmm2    # 0x11cbe0
xorl %r8d, %r8d
leaq 0x4(%r8), %r10
cmpq %r9, %r10
jg 0xda24d
movdqu (%rsi,%r8,4), %xmm3
movdqa %xmm3, %xmm4
pand %xmm2, %xmm4
pshuflw $0xa0, %xmm4, %xmm5     # xmm5 = xmm4[0,0,2,2,4,5,6,7]
pshufhw $0xa0, %xmm5, %xmm5     # xmm5 = xmm5[0,1,2,3,4,4,6,6]
pmulhw %xmm0, %xmm5
paddb %xmm3, %xmm5
psllw $0x8, %xmm5
movdqa %xmm5, %xmm3
pmulhw %xmm1, %xmm3
psrld $0x8, %xmm3
paddb %xmm5, %xmm3
psrlw $0x8, %xmm3
por %xmm4, %xmm3
movdqu %xmm3, (%rcx,%r8,4)
addq $-0x10, %rax
movq %r10, %r8
jmp 0xda1f6
cmpl %r8d, %edx
jne 0xda253
retq
subq %rax, %rsi
subl %r8d, %edx
subq %rax, %rcx
jmp 0xd1b83
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: ConvertBGRAToRGBA_SSE2
static void ConvertBGRAToRGBA_SSE2(const uint32_t* src,
                                   int num_pixels, uint8_t* dst) {
  const __m128i red_blue_mask = _mm_set1_epi32(0x00ff00ff);
  const __m128i* in = (const __m128i*)src;
  __m128i* out = (__m128i*)dst;
  while (num_pixels >= 8) {
    const __m128i A1 = _mm_loadu_si128(in++);
    const __m128i A2 = _mm_loadu_si128(in++);
    const __m128i B1 = _mm_and_si128(A1, red_blue_mask);     // R 0 B 0
    const __m128i B2 = _mm_and_si128(A2, red_blue_mask);     // R 0 B 0
    const __m128i C1 = _mm_andnot_si128(red_blue_mask, A1);  // 0 G 0 A
    const __m128i C2 = _mm_andnot_si128(red_blue_mask, A2);  // 0 G 0 A
    const __m128i D1 = _mm_shufflelo_epi16(B1, _MM_SHUFFLE(2, 3, 0, 1));
    const __m128i D2 = _mm_shufflelo_epi16(B2, _MM_SHUFFLE(2, 3, 0, 1));
    const __m128i E1 = _mm_shufflehi_epi16(D1, _MM_SHUFFLE(2, 3, 0, 1));
    const __m128i E2 = _mm_shufflehi_epi16(D2, _MM_SHUFFLE(2, 3, 0, 1));
    const __m128i F1 = _mm_or_si128(E1, C1);
    const __m128i F2 = _mm_or_si128(E2, C2);
    _mm_storeu_si128(out++, F1);
    _mm_storeu_si128(out++, F2);
    num_pixels -= 8;
  }
  // left-overs
  if (num_pixels > 0) {
    VP8LConvertBGRAToRGBA_C((const uint32_t*)in, num_pixels, (uint8_t*)out);
  }
}

// Assembly:
pxor %xmm0, %xmm0
cmpl $0x8, %esi
jl 0xda63a
movdqu (%rdi), %xmm1
movdqu 0x10(%rdi), %xmm2
addq $0x20, %rdi
movdqa %xmm1, %xmm3
punpckhbw %xmm0, %xmm3    # xmm3 = xmm3[8],xmm0[8],xmm3[9],xmm0[9],xmm3[10],xmm0[10],xmm3[11],xmm0[11],xmm3[12],xmm0[12],xmm3[13],xmm0[13],xmm3[14],xmm0[14],xmm3[15],xmm0[15]
pshuflw $0xc6, %xmm3, %xmm3     # xmm3 = xmm3[2,1,0,3,4,5,6,7]
pshufhw $0xc6, %xmm3, %xmm3     # xmm3 = xmm3[0,1,2,3,6,5,4,7]
punpcklbw %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3],xmm1[4],xmm0[4],xmm1[5],xmm0[5],xmm1[6],xmm0[6],xmm1[7],xmm0[7]
pshuflw $0xc6, %xmm1, %xmm1     # xmm1 = xmm1[2,1,0,3,4,5,6,7]
pshufhw $0xc6, %xmm1, %xmm1     # xmm1 = xmm1[0,1,2,3,6,5,4,7]
packuswb %xmm3, %xmm1
movdqa %xmm2, %xmm3
punpckhbw %xmm0, %xmm3    # xmm3 = xmm3[8],xmm0[8],xmm3[9],xmm0[9],xmm3[10],xmm0[10],xmm3[11],xmm0[11],xmm3[12],xmm0[12],xmm3[13],xmm0[13],xmm3[14],xmm0[14],xmm3[15],xmm0[15]
pshuflw $0xc6, %xmm3, %xmm3     # xmm3 = xmm3[2,1,0,3,4,5,6,7]
pshufhw $0xc6, %xmm3, %xmm3     # xmm3 = xmm3[0,1,2,3,6,5,4,7]
punpcklbw %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3],xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
pshuflw $0xc6, %xmm2, %xmm2     # xmm2 = xmm2[2,1,0,3,4,5,6,7]
pshufhw $0xc6, %xmm2, %xmm2     # xmm2 = xmm2[0,1,2,3,6,5,4,7]
packuswb %xmm3, %xmm2
movdqu %xmm1, (%rdx)
movdqu %xmm2, 0x10(%rdx)
addq $0x20, %rdx
addl $-0x8, %esi
jmp 0xda5ce
testl %esi, %esi
jg 0xd21bb
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: ConvertBGRAToBGR_SSE2
static void ConvertBGRAToBGR_SSE2(const uint32_t* src,
                                  int num_pixels, uint8_t* dst) {
  const __m128i mask_l = _mm_set_epi32(0, 0x00ffffff, 0, 0x00ffffff);
  const __m128i mask_h = _mm_set_epi32(0x00ffffff, 0, 0x00ffffff, 0);
  const __m128i* in = (const __m128i*)src;
  const uint8_t* const end = dst + num_pixels * 3;
  // the last storel_epi64 below writes 8 bytes starting at offset 18
  while (dst + 26 <= end) {
    const __m128i bgra0 = _mm_loadu_si128(in++);     // bgra0|bgra1|bgra2|bgra3
    const __m128i bgra4 = _mm_loadu_si128(in++);     // bgra4|bgra5|bgra6|bgra7
    const __m128i a0l = _mm_and_si128(bgra0, mask_l);   // bgr0|0|bgr0|0
    const __m128i a4l = _mm_and_si128(bgra4, mask_l);   // bgr0|0|bgr0|0
    const __m128i a0h = _mm_and_si128(bgra0, mask_h);   // 0|bgr0|0|bgr0
    const __m128i a4h = _mm_and_si128(bgra4, mask_h);   // 0|bgr0|0|bgr0
    const __m128i b0h = _mm_srli_epi64(a0h, 8);         // 000b|gr00|000b|gr00
    const __m128i b4h = _mm_srli_epi64(a4h, 8);         // 000b|gr00|000b|gr00
    const __m128i c0 = _mm_or_si128(a0l, b0h);          // rgbrgb00|rgbrgb00
    const __m128i c4 = _mm_or_si128(a4l, b4h);          // rgbrgb00|rgbrgb00
    const __m128i c2 = _mm_srli_si128(c0, 8);
    const __m128i c6 = _mm_srli_si128(c4, 8);
    _mm_storel_epi64((__m128i*)(dst +   0), c0);
    _mm_storel_epi64((__m128i*)(dst +   6), c2);
    _mm_storel_epi64((__m128i*)(dst +  12), c4);
    _mm_storel_epi64((__m128i*)(dst +  18), c6);
    dst += 24;
    num_pixels -= 8;
  }
  // left-overs
  if (num_pixels > 0) {
    VP8LConvertBGRAToBGR_C((const uint32_t*)in, num_pixels, dst);
  }
}

// Assembly:
leal (%rsi,%rsi,2), %eax
cltq
addq %rdx, %rax
movdqa 0x424b4(%rip), %xmm0    # 0x11cc40
movdqa 0x424bc(%rip), %xmm1    # 0x11cc50
leaq 0x1a(%rdx), %rcx
cmpq %rax, %rcx
ja 0xda7fa
movdqu (%rdi), %xmm2
movdqu 0x10(%rdi), %xmm3
addq $0x20, %rdi
movdqa %xmm2, %xmm4
pand %xmm0, %xmm4
movdqa %xmm3, %xmm5
pand %xmm0, %xmm5
psrlq $0x8, %xmm2
pand %xmm1, %xmm2
por %xmm4, %xmm2
psrlq $0x8, %xmm3
pand %xmm1, %xmm3
por %xmm5, %xmm3
movq %xmm2, (%rdx)
pshufd $0xee, %xmm2, %xmm2     # xmm2 = xmm2[2,3,2,3]
movq %xmm2, 0x6(%rdx)
movq %xmm3, 0xc(%rdx)
pshufd $0xee, %xmm3, %xmm2     # xmm2 = xmm3[2,3,2,3]
movq %xmm2, 0x12(%rdx)
addq $0x18, %rdx
addl $-0x8, %esi
jmp 0xda794
testl %esi, %esi
jle 0xda803
jmp 0xd227c
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/rescaler_sse2.c
// Function: WebPRescalerDspInitSSE2
WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInitSSE2(void) {
  WebPRescalerImportRowExpand = RescalerImportRowExpand_SSE2;
  WebPRescalerImportRowShrink = RescalerImportRowShrink_SSE2;
  WebPRescalerExportRowExpand = RescalerExportRowExpand_SSE2;
  WebPRescalerExportRowShrink = RescalerExportRowShrink_SSE2;
}

// Assembly:
leaq 0x3e(%rip), %rax        # 0xda8f1
leaq 0x96eee(%rip), %rcx     # 0x1717a8
movq %rax, (%rcx)
leaq 0x26d(%rip), %rax       # 0xdab31
leaq 0x96ed5(%rip), %rcx     # 0x1717a0
movq %rax, (%rcx)
leaq 0x3c8(%rip), %rax       # 0xdac9d
leaq 0x96ed4(%rip), %rcx     # 0x1717b0
movq %rax, (%rcx)
leaq 0x72d(%rip), %rax       # 0xdb013
leaq 0x96ecb(%rip), %rcx     # 0x1717b8
movq %rax, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/rescaler_sse2.c
// Function: LoadDispatchAndMult_SSE2
static WEBP_INLINE void LoadDispatchAndMult_SSE2(const rescaler_t* const src,
                                                 const __m128i* const mult,
                                                 __m128i* const out0,
                                                 __m128i* const out1,
                                                 __m128i* const out2,
                                                 __m128i* const out3) {
  const __m128i A0 = _mm_loadu_si128((const __m128i*)(src + 0));
  const __m128i A1 = _mm_loadu_si128((const __m128i*)(src + 4));
  const __m128i A2 = _mm_srli_epi64(A0, 32);
  const __m128i A3 = _mm_srli_epi64(A1, 32);
  if (mult != NULL) {
    *out0 = _mm_mul_epu32(A0, *mult);
    *out1 = _mm_mul_epu32(A1, *mult);
    *out2 = _mm_mul_epu32(A2, *mult);
    *out3 = _mm_mul_epu32(A3, *mult);
  } else {
    *out0 = A0;
    *out1 = A1;
    *out2 = A2;
    *out3 = A3;
  }
}

// Assembly:
movdqu (%rdi), %xmm3
movdqu 0x10(%rdi), %xmm2
movdqa %xmm3, %xmm1
psrlq $0x20, %xmm1
movdqa %xmm2, %xmm0
psrlq $0x20, %xmm0
testq %rsi, %rsi
je 0xdb3bb
pmuludq (%rsi), %xmm3
movdqa %xmm3, (%rdx)
pmuludq (%rsi), %xmm2
movdqa %xmm2, (%rcx)
pmuludq (%rsi), %xmm1
movdqa %xmm1, (%r8)
pmuludq (%rsi), %xmm0
jmp 0xdb3c8
movdqa %xmm3, (%rdx)
movdqa %xmm2, (%rcx)
movdqa %xmm1, (%r8)
movdqa %xmm0, (%r9)
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/upsampling_sse2.c
// Function: WebPInitUpsamplersSSE2
WEBP_TSAN_IGNORE_FUNCTION void WebPInitUpsamplersSSE2(void) {
  WebPUpsamplers[MODE_RGBA] = UpsampleRgbaLinePair_SSE2;
  WebPUpsamplers[MODE_BGRA] = UpsampleBgraLinePair_SSE2;
  WebPUpsamplers[MODE_rgbA] = UpsampleRgbaLinePair_SSE2;
  WebPUpsamplers[MODE_bgrA] = UpsampleBgraLinePair_SSE2;
#if !defined(WEBP_REDUCE_CSP)
  WebPUpsamplers[MODE_RGB]  = UpsampleRgbLinePair_SSE2;
  WebPUpsamplers[MODE_BGR]  = UpsampleBgrLinePair_SSE2;
  WebPUpsamplers[MODE_ARGB] = UpsampleArgbLinePair_SSE2;
  WebPUpsamplers[MODE_Argb] = UpsampleArgbLinePair_SSE2;
  WebPUpsamplers[MODE_RGB_565] = UpsampleRgb565LinePair_SSE2;
  WebPUpsamplers[MODE_RGBA_4444] = UpsampleRgba4444LinePair_SSE2;
  WebPUpsamplers[MODE_rgbA_4444] = UpsampleRgba4444LinePair_SSE2;
#endif   // WEBP_REDUCE_CSP
}

// Assembly:
leaq 0x5d(%rip), %rax        # 0xdb49c
leaq 0x9637a(%rip), %rcx     # 0x1717c0
movq %rax, 0x8(%rcx)
leaq 0x685(%rip), %rdx       # 0xdbad6
movq %rdx, 0x18(%rcx)
movq %rax, 0x38(%rcx)
movq %rdx, 0x40(%rcx)
leaq 0xcac(%rip), %rax       # 0xdc110
movq %rax, (%rcx)
leaq 0x12e5(%rip), %rax      # 0xdc753
movq %rax, 0x10(%rcx)
leaq 0x191d(%rip), %rax      # 0xdcd96
movq %rax, 0x20(%rcx)
movq %rax, 0x48(%rcx)
leaq 0x1f48(%rip), %rax      # 0xdd3d0
movq %rax, 0x30(%rcx)
leaq 0x256a(%rip), %rax      # 0xdd9fd
movq %rax, 0x28(%rcx)
movq %rax, 0x50(%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/upsampling_sse2.c
// Function: WebPInitYUV444ConvertersSSE2
WEBP_TSAN_IGNORE_FUNCTION void WebPInitYUV444ConvertersSSE2(void) {
  WebPYUV444Converters[MODE_RGBA]      = Yuv444ToRgba_SSE2;
  WebPYUV444Converters[MODE_BGRA]      = Yuv444ToBgra_SSE2;
  WebPYUV444Converters[MODE_rgbA]      = Yuv444ToRgba_SSE2;
  WebPYUV444Converters[MODE_bgrA]      = Yuv444ToBgra_SSE2;
#if !defined(WEBP_REDUCE_CSP)
  WebPYUV444Converters[MODE_RGB]       = Yuv444ToRgb_SSE2;
  WebPYUV444Converters[MODE_BGR]       = Yuv444ToBgr_SSE2;
  WebPYUV444Converters[MODE_ARGB]      = Yuv444ToArgb_SSE2;
  WebPYUV444Converters[MODE_RGBA_4444] = Yuv444ToRgba4444_SSE2;
  WebPYUV444Converters[MODE_RGB_565]   = Yuv444ToRgb565_SSE2;
  WebPYUV444Converters[MODE_Argb]      = Yuv444ToArgb_SSE2;
  WebPYUV444Converters[MODE_rgbA_4444] = Yuv444ToRgba4444_SSE2;
#endif   // WEBP_REDUCE_CSP
}

// Assembly:
leaq 0x5d(%rip), %rax        # 0xde08e
leaq 0x937f8(%rip), %rcx     # 0x171830
movq %rax, 0x8(%rcx)
leaq 0xee(%rip), %rdx        # 0xde131
movq %rdx, 0x18(%rcx)
movq %rax, 0x38(%rcx)
movq %rdx, 0x40(%rcx)
leaq 0x17e(%rip), %rax       # 0xde1d4
movq %rax, (%rcx)
leaq 0x217(%rip), %rax       # 0xde277
movq %rax, 0x10(%rcx)
leaq 0x2af(%rip), %rax       # 0xde31a
movq %rax, 0x20(%rcx)
leaq 0x347(%rip), %rdx       # 0xde3bd
movq %rdx, 0x28(%rcx)
leaq 0x3cc(%rip), %rsi       # 0xde44d
movq %rsi, 0x30(%rcx)
movq %rax, 0x48(%rcx)
movq %rdx, 0x50(%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToRgba32_SSE2
void VP8YuvToRgba32_SSE2(const uint8_t* y, const uint8_t* u, const uint8_t* v,
                         uint8_t* dst) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n < 32; n += 8, dst += 32) {
    __m128i R, G, B;
    YUV444ToRGB_SSE2(y + n, u + n, v + n, &R, &G, &B);
    PackAndStore4_SSE2(&R, &G, &B, &kAlpha, dst);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
movq %rsp, %r13
cmpq $0x1f, %rbp
ja 0xde855
leaq (%r12,%rbp), %rdi
leaq (%r15,%rbp), %rsi
leaq (%r14,%rbp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %r13, %r9
callq 0xde864
movdqa 0x20(%rsp), %xmm0
packuswb (%rsp), %xmm0
movdqa 0x10(%rsp), %xmm1
packuswb 0x3e384(%rip), %xmm1    # 0x11cbb0
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
movdqa %xmm2, %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckhwd %xmm0, %xmm2    # xmm2 = xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
movdqu %xmm1, (%rbx,%rbp,4)
movdqu %xmm2, 0x10(%rbx,%rbp,4)
addq $0x8, %rbp
jmp 0xde7ef
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToBgra32_SSE2
void VP8YuvToBgra32_SSE2(const uint8_t* y, const uint8_t* u, const uint8_t* v,
                         uint8_t* dst) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n < 32; n += 8, dst += 32) {
    __m128i R, G, B;
    YUV444ToRGB_SSE2(y + n, u + n, v + n, &R, &G, &B);
    PackAndStore4_SSE2(&B, &G, &R, &kAlpha, dst);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
movq %rsp, %r13
cmpq $0x1f, %rbp
ja 0xde934
leaq (%r12,%rbp), %rdi
leaq (%r15,%rbp), %rsi
leaq (%r14,%rbp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %r13, %r9
callq 0xde864
movdqa (%rsp), %xmm0
packuswb 0x20(%rsp), %xmm0
movdqa 0x10(%rsp), %xmm1
packuswb 0x3e2a5(%rip), %xmm1    # 0x11cbb0
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
movdqa %xmm2, %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckhwd %xmm0, %xmm2    # xmm2 = xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
movdqu %xmm1, (%rbx,%rbp,4)
movdqu %xmm2, 0x10(%rbx,%rbp,4)
addq $0x8, %rbp
jmp 0xde8ce
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToArgb32_SSE2
void VP8YuvToArgb32_SSE2(const uint8_t* y, const uint8_t* u, const uint8_t* v,
                         uint8_t* dst) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n < 32; n += 8, dst += 32) {
    __m128i R, G, B;
    YUV444ToRGB_SSE2(y + n, u + n, v + n, &R, &G, &B);
    PackAndStore4_SSE2(&kAlpha, &R, &G, &B, dst);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
movq %rsp, %r13
cmpq $0x1f, %rbp
ja 0xde9c8
leaq (%r12,%rbp), %rdi
leaq (%r15,%rbp), %rsi
leaq (%r14,%rbp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %r13, %r9
callq 0xde864
movdqa 0x3e222(%rip), %xmm0    # 0x11cbb0
packuswb 0x10(%rsp), %xmm0
movdqa 0x20(%rsp), %xmm1
packuswb (%rsp), %xmm1
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
movdqa %xmm2, %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckhwd %xmm0, %xmm2    # xmm2 = xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
movdqu %xmm1, (%rbx,%rbp,4)
movdqu %xmm2, 0x10(%rbx,%rbp,4)
addq $0x8, %rbp
jmp 0xde962
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToRgba444432_SSE2
void VP8YuvToRgba444432_SSE2(const uint8_t* y, const uint8_t* u,
                             const uint8_t* v, uint8_t* dst) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n < 32; n += 8, dst += 16) {
    __m128i R, G, B;
    YUV444ToRGB_SSE2(y + n, u + n, v + n, &R, &G, &B);
    PackAndStore4444_SSE2(&R, &G, &B, &kAlpha, dst);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
movq %rsp, %r13
cmpq $0x1f, %rbp
ja 0xdea63
leaq (%r12,%rbp), %rdi
leaq (%r15,%rbp), %rsi
leaq (%r14,%rbp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %r13, %r9
callq 0xde864
movdqa 0x20(%rsp), %xmm0
packuswb 0x10(%rsp), %xmm0
movdqa (%rsp), %xmm1
packuswb 0x3e17d(%rip), %xmm1    # 0x11cbb0
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
pand 0x3e1ad(%rip), %xmm2    # 0x11cbf0
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
psrlw $0x4, %xmm0
pand 0x3e1ac(%rip), %xmm0    # 0x11cc00
por %xmm2, %xmm0
movdqu %xmm0, (%rbx,%rbp,2)
addq $0x8, %rbp
jmp 0xde9f6
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToRgb56532_SSE2
void VP8YuvToRgb56532_SSE2(const uint8_t* y, const uint8_t* u, const uint8_t* v,
                           uint8_t* dst) {
  int n;
  for (n = 0; n < 32; n += 8, dst += 16) {
    __m128i R, G, B;
    YUV444ToRGB_SSE2(y + n, u + n, v + n, &R, &G, &B);
    PackAndStore565_SSE2(&R, &G, &B, dst);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
movq %rsp, %r13
cmpq $0x1f, %rbp
ja 0xdeb23
leaq (%r12,%rbp), %rdi
leaq (%r15,%rbp), %rsi
leaq (%r14,%rbp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %r13, %r9
callq 0xde864
movdqa 0x20(%rsp), %xmm0
packuswb %xmm0, %xmm0
pand 0x3e145(%rip), %xmm0    # 0x11cc10
movdqa 0x10(%rsp), %xmm1
packuswb %xmm1, %xmm1
movdqa (%rsp), %xmm2
packuswb %xmm2, %xmm2
psrlw $0x3, %xmm2
pand 0x3e8e5(%rip), %xmm2    # 0x11d3d0
movdqa %xmm1, %xmm3
psrlw $0x5, %xmm3
pand 0x3e124(%rip), %xmm3    # 0x11cc20
por %xmm0, %xmm3
psllw $0x3, %xmm1
pand 0x3e123(%rip), %xmm1    # 0x11cc30
por %xmm2, %xmm1
punpcklbw %xmm1, %xmm3    # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1],xmm3[2],xmm1[2],xmm3[3],xmm1[3],xmm3[4],xmm1[4],xmm3[5],xmm1[5],xmm3[6],xmm1[6],xmm3[7],xmm1[7]
movdqu %xmm3, (%rbx,%rbp,2)
addq $0x8, %rbp
jmp 0xdea91
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToRgb32_SSE2
void VP8YuvToRgb32_SSE2(const uint8_t* y, const uint8_t* u, const uint8_t* v,
                        uint8_t* dst) {
  __m128i R0, R1, R2, R3, G0, G1, G2, G3, B0, B1, B2, B3;
  __m128i rgb0, rgb1, rgb2, rgb3, rgb4, rgb5;

  YUV444ToRGB_SSE2(y + 0, u + 0, v + 0, &R0, &G0, &B0);
  YUV444ToRGB_SSE2(y + 8, u + 8, v + 8, &R1, &G1, &B1);
  YUV444ToRGB_SSE2(y + 16, u + 16, v + 16, &R2, &G2, &B2);
  YUV444ToRGB_SSE2(y + 24, u + 24, v + 24, &R3, &G3, &B3);

  // Cast to 8b and store as RRRRGGGGBBBB.
  rgb0 = _mm_packus_epi16(R0, R1);
  rgb1 = _mm_packus_epi16(R2, R3);
  rgb2 = _mm_packus_epi16(G0, G1);
  rgb3 = _mm_packus_epi16(G2, G3);
  rgb4 = _mm_packus_epi16(B0, B1);
  rgb5 = _mm_packus_epi16(B2, B3);

  // Pack as RGBRGBRGBRGB.
  PlanarTo24b_SSE2(&rgb0, &rgb1, &rgb2, &rgb3, &rgb4, &rgb5, dst);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rcx, 0x8(%rsp)
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, %r12
leaq 0x80(%rsp), %rcx
leaq 0x60(%rsp), %r8
leaq 0x30(%rsp), %r9
callq 0xde864
leaq 0x8(%r12), %rdi
leaq 0x8(%r15), %rsi
leaq 0x8(%rbp), %rdx
leaq 0x70(%rsp), %rcx
leaq 0x50(%rsp), %r8
leaq 0x20(%rsp), %r9
callq 0xde864
leaq 0x10(%r12), %rdi
leaq 0x10(%r15), %rsi
leaq 0x10(%rbp), %rdx
leaq 0x120(%rsp), %r13
leaq 0x40(%rsp), %r8
leaq 0x10(%rsp), %r9
movq %r13, %rcx
callq 0xde864
addq $0x18, %r12
addq $0x18, %r15
addq $0x18, %rbp
leaq 0x110(%rsp), %r14
leaq 0x100(%rsp), %rbx
leaq 0xf0(%rsp), %r9
movq %r12, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq %rbx, %r8
movq %r9, %r15
callq 0xde864
leaq 0x80(%rsp), %rax
movdqa (%rax), %xmm0
leaq 0x70(%rsp), %rax
packuswb (%rax), %xmm0
leaq 0xe0(%rsp), %rdi
movdqa %xmm0, (%rdi)
movdqa (%r13), %xmm0
packuswb (%r14), %xmm0
leaq 0xd0(%rsp), %rsi
movdqa %xmm0, (%rsi)
leaq 0x60(%rsp), %rax
movdqa (%rax), %xmm0
leaq 0x50(%rsp), %rax
packuswb (%rax), %xmm0
leaq 0xc0(%rsp), %rdx
movdqa %xmm0, (%rdx)
leaq 0x40(%rsp), %rax
movdqa (%rax), %xmm0
packuswb (%rbx), %xmm0
leaq 0xb0(%rsp), %rcx
leaq 0x30(%rsp), %rax
movdqa (%rax), %xmm1
leaq 0x20(%rsp), %rax
packuswb (%rax), %xmm1
movdqa %xmm0, (%rcx)
leaq 0xa0(%rsp), %r8
movdqa %xmm1, (%r8)
leaq 0x10(%rsp), %rax
movdqa (%rax), %xmm0
packuswb (%r15), %xmm0
leaq 0x90(%rsp), %r9
movdqa %xmm0, (%r9)
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
callq 0xdecb4
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: VP8YuvToBgr32_SSE2
void VP8YuvToBgr32_SSE2(const uint8_t* y, const uint8_t* u, const uint8_t* v,
                        uint8_t* dst) {
  __m128i R0, R1, R2, R3, G0, G1, G2, G3, B0, B1, B2, B3;
  __m128i bgr0, bgr1, bgr2, bgr3, bgr4, bgr5;

  YUV444ToRGB_SSE2(y +  0, u +  0, v +  0, &R0, &G0, &B0);
  YUV444ToRGB_SSE2(y +  8, u +  8, v +  8, &R1, &G1, &B1);
  YUV444ToRGB_SSE2(y + 16, u + 16, v + 16, &R2, &G2, &B2);
  YUV444ToRGB_SSE2(y + 24, u + 24, v + 24, &R3, &G3, &B3);

  // Cast to 8b and store as BBBBGGGGRRRR.
  bgr0 = _mm_packus_epi16(B0, B1);
  bgr1 = _mm_packus_epi16(B2, B3);
  bgr2 = _mm_packus_epi16(G0, G1);
  bgr3 = _mm_packus_epi16(G2, G3);
  bgr4 = _mm_packus_epi16(R0, R1);
  bgr5= _mm_packus_epi16(R2, R3);

  // Pack as BGRBGRBGRBGR.
  PlanarTo24b_SSE2(&bgr0, &bgr1, &bgr2, &bgr3, &bgr4, &bgr5, dst);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rcx, 0x8(%rsp)
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x80(%rsp), %rcx
leaq 0x50(%rsp), %r8
leaq 0x20(%rsp), %r9
callq 0xde864
leaq 0x8(%r12), %rdi
leaq 0x8(%rbx), %rsi
leaq 0x8(%rbp), %rdx
leaq 0x70(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0x10(%rsp), %r9
callq 0xde864
leaq 0x10(%r12), %rdi
leaq 0x10(%rbx), %rsi
leaq 0x10(%rbp), %rdx
leaq 0x60(%rsp), %rcx
leaq 0x30(%rsp), %r8
leaq 0x100(%rsp), %r13
movq %r13, %r9
callq 0xde864
addq $0x18, %r12
addq $0x18, %rbx
addq $0x18, %rbp
leaq 0x120(%rsp), %rcx
leaq 0x110(%rsp), %r14
leaq 0xf0(%rsp), %r15
movq %r12, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq %rcx, %rbx
movq %r14, %r8
movq %r15, %r9
callq 0xde864
leaq 0x20(%rsp), %rax
movdqa (%rax), %xmm0
leaq 0x10(%rsp), %rax
packuswb (%rax), %xmm0
leaq 0xe0(%rsp), %rdi
movdqa %xmm0, (%rdi)
movdqa (%r13), %xmm0
packuswb (%r15), %xmm0
leaq 0xd0(%rsp), %rsi
movdqa %xmm0, (%rsi)
leaq 0x50(%rsp), %rax
movdqa (%rax), %xmm0
leaq 0x40(%rsp), %rax
packuswb (%rax), %xmm0
leaq 0xc0(%rsp), %rdx
movdqa %xmm0, (%rdx)
leaq 0x30(%rsp), %rax
movdqa (%rax), %xmm0
packuswb (%r14), %xmm0
leaq 0xb0(%rsp), %rcx
leaq 0x80(%rsp), %rax
movdqa (%rax), %xmm1
leaq 0x70(%rsp), %rax
packuswb (%rax), %xmm1
movdqa %xmm0, (%rcx)
leaq 0xa0(%rsp), %r8
movdqa %xmm1, (%r8)
leaq 0x60(%rsp), %rax
movdqa (%rax), %xmm0
packuswb (%rbx), %xmm0
leaq 0x90(%rsp), %r9
movdqa %xmm0, (%r9)
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
callq 0xdecb4
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: WebPInitSamplersSSE2
WEBP_TSAN_IGNORE_FUNCTION void WebPInitSamplersSSE2(void) {
  WebPSamplers[MODE_RGB]  = YuvToRgbRow_SSE2;
  WebPSamplers[MODE_RGBA] = YuvToRgbaRow_SSE2;
  WebPSamplers[MODE_BGR]  = YuvToBgrRow_SSE2;
  WebPSamplers[MODE_BGRA] = YuvToBgraRow_SSE2;
  WebPSamplers[MODE_ARGB] = YuvToArgbRow_SSE2;
}

// Assembly:
leaq 0x37(%rip), %rax        # 0xdf132
leaq 0x9279e(%rip), %rcx     # 0x1718a0
movq %rax, (%rcx)
leaq 0x253(%rip), %rax       # 0xdf35f
movq %rax, 0x8(%rcx)
leaq 0x31f(%rip), %rax       # 0xdf436
movq %rax, 0x10(%rcx)
leaq 0x541(%rip), %rax       # 0xdf663
movq %rax, 0x18(%rcx)
leaq 0x60d(%rip), %rax       # 0xdf73a
movq %rax, 0x20(%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: YuvToRgbaRow_SSE2
static void YuvToRgbaRow_SSE2(const uint8_t* y,
                              const uint8_t* u, const uint8_t* v,
                              uint8_t* dst, int len) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n + 8 <= len; n += 8, dst += 32) {
    __m128i R, G, B;
    YUV420ToRGB_SSE2(y, u, v, &R, &G, &B);
    PackAndStore4_SSE2(&R, &G, &B, &kAlpha, dst);
    y += 8;
    u += 4;
    v += 4;
  }
  for (; n < len; ++n) {   // Finish off
    VP8YuvToRgba(y[0], u[0], v[0], dst);
    dst += 4;
    y += 1;
    u += (n & 1);
    v += (n & 1);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
xorl %ebp, %ebp
leal 0x8(%rbp), %eax
cmpl %ebx, %eax
jg 0xdf423
movq %r13, %rdi
addq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rsp, %r9
callq 0xe0083
movdqa 0x20(%rsp), %xmm0
packuswb (%rsp), %xmm0
movdqa 0x10(%rsp), %xmm1
packuswb 0x3d7f0(%rip), %xmm1    # 0x11cbb0
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
movdqa %xmm2, %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckhwd %xmm0, %xmm2    # xmm2 = xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
movdqu %xmm1, (%r14)
movdqu %xmm2, 0x10(%r14)
addq $0x4, %r12
addq $0x4, %r15
addq $0x20, %r14
addq $0x8, %rbp
jmp 0xdf37e
movzbl (%r13,%rbp), %edi
movzbl (%r12), %esi
movzbl (%r15), %edx
movq %r14, %rcx
callq 0xe0131
movb $-0x1, 0x3(%r14)
movl %ebp, %eax
andl $0x1, %eax
addq %rax, %r12
addq %rax, %r15
incq %rbp
addq $0x4, %r14
cmpl %ebx, %ebp
jl 0xdf3f5
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: YuvToBgraRow_SSE2
static void YuvToBgraRow_SSE2(const uint8_t* y,
                              const uint8_t* u, const uint8_t* v,
                              uint8_t* dst, int len) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n + 8 <= len; n += 8, dst += 32) {
    __m128i R, G, B;
    YUV420ToRGB_SSE2(y, u, v, &R, &G, &B);
    PackAndStore4_SSE2(&B, &G, &R, &kAlpha, dst);
    y += 8;
    u += 4;
    v += 4;
  }
  for (; n < len; ++n) {   // Finish off
    VP8YuvToBgra(y[0], u[0], v[0], dst);
    dst += 4;
    y += 1;
    u += (n & 1);
    v += (n & 1);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
xorl %ebp, %ebp
leal 0x8(%rbp), %eax
cmpl %ebx, %eax
jg 0xdf727
movq %r13, %rdi
addq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rsp, %r9
callq 0xe0083
movdqa (%rsp), %xmm0
packuswb 0x20(%rsp), %xmm0
movdqa 0x10(%rsp), %xmm1
packuswb 0x3d4ec(%rip), %xmm1    # 0x11cbb0
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
movdqa %xmm2, %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckhwd %xmm0, %xmm2    # xmm2 = xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
movdqu %xmm1, (%r14)
movdqu %xmm2, 0x10(%r14)
addq $0x4, %r12
addq $0x4, %r15
addq $0x20, %r14
addq $0x8, %rbp
jmp 0xdf682
movzbl (%r13,%rbp), %edi
movzbl (%r12), %esi
movzbl (%r15), %edx
movq %r14, %rcx
callq 0xe021e
movb $-0x1, 0x3(%r14)
movl %ebp, %eax
andl $0x1, %eax
addq %rax, %r12
addq %rax, %r15
incq %rbp
addq $0x4, %r14
cmpl %ebx, %ebp
jl 0xdf6f9
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: YuvToArgbRow_SSE2
static void YuvToArgbRow_SSE2(const uint8_t* y,
                              const uint8_t* u, const uint8_t* v,
                              uint8_t* dst, int len) {
  const __m128i kAlpha = _mm_set1_epi16(255);
  int n;
  for (n = 0; n + 8 <= len; n += 8, dst += 32) {
    __m128i R, G, B;
    YUV420ToRGB_SSE2(y, u, v, &R, &G, &B);
    PackAndStore4_SSE2(&kAlpha, &R, &G, &B, dst);
    y += 8;
    u += 4;
    v += 4;
  }
  for (; n < len; ++n) {   // Finish off
    VP8YuvToArgb(y[0], u[0], v[0], dst);
    dst += 4;
    y += 1;
    u += (n & 1);
    v += (n & 1);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
xorl %ebp, %ebp
leal 0x8(%rbp), %eax
cmpl %ebx, %eax
jg 0xdf7fa
movq %r13, %rdi
addq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0x20(%rsp), %rcx
leaq 0x10(%rsp), %r8
movq %rsp, %r9
callq 0xe0083
movdqa 0x3d426(%rip), %xmm0    # 0x11cbb0
packuswb 0x10(%rsp), %xmm0
movdqa 0x20(%rsp), %xmm1
packuswb (%rsp), %xmm1
movdqa %xmm0, %xmm2
punpcklbw %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
punpckhbw %xmm1, %xmm0    # xmm0 = xmm0[8],xmm1[8],xmm0[9],xmm1[9],xmm0[10],xmm1[10],xmm0[11],xmm1[11],xmm0[12],xmm1[12],xmm0[13],xmm1[13],xmm0[14],xmm1[14],xmm0[15],xmm1[15]
movdqa %xmm2, %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
punpckhwd %xmm0, %xmm2    # xmm2 = xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
movdqu %xmm1, (%r14,%rbp,4)
movdqu %xmm2, 0x10(%r14,%rbp,4)
addq $0x4, %r12
addq $0x4, %r15
addq $0x8, %rbp
jmp 0xdf759
leaq (%r14,%rbp,4), %rcx
movzbl (%r13,%rbp), %edi
movzbl (%r12), %esi
movzbl (%r15), %edx
movb $-0x1, (%rcx)
incq %rcx
callq 0xe0131
movl %ebp, %eax
andl $0x1, %eax
addq %rax, %r12
addq %rax, %r15
incq %rbp
cmpl %ebx, %ebp
jl 0xdf7ce
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: WebPInitConvertARGBToYUVSSE2
WEBP_TSAN_IGNORE_FUNCTION void WebPInitConvertARGBToYUVSSE2(void) {
  WebPConvertARGBToY = ConvertARGBToY_SSE2;
  WebPConvertARGBToUV = ConvertARGBToUV_SSE2;

  WebPConvertRGB24ToY = ConvertRGB24ToY_SSE2;
  WebPConvertBGR24ToY = ConvertBGR24ToY_SSE2;

  WebPConvertRGBA32ToUV = ConvertRGBA32ToUV_SSE2;
}

// Assembly:
leaq 0x4f(%rip), %rax        # 0xdf863
leaq 0x92105(%rip), %rcx     # 0x171920
movq %rax, (%rcx)
leaq 0x128(%rip), %rax       # 0xdf94d
leaq 0x920fc(%rip), %rcx     # 0x171928
movq %rax, (%rcx)
leaq 0x320(%rip), %rax       # 0xdfb56
leaq 0x920cb(%rip), %rcx     # 0x171908
movq %rax, (%rcx)
leaq 0x4c9(%rip), %rax       # 0xdfd10
leaq 0x920c2(%rip), %rcx     # 0x171910
movq %rax, (%rcx)
leaq 0x68d(%rip), %rax       # 0xdfee5
leaq 0x920b9(%rip), %rcx     # 0x171918
movq %rax, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: ConvertARGBToY_SSE2
static void ConvertARGBToY_SSE2(const uint32_t* argb, uint8_t* y, int width) {
  const int max_width = width & ~15;
  int i;
  for (i = 0; i < max_width; i += 16) {
    __m128i Y0, Y1, rgb[6];
    RGB32PackedToPlanar_SSE2(&argb[i], rgb);
    ConvertRGBToY_SSE2(&rgb[0], &rgb[2], &rgb[4], &Y0);
    ConvertRGBToY_SSE2(&rgb[1], &rgb[3], &rgb[5], &Y1);
    STORE_16(_mm_packus_epi16(Y0, Y1), y + i);
  }
  for (; i < width; ++i) {   // left-over
    const uint32_t p = argb[i];
    y[i] = VP8RGBToY((p >> 16) & 0xff, (p >> 8) & 0xff, (p >>  0) & 0xff,
                     YUV_HALF);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rbx
movq %rdi, %r15
movl %edx, 0xc(%rsp)
movl %edx, %eax
andl $-0x10, %eax
movslq %eax, %rbp
xorl %r13d, %r13d
leaq 0x30(%rsp), %r12
movq %rdi, %r14
cmpq %rbp, %r13
jge 0xdf8f0
movq %r14, %rdi
movq %r12, %rsi
callq 0xe025f
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0x20(%rsp), %rcx
callq 0xe02fc
leaq 0x40(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x80(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq 0xe02fc
movdqa 0x20(%rsp), %xmm0
packuswb 0x10(%rsp), %xmm0
movdqu %xmm0, (%rbx,%r13)
addq $0x10, %r13
addq $0x40, %r14
jmp 0xdf891
movslq 0xc(%rsp), %rax
movl $0xff, %ecx
cmpq %rax, %r13
jge 0xdf93b
movl (%r15,%r13,4), %edx
movl %edx, %esi
shrl $0x10, %esi
andl %ecx, %esi
movl %edx, %edi
shrl $0x8, %edi
andl %ecx, %edi
andl %ecx, %edx
imull $0x41c7, %esi, %esi     # imm = 0x41C7
imull $0x8123, %edi, %edi     # imm = 0x8123
imull $0x1914, %edx, %edx     # imm = 0x1914
addl %esi, %edx
addl %edi, %edx
addl $0x108000, %edx         # imm = 0x108000
shrl $0x10, %edx
movb %dl, (%rbx,%r13)
incq %r13
jmp 0xdf8fa
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: ConvertRGBA32ToUV_SSE2
static void ConvertRGBA32ToUV_SSE2(const uint16_t* rgb,
                                   uint8_t* u, uint8_t* v, int width) {
  const int max_width = width & ~15;
  const uint16_t* const last_rgb = rgb + 4 * max_width;
  while (rgb < last_rgb) {
    __m128i r, g, b, U0, V0, U1, V1;
    RGBA32PackedToPlanar_16b_SSE2(rgb +  0, &r, &g, &b);
    ConvertRGBToUV_SSE2(&r, &g, &b, &U0, &V0);
    RGBA32PackedToPlanar_16b_SSE2(rgb + 32, &r, &g, &b);
    ConvertRGBToUV_SSE2(&r, &g, &b, &U1, &V1);
    STORE_16(_mm_packus_epi16(U0, U1), u);
    STORE_16(_mm_packus_epi16(V0, V1), v);
    u += 16;
    v += 16;
    rgb += 2 * 32;
  }
  if (max_width < width) {  // left-over
    WebPConvertRGBA32ToUV_C(rgb, u, v, width - max_width);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl %ecx, 0xc(%rsp)
movl %ecx, %eax
andl $-0x10, %eax
movq %rax, 0x10(%rsp)
leal (,%rax,4), %eax
cltq
leaq (%rdi,%rax,2), %rax
movq %rax, 0x18(%rsp)
leaq 0x80(%rsp), %r13
leaq 0x70(%rsp), %rbp
leaq 0x60(%rsp), %rbx
cmpq 0x18(%rsp), %r12
jae 0xdffc3
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0xe04fa
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
leaq 0x50(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0xe036b
leaq 0x40(%r12), %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0xe04fa
movq %r13, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
leaq 0x30(%rsp), %rcx
leaq 0x20(%rsp), %r8
callq 0xe036b
movdqa 0x50(%rsp), %xmm0
packuswb 0x30(%rsp), %xmm0
movdqu %xmm0, (%r15)
movdqa 0x40(%rsp), %xmm0
packuswb 0x20(%rsp), %xmm0
movdqu %xmm0, (%r14)
addq $0x10, %r15
addq $0x10, %r14
subq $-0x80, %r12
jmp 0xdff31
movl 0xc(%rsp), %ecx
cmpl %ecx, 0x10(%rsp)
jne 0xdffdf
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andl $0xf, %ecx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xd58ca