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

```asm
<predict_8x8c_dc>:
  endbr64
  movslq %esi,%rdx
  mov    %rdi,%rax
  cmp    $0x1,%edx
  jne    L15
  movdqu 0x18(%rdi),%xmm0
  movdqu 0x28(%rdi),%xmm4
  movdqu 0x8(%rdi),%xmm5
  shufps $0x88,%xmm4,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x8,%xmm1
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%esi
  movdqu -0x8(%rdi),%xmm0
  mov    %esi,%r8d
  shufps $0x88,%xmm5,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x8,%xmm1
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%ecx
  movd   %xmm0,%r9d
L17:
  lea    0x4(%r9,%rcx,1),%ecx
  lea    0x0(,%rdx,8),%rdi
  sar    $0x3,%ecx
  imul   $0x1010101,%ecx,%ecx
  movslq %ecx,%rcx
  movq   %rcx,%xmm0
  lea    0x2(%rsi),%ecx
  sar    $0x2,%ecx
  imul   $0x1010101,%ecx,%ecx
  movslq %ecx,%rcx
  movq   %rcx,%xmm2
  lea    (%rax,%rdi,1),%rcx
  punpcklqdq %xmm2,%xmm0
  movups %xmm0,(%rax)
  movups %xmm0,(%rcx)
  add    %rdi,%rcx
  movups %xmm0,(%rcx)
  movups %xmm0,(%rcx,%rdx,8)
  lea    0x2(%r8),%ecx
  sar    $0x2,%ecx
  imul   $0x1010101,%ecx,%ecx
  movslq %ecx,%rcx
  movq   %rcx,%xmm0
  lea    0x4(%r8,%rsi,1),%ecx
  sar    $0x3,%ecx
  imul   $0x1010101,%ecx,%ecx
  movslq %ecx,%rcx
  movq   %rcx,%xmm3
  mov    %rdx,%rcx
  shl    $0x5,%rcx
  punpcklqdq %xmm3,%xmm0
  add    %rcx,%rax
  movups %xmm0,(%rax)
  add    %rdi,%rax
  movups %xmm0,(%rax)
  add    %rdi,%rax
  movups %xmm0,(%rax)
  movups %xmm0,(%rax,%rdx,8)
  ret
  nopw   0x0(%rax,%rax,1)
L15:
  mov    %edx,%esi
  mov    $0x1,%ecx
  mov    -0x8(%rax),%r9
  neg    %esi
  sub    %edx,%ecx
  movslq %esi,%rsi
  movslq %ecx,%rcx
  mov    (%rdi,%rcx,8),%rcx
  add    (%rdi,%rsi,8),%ecx
  mov    $0x2,%esi
  sub    %edx,%esi
  movslq %esi,%rsi
  add    (%rdi,%rsi,8),%ecx
  mov    $0x3,%esi
  sub    %edx,%esi
  movslq %esi,%rsi
  add    (%rdi,%rsi,8),%ecx
  mov    $0x4,%edi
  mov    $0x5,%esi
  sub    %edx,%edi
  sub    %edx,%esi
  movslq %edi,%rdi
  movslq %esi,%rsi
  mov    (%rax,%rsi,8),%rsi
  add    (%rax,%rdi,8),%esi
  mov    $0x6,%edi
  sub    %edx,%edi
  movslq %edi,%rdi
  add    (%rax,%rdi,8),%esi
  mov    $0x7,%edi
  sub    %edx,%edi
  movslq %edi,%rdi
  add    (%rax,%rdi,8),%esi
  lea    -0x1(%rdx),%edi
  movslq %edi,%rdi
  add    (%rax,%rdi,8),%r9d
  lea    (%rdx,%rdx,1),%edi
  lea    -0x1(%rdi),%r8d
  add    %edx,%edi
  movslq %r8d,%r8
  add    (%rax,%r8,8),%r9d
  lea    -0x1(%rdi),%r8d
  lea    -0x1(%rdi,%rdi,1),%edi
  movslq %r8d,%r8
  movslq %edi,%rdi
  add    (%rax,%r8,8),%r9d
  lea    0x0(,%rdx,4),%r8d
  lea    -0x1(%r8),%r10d
  lea    -0x1(%rdx,%r8,1),%r8d
  movslq %r10d,%r10
  movslq %r8d,%r8
  mov    (%rax,%r8,8),%r8
  add    (%rax,%r10,8),%r8d
  add    (%rax,%rdi,8),%r8d
  mov    %edx,%edi
  not    %edi
  lea    (%rdi,%rdx,8),%edi
  movslq %edi,%rdi
  add    (%rax,%rdi,8),%r8d
  jmp    L17
```

assistant: ```c
void predict_8x8c_dc(uint8_t *src, int i_stride) {
  int y;
  int s0 = 0, s1 = 0, s2 = 0, s3 = 0;
  uint32_t dc0, dc1, dc2, dc3;
  int i;
  for (i = 0; i < 4; i++) {
    s0 += src[i - i_stride];
    s1 += src[i + 4 - i_stride];
    s2 += src[-1 + i * i_stride];
    s3 += src[-1 + (i + 4) * i_stride];
  }
  dc0 = ((s0 + s2 + 4) >> 3) * 0x01010101;
  dc1 = ((s1 + 2) >> 2) * 0x01010101;
  dc2 = ((s3 + 2) >> 2) * 0x01010101;
  dc3 = ((s1 + s3 + 4) >> 3) * 0x01010101;
  for (y = 0; y < 4; y++) {
    uint32_t *p = (uint32_t *)src;
    *p++ = dc0;
    *p++ = dc1;
    src += i_stride;
  }
  for (y = 0; y < 4; y++) {
    uint32_t *p = (uint32_t *)src;
    *p++ = dc2;
    *p++ = dc3;
    src += i_stride;
  }
}
```