user: Translate the below assembly code into C programming language:

```asm
<vpx_post_proc_down_and_across_mb_row_c>:
  endbr64
  push   %r15
  mov    %edx,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x98,%rsp
  mov    %rsi,0x10(%rsp)
  mov    %r8d,0x70(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0x88(%rsp)
  xor    %edx,%edx
  mov    0xd0(%rsp),%edx
  test   %edx,%edx
  jle    L71
  lea    (%rax,%rax,1),%esi
  movslq %ecx,%rdx
  movslq %eax,%rbx
  neg    %eax
  mov    %rdx,0x60(%rsp)
  mov    %esi,%edx
  cltq
  mov    %r9,%r15
  neg    %edx
  add    %rdi,%rax
  mov    %rbx,0x58(%rsp)
  movslq %edx,%rdx
  mov    %rax,0x30(%rsp)
  lea    (%rdi,%rbx,1),%rax
  add    %rdi,%rdx
  mov    %rax,0x28(%rsp)
  movslq %esi,%rax
  mov    %rdx,0x18(%rsp)
  movslq %r8d,%rdx
  add    %rax,%rdi
  mov    %rax,0x50(%rsp)
  lea    -0x1(%rdx),%rax
  mov    %rax,0x68(%rsp)
  lea    -0x2(%r8),%eax
  and    $0x3,%eax
  mov    %rdi,0x20(%rsp)
  mov    %eax,0x74(%rsp)
  lea    -0x2(%rdx),%rax
  movl   $0x0,0x44(%rsp)
  mov    %rdx,0x8(%rsp)
  mov    %rax,0x78(%rsp)
  nopw   0x0(%rax,%rax,1)
L34:
  mov    0x18(%rsp),%rax
  add    0x50(%rsp),%rax
  xor    %r14d,%r14d
  mov    %rax,0x38(%rsp)
  mov    0x68(%rsp),%rax
  mov    %rax,0x48(%rsp)
  mov    0x70(%rsp),%eax
  test   %eax,%eax
  jg     L102
  jmp    L55
  nopl   0x0(%rax)
L117:
  mov    0x10(%rsp),%rax
  mov    %r13b,(%rax,%r14,1)
  add    $0x1,%r14
  cmp    %r14,0x8(%rsp)
  je     L24
L102:
  mov    0x18(%rsp),%rax
  movzbl (%rax,%r14,1),%ebx
  mov    0x30(%rsp),%rax
  movzbl (%rax,%r14,1),%ebp
  mov    0x28(%rsp),%rax
  movzbl (%rax,%r14,1),%r12d
  mov    0x20(%rsp),%rax
  movzbl (%rax,%r14,1),%eax
  mov    %al,0x43(%rsp)
  mov    0x38(%rsp),%rax
  movzbl (%rax,%r14,1),%r13d
  mov    %r13d,%edi
  sub    %ebx,%edi
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r14,1),%al
  jae    L117
  mov    %r13d,%edi
  sub    %ebp,%edi
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r14,1),%al
  jae    L117
  mov    %r13d,%edi
  sub    %r12d,%edi
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r14,1),%al
  jae    L117
  mov    %r13d,%edi
  sub    0x43(%rsp),%dil
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r14,1),%al
  jae    L117
  movzbl 0x43(%rsp),%eax
  lea    0x1(%rbx,%rbp,1),%esi
  movzbl %r13b,%ecx
  sar    %esi
  lea    0x1(%rax,%r12,1),%eax
  sar    %eax
  lea    0x1(%rsi,%rax,1),%eax
  sar    %eax
  lea    0x1(%rax,%rcx,1),%ecx
  sar    %ecx
  mov    %ecx,%r13d
  jmp    L117
  nopl   0x0(%rax)
L24:
  mov    0x10(%rsp),%rsi
  mov    0x8(%rsp),%rcx
  xor    %r12d,%r12d
  movzbl (%rsi),%eax
  mov    %rsi,%r13
  mov    %al,-0x1(%rsi)
  mov    %al,-0x2(%rsi)
  movzbl -0x1(%rsi,%rcx,1),%eax
  mov    %al,0x1(%rsi,%rcx,1)
  mov    %al,(%rsi,%rcx,1)
  jmp    L142
  nop
L17:
  and    $0x3,%r14d
  mov    %bpl,0x84(%rsp,%r14,1)
  cmp    $0x1,%r12
  jbe    L125
  sub    $0x2,%ebx
  and    $0x3,%ebx
  movzbl 0x84(%rsp,%rbx,1),%eax
  mov    %al,-0x2(%r13)
L125:
  add    $0x1,%r12
  add    $0x1,%r13
  cmp    %r12,0x8(%rsp)
  je     L35
L142:
  movzbl 0x0(%r13),%ebp
  mov    %r12d,%ebx
  mov    %r12d,%r14d
  mov    %ebp,%edi
  sub    -0x2(%r13),%dil
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r12,1),%al
  jae    L17
  mov    %ebp,%edi
  sub    -0x1(%r13),%dil
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r12,1),%al
  jae    L17
  mov    %ebp,%edi
  sub    0x1(%r13),%dil
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r12,1),%al
  jae    L17
  mov    %ebp,%edi
  sub    0x2(%r13),%dil
  movzbl %dil,%edi
  call   <abs@plt>
  cmp    (%r15,%r12,1),%al
  jae    L17
  movzbl -0x1(%r13),%eax
  movzbl -0x2(%r13),%ecx
  movzbl %bpl,%edx
  movzbl 0x2(%r13),%esi
  lea    0x1(%rcx,%rax,1),%ecx
  movzbl 0x1(%r13),%eax
  sar    %ecx
  lea    0x1(%rsi,%rax,1),%eax
  sar    %eax
  lea    0x1(%rcx,%rax,1),%eax
  sar    %eax
  lea    0x1(%rax,%rdx,1),%edx
  sar    %edx
  mov    %edx,%ebp
  jmp    L17
  nopl   (%rax)
L35:
  movslq 0x74(%rsp),%rax
  mov    0x78(%rsp),%rdx
  mov    %ebp,%r14d
L162:
  mov    0x10(%rsp),%rcx
  movzbl 0x84(%rsp,%rax,1),%eax
  addl   $0x1,0x44(%rsp)
  mov    %al,(%rcx,%rdx,1)
  mov    0x48(%rsp),%rdx
  mov    %rcx,%rax
  mov    %r14b,(%rcx,%rdx,1)
  mov    0x60(%rsp),%rdx
  add    %rdx,%rax
  mov    0x44(%rsp),%edx
  mov    %rax,0x10(%rsp)
  mov    0x58(%rsp),%rax
  add    %rax,0x18(%rsp)
  add    %rax,0x30(%rsp)
  add    %rax,0x28(%rsp)
  add    %rax,0x20(%rsp)
  cmp    %edx,0xd0(%rsp)
  jne    L34
L71:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L152
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L55:
  mov    0x10(%rsp),%rdx
  mov    0x8(%rsp),%rsi
  movq   $0xffffffffffffffff,0x48(%rsp)
  movzbl 0x87(%rsp),%r14d
  movzbl (%rdx),%eax
  mov    %al,-0x1(%rdx)
  mov    %al,-0x2(%rdx)
  movzbl -0x1(%rdx,%rsi,1),%eax
  mov    %al,0x1(%rdx,%rsi,1)
  mov    %al,(%rdx,%rsi,1)
  mov    $0xfffffffffffffffe,%rdx
  mov    $0x2,%eax
  jmp    L162
L152:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void vpx_post_proc_down_and_across_mb_row_c(unsigned char *src_ptr, unsigned char *dst_ptr, int src_pixels_per_line, int dst_pixels_per_line, int cols, unsigned char *f, int size) {
  unsigned char *p_src, *p_dst;
  int row;
  int col;
  unsigned char v;
  unsigned char d[4];
  for (row = 0; row < size; row++) {
    p_src = src_ptr;
    p_dst = dst_ptr;
    for (col = 0; col < cols; col++) {
      unsigned char p_above2 = p_src[col - 2 * src_pixels_per_line];
      unsigned char p_above1 = p_src[col - src_pixels_per_line];
      unsigned char p_below1 = p_src[col + src_pixels_per_line];
      unsigned char p_below2 = p_src[col + 2 * src_pixels_per_line];
      v = p_src[col];
      if ((abs(v - p_above2) < f[col]) && (abs(v - p_above1) < f[col]) && (abs(v - p_below1) < f[col]) && (abs(v - p_below2) < f[col])) {
        unsigned char k1, k2, k3;
        k1 = (p_above2 + p_above1 + 1) >> 1;
        k2 = (p_below2 + p_below1 + 1) >> 1;
        k3 = (k1 + k2 + 1) >> 1;
        v = (k3 + v + 1) >> 1;
      }
      p_dst[col] = v;
    }
    p_src = dst_ptr;
    p_dst = dst_ptr;
    p_src[-2] = p_src[-1] = p_src[0];
    p_src[cols] = p_src[cols + 1] = p_src[cols - 1];
    for (col = 0; col < cols; col++) {
      v = p_src[col];
      if ((abs(v - p_src[col - 2]) < f[col]) && (abs(v - p_src[col - 1]) < f[col]) && (abs(v - p_src[col + 1]) < f[col]) && (abs(v - p_src[col + 2]) < f[col])) {
        unsigned char k1, k2, k3;
        k1 = (p_src[col - 2] + p_src[col - 1] + 1) >> 1;
        k2 = (p_src[col + 2] + p_src[col + 1] + 1) >> 1;
        k3 = (k1 + k2 + 1) >> 1;
        v = (k3 + v + 1) >> 1;
      }
      d[col & 3] = v;
      if (col >= 2)
        p_dst[col - 2] = d[(col - 2) & 3];
    }
    p_dst[col - 2] = d[(col - 2) & 3];
    p_dst[col - 1] = d[(col - 1) & 3];
    src_ptr += src_pixels_per_line;
    dst_ptr += dst_pixels_per_line;
  }
}
```