// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/libraries/libwebp/src/dsp/yuv_sse2.c
// Function: ConvertRGBToUV_SSE2
static WEBP_INLINE void ConvertRGBToUV_SSE2(const __m128i* const R,
                                            const __m128i* const G,
                                            const __m128i* const B,
                                            __m128i* const U,
                                            __m128i* const V) {
  const __m128i kRG_u = MK_CST_16(-9719, -19081);
  const __m128i kGB_u = MK_CST_16(0, 28800);
  const __m128i kRG_v = MK_CST_16(28800, 0);
  const __m128i kGB_v = MK_CST_16(-24116, -4684);
  const __m128i kHALF_UV = _mm_set1_epi32(((128 << YUV_FIX) + YUV_HALF) << 2);

  const __m128i RG_lo = _mm_unpacklo_epi16(*R, *G);
  const __m128i RG_hi = _mm_unpackhi_epi16(*R, *G);
  const __m128i GB_lo = _mm_unpacklo_epi16(*G, *B);
  const __m128i GB_hi = _mm_unpackhi_epi16(*G, *B);
  TRANSFORM(RG_lo, RG_hi, GB_lo, GB_hi, kRG_u, kGB_u,
            kHALF_UV, YUV_FIX + 2, *U);
  TRANSFORM(RG_lo, RG_hi, GB_lo, GB_hi, kRG_v, kGB_v,
            kHALF_UV, YUV_FIX + 2, *V);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x570, %rsp            # imm = 0x570
movq %rdi, -0x3f8(%rbp)
movq %rsi, -0x400(%rbp)
movq %rdx, -0x408(%rbp)
movq %rcx, -0x410(%rbp)
movq %r8, -0x418(%rbp)
movw $0xb577, -0x372(%rbp)   # imm = 0xB577
movw $0xda09, -0x374(%rbp)   # imm = 0xDA09
movw $0xb577, -0x376(%rbp)   # imm = 0xB577
movw $0xda09, -0x378(%rbp)   # imm = 0xDA09
movw $0xb577, -0x37a(%rbp)   # imm = 0xB577
movw $0xda09, -0x37c(%rbp)   # imm = 0xDA09
movw $0xb577, -0x37e(%rbp)   # imm = 0xB577
movw $0xda09, -0x380(%rbp)   # imm = 0xDA09
movzwl -0x372(%rbp), %eax
movd %eax, %xmm1
movzwl -0x374(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x376(%rbp), %eax
movd %eax, %xmm2
movzwl -0x378(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x37a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x37c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x37e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x380(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x390(%rbp)
movaps -0x390(%rbp), %xmm0
movaps %xmm0, -0x430(%rbp)
movw $0x7080, -0x392(%rbp)   # imm = 0x7080
movw $0x0, -0x394(%rbp)
movw $0x7080, -0x396(%rbp)   # imm = 0x7080
movw $0x0, -0x398(%rbp)
movw $0x7080, -0x39a(%rbp)   # imm = 0x7080
movw $0x0, -0x39c(%rbp)
movw $0x7080, -0x39e(%rbp)   # imm = 0x7080
movw $0x0, -0x3a0(%rbp)
movzwl -0x392(%rbp), %eax
movd %eax, %xmm1
movzwl -0x394(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x396(%rbp), %eax
movd %eax, %xmm2
movzwl -0x398(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x39a(%rbp), %eax
movd %eax, %xmm0
movzwl -0x39c(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x39e(%rbp), %eax
movd %eax, %xmm3
movzwl -0x3a0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3b0(%rbp)
movaps -0x3b0(%rbp), %xmm0
movaps %xmm0, -0x440(%rbp)
movw $0x0, -0x3b2(%rbp)
movw $0x7080, -0x3b4(%rbp)   # imm = 0x7080
movw $0x0, -0x3b6(%rbp)
movw $0x7080, -0x3b8(%rbp)   # imm = 0x7080
movw $0x0, -0x3ba(%rbp)
movw $0x7080, -0x3bc(%rbp)   # imm = 0x7080
movw $0x0, -0x3be(%rbp)
movw $0x7080, -0x3c0(%rbp)   # imm = 0x7080
movzwl -0x3b2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x3b4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x3b6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x3b8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x3ba(%rbp), %eax
movd %eax, %xmm0
movzwl -0x3bc(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x3be(%rbp), %eax
movd %eax, %xmm3
movzwl -0x3c0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3d0(%rbp)
movaps -0x3d0(%rbp), %xmm0
movaps %xmm0, -0x450(%rbp)
movw $0xedb4, -0x3d2(%rbp)   # imm = 0xEDB4
movw $0xa1cc, -0x3d4(%rbp)   # imm = 0xA1CC
movw $0xedb4, -0x3d6(%rbp)   # imm = 0xEDB4
movw $0xa1cc, -0x3d8(%rbp)   # imm = 0xA1CC
movw $0xedb4, -0x3da(%rbp)   # imm = 0xEDB4
movw $0xa1cc, -0x3dc(%rbp)   # imm = 0xA1CC
movw $0xedb4, -0x3de(%rbp)   # imm = 0xEDB4
movw $0xa1cc, -0x3e0(%rbp)   # imm = 0xA1CC
movzwl -0x3d2(%rbp), %eax
movd %eax, %xmm1
movzwl -0x3d4(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movzwl -0x3d6(%rbp), %eax
movd %eax, %xmm2
movzwl -0x3d8(%rbp), %eax
movd %eax, %xmm1
punpcklwd %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1],xmm1[2],xmm2[2],xmm1[3],xmm2[3]
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movzwl -0x3da(%rbp), %eax
movd %eax, %xmm0
movzwl -0x3dc(%rbp), %eax
movd %eax, %xmm2
punpcklwd %xmm0, %xmm2    # xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3]
movzwl -0x3de(%rbp), %eax
movd %eax, %xmm3
movzwl -0x3e0(%rbp), %eax
movd %eax, %xmm0
punpcklwd %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1],xmm0[2],xmm3[2],xmm0[3],xmm3[3]
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x3f0(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps %xmm0, -0x460(%rbp)
movl $0x2020000, -0x2e4(%rbp) # imm = 0x2020000
movl -0x2e4(%rbp), %eax
movl %eax, -0x4(%rbp)
movl %eax, -0x8(%rbp)
movl %eax, -0xc(%rbp)
movl %eax, -0x10(%rbp)
movd -0x4(%rbp), %xmm0
movd -0x8(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movd -0xc(%rbp), %xmm2
movd -0x10(%rbp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movaps %xmm0, -0x20(%rbp)
movaps -0x20(%rbp), %xmm0
movaps %xmm0, -0x470(%rbp)
movq -0x3f8(%rbp), %rax
movaps (%rax), %xmm1
movq -0x400(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm1, -0x340(%rbp)
movaps %xmm0, -0x350(%rbp)
movaps -0x340(%rbp), %xmm0
movaps -0x350(%rbp), %xmm1
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movaps %xmm0, -0x480(%rbp)
movq -0x3f8(%rbp), %rax
movaps (%rax), %xmm1
movq -0x400(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm1, -0x300(%rbp)
movaps %xmm0, -0x310(%rbp)
movaps -0x300(%rbp), %xmm0
movaps -0x310(%rbp), %xmm1
punpckhwd %xmm1, %xmm0    # xmm0 = xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
movaps %xmm0, -0x490(%rbp)
movq -0x400(%rbp), %rax
movaps (%rax), %xmm1
movq -0x408(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm1, -0x360(%rbp)
movaps %xmm0, -0x370(%rbp)
movaps -0x360(%rbp), %xmm0
movaps -0x370(%rbp), %xmm1
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
movaps %xmm0, -0x4a0(%rbp)
movq -0x400(%rbp), %rax
movaps (%rax), %xmm1
movq -0x408(%rbp), %rax
movaps (%rax), %xmm0
movaps %xmm1, -0x320(%rbp)
movaps %xmm0, -0x330(%rbp)
movaps -0x320(%rbp), %xmm0
movaps -0x330(%rbp), %xmm1
punpckhwd %xmm1, %xmm0    # xmm0 = xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
movdqa %xmm0, -0x4b0(%rbp)
movdqa -0x480(%rbp), %xmm1
movdqa -0x430(%rbp), %xmm0
movdqa %xmm1, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm0
movdqa -0x200(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x4c0(%rbp)
movdqa -0x490(%rbp), %xmm1
movdqa -0x430(%rbp), %xmm0
movdqa %xmm1, -0x210(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x210(%rbp), %xmm0
movdqa -0x220(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x4d0(%rbp)
movdqa -0x4a0(%rbp), %xmm1
movdqa -0x440(%rbp), %xmm0
movdqa %xmm1, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm0
movdqa -0x240(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x4e0(%rbp)
movdqa -0x4b0(%rbp), %xmm1
movdqa -0x440(%rbp), %xmm0
movdqa %xmm1, -0x250(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x250(%rbp), %xmm0
movdqa -0x260(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x4f0(%rbp)
movdqa -0x4c0(%rbp), %xmm1
movdqa -0x4e0(%rbp), %xmm0
movdqa %xmm1, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm0
movdqa -0x100(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x500(%rbp)
movdqa -0x4d0(%rbp), %xmm1
movdqa -0x4f0(%rbp), %xmm0
movdqa %xmm1, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
movdqa -0x120(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x510(%rbp)
movdqa -0x500(%rbp), %xmm1
movdqa -0x470(%rbp), %xmm0
movdqa %xmm1, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm0
movdqa -0x140(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x520(%rbp)
movdqa -0x510(%rbp), %xmm1
movdqa -0x470(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x530(%rbp)
movdqa -0x520(%rbp), %xmm0
movdqa %xmm0, -0x70(%rbp)
movl $0x12, -0x74(%rbp)
movdqa -0x70(%rbp), %xmm0
movl -0x74(%rbp), %eax
movd %eax, %xmm1
psrad %xmm1, %xmm0
movdqa %xmm0, -0x540(%rbp)
movdqa -0x530(%rbp), %xmm0
movdqa %xmm0, -0x90(%rbp)
movl $0x12, -0x94(%rbp)
movdqa -0x90(%rbp), %xmm0
movl -0x94(%rbp), %eax
movd %eax, %xmm1
psrad %xmm1, %xmm0
movdqa %xmm0, -0x550(%rbp)
movdqa -0x540(%rbp), %xmm1
movdqa -0x550(%rbp), %xmm0
movdqa %xmm1, -0x30(%rbp)
movdqa %xmm0, -0x40(%rbp)
movdqa -0x30(%rbp), %xmm0
movdqa -0x40(%rbp), %xmm1
packssdw %xmm1, %xmm0
movq -0x410(%rbp), %rax
movdqa %xmm0, (%rax)
jmp 0x181403
movdqa -0x480(%rbp), %xmm1
movdqa -0x450(%rbp), %xmm0
movdqa %xmm1, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm0
movdqa -0x280(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x560(%rbp)
movdqa -0x490(%rbp), %xmm1
movdqa -0x450(%rbp), %xmm0
movdqa %xmm1, -0x290(%rbp)
movdqa %xmm0, -0x2a0(%rbp)
movdqa -0x290(%rbp), %xmm0
movdqa -0x2a0(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x570(%rbp)
movdqa -0x4a0(%rbp), %xmm1
movdqa -0x460(%rbp), %xmm0
movdqa %xmm1, -0x2b0(%rbp)
movdqa %xmm0, -0x2c0(%rbp)
movdqa -0x2b0(%rbp), %xmm0
movdqa -0x2c0(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x580(%rbp)
movdqa -0x4b0(%rbp), %xmm1
movdqa -0x460(%rbp), %xmm0
movdqa %xmm1, -0x2d0(%rbp)
movdqa %xmm0, -0x2e0(%rbp)
movdqa -0x2d0(%rbp), %xmm0
movdqa -0x2e0(%rbp), %xmm1
pmaddwd %xmm1, %xmm0
movdqa %xmm0, -0x590(%rbp)
movdqa -0x560(%rbp), %xmm1
movdqa -0x580(%rbp), %xmm0
movdqa %xmm1, -0x170(%rbp)
movdqa %xmm0, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm0
movdqa -0x180(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x5a0(%rbp)
movdqa -0x570(%rbp), %xmm1
movdqa -0x590(%rbp), %xmm0
movdqa %xmm1, -0x190(%rbp)
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x190(%rbp), %xmm0
movdqa -0x1a0(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x5b0(%rbp)
movdqa -0x5a0(%rbp), %xmm1
movdqa -0x470(%rbp), %xmm0
movdqa %xmm1, -0x1b0(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1b0(%rbp), %xmm0
movdqa -0x1c0(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x5c0(%rbp)
movdqa -0x5b0(%rbp), %xmm1
movdqa -0x470(%rbp), %xmm0
movdqa %xmm1, -0x1d0(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1d0(%rbp), %xmm0
movdqa -0x1e0(%rbp), %xmm1
paddd %xmm1, %xmm0
movdqa %xmm0, -0x5d0(%rbp)
movdqa -0x5c0(%rbp), %xmm0
movdqa %xmm0, -0xb0(%rbp)
movl $0x12, -0xb4(%rbp)
movdqa -0xb0(%rbp), %xmm0
movl -0xb4(%rbp), %eax
movd %eax, %xmm1
psrad %xmm1, %xmm0
movdqa %xmm0, -0x5e0(%rbp)
movdqa -0x5d0(%rbp), %xmm0
movdqa %xmm0, -0xd0(%rbp)
movl $0x12, -0xd4(%rbp)
movdqa -0xd0(%rbp), %xmm0
movl -0xd4(%rbp), %eax
movd %eax, %xmm1
psrad %xmm1, %xmm0
movdqa %xmm0, -0x5f0(%rbp)
movdqa -0x5e0(%rbp), %xmm1
movdqa -0x5f0(%rbp), %xmm0
movdqa %xmm1, -0x50(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x50(%rbp), %xmm0
movdqa -0x60(%rbp), %xmm1
packssdw %xmm1, %xmm0
movq -0x418(%rbp), %rax
movdqa %xmm0, (%rax)
addq $0x570, %rsp            # imm = 0x570
popq %rbp
retq
nop