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

  uint8_t* const tu = u - 4;
  uint8_t* const tv = v - 4;
  Load16x4_SSE2(tu, tv, stride, &p3, &p2, &p1, &p0);
  MAX_DIFF1(p3, p2, p1, p0, mask);

  Load16x4_SSE2(u, v, stride, &q0, &q1, &q2, &q3);
  MAX_DIFF2(q3, q2, q1, q0, mask);

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

  Store16x4_SSE2(&p3, &p2, &p1, &p0, tu, tv, stride);
  Store16x4_SSE2(&q0, &q1, &q2, &q3, u, v, stride);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3b0, %rsp            # imm = 0x3B0
movq %rdi, -0x2e8(%rbp)
movq %rsi, -0x2f0(%rbp)
movl %edx, -0x2f4(%rbp)
movl %ecx, -0x2f8(%rbp)
movl %r8d, -0x2fc(%rbp)
movl %r9d, -0x300(%rbp)
movq -0x2e8(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x398(%rbp)
movq -0x2f0(%rbp), %rax
addq $-0x4, %rax
movq %rax, -0x3a0(%rbp)
movq -0x398(%rbp), %rdi
movq -0x3a0(%rbp), %rsi
movl -0x2f4(%rbp), %edx
leaq -0x320(%rbp), %rcx
leaq -0x330(%rbp), %r8
leaq -0x340(%rbp), %r9
leaq -0x350(%rbp), %rax
movq %rax, (%rsp)
callq 0x161490
movdqa -0x350(%rbp), %xmm1
movdqa -0x340(%rbp), %xmm0
movdqa %xmm1, -0xb0(%rbp)
movdqa %xmm0, -0xc0(%rbp)
movdqa -0xb0(%rbp), %xmm1
movdqa -0xc0(%rbp), %xmm0
psubusb %xmm0, %xmm1
movdqa -0x340(%rbp), %xmm2
movdqa -0x350(%rbp), %xmm0
movdqa %xmm2, -0xd0(%rbp)
movdqa %xmm0, -0xe0(%rbp)
movdqa -0xd0(%rbp), %xmm0
movdqa -0xe0(%rbp), %xmm2
psubusb %xmm2, %xmm0
movdqa %xmm1, -0x230(%rbp)
movdqa %xmm0, -0x240(%rbp)
movdqa -0x230(%rbp), %xmm0
por -0x240(%rbp), %xmm0
movdqa %xmm0, -0x310(%rbp)
movdqa -0x310(%rbp), %xmm1
movdqa -0x330(%rbp), %xmm2
movdqa -0x320(%rbp), %xmm0
movdqa %xmm2, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm2
movdqa -0x100(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x320(%rbp), %xmm3
movdqa -0x330(%rbp), %xmm0
movdqa %xmm3, -0x110(%rbp)
movdqa %xmm0, -0x120(%rbp)
movdqa -0x110(%rbp), %xmm0
movdqa -0x120(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x250(%rbp)
movdqa %xmm0, -0x260(%rbp)
movdqa -0x250(%rbp), %xmm0
por -0x260(%rbp), %xmm0
movdqa %xmm1, -0x10(%rbp)
movdqa %xmm0, -0x20(%rbp)
movdqa -0x10(%rbp), %xmm0
movdqa -0x20(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x310(%rbp)
movdqa -0x310(%rbp), %xmm1
movdqa -0x340(%rbp), %xmm2
movdqa -0x330(%rbp), %xmm0
movdqa %xmm2, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm2
movdqa -0x140(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x330(%rbp), %xmm3
movdqa -0x340(%rbp), %xmm0
movdqa %xmm3, -0x150(%rbp)
movdqa %xmm0, -0x160(%rbp)
movdqa -0x150(%rbp), %xmm0
movdqa -0x160(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x270(%rbp)
movdqa %xmm0, -0x280(%rbp)
movdqa -0x270(%rbp), %xmm0
por -0x280(%rbp), %xmm0
movdqa %xmm1, -0x30(%rbp)
movdqa %xmm0, -0x40(%rbp)
movdqa -0x30(%rbp), %xmm0
movdqa -0x40(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x310(%rbp)
movq -0x2e8(%rbp), %rdi
movq -0x2f0(%rbp), %rsi
movl -0x2f4(%rbp), %edx
leaq -0x360(%rbp), %rcx
leaq -0x370(%rbp), %r8
leaq -0x380(%rbp), %r9
leaq -0x390(%rbp), %rax
movq %rax, (%rsp)
callq 0x161490
movdqa -0x310(%rbp), %xmm1
movdqa -0x360(%rbp), %xmm2
movdqa -0x370(%rbp), %xmm0
movdqa %xmm2, -0x170(%rbp)
movdqa %xmm0, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm2
movdqa -0x180(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x370(%rbp), %xmm3
movdqa -0x360(%rbp), %xmm0
movdqa %xmm3, -0x190(%rbp)
movdqa %xmm0, -0x1a0(%rbp)
movdqa -0x190(%rbp), %xmm0
movdqa -0x1a0(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x290(%rbp)
movdqa %xmm0, -0x2a0(%rbp)
movdqa -0x290(%rbp), %xmm0
por -0x2a0(%rbp), %xmm0
movdqa %xmm1, -0x50(%rbp)
movdqa %xmm0, -0x60(%rbp)
movdqa -0x50(%rbp), %xmm0
movdqa -0x60(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x310(%rbp)
movdqa -0x310(%rbp), %xmm1
movdqa -0x380(%rbp), %xmm2
movdqa -0x390(%rbp), %xmm0
movdqa %xmm2, -0x1b0(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1b0(%rbp), %xmm2
movdqa -0x1c0(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x390(%rbp), %xmm3
movdqa -0x380(%rbp), %xmm0
movdqa %xmm3, -0x1d0(%rbp)
movdqa %xmm0, -0x1e0(%rbp)
movdqa -0x1d0(%rbp), %xmm0
movdqa -0x1e0(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x2b0(%rbp)
movdqa %xmm0, -0x2c0(%rbp)
movdqa -0x2b0(%rbp), %xmm0
por -0x2c0(%rbp), %xmm0
movdqa %xmm1, -0x70(%rbp)
movdqa %xmm0, -0x80(%rbp)
movdqa -0x70(%rbp), %xmm0
movdqa -0x80(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x310(%rbp)
movdqa -0x310(%rbp), %xmm1
movdqa -0x370(%rbp), %xmm2
movdqa -0x380(%rbp), %xmm0
movdqa %xmm2, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm2
movdqa -0x200(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x380(%rbp), %xmm3
movdqa -0x370(%rbp), %xmm0
movdqa %xmm3, -0x210(%rbp)
movdqa %xmm0, -0x220(%rbp)
movdqa -0x210(%rbp), %xmm0
movdqa -0x220(%rbp), %xmm3
psubusb %xmm3, %xmm0
movdqa %xmm2, -0x2d0(%rbp)
movdqa %xmm0, -0x2e0(%rbp)
movdqa -0x2d0(%rbp), %xmm0
por -0x2e0(%rbp), %xmm0
movdqa %xmm1, -0x90(%rbp)
movdqa %xmm0, -0xa0(%rbp)
movdqa -0x90(%rbp), %xmm0
movdqa -0xa0(%rbp), %xmm1
pmaxub %xmm1, %xmm0
movdqa %xmm0, -0x310(%rbp)
movl -0x2f8(%rbp), %r8d
movl -0x2fc(%rbp), %r9d
leaq -0x340(%rbp), %rdi
leaq -0x350(%rbp), %rsi
leaq -0x360(%rbp), %rdx
leaq -0x370(%rbp), %rcx
leaq -0x310(%rbp), %rax
movq %rax, (%rsp)
callq 0x15f810
movl -0x300(%rbp), %eax
leaq -0x330(%rbp), %rdi
leaq -0x340(%rbp), %rsi
leaq -0x350(%rbp), %rdx
leaq -0x360(%rbp), %rcx
leaq -0x370(%rbp), %r8
leaq -0x380(%rbp), %r9
leaq -0x310(%rbp), %r10
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x15fa20
movq -0x398(%rbp), %r8
movq -0x3a0(%rbp), %r9
movl -0x2f4(%rbp), %eax
leaq -0x320(%rbp), %rdi
leaq -0x330(%rbp), %rsi
leaq -0x340(%rbp), %rdx
leaq -0x350(%rbp), %rcx
movl %eax, (%rsp)
callq 0x1615f0
movq -0x2e8(%rbp), %r8
movq -0x2f0(%rbp), %r9
movl -0x2f4(%rbp), %eax
leaq -0x360(%rbp), %rdi
leaq -0x370(%rbp), %rsi
leaq -0x380(%rbp), %rdx
leaq -0x390(%rbp), %rcx
movl %eax, (%rsp)
callq 0x1615f0
addq $0x3b0, %rsp            # imm = 0x3B0
popq %rbp
retq
nopl (%rax)