user: 请将以下的汇编代码转换成C语言代码:

```asm
<predict_4x4_dc>:
  endbr64
  mov    %esi,%r10d
  mov    %rdx,%rsi
  mov    %ecx,%edx
  lea    (%rcx,%rcx,1),%ecx
  lea    (%rdx,%rcx,1),%r9d
  mov    %r8d,%eax
  shr    $0x8,%eax
  setne  %r11b
  movzbl %r11b,%r11d
  mov    %r8d,%eax
  and    $0x3,%eax
  or     %eax,%r11d
  test   $0x30,%r8b
  setne  %al
  movzbl %al,%eax
  add    %eax,%eax
  or     %r11d,%eax
  cmp    $0x2,%eax
  je     L16
  cmp    $0x3,%eax
  je     L29
  cmp    $0x1,%eax
  je     L2
  mov    $0x80808080,%eax
L52:
  movslq %r9d,%r9
  mov    %eax,(%rsi,%r9,1)
  movslq %ecx,%rcx
  mov    %eax,(%rsi,%rcx,1)
  movslq %edx,%rdx
  mov    %eax,(%rsi,%rdx,1)
  mov    %eax,(%rsi)
  ret
L29:
  lea    -0x1(%r10),%eax
  movzbl (%rdi,%rax,1),%eax
  mov    $0xffffffff,%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  lea    (%r10,%r10,1),%r8d
  lea    -0x1(%r8),%r11d
  movzbl (%rdi,%r11,1),%r11d
  add    %r11d,%eax
  lea    -0x1(%r10,%r8,1),%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  mov    %r10d,%r8d
  neg    %r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  mov    $0x1,%r8d
  sub    %r10d,%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  mov    $0x2,%r8d
  sub    %r10d,%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  mov    $0x3,%r8d
  sub    %r10d,%r8d
  movzbl (%rdi,%r8,1),%edi
  lea    0x4(%rax,%rdi,1),%eax
  sar    $0x3,%eax
  imul   $0x1010101,%eax,%eax
  jmp    L52
L16:
  lea    -0x1(%r10),%eax
  movzbl (%rdi,%rax,1),%eax
  mov    $0xffffffff,%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  lea    (%r10,%r10,1),%r8d
  lea    -0x1(%r8),%r11d
  movzbl (%rdi,%r11,1),%r11d
  add    %r11d,%eax
  lea    -0x1(%r10,%r8,1),%r8d
  movzbl (%rdi,%r8,1),%edi
  lea    0x2(%rax,%rdi,1),%eax
  sar    $0x2,%eax
  imul   $0x1010101,%eax,%eax
  jmp    L52
L2:
  mov    %r10d,%eax
  neg    %eax
  movzbl (%rdi,%rax,1),%eax
  mov    $0x1,%r8d
  sub    %r10d,%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  mov    $0x2,%r8d
  sub    %r10d,%r8d
  movzbl (%rdi,%r8,1),%r8d
  add    %r8d,%eax
  mov    $0x3,%r8d
  sub    %r10d,%r8d
  movzbl (%rdi,%r8,1),%edi
  lea    0x2(%rax,%rdi,1),%eax
  sar    $0x2,%eax
  imul   $0x1010101,%eax,%eax
  jmp    L52
```

assistant: ```c
void predict_4x4_dc(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;
  unsigned int dc = 0x80808080;
  int left = (((neighbour >> 4) & 3) != 0);
  int top = ((neighbour >> 8) != 0);
  int imode = neighbour & 3;
  imode |= ((left << 1) | top);
  switch (imode) {
  case 3:
    dc = ((src[-1 + 0 * src_stride] + src[-1 + src_stride] + src[-1 + 2 * src_stride] + src[-1 + 3 * src_stride] + src[0 - src_stride] + src[1 - src_stride] + src[2 - src_stride] + src[3 - src_stride] + 4) >> 3) * 0x01010101;
    break;
  case 2:
    dc = ((src[-1 + 0 * src_stride] + src[-1 + src_stride] + src[-1 + 2 * src_stride] + src[-1 + 3 * src_stride] + 2) >> 2) * 0x01010101;
    break;
  case 1:
    dc = ((src[0 - src_stride] + src[1 - src_stride] + src[2 - src_stride] + src[3 - src_stride] + 2) >> 2) * 0x01010101;
    break;
  default:
    break;
  }
  *(unsigned int *)&dst[dst_row_0] = *(unsigned int *)&dst[dst_row_1] = *(unsigned int *)&dst[dst_row_2] = *(unsigned int *)&dst[dst_row_3] = dc;
}
```