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

  // Load p3, p2, p1, p0
  LOADUV_H_EDGES4(u, v, stride, t2, t1, p1, p0);
  MAX_DIFF1(t2, t1, p1, p0, mask);

  u += 4 * stride;
  v += 4 * stride;

  // Load q0, q1, q2, q3
  LOADUV_H_EDGES4(u, v, stride, q0, q1, t1, t2);
  MAX_DIFF2(t2, t1, q1, q0, mask);

  ComplexMask_SSE2(&p1, &p0, &q0, &q1, thresh, ithresh, &mask);
  DoFilter4_SSE2(&p1, &p0, &q0, &q1, &mask, hev_thresh);

  // Store
  STOREUV(p1, u, v, -2 * stride);
  STOREUV(p0, u, v, -1 * stride);
  STOREUV(q0, u, v, 0 * stride);
  STOREUV(q1, u, v, 1 * stride);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x880, %rsp            # imm = 0x880
movq %rdi, -0x6e8(%rbp)
movq %rsi, -0x6f0(%rbp)
movl %edx, -0x6f4(%rbp)
movl %ecx, -0x6f8(%rbp)
movl %r8d, -0x6fc(%rbp)
movl %r9d, -0x700(%rbp)
jmp 0x15c595
movq -0x6e8(%rbp), %rax
movq %rax, -0x4e8(%rbp)
movq -0x4e8(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x500(%rbp)
movaps -0x500(%rbp), %xmm0
movaps %xmm0, -0x780(%rbp)
movq -0x6f0(%rbp), %rax
movq %rax, -0x508(%rbp)
movq -0x508(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x520(%rbp)
movaps -0x520(%rbp), %xmm0
movaps %xmm0, -0x790(%rbp)
movaps -0x780(%rbp), %xmm1
movaps -0x790(%rbp), %xmm0
movaps %xmm1, -0x3f0(%rbp)
movaps %xmm0, -0x400(%rbp)
movaps -0x3f0(%rbp), %xmm0
movaps -0x400(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x730(%rbp)
jmp 0x15c629
movq -0x6e8(%rbp), %rax
movslq -0x6f4(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x528(%rbp)
movq -0x528(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x540(%rbp)
movaps -0x540(%rbp), %xmm0
movaps %xmm0, -0x7a0(%rbp)
movq -0x6f0(%rbp), %rax
movslq -0x6f4(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x548(%rbp)
movq -0x548(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x560(%rbp)
movaps -0x560(%rbp), %xmm0
movaps %xmm0, -0x7b0(%rbp)
movaps -0x7a0(%rbp), %xmm1
movaps -0x7b0(%rbp), %xmm0
movaps %xmm1, -0x410(%rbp)
movaps %xmm0, -0x420(%rbp)
movaps -0x410(%rbp), %xmm0
movaps -0x420(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x720(%rbp)
jmp 0x15c6d1
movq -0x6e8(%rbp), %rax
movl -0x6f4(%rbp), %ecx
addl %ecx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x568(%rbp)
movq -0x568(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x580(%rbp)
movaps -0x580(%rbp), %xmm0
movaps %xmm0, -0x7c0(%rbp)
movq -0x6f0(%rbp), %rax
movl -0x6f4(%rbp), %ecx
addl %ecx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x588(%rbp)
movq -0x588(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x5a0(%rbp)
movaps -0x5a0(%rbp), %xmm0
movaps %xmm0, -0x7d0(%rbp)
movaps -0x7c0(%rbp), %xmm1
movaps -0x7d0(%rbp), %xmm0
movaps %xmm1, -0x430(%rbp)
movaps %xmm0, -0x440(%rbp)
movaps -0x430(%rbp), %xmm0
movaps -0x440(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x740(%rbp)
jmp 0x15c781
movq -0x6e8(%rbp), %rax
movl -0x6f4(%rbp), %edx
movl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x5a8(%rbp)
movq -0x5a8(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x5c0(%rbp)
movaps -0x5c0(%rbp), %xmm0
movaps %xmm0, -0x7e0(%rbp)
movq -0x6f0(%rbp), %rax
movl -0x6f4(%rbp), %edx
movl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x5c8(%rbp)
movq -0x5c8(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x5e0(%rbp)
movaps -0x5e0(%rbp), %xmm0
movaps %xmm0, -0x7f0(%rbp)
movaps -0x7e0(%rbp), %xmm1
movaps -0x7f0(%rbp), %xmm0
movaps %xmm1, -0x450(%rbp)
movaps %xmm0, -0x460(%rbp)
movaps -0x450(%rbp), %xmm0
movaps -0x460(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x750(%rbp)
jmp 0x15c837
jmp 0x15c839
movdqa -0x750(%rbp), %xmm1
movdqa -0x740(%rbp), %xmm0
movdqa %xmm1, -0xb0(%rbp)
movdqa %xmm0, -0xc0(%rbp)
movdqa -0xb0(%rbp), %xmm1
movdqa -0xc0(%rbp), %xmm0
psubusb %xmm0, %xmm1
movdqa -0x740(%rbp), %xmm2
movdqa -0x750(%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, -0x710(%rbp)
movdqa -0x710(%rbp), %xmm1
movdqa -0x720(%rbp), %xmm2
movdqa -0x730(%rbp), %xmm0
movdqa %xmm2, -0xf0(%rbp)
movdqa %xmm0, -0x100(%rbp)
movdqa -0xf0(%rbp), %xmm2
movdqa -0x100(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x730(%rbp), %xmm3
movdqa -0x720(%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, -0x710(%rbp)
movdqa -0x710(%rbp), %xmm1
movdqa -0x740(%rbp), %xmm2
movdqa -0x720(%rbp), %xmm0
movdqa %xmm2, -0x130(%rbp)
movdqa %xmm0, -0x140(%rbp)
movdqa -0x130(%rbp), %xmm2
movdqa -0x140(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x720(%rbp), %xmm3
movdqa -0x740(%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, -0x710(%rbp)
movl -0x6f4(%rbp), %ecx
shll $0x2, %ecx
movq -0x6e8(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x6e8(%rbp)
movl -0x6f4(%rbp), %ecx
shll $0x2, %ecx
movq -0x6f0(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x6f0(%rbp)
jmp 0x15ca65
movq -0x6e8(%rbp), %rax
movq %rax, -0x5e8(%rbp)
movq -0x5e8(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x600(%rbp)
movaps -0x600(%rbp), %xmm0
movaps %xmm0, -0x800(%rbp)
movq -0x6f0(%rbp), %rax
movq %rax, -0x608(%rbp)
movq -0x608(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x620(%rbp)
movaps -0x620(%rbp), %xmm0
movaps %xmm0, -0x810(%rbp)
movaps -0x800(%rbp), %xmm1
movaps -0x810(%rbp), %xmm0
movaps %xmm1, -0x470(%rbp)
movaps %xmm0, -0x480(%rbp)
movaps -0x470(%rbp), %xmm0
movaps -0x480(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x760(%rbp)
jmp 0x15caf9
movq -0x6e8(%rbp), %rax
movslq -0x6f4(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x628(%rbp)
movq -0x628(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x640(%rbp)
movaps -0x640(%rbp), %xmm0
movaps %xmm0, -0x820(%rbp)
movq -0x6f0(%rbp), %rax
movslq -0x6f4(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x648(%rbp)
movq -0x648(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x660(%rbp)
movaps -0x660(%rbp), %xmm0
movaps %xmm0, -0x830(%rbp)
movaps -0x820(%rbp), %xmm1
movaps -0x830(%rbp), %xmm0
movaps %xmm1, -0x490(%rbp)
movaps %xmm0, -0x4a0(%rbp)
movaps -0x490(%rbp), %xmm0
movaps -0x4a0(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x770(%rbp)
jmp 0x15cba1
movq -0x6e8(%rbp), %rax
movl -0x6f4(%rbp), %ecx
addl %ecx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x668(%rbp)
movq -0x668(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x680(%rbp)
movaps -0x680(%rbp), %xmm0
movaps %xmm0, -0x840(%rbp)
movq -0x6f0(%rbp), %rax
movl -0x6f4(%rbp), %ecx
addl %ecx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x688(%rbp)
movq -0x688(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x6a0(%rbp)
movaps -0x6a0(%rbp), %xmm0
movaps %xmm0, -0x850(%rbp)
movaps -0x840(%rbp), %xmm1
movaps -0x850(%rbp), %xmm0
movaps %xmm1, -0x4b0(%rbp)
movaps %xmm0, -0x4c0(%rbp)
movaps -0x4b0(%rbp), %xmm0
movaps -0x4c0(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x720(%rbp)
jmp 0x15cc51
movq -0x6e8(%rbp), %rax
movl -0x6f4(%rbp), %edx
movl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x6a8(%rbp)
movq -0x6a8(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x6c0(%rbp)
movaps -0x6c0(%rbp), %xmm0
movaps %xmm0, -0x860(%rbp)
movq -0x6f0(%rbp), %rax
movl -0x6f4(%rbp), %edx
movl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x6c8(%rbp)
movq -0x6c8(%rbp), %rax
movq (%rax), %xmm0
movaps %xmm0, -0x6e0(%rbp)
movaps -0x6e0(%rbp), %xmm0
movaps %xmm0, -0x870(%rbp)
movaps -0x860(%rbp), %xmm1
movaps -0x870(%rbp), %xmm0
movaps %xmm1, -0x4d0(%rbp)
movaps %xmm0, -0x4e0(%rbp)
movaps -0x4d0(%rbp), %xmm0
movaps -0x4e0(%rbp), %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
movdqa %xmm0, -0x730(%rbp)
jmp 0x15cd07
jmp 0x15cd09
movdqa -0x710(%rbp), %xmm1
movdqa -0x760(%rbp), %xmm2
movdqa -0x770(%rbp), %xmm0
movdqa %xmm2, -0x170(%rbp)
movdqa %xmm0, -0x180(%rbp)
movdqa -0x170(%rbp), %xmm2
movdqa -0x180(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x770(%rbp), %xmm3
movdqa -0x760(%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, -0x710(%rbp)
movdqa -0x710(%rbp), %xmm1
movdqa -0x720(%rbp), %xmm2
movdqa -0x730(%rbp), %xmm0
movdqa %xmm2, -0x1b0(%rbp)
movdqa %xmm0, -0x1c0(%rbp)
movdqa -0x1b0(%rbp), %xmm2
movdqa -0x1c0(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x730(%rbp), %xmm3
movdqa -0x720(%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, -0x710(%rbp)
movdqa -0x710(%rbp), %xmm1
movdqa -0x770(%rbp), %xmm2
movdqa -0x720(%rbp), %xmm0
movdqa %xmm2, -0x1f0(%rbp)
movdqa %xmm0, -0x200(%rbp)
movdqa -0x1f0(%rbp), %xmm2
movdqa -0x200(%rbp), %xmm0
psubusb %xmm0, %xmm2
movdqa -0x720(%rbp), %xmm3
movdqa -0x770(%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, -0x710(%rbp)
movl -0x6f8(%rbp), %r8d
movl -0x6fc(%rbp), %r9d
leaq -0x740(%rbp), %rdi
leaq -0x750(%rbp), %rsi
leaq -0x760(%rbp), %rdx
leaq -0x770(%rbp), %rcx
leaq -0x710(%rbp), %rax
movq %rax, (%rsp)
callq 0x15f810
movl -0x700(%rbp), %r9d
leaq -0x740(%rbp), %rdi
leaq -0x750(%rbp), %rsi
leaq -0x760(%rbp), %rdx
leaq -0x770(%rbp), %rcx
leaq -0x710(%rbp), %r8
callq 0x161bf0
movq -0x6e8(%rbp), %rax
movl -0x6f4(%rbp), %ecx
addl %ecx, %ecx
negl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movaps -0x740(%rbp), %xmm0
movq %rax, -0x2e8(%rbp)
movaps %xmm0, -0x300(%rbp)
movq -0x300(%rbp), %rcx
movq -0x2e8(%rbp), %rax
movq %rcx, (%rax)
movaps -0x740(%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, -0x740(%rbp)
movq -0x6f0(%rbp), %rax
movl -0x6f4(%rbp), %ecx
addl %ecx, %ecx
negl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movaps -0x740(%rbp), %xmm0
movq %rax, -0x308(%rbp)
movaps %xmm0, -0x320(%rbp)
movq -0x320(%rbp), %rcx
movq -0x308(%rbp), %rax
movq %rcx, (%rax)
jmp 0x15d01d
movq -0x6e8(%rbp), %rax
movl -0x6f4(%rbp), %ecx
negl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movaps -0x750(%rbp), %xmm0
movq %rax, -0x328(%rbp)
movaps %xmm0, -0x340(%rbp)
movq -0x340(%rbp), %rcx
movq -0x328(%rbp), %rax
movq %rcx, (%rax)
movaps -0x750(%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, -0x750(%rbp)
movq -0x6f0(%rbp), %rax
movl -0x6f4(%rbp), %ecx
negl %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movaps -0x750(%rbp), %xmm0
movq %rax, -0x348(%rbp)
movaps %xmm0, -0x360(%rbp)
movq -0x360(%rbp), %rcx
movq -0x348(%rbp), %rax
movq %rcx, (%rax)
jmp 0x15d0a8
movq -0x6e8(%rbp), %rax
movaps -0x760(%rbp), %xmm0
movq %rax, -0x368(%rbp)
movaps %xmm0, -0x380(%rbp)
movq -0x380(%rbp), %rcx
movq -0x368(%rbp), %rax
movq %rcx, (%rax)
movaps -0x760(%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, -0x760(%rbp)
movq -0x6f0(%rbp), %rax
movaps -0x760(%rbp), %xmm0
movq %rax, -0x388(%rbp)
movaps %xmm0, -0x3a0(%rbp)
movq -0x3a0(%rbp), %rcx
movq -0x388(%rbp), %rax
movq %rcx, (%rax)
jmp 0x15d117
movq -0x6e8(%rbp), %rax
movslq -0x6f4(%rbp), %rcx
addq %rcx, %rax
movaps -0x770(%rbp), %xmm0
movq %rax, -0x3a8(%rbp)
movaps %xmm0, -0x3c0(%rbp)
movq -0x3c0(%rbp), %rcx
movq -0x3a8(%rbp), %rax
movq %rcx, (%rax)
movaps -0x770(%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, -0x770(%rbp)
movq -0x6f0(%rbp), %rax
movslq -0x6f4(%rbp), %rcx
addq %rcx, %rax
movaps -0x770(%rbp), %xmm0
movq %rax, -0x3c8(%rbp)
movaps %xmm0, -0x3e0(%rbp)
movq -0x3e0(%rbp), %rcx
movq -0x3c8(%rbp), %rax
movq %rcx, (%rax)
addq $0x880, %rsp            # imm = 0x880
popq %rbp
retq
nopw %cs:(%rax,%rax)