// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/libraries/libwebp/src/dsp/lossless_sse2.c
// Function: PredictorAdd10_SSE2
static void PredictorAdd10_SSE2(const uint32_t* in, const uint32_t* upper,
                                int num_pixels, uint32_t* out) {
  int i;
  __m128i L = _mm_cvtsi32_si128((int)out[-1]);
  for (i = 0; i + 4 <= num_pixels; i += 4) {
    __m128i src = _mm_loadu_si128((const __m128i*)&in[i]);
    __m128i TL = _mm_loadu_si128((const __m128i*)&upper[i - 1]);
    const __m128i T = _mm_loadu_si128((const __m128i*)&upper[i]);
    const __m128i TR = _mm_loadu_si128((const __m128i*)&upper[i + 1]);
    __m128i avgTTR;
    Average2_m128i(&T, &TR, &avgTTR);
    DO_PRED10(0);
    DO_PRED10_SHIFT;
    DO_PRED10(1);
    DO_PRED10_SHIFT;
    DO_PRED10(2);
    DO_PRED10_SHIFT;
    DO_PRED10(3);
  }
  if (i != num_pixels) {
    VP8LPredictorsAdd_C[10](in + i, upper + i, num_pixels - i, out + i);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp            # imm = 0x270
movq %rdi, -0x148(%rbp)
movq %rsi, -0x150(%rbp)
movl %edx, -0x154(%rbp)
movq %rcx, -0x160(%rbp)
movq -0x160(%rbp), %rax
movl -0x4(%rax), %eax
movl %eax, -0x124(%rbp)
movd -0x124(%rbp), %xmm0
movdqa %xmm0, -0x140(%rbp)
movdqa -0x140(%rbp), %xmm0
movdqa %xmm0, -0x180(%rbp)
movl $0x0, -0x164(%rbp)
movl -0x164(%rbp), %eax
addl $0x4, %eax
cmpl -0x154(%rbp), %eax
jg 0x1666c5
movq -0x148(%rbp), %rax
movslq -0x164(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x190(%rbp)
movq -0x150(%rbp), %rax
movl -0x164(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x1a0(%rbp)
movq -0x150(%rbp), %rax
movslq -0x164(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x1b0(%rbp)
movq -0x150(%rbp), %rax
movl -0x164(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x1c0(%rbp)
leaq -0x1b0(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
leaq -0x1d0(%rbp), %rdx
callq 0x16a7f0
leaq -0x180(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
movq %rdx, -0x258(%rbp)
callq 0x16a7f0
movq -0x258(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
leaq -0x1f0(%rbp), %rdx
callq 0x16a7f0
movaps -0x1f0(%rbp), %xmm1
movaps -0x190(%rbp), %xmm0
movaps %xmm1, -0x10(%rbp)
movaps %xmm0, -0x20(%rbp)
movaps -0x10(%rbp), %xmm0
movaps -0x20(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x180(%rbp)
movaps -0x180(%rbp), %xmm0
movaps %xmm0, -0xb0(%rbp)
movaps -0xb0(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movl -0xc0(%rbp), %edx
movq -0x160(%rbp), %rax
movl -0x164(%rbp), %ecx
addl $0x0, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x166423
movaps -0x1d0(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x1d0(%rbp)
movaps -0x1a0(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x1a0(%rbp)
movaps -0x190(%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, -0x190(%rbp)
jmp 0x16645f
leaq -0x180(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
leaq -0x200(%rbp), %rdx
movq %rdx, -0x260(%rbp)
callq 0x16a7f0
movq -0x260(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
leaq -0x210(%rbp), %rdx
callq 0x16a7f0
movaps -0x210(%rbp), %xmm1
movaps -0x190(%rbp), %xmm0
movaps %xmm1, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
movaps -0x30(%rbp), %xmm0
movaps -0x40(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x180(%rbp)
movaps -0x180(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movaps -0xd0(%rbp), %xmm0
movaps %xmm0, -0xe0(%rbp)
movl -0xe0(%rbp), %edx
movq -0x160(%rbp), %rax
movl -0x164(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x1664fd
movaps -0x1d0(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x1d0(%rbp)
movaps -0x1a0(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x1a0(%rbp)
movaps -0x190(%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, -0x190(%rbp)
jmp 0x166539
leaq -0x180(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
leaq -0x220(%rbp), %rdx
movq %rdx, -0x268(%rbp)
callq 0x16a7f0
movq -0x268(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
leaq -0x230(%rbp), %rdx
callq 0x16a7f0
movaps -0x230(%rbp), %xmm1
movaps -0x190(%rbp), %xmm0
movaps %xmm1, -0x50(%rbp)
movaps %xmm0, -0x60(%rbp)
movaps -0x50(%rbp), %xmm0
movaps -0x60(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x180(%rbp)
movaps -0x180(%rbp), %xmm0
movaps %xmm0, -0xf0(%rbp)
movaps -0xf0(%rbp), %xmm0
movaps %xmm0, -0x100(%rbp)
movl -0x100(%rbp), %edx
movq -0x160(%rbp), %rax
movl -0x164(%rbp), %ecx
addl $0x2, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x1665d7
movaps -0x1d0(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x1d0(%rbp)
movaps -0x1a0(%rbp), %xmm0
psrldq $0x4, %xmm0             # xmm0 = xmm0[4,5,6,7,8,9,10,11,12,13,14,15],zero,zero,zero,zero
movaps %xmm0, -0x1a0(%rbp)
movaps -0x190(%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, -0x190(%rbp)
jmp 0x166613
leaq -0x180(%rbp), %rdi
leaq -0x1a0(%rbp), %rsi
leaq -0x240(%rbp), %rdx
movq %rdx, -0x270(%rbp)
callq 0x16a7f0
movq -0x270(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
leaq -0x250(%rbp), %rdx
callq 0x16a7f0
movaps -0x250(%rbp), %xmm1
movaps -0x190(%rbp), %xmm0
movaps %xmm1, -0x70(%rbp)
movaps %xmm0, -0x80(%rbp)
movaps -0x70(%rbp), %xmm0
movaps -0x80(%rbp), %xmm1
paddb %xmm1, %xmm0
movaps %xmm0, -0x180(%rbp)
movaps -0x180(%rbp), %xmm0
movaps %xmm0, -0x110(%rbp)
movaps -0x110(%rbp), %xmm0
movaps %xmm0, -0x120(%rbp)
movl -0x120(%rbp), %edx
movq -0x160(%rbp), %rax
movl -0x164(%rbp), %ecx
addl $0x3, %ecx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x1666b1
movl -0x164(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x164(%rbp)
jmp 0x166290
movl -0x164(%rbp), %eax
cmpl -0x154(%rbp), %eax
je 0x16672b
leaq 0xb2ac6(%rip), %rax     # 0x2191a0
movq 0x50(%rax), %rax
movq -0x148(%rbp), %rdi
movslq -0x164(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rdi
movq -0x150(%rbp), %rsi
movslq -0x164(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rsi
movl -0x154(%rbp), %edx
subl -0x164(%rbp), %edx
movq -0x160(%rbp), %rcx
movslq -0x164(%rbp), %r8
shlq $0x2, %r8
addq %r8, %rcx
callq *%rax
addq $0x270, %rsp            # imm = 0x270
popq %rbp
retq
nopw %cs:(%rax,%rax)