user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<predict_8x8c_dc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x40(%rbp)
  movl   $0x0,-0x3c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L24
L12:
  mov    -0x34(%rbp),%eax
  sub    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x44(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x34(%rbp),%eax
  add    $0x4,%eax
  sub    -0x5c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x40(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x40(%rbp)
  mov    -0x34(%rbp),%eax
  imul   -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x34(%rbp),%eax
  add    $0x4,%eax
  imul   -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    -0x38(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x38(%rbp)
  addl   $0x1,-0x34(%rbp)
L24:
  cmpl   $0x3,-0x34(%rbp)
  jle    L12
  mov    -0x44(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  add    $0x4,%eax
  sar    $0x3,%eax
  imul   $0x1010101,%eax,%eax
  cltq
  mov    %rax,-0x30(%rbp)
  mov    -0x40(%rbp),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  imul   $0x1010101,%eax,%eax
  cltq
  mov    %rax,-0x28(%rbp)
  mov    -0x38(%rbp),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  imul   $0x1010101,%eax,%eax
  cltq
  mov    %rax,-0x20(%rbp)
  mov    -0x40(%rbp),%edx
  mov    -0x38(%rbp),%eax
  add    %edx,%eax
  add    $0x4,%eax
  sar    $0x3,%eax
  imul   $0x1010101,%eax,%eax
  cltq
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L41
L7:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x30(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x5c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x58(%rbp)
  addl   $0x1,-0x48(%rbp)
L41:
  cmpl   $0x3,-0x48(%rbp)
  jle    L7
  movl   $0x0,-0x48(%rbp)
  jmp    L34
L0:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  lea    0x8(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  mov    -0x18(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x5c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,-0x58(%rbp)
  addl   $0x1,-0x48(%rbp)
L34:
  cmpl   $0x3,-0x48(%rbp)
  jle    L0
  nop
  nop
  pop    %rbp
  ret
```

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;
  }
}
```