user: What would the C source look like for the assembly code provided here?

```asm
<Subsample_Vertical>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x90,%rsp
  mov    %rdi,-0x70(%rsp)
  mov    %r8d,-0x60(%rsp)
  cmp    %r8d,0xd0(%rsp)
  jge    L123
  mov    0xc8(%rsp),%eax
  mov    %r9d,%ebp
  mov    %rsi,%r11
  mov    %edx,%r10d
  imul   0xd0(%rsp),%ebp
  pxor   %xmm3,%xmm3
  sar    %eax
  mov    %eax,-0x5c(%rsp)
  lea    -0x1(%rcx),%eax
  mov    %eax,-0x54(%rsp)
  mov    0xd8(%rsp),%eax
  imul   %r9d,%eax
  mov    0xd0(%rsp),%r9d
  imul   %edx,%r9d
  mov    %eax,-0x58(%rsp)
  mov    0xd8(%rsp),%eax
  imul   %edx,%eax
  movslq %r9d,%r9
  lea    (%rsi,%r9,2),%rdi
  cltq
  mov    %rax,-0x50(%rsp)
  add    %rax,%rax
  mov    %rax,-0x48(%rsp)
  mov    %edx,%eax
  mov    %rax,-0x68(%rsp)
  add    %r9,%rax
  lea    (%rsi,%rax,2),%r12
  mov    %edx,%eax
  shr    $0x4,%eax
  lea    -0x1(%rax),%ebx
  mov    %edx,%eax
  and    $0xfffffff0,%eax
  add    $0x1,%rbx
  lea    0x1(%rax),%esi
  movslq %eax,%rcx
  mov    %eax,-0x34(%rsp)
  shl    $0x4,%rbx
  mov    %rcx,-0x30(%rsp)
  movslq %esi,%rcx
  mov    %rcx,-0x28(%rsp)
  lea    0x2(%rax),%ecx
  mov    %esi,-0x20(%rsp)
  lea    0x3(%rax),%esi
  mov    %ecx,-0x1c(%rsp)
  movslq %ecx,%rcx
  mov    %rcx,-0x18(%rsp)
  lea    0x4(%rax),%ecx
  mov    %esi,-0x8(%rsp)
  movslq %esi,%rsi
  mov    %rsi,-0x10(%rsp)
  lea    0x5(%rax),%esi
  mov    %ecx,-0x4(%rsp)
  movslq %ecx,%rcx
  mov    %rcx,(%rsp)
  lea    0x6(%rax),%ecx
  mov    %esi,0x10(%rsp)
  movslq %esi,%rsi
  mov    %rsi,0x8(%rsp)
  lea    0x7(%rax),%esi
  mov    %ecx,0x14(%rsp)
  movslq %ecx,%rcx
  mov    %rcx,0x18(%rsp)
  lea    0x8(%rax),%ecx
  mov    %esi,0x28(%rsp)
  movslq %esi,%rsi
  mov    %rsi,0x20(%rsp)
  lea    0x9(%rax),%esi
  mov    %ecx,0x2c(%rsp)
  movslq %ecx,%rcx
  mov    %rcx,0x30(%rsp)
  lea    0xa(%rax),%ecx
  mov    %esi,0x40(%rsp)
  movslq %esi,%rsi
  mov    %rsi,0x38(%rsp)
  lea    0xb(%rax),%esi
  mov    %ecx,0x44(%rsp)
  movslq %ecx,%rcx
  mov    %rcx,0x48(%rsp)
  lea    0xc(%rax),%ecx
  mov    %esi,0x58(%rsp)
  movslq %esi,%rsi
  mov    %rsi,0x50(%rsp)
  lea    0xd(%rax),%esi
  add    $0xe,%eax
  mov    %eax,0x7c(%rsp)
  cltq
  mov    %rax,0x80(%rsp)
  movslq %edx,%rax
  mov    %ecx,0x5c(%rsp)
  movslq %ecx,%rcx
  mov    %esi,0x78(%rsp)
  movslq %esi,%rsi
  mov    %rax,-0x40(%rsp)
  lea    -0x1(%rdx),%eax
  mov    %rcx,0x68(%rsp)
  mov    %rsi,0x70(%rsp)
  mov    %eax,-0x38(%rsp)
  mov    %rax,0x60(%rsp)
  nopw   0x0(%rax,%rax,1)
L153:
  mov    %ebp,%eax
  mov    %r10d,%r8d
  mov    -0x70(%rsp),%rsi
  mov    -0x40(%rsp),%rcx
  cltd
  idivl  0xc8(%rsp)
  imul   %eax,%r8d
  movslq %r8d,%r8
  add    %r8,%rsi
  add    %rsi,%rcx
  cmp    -0x54(%rsp),%eax
  mov    -0x5c(%rsp),%eax
  cmovge %rsi,%rcx
  shl    $0x4,%edx
  add    %edx,%eax
  cltd
  idivl  0xc8(%rsp)
  mov    $0x10,%edx
  sub    %eax,%edx
  test   %r10d,%r10d
  jle    L171
  add    -0x68(%rsp),%r8
  add    -0x70(%rsp),%r8
  mov    %edx,%r13d
  mov    %eax,%r14d
  cmp    %r8,%rdi
  setae  %r15b
  cmp    %r12,%rsi
  setae  %r8b
  or     %r15d,%r8d
  cmpl   $0xe,-0x38(%rsp)
  seta   %r15b
  test   %r15b,%r8b
  je     L172
  mov    -0x68(%rsp),%r15
  lea    (%rcx,%r15,1),%r8
  cmp    %r8,%rdi
  setae  %r15b
  cmp    %r12,%rcx
  setae  %r8b
  or     %r15b,%r8b
  je     L172
  movd   %edx,%xmm6
  movd   %eax,%xmm5
  xor    %r8d,%r8d
  punpcklwd %xmm6,%xmm6
  punpcklwd %xmm5,%xmm5
  pshufd $0x0,%xmm6,%xmm6
  pshufd $0x0,%xmm5,%xmm5
  nopl   (%rax)
L120:
  movdqu (%rsi,%r8,1),%xmm0
  movdqu (%rcx,%r8,1),%xmm1
  movdqa %xmm0,%xmm2
  movdqa %xmm1,%xmm4
  punpckhbw %xmm3,%xmm0
  punpcklbw %xmm3,%xmm2
  punpcklbw %xmm3,%xmm4
  punpckhbw %xmm3,%xmm1
  pmullw %xmm6,%xmm2
  pmullw %xmm5,%xmm4
  pmullw %xmm6,%xmm0
  pmullw %xmm5,%xmm1
  paddw  %xmm4,%xmm2
  paddw  %xmm1,%xmm0
  movups %xmm2,(%rdi,%r8,2)
  movups %xmm0,0x10(%rdi,%r8,2)
  add    $0x10,%r8
  cmp    %r8,%rbx
  jne    L120
  cmp    %r10d,-0x34(%rsp)
  je     L171
  mov    -0x30(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r15,%r9,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    -0x20(%rsp),%r10d
  jle    L171
  mov    -0x28(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    -0x1c(%rsp),%r10d
  jle    L171
  mov    -0x18(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    -0x8(%rsp),%r10d
  jle    L171
  mov    -0x10(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    -0x4(%rsp),%r10d
  jle    L171
  mov    (%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x10(%rsp),%r10d
  jle    L171
  mov    0x8(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x14(%rsp),%r10d
  jle    L171
  mov    0x18(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x28(%rsp),%r10d
  jle    L171
  mov    0x20(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x2c(%rsp),%r10d
  jle    L171
  mov    0x30(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x40(%rsp),%r10d
  jle    L171
  mov    0x38(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x44(%rsp),%r10d
  jle    L171
  mov    0x48(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x58(%rsp),%r10d
  jle    L171
  mov    0x50(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x5c(%rsp),%r10d
  jle    L171
  mov    0x68(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x78(%rsp),%r10d
  jle    L171
  mov    0x70(%rsp),%r15
  movzbl (%rsi,%r15,1),%r8d
  movzbl (%rcx,%r15,1),%r13d
  lea    (%r9,%r15,1),%r14
  imul   %edx,%r8d
  imul   %eax,%r13d
  add    %r13d,%r8d
  mov    %r8w,(%r11,%r14,2)
  cmp    0x7c(%rsp),%r10d
  jle    L171
  mov    0x80(%rsp),%r14
  movzbl (%rsi,%r14,1),%esi
  lea    (%r14,%r9,1),%r8
  imul   %edx,%esi
  movzbl (%rcx,%r14,1),%edx
  imul   %eax,%edx
  add    %edx,%esi
  mov    %si,(%r11,%r8,2)
  nopl   (%rax)
L171:
  mov    0xd8(%rsp),%eax
  add    %eax,0xd0(%rsp)
  mov    -0x48(%rsp),%rax
  add    -0x58(%rsp),%ebp
  add    -0x50(%rsp),%r9
  add    %rax,%rdi
  add    %rax,%r12
  mov    -0x60(%rsp),%eax
  cmp    0xd0(%rsp),%eax
  jg     L153
L123:
  add    $0x90,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L172:
  mov    0x60(%rsp),%r8
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L101:
  movzbl (%rcx,%rax,1),%edx
  movzbl (%rsi,%rax,1),%r15d
  imul   %r14d,%edx
  imul   %r13d,%r15d
  add    %r15d,%edx
  mov    %dx,(%rdi,%rax,2)
  mov    %rax,%rdx
  add    $0x1,%rax
  cmp    %rdx,%r8
  jne    L101
  jmp    L171
```

assistant: ```c
void Subsample_Vertical(unsigned char *s, short *d, int lx, int lys, int lyd, int m, int n, int j0, int dj) {
  int i;
  int j;
  int c1;
  int c2;
  int jd;
  unsigned char *s1;
  unsigned char *s2;
  short *d1;
  {
    j = j0;
    while (j < lyd) {
      d1 = d + lx * j;
      jd = (j * m) / n;
      s1 = s + lx * jd;
      if (jd < lys - 1) {
        s2 = s1 + lx;
      } else {
        s2 = s1;
      }
      c2 = (16 * ((j * m) % n) + (n >> 1)) / n;
      c1 = 16 - c2;
      i = 0;
      while (i < lx) {
        *(d1 + i) = (short)(c1 * (int)*(s1 + i) + c2 * (int)*(s2 + i));
        i++;
      }
      j += dj;
    }
    return;
  }
}
```