// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/libraries/libwebp/src/dsp/dec_sse2.c
// Function: VFilter16_SSE2
static void VFilter16_SSE2(uint8_t* p, int stride,
                           int thresh, int ithresh, int hev_thresh) {
  __m128i t1;
  __m128i mask;
  __m128i p2, p1, p0, q0, q1, q2;

  // Load p3, p2, p1, p0
  LOAD_H_EDGES4(p - 4 * stride, stride, t1, p2, p1, p0);
  MAX_DIFF1(t1, p2, p1, p0, mask);

  // Load q0, q1, q2, q3
  LOAD_H_EDGES4(p, stride, q0, q1, q2, t1);
  MAX_DIFF2(t1, q2, q1, q0, mask);

  ComplexMask_SSE2(&p1, &p0, &q0, &q1, thresh, ithresh, &mask);
  DoFilter6_SSE2(&p2, &p1, &p0, &q0, &q1, &q2, &mask, hev_thresh);

  // Store
  _mm_storeu_si128((__m128i*)&p[-3 * stride], p2);
  _mm_storeu_si128((__m128i*)&p[-2 * stride], p1);
  _mm_storeu_si128((__m128i*)&p[-1 * stride], p0);
  _mm_storeu_si128((__m128i*)&p[+0 * stride], q0);
  _mm_storeu_si128((__m128i*)&p[+1 * stride], q1);
  _mm_storeu_si128((__m128i*)&p[+2 * stride], q2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x490, %rsp            # imm = 0x490
movq %rdi, -0x3e8(%rbp)
movl %esi, -0x3ec(%rbp)
movl %edx, -0x3f0(%rbp)
movl %ecx, -0x3f4(%rbp)
movl %r8d, -0x3f8(%rbp)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll $0x2, %ecx
movslq %ecx, %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
imull $0x0, -0x3ec(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3a8(%rbp)
movq -0x3a8(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x410(%rbp)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll $0x2, %ecx
movslq %ecx, %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movl -0x3ec(%rbp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3b0(%rbp)
movq -0x3b0(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x430(%rbp)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll $0x2, %ecx
movslq %ecx, %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movl -0x3ec(%rbp), %ecx
shll %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3b8(%rbp)
movq -0x3b8(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x440(%rbp)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll $0x2, %ecx
movslq %ecx, %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
imull $0x3, -0x3ec(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3c0(%rbp)
movq -0x3c0(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x450(%rbp)
jmp 0x159788
movdqa -0x450(%rbp), %xmm1
movdqa -0x440(%rbp), %xmm0
movdqa %xmm1, -0x170(%rbp)
movdqa %xmm0, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm1
movdqa -0x180(%rbp), %xmm0
psubusb %xmm0, %xmm1
movdqa -0x440(%rbp), %xmm2
movdqa -0x450(%rbp), %xmm0
movdqa %xmm2, -0x190(%rbp)
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x190(%rbp), %xmm0
movdqa -0x1a0(%rbp), %xmm2
psubusb %xmm2, %xmm0
movdqa %xmm1, -0x2f0(%rbp)
movdqa %xmm0, -0x300(%rbp)
movdqa -0x2f0(%rbp), %xmm0
por -0x300(%rbp), %xmm0
movdqa %xmm0, -0x420(%rbp)
movdqa -0x420(%rbp), %xmm1
movdqa -0x430(%rbp), %xmm2
movdqa -0x410(%rbp), %xmm0
movdqa %xmm2, -0x1b0(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1b0(%rbp), %xmm2
movdqa -0x1c0(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x410(%rbp), %xmm3
movdqa -0x430(%rbp), %xmm0
movdqa %xmm3, -0x1d0(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1d0(%rbp), %xmm0
movdqa -0x1e0(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x310(%rbp)
movdqa %xmm0, -0x320(%rbp)
movdqa -0x310(%rbp), %xmm0
por -0x320(%rbp), %xmm0
movdqa %xmm1, -0xd0(%rbp)
movdqa %xmm0, -0xe0(%rbp)
movdqa -0xd0(%rbp), %xmm0
movdqa -0xe0(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x420(%rbp)
movdqa -0x420(%rbp), %xmm1
movdqa -0x440(%rbp), %xmm2
movdqa -0x430(%rbp), %xmm0
movdqa %xmm2, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm2
movdqa -0x200(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x430(%rbp), %xmm3
movdqa -0x440(%rbp), %xmm0
movdqa %xmm3, -0x210(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x210(%rbp), %xmm0
movdqa -0x220(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x330(%rbp)
movdqa %xmm0, -0x340(%rbp)
movdqa -0x330(%rbp), %xmm0
por -0x340(%rbp), %xmm0
movdqa %xmm1, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm0
movdqa -0x100(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x420(%rbp)
jmp 0x159992
movq -0x3e8(%rbp), %rax
imull $0x0, -0x3ec(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3c8(%rbp)
movq -0x3c8(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x460(%rbp)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3d0(%rbp)
movq -0x3d0(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x470(%rbp)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3d8(%rbp)
movq -0x3d8(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x480(%rbp)
movq -0x3e8(%rbp), %rax
imull $0x3, -0x3ec(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x3e0(%rbp)
movq -0x3e0(%rbp), %rax
movdqu (%rax), %xmm0
movdqa %xmm0, -0x410(%rbp)
jmp 0x159a4f
movdqa -0x420(%rbp), %xmm1
movdqa -0x460(%rbp), %xmm2
movdqa -0x470(%rbp), %xmm0
movdqa %xmm2, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm2
movdqa -0x240(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x470(%rbp), %xmm3
movdqa -0x460(%rbp), %xmm0
movdqa %xmm3, -0x250(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x250(%rbp), %xmm0
movdqa -0x260(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x350(%rbp)
movdqa %xmm0, -0x360(%rbp)
movdqa -0x350(%rbp), %xmm0
por -0x360(%rbp), %xmm0
movdqa %xmm1, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
movdqa -0x120(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x420(%rbp)
movdqa -0x420(%rbp), %xmm1
movdqa -0x480(%rbp), %xmm2
movdqa -0x410(%rbp), %xmm0
movdqa %xmm2, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm2
movdqa -0x280(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x410(%rbp), %xmm3
movdqa -0x480(%rbp), %xmm0
movdqa %xmm3, -0x290(%rbp)
movdqa %xmm0, -0x2a0(%rbp)
movdqa -0x290(%rbp), %xmm0
movdqa -0x2a0(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x370(%rbp)
movdqa %xmm0, -0x380(%rbp)
movdqa -0x370(%rbp), %xmm0
por -0x380(%rbp), %xmm0
movdqa %xmm1, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm0
movdqa -0x140(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x420(%rbp)
movdqa -0x420(%rbp), %xmm1
movdqa -0x470(%rbp), %xmm2
movdqa -0x480(%rbp), %xmm0
movdqa %xmm2, -0x2b0(%rbp)
movdqa %xmm0, -0x2c0(%rbp)
movdqa -0x2b0(%rbp), %xmm2
movdqa -0x2c0(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x480(%rbp), %xmm3
movdqa -0x470(%rbp), %xmm0
movdqa %xmm3, -0x2d0(%rbp)
movdqa %xmm0, -0x2e0(%rbp)
movdqa -0x2d0(%rbp), %xmm0
movdqa -0x2e0(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x390(%rbp)
movdqa %xmm0, -0x3a0(%rbp)
movdqa -0x390(%rbp), %xmm0
por -0x3a0(%rbp), %xmm0
movdqa %xmm1, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x420(%rbp)
movl -0x3f0(%rbp), %r8d
movl -0x3f4(%rbp), %r9d
leaq -0x440(%rbp), %rdi
leaq -0x450(%rbp), %rsi
leaq -0x460(%rbp), %rdx
leaq -0x470(%rbp), %rcx
leaq -0x420(%rbp), %rax
movq %rax, (%rsp)
callq 0x15f810
movl -0x3f8(%rbp), %eax
leaq -0x430(%rbp), %rdi
leaq -0x440(%rbp), %rsi
leaq -0x450(%rbp), %rdx
leaq -0x460(%rbp), %rcx
leaq -0x470(%rbp), %r8
leaq -0x480(%rbp), %r9
leaq -0x420(%rbp), %r10
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x15fa20
movq -0x3e8(%rbp), %rax
imull $0xfffffffd, -0x3ec(%rbp), %ecx # imm = 0xFFFFFFFD
movslq %ecx, %rcx
addq %rcx, %rax
movdqa -0x430(%rbp), %xmm0
movq %rax, -0x8(%rbp)
movdqa %xmm0, -0x20(%rbp)
movdqa -0x20(%rbp), %xmm0
movq -0x8(%rbp), %rax
movdqu %xmm0, (%rax)
movq -0x3e8(%rbp), %rax
imull $0xfffffffe, -0x3ec(%rbp), %ecx # imm = 0xFFFFFFFE
movslq %ecx, %rcx
addq %rcx, %rax
movdqa -0x440(%rbp), %xmm0
movq %rax, -0x28(%rbp)
movdqa %xmm0, -0x40(%rbp)
movdqa -0x40(%rbp), %xmm0
movq -0x28(%rbp), %rax
movdqu %xmm0, (%rax)
movq -0x3e8(%rbp), %rax
imull $0xffffffff, -0x3ec(%rbp), %ecx # imm = 0xFFFFFFFF
movslq %ecx, %rcx
addq %rcx, %rax
movdqa -0x450(%rbp), %xmm0
movq %rax, -0x48(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x60(%rbp), %xmm0
movq -0x48(%rbp), %rax
movdqu %xmm0, (%rax)
movq -0x3e8(%rbp), %rax
imull $0x0, -0x3ec(%rbp), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movdqa -0x460(%rbp), %xmm0
movq %rax, -0x68(%rbp)
movdqa %xmm0, -0x80(%rbp)
movdqa -0x80(%rbp), %xmm0
movq -0x68(%rbp), %rax
movdqu %xmm0, (%rax)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll $0x0, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movdqa -0x470(%rbp), %xmm0
movq %rax, -0x88(%rbp)
movdqa %xmm0, -0xa0(%rbp)
movdqa -0xa0(%rbp), %xmm0
movq -0x88(%rbp), %rax
movdqu %xmm0, (%rax)
movq -0x3e8(%rbp), %rax
movl -0x3ec(%rbp), %ecx
shll %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movdqa -0x480(%rbp), %xmm0
movq %rax, -0xa8(%rbp)
movdqa %xmm0, -0xc0(%rbp)
movdqa -0xc0(%rbp), %xmm0
movq -0xa8(%rbp), %rax
movdqu %xmm0, (%rax)
addq $0x490, %rsp            # imm = 0x490
popq %rbp
retq
nopw (%rax,%rax)