user: What would the C source look like for the assembly code provided here?

```asm
<get_dc_pred>:
  endbr64
  movslq %edx,%r10
  test   %esi,%esi
  mov    %ecx,%r11d
  setg   %al
  test   %r10d,%r10d
  setg   %dl
  test   %al,%al
  je     L76
  test   %dl,%dl
  je     L76
  test   %r8d,%r8d
  jle    L150
  lea    -0x1(%rsi),%ecx
  lea    -0x1(%r8),%esi
  imul   %r11d,%ecx
  lea    (%rcx,%r10,1),%eax
  cltq
  lea    (%rdi,%rax,4),%rdx
  add    %rsi,%rax
  lea    0x4(%rdi,%rax,4),%rsi
  xor    %eax,%eax
  nopl   (%rax)
L92:
  add    (%rdx),%eax
  add    $0x4,%rdx
  cmp    %rdx,%rsi
  jne    L92
  lea    (%rcx,%r11,1),%edx
  movslq %r11d,%rsi
  movslq %edx,%rdx
  shl    $0x2,%rsi
  add    %r10,%rdx
  lea    (%rdi,%rdx,4),%rcx
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L206:
  add    $0x1,%edx
  add    -0x4(%rcx),%eax
  add    %rsi,%rcx
  cmp    %edx,%r8d
  jne    L206
  add    %r8d,%eax
L166:
  lea    (%r8,%r8,1),%ecx
  cltd
  idiv   %ecx
L199:
  test   %r8d,%r8d
  jle    L17
  lea    -0x1(%r8),%edx
  movslq %r8d,%r10
  mov    $0xfffffffffffffffc,%rdi
  xor    %esi,%esi
  shl    $0x2,%rdx
  shl    $0x2,%r10
  lea    0x4(%r9,%rdx,1),%rcx
  sub    %rdx,%rdi
  nopl   (%rax)
L146:
  lea    (%rdi,%rcx,1),%rdx
  nopl   0x0(%rax)
L36:
  mov    %eax,(%rdx)
  add    $0x4,%rdx
  cmp    %rdx,%rcx
  jne    L36
  add    $0x1,%esi
  add    %r10,%rcx
  cmp    %esi,%r8d
  jne    L146
L17:
  ret
L76:
  test   %r10d,%r10d
  jne    L174
  test   %al,%al
  je     L174
  test   %r8d,%r8d
  jle    L184
  lea    -0x1(%rsi),%edx
  lea    -0x1(%r8),%ecx
  imul   %r11d,%edx
  movslq %edx,%rdx
  lea    (%rdi,%rdx,4),%rax
  add    %rcx,%rdx
  lea    0x4(%rdi,%rdx,4),%rcx
  xor    %edx,%edx
  nopl   (%rax)
L27:
  add    (%rax),%edx
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L27
L134:
  mov    %r8d,%eax
  shr    $0x1f,%eax
  add    %r8d,%eax
  sar    %eax
  add    %edx,%eax
  cltd
  idiv   %r8d
  jmp    L199
L174:
  test   %esi,%esi
  jne    L180
  test   %dl,%dl
  je     L180
  test   %r8d,%r8d
  jle    L58
  movslq %r11d,%rax
  lea    (%rdi,%r10,4),%rcx
  xor    %edx,%edx
  shl    $0x2,%rax
  nopl   0x0(%rax,%rax,1)
L80:
  add    $0x1,%edx
  add    -0x4(%rcx),%esi
  add    %rax,%rcx
  cmp    %edx,%r8d
  jne    L80
L69:
  mov    %r8d,%eax
  shr    $0x1f,%eax
  add    %r8d,%eax
  sar    %eax
  add    %esi,%eax
  cltd
  idiv   %r8d
  jmp    L199
L180:
  mov    $0x80,%eax
  jmp    L199
L150:
  mov    %r8d,%eax
  jmp    L166
L184:
  xor    %edx,%edx
  jmp    L134
L58:
  xor    %esi,%esi
  jmp    L69
```

assistant: ```c
void get_dc_pred(uint8_t *rec, int ypos, int xpos, int stride, int size, uint8_t *pblock) {
  int i, j, dc = 128, sum;
  if (ypos > 0 && xpos > 0) {
    sum = 0;
    for (j = 0; j < size; j++)
      sum += rec[(ypos - 1) * stride + xpos + j];
    for (i = 0; i < size; i++)
      sum += rec[(ypos + i) * stride + xpos - 1];
    dc = (sum + size) / (2 * size);
  } else if (ypos > 0 && xpos == 0) {
    sum = 0;
    for (j = 0; j < size; j++)
      sum += rec[(ypos - 1) * stride + xpos + j];
    dc = (sum + size / 2) / size;
  } else if (ypos == 0 && xpos > 0) {
    sum = 0;
    for (i = 0; i < size; i++)
      sum += rec[(ypos + i) * stride + xpos - 1];
    dc = (sum + size / 2) / size;
  } else if (ypos == 0 && xpos == 0) {
    dc = 128;
  }
  for (i = 0; i < size; i++) {
    for (j = 0; j < size; j++) {
      pblock[i * size + j] = dc;
    }
  }
}
```