// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: PredictorAdd12_SSE2
static void PredictorAdd12_SSE2(const uint32_t* in, const uint32_t* upper,
                                int num_pixels, uint32_t* out) {
  int i;
  const __m128i zero = _mm_setzero_si128();
  const __m128i L8 = _mm_cvtsi32_si128((int)out[-1]);
  __m128i L = _mm_unpacklo_epi8(L8, zero);
  for (i = 0; i + 4 <= num_pixels; i += 4) {
    // Load 4 pixels at a time.
    __m128i src = _mm_loadu_si128((const __m128i*)&in[i]);
    const __m128i T = _mm_loadu_si128((const __m128i*)&upper[i]);
    const __m128i T_lo = _mm_unpacklo_epi8(T, zero);
    const __m128i T_hi = _mm_unpackhi_epi8(T, zero);
    const __m128i TL = _mm_loadu_si128((const __m128i*)&upper[i - 1]);
    const __m128i TL_lo = _mm_unpacklo_epi8(TL, zero);
    const __m128i TL_hi = _mm_unpackhi_epi8(TL, zero);
    __m128i diff_lo = _mm_sub_epi16(T_lo, TL_lo);
    __m128i diff_hi = _mm_sub_epi16(T_hi, TL_hi);
    DO_PRED12(diff_lo, 0, 0);
    DO_PRED12_SHIFT(diff_lo, 0);
    DO_PRED12(diff_lo, 1, 1);
    DO_PRED12_SHIFT(diff_lo, 1);
    DO_PRED12(diff_hi, 0, 2);
    DO_PRED12_SHIFT(diff_hi, 0);
    DO_PRED12(diff_hi, 1, 3);
  }
  if (i != num_pixels) {
    VP8LPredictorsAdd_C[12](in + i, upper + i, num_pixels - i, out + i);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x560, %rsp            # imm = 0x560
movq %rdi, -0x3b8(%rbp)
movq %rsi, -0x3c0(%rbp)
movl %edx, -0x3c4(%rbp)
movq %rcx, -0x3d0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x3b0(%rbp)
movaps -0x3b0(%rbp), %xmm0
movaps %xmm0, -0x3f0(%rbp)
movq -0x3d0(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0x2a4(%rbp)
movd -0x2a4(%rbp), %xmm0
movaps %xmm0, -0x2c0(%rbp)
movaps -0x2c0(%rbp), %xmm0
movaps %xmm0, -0x400(%rbp)
movaps -0x400(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x2d0(%rbp)
movaps %xmm0, -0x2e0(%rbp)
movaps -0x2d0(%rbp), %xmm0
movaps -0x2e0(%rbp), %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]
movdqa %xmm0, -0x410(%rbp)
movl $0x0, -0x3d4(%rbp)
movl -0x3d4(%rbp), %eax
addl $0x4, %eax
cmpl -0x3c4(%rbp), %eax
jg 0x16796a
movq -0x3b8(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x420(%rbp)
movq -0x3c0(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x430(%rbp)
movaps -0x430(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x2f0(%rbp)
movaps %xmm0, -0x300(%rbp)
movaps -0x2f0(%rbp), %xmm0
movaps -0x300(%rbp), %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]
movaps %xmm0, -0x440(%rbp)
movaps -0x430(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x10(%rbp)
movaps %xmm0, -0x20(%rbp)
movaps -0x10(%rbp), %xmm0
movaps -0x20(%rbp), %xmm1
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]
movaps %xmm0, -0x450(%rbp)
movq -0x3c0(%rbp), %rax
movl -0x3d4(%rbp), %ecx
decl %ecx
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movups (%rax), %xmm0
movaps %xmm0, -0x460(%rbp)
movaps -0x460(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x310(%rbp)
movaps %xmm0, -0x320(%rbp)
movaps -0x310(%rbp), %xmm0
movaps -0x320(%rbp), %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]
movaps %xmm0, -0x470(%rbp)
movaps -0x460(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
movaps -0x30(%rbp), %xmm0
movaps -0x40(%rbp), %xmm1
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 %xmm0, -0x480(%rbp)
movdqa -0x440(%rbp), %xmm1
movdqa -0x470(%rbp), %xmm0
movdqa %xmm1, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm0
movdqa -0x100(%rbp), %xmm1
psubw %xmm1, %xmm0
movdqa %xmm0, -0x490(%rbp)
movdqa -0x450(%rbp), %xmm1
movdqa -0x480(%rbp), %xmm0
movdqa %xmm1, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
movdqa -0x120(%rbp), %xmm1
psubw %xmm1, %xmm0
movdqa %xmm0, -0x4a0(%rbp)
movaps -0x410(%rbp), %xmm1
movaps -0x490(%rbp), %xmm0
movaps %xmm1, -0x230(%rbp)
movaps %xmm0, -0x240(%rbp)
movaps -0x230(%rbp), %xmm0
movaps -0x240(%rbp), %xmm1
paddw %xmm1, %xmm0
movaps %xmm0, -0x4b0(%rbp)
movaps -0x4b0(%rbp), %xmm0
movaps %xmm0, -0x1b0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
movaps -0x1b0(%rbp), %xmm0
movaps -0x1c0(%rbp), %xmm1
packuswb %xmm1, %xmm0
movaps %xmm0, -0x4c0(%rbp)
movaps -0x420(%rbp), %xmm1
movaps -0x4c0(%rbp), %xmm0
movaps %xmm1, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps -0x50(%rbp), %xmm0
movaps -0x60(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x4d0(%rbp)
movaps -0x4d0(%rbp), %xmm0
movaps %xmm0, -0x130(%rbp)
movaps -0x130(%rbp), %xmm0
movaps %xmm0, -0x140(%rbp)
movl -0x140(%rbp), %edx
movq -0x3d0(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movaps -0x4d0(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x330(%rbp)
movaps %xmm0, -0x340(%rbp)
movaps -0x330(%rbp), %xmm0
movaps -0x340(%rbp), %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]
movdqa %xmm0, -0x410(%rbp)
jmp 0x1675ee
movaps -0x490(%rbp), %xmm0
psrldq $0x8, %xmm0             # xmm0 = xmm0[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
movaps %xmm0, -0x490(%rbp)
movaps -0x420(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movdqa %xmm0, -0x420(%rbp)
jmp 0x167617
movaps -0x410(%rbp), %xmm1
movaps -0x490(%rbp), %xmm0
movaps %xmm1, -0x250(%rbp)
movaps %xmm0, -0x260(%rbp)
movaps -0x250(%rbp), %xmm0
movaps -0x260(%rbp), %xmm1
paddw %xmm1, %xmm0
movaps %xmm0, -0x4e0(%rbp)
movaps -0x4e0(%rbp), %xmm0
movaps %xmm0, -0x1d0(%rbp)
movaps %xmm0, -0x1e0(%rbp)
movaps -0x1d0(%rbp), %xmm0
movaps -0x1e0(%rbp), %xmm1
packuswb %xmm1, %xmm0
movaps %xmm0, -0x4f0(%rbp)
movaps -0x420(%rbp), %xmm1
movaps -0x4f0(%rbp), %xmm0
movaps %xmm1, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps -0x70(%rbp), %xmm0
movaps -0x80(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x500(%rbp), %xmm0
movaps %xmm0, -0x150(%rbp)
movaps -0x150(%rbp), %xmm0
movaps %xmm0, -0x160(%rbp)
movl -0x160(%rbp), %edx
movq -0x3d0(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,4)
movaps -0x500(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x350(%rbp)
movaps %xmm0, -0x360(%rbp)
movaps -0x350(%rbp), %xmm0
movaps -0x360(%rbp), %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]
movdqa %xmm0, -0x410(%rbp)
jmp 0x16770f
movaps -0x420(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movdqa %xmm0, -0x420(%rbp)
jmp 0x167725
movaps -0x410(%rbp), %xmm1
movaps -0x4a0(%rbp), %xmm0
movaps %xmm1, -0x270(%rbp)
movaps %xmm0, -0x280(%rbp)
movaps -0x270(%rbp), %xmm0
movaps -0x280(%rbp), %xmm1
paddw %xmm1, %xmm0
movaps %xmm0, -0x510(%rbp)
movaps -0x510(%rbp), %xmm0
movaps %xmm0, -0x1f0(%rbp)
movaps %xmm0, -0x200(%rbp)
movaps -0x1f0(%rbp), %xmm0
movaps -0x200(%rbp), %xmm1
packuswb %xmm1, %xmm0
movaps %xmm0, -0x520(%rbp)
movaps -0x420(%rbp), %xmm1
movaps -0x520(%rbp), %xmm0
movaps %xmm1, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps -0x90(%rbp), %xmm0
movaps -0xa0(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x530(%rbp)
movaps -0x530(%rbp), %xmm0
movaps %xmm0, -0x170(%rbp)
movaps -0x170(%rbp), %xmm0
movaps %xmm0, -0x180(%rbp)
movl -0x180(%rbp), %edx
movq -0x3d0(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
movl %edx, 0x8(%rax,%rcx,4)
movaps -0x530(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x370(%rbp)
movaps %xmm0, -0x380(%rbp)
movaps -0x370(%rbp), %xmm0
movaps -0x380(%rbp), %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]
movdqa %xmm0, -0x410(%rbp)
jmp 0x167829
movaps -0x4a0(%rbp), %xmm0
psrldq $0x8, %xmm0             # xmm0 = xmm0[8,9,10,11,12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero
movaps %xmm0, -0x4a0(%rbp)
movaps -0x420(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movdqa %xmm0, -0x420(%rbp)
jmp 0x167852
movaps -0x410(%rbp), %xmm1
movaps -0x4a0(%rbp), %xmm0
movaps %xmm1, -0x290(%rbp)
movaps %xmm0, -0x2a0(%rbp)
movaps -0x290(%rbp), %xmm0
movaps -0x2a0(%rbp), %xmm1
paddw %xmm1, %xmm0
movaps %xmm0, -0x540(%rbp)
movaps -0x540(%rbp), %xmm0
movaps %xmm0, -0x210(%rbp)
movaps %xmm0, -0x220(%rbp)
movaps -0x210(%rbp), %xmm0
movaps -0x220(%rbp), %xmm1
packuswb %xmm1, %xmm0
movaps %xmm0, -0x550(%rbp)
movaps -0x420(%rbp), %xmm1
movaps -0x550(%rbp), %xmm0
movaps %xmm1, -0xb0(%rbp)
movaps %xmm0, -0xc0(%rbp)
movaps -0xb0(%rbp), %xmm0
movaps -0xc0(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x560(%rbp)
movaps -0x560(%rbp), %xmm0
movaps %xmm0, -0x190(%rbp)
movaps -0x190(%rbp), %xmm0
movaps %xmm0, -0x1a0(%rbp)
movl -0x1a0(%rbp), %edx
movq -0x3d0(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
movl %edx, 0xc(%rax,%rcx,4)
movaps -0x560(%rbp), %xmm1
movaps -0x3f0(%rbp), %xmm0
movaps %xmm1, -0x390(%rbp)
movaps %xmm0, -0x3a0(%rbp)
movaps -0x390(%rbp), %xmm0
movaps -0x3a0(%rbp), %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]
movdqa %xmm0, -0x410(%rbp)
jmp 0x167956
movl -0x3d4(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x3d4(%rbp)
jmp 0x16732b
movl -0x3d4(%rbp), %eax
cmpl -0x3c4(%rbp), %eax
je 0x1679d0
leaq 0xb1821(%rip), %rax     # 0x2191a0
movq 0x60(%rax), %rax
movq -0x3b8(%rbp), %rdi
movslq -0x3d4(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rdi
movq -0x3c0(%rbp), %rsi
movslq -0x3d4(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rsi
movl -0x3c4(%rbp), %edx
subl -0x3d4(%rbp), %edx
movq -0x3d0(%rbp), %rcx
movslq -0x3d4(%rbp), %r8
shlq $0x2, %r8
addq %r8, %rcx
callq *%rax
addq $0x560, %rsp            # imm = 0x560
popq %rbp
retq
nopl (%rax)