user: Converte this assembly snippet into its equivalent C code:

```asm
<predict_4x4_vr>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %ecx,-0x50(%rbp)
  mov    %r8d,-0x5c(%rbp)
  movl   $0x0,-0x34(%rbp)
  mov    -0x50(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x50(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x4c(%rbp),%eax
  not    %eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x24(%rbp)
  mov    $0xffffffff,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x4c(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x4c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x4c(%rbp),%eax
  neg    %eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x10(%rbp)
  mov    $0x1,%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0xc(%rbp)
  mov    $0x2,%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x8(%rbp)
  mov    $0x3,%eax
  sub    -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x34(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x10(%rbp),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  lea    0x1(%rdx),%rcx
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x3(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x34(%rbp),%edx
  movslq %edx,%rdx
  lea    0x2(%rdx),%rcx
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x8(%rbp),%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x3(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x10(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x24(%rbp),%eax
  add    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  lea    0x1(%rdx),%rcx
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0xc(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x3(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x30(%rbp),%edx
  movslq %edx,%rdx
  lea    0x2(%rdx),%rcx
  mov    -0x58(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
  mov    -0x8(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0xc(%rbp),%eax
  add    %eax,%edx
  mov    -0x4(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x3(%rax),%rcx
  mov    -0x58(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x24(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0x1c(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%ecx
  mov    -0x28(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  nop
  pop    %rbp
  ret
```

assistant: ```c
void predict_4x4_vr(unsigned char *src, unsigned int src_stride, unsigned char *dst, unsigned int dst_stride, int neighbour) {
  const int dst_row_0 = 0;
  const int dst_row_1 = dst_stride;
  const int dst_row_2 = dst_stride * 2;
  const int dst_row_3 = dst_row_1 + dst_row_2;
  const int lt = src[-1 - src_stride];
  const int l0 = src[-1 + 0 * src_stride];
  const int l1 = src[-1 + 1 * src_stride];
  const int l2 = src[-1 + 2 * src_stride];
  const int l3 = src[-1 + 3 * src_stride];
  const int t0 = src[0 - 1 * src_stride];
  const int t1 = src[1 - 1 * src_stride];
  const int t2 = src[2 - 1 * src_stride];
  const int t3 = src[3 - 1 * src_stride];
  dst[dst_row_0 + 0] = dst[dst_row_2 + 1] = (lt + t0 + 1) >> 1;
  dst[dst_row_0 + 1] = dst[dst_row_2 + 2] = (t0 + t1 + 1) >> 1;
  dst[dst_row_0 + 2] = dst[dst_row_2 + 3] = (t1 + t2 + 1) >> 1;
  dst[dst_row_0 + 3] = (t2 + t3 + 1) >> 1;
  dst[dst_row_1 + 0] = dst[dst_row_3 + 1] = (l0 + 2 * lt + t0 + 2) >> 2;
  dst[dst_row_1 + 1] = dst[dst_row_3 + 2] = (lt + 2 * t0 + t1 + 2) >> 2;
  dst[dst_row_1 + 2] = dst[dst_row_3 + 3] = (t0 + 2 * t1 + t2 + 2) >> 2;
  dst[dst_row_1 + 3] = (t1 + 2 * t2 + t3 + 2) >> 2;
  dst[dst_row_2 + 0] = (lt + 2 * l0 + l1 + 2) >> 2;
  dst[dst_row_3 + 0] = (l0 + 2 * l1 + l2 + 2) >> 2;
}
```