user: 这段汇编代码用C语言表示是什么样的?

```asm
<get_upupleft_pred>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %edx,%r11d
  mov    %ecx,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L40
  test   %r8d,%r8d
  jle    L312
  mov    %r8d,%r10d
  lea    -0x1(%rsi),%eax
  imul   %ecx,%eax
  add    %edx,%eax
  cltq
  lea    (%rdi,%rax,4),%rcx
  mov    $0x0,%eax
L236:
  mov    (%rcx,%rax,4),%edx
  mov    %edx,(%rsp,%rax,4)
  add    $0x1,%rax
  cmp    %r10,%rax
  jne    L236
L126:
  test   %r11d,%r11d
  jle    L220
  movslq %ebx,%r10
  shl    $0x2,%r10
  mov    %esi,%eax
  imul   %ebx,%eax
  cltq
  movslq %r11d,%rdx
  add    %rdx,%rax
  lea    (%rdi,%rax,4),%rdx
  mov    $0x0,%eax
L108:
  mov    -0x4(%rdx),%ecx
  mov    %ecx,0x100(%rsp,%rax,4)
  add    $0x1,%rax
  add    %r10,%rdx
  cmp    %eax,%r8d
  jg     L108
L357:
  test   %r11d,%r11d
  jle    L210
  test   %esi,%esi
  jle    L210
  lea    -0x1(%rsi),%eax
  imul   %ebx,%eax
  add    %r11d,%eax
  cltq
  mov    -0x4(%rdi,%rax,4),%edi
L77:
  mov    (%rsp),%esi
  lea    (%rsi,%rsi,2),%eax
  add    0x4(%rsp),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,0x200(%rsp)
  lea    -0x1(%r8),%ecx
  cmp    $0x1,%ecx
  jle    L196
  mov    %rsp,%rdx
  lea    0x204(%rsp),%r10
  lea    -0x3(%r8),%eax
  lea    0x4(%rsp,%rax,4),%rbx
L243:
  mov    0x4(%rdx),%r11d
  mov    (%rdx),%eax
  lea    (%rax,%r11,2),%eax
  add    0x8(%rdx),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,(%r10)
  add    $0x4,%rdx
  add    $0x4,%r10
  cmp    %rbx,%rdx
  jne    L243
L196:
  lea    -0x2(%r8),%ebx
  movslq %ecx,%rdx
  mov    (%rsp,%rdx,4),%eax
  movslq %ebx,%r10
  mov    (%rsp,%r10,4),%r10d
  lea    (%r10,%rax,2),%r10d
  lea    0x2(%rax,%r10,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x200(%rsp,%rdx,4)
  mov    0x100(%rsp),%ebp
  lea    0x0(%rbp,%rbp,2),%eax
  add    0x104(%rsp),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,0x300(%rsp)
  cmp    $0x1,%ecx
  jle    L85
  lea    0x100(%rsp),%rdx
  lea    0x304(%rsp),%r10
  lea    -0x3(%r8),%eax
  lea    0x104(%rsp,%rax,4),%r11
L257:
  mov    0x4(%rdx),%r12d
  mov    (%rdx),%eax
  lea    (%rax,%r12,2),%eax
  add    0x8(%rdx),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,(%r10)
  add    $0x4,%rdx
  add    $0x4,%r10
  cmp    %r11,%rdx
  jne    L257
L85:
  movslq %ecx,%rcx
  mov    0x100(%rsp,%rcx,4),%eax
  movslq %ebx,%rbx
  mov    0x100(%rsp,%rbx,4),%edx
  lea    (%rdx,%rax,2),%edx
  lea    0x2(%rax,%rdx,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x300(%rsp,%rcx,4)
  lea    0x0(%rbp,%rdi,2),%eax
  lea    0x2(%rsi,%rax,1),%ebp
  sar    $0x2,%ebp
  test   %r8d,%r8d
  jle    L317
  mov    %ebp,%ebx
  add    0x200(%rsp),%ebx
  sar    %ebx
  mov    %r8d,%esi
  mov    $0x0,%r11d
  mov    $0x0,%r10d
  jmp    L41
L40:
  test   %r8d,%r8d
  jle    L204
  mov    %rsp,%rax
  lea    -0x1(%r8),%edx
  lea    0x4(%rsp,%rdx,4),%rdx
L200:
  movl   $0x80,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L200
  jmp    L126
L32:
  test   %r8d,%r8d
  jle    L15
L220:
  lea    0x100(%rsp),%rax
  lea    -0x1(%r8),%edx
  lea    0x104(%rsp,%rdx,4),%rdx
L162:
  movl   $0x80,(%rax)
  add    $0x4,%rax
  cmp    %rdx,%rax
  jne    L162
L15:
  mov    $0x80,%edi
  jmp    L77
L210:
  mov    $0x80,%edi
  jmp    L77
L152:
  je     L334
  test   %eax,%eax
  je     L278
  test   $0x1,%al
  je     L75
  movslq %edx,%r12
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %edi,%ecx
  sar    %ecx
  neg    %ecx
  movslq %ecx,%rcx
  mov    0x200(%rsp,%rcx,4),%ecx
  mov    %ecx,(%r9,%r12,4)
  jmp    L0
L334:
  movslq %edx,%rcx
  mov    %ebp,(%r9,%rcx,4)
  jmp    L0
L278:
  movslq %edx,%rcx
  mov    %ebx,(%r9,%rcx,4)
L0:
  sub    $0x2,%eax
  add    $0x1,%edx
  cmp    %esi,%edx
  je     L342
L356:
  mov    %eax,%ecx
  cmp    $0x1,%eax
  jle    L152
  movslq %edx,%rdi
  lea    -0x2(%rax),%ecx
  movslq %ecx,%rcx
  mov    0x300(%rsp,%rcx,4),%ecx
  mov    %ecx,(%r9,%rdi,4)
  jmp    L0
L75:
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %edi,%ecx
  sar    %ecx
  neg    %ecx
  movslq %edx,%rdi
  lea    -0x1(%rcx),%r12d
  movslq %r12d,%r12
  movslq %ecx,%rcx
  mov    0x200(%rsp,%rcx,4),%ecx
  add    0x200(%rsp,%r12,4),%ecx
  sar    %ecx
  mov    %ecx,(%r9,%rdi,4)
  jmp    L0
L342:
  add    $0x1,%r10d
  add    %r8d,%esi
  add    %r8d,%r11d
  cmp    %r10d,%r8d
  je     L317
L41:
  mov    %r10d,%eax
  mov    %r11d,%edx
  jmp    L356
L204:
  test   %edx,%edx
  jle    L32
  mov    $0x80,%edi
  jmp    L77
L312:
  test   %edx,%edx
  jle    L15
  jmp    L357
L317:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L103
  add    $0x410,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L103:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void get_upupleft_pred(uint8_t *rec, int ypos, int xpos, int stride, int size, uint8_t *pblock) {
  int i, j, diag;
  uint16_t ver[64];
  uint16_t hor[64];
  uint16_t up_left;
  uint8_t verF[64];
  uint8_t horF[64];
  uint8_t up_leftF;
  if (ypos > 0) {
    for (j = 0; j < size; j++) {
      ver[j] = rec[(ypos - 1) * stride + xpos + j];
    }
  } else {
    for (j = 0; j < size; j++) {
      ver[j] = 128;
    }
  }
  if (xpos > 0) {
    for (i = 0; i < size; i++) {
      hor[i] = rec[(ypos + i) * stride + xpos - 1];
    }
  } else {
    for (i = 0; i < size; i++) {
      hor[i] = 128;
    }
  }
  if (xpos > 0 && ypos > 0) {
    up_left = rec[(ypos - 1) * stride + xpos - 1];
  } else {
    up_left = 128;
  }
  verF[0] = (uint8_t)((ver[0] + 2 * ver[0] + ver[1] + 2) >> 2);
  for (j = 1; j < size - 1; j++) {
    verF[j] = (uint8_t)((ver[j - 1] + 2 * ver[j] + ver[j + 1] + 2) >> 2);
  }
  verF[size - 1] = (uint8_t)((ver[size - 2] + 2 * ver[size - 1] + ver[size - 1] + 2) >> 2);
  horF[0] = (uint8_t)((hor[0] + 2 * hor[0] + hor[1] + 2) >> 2);
  for (j = 1; j < size - 1; j++) {
    horF[j] = (uint8_t)((hor[j - 1] + 2 * hor[j] + hor[j + 1] + 2) >> 2);
  }
  horF[size - 1] = (uint8_t)((hor[size - 2] + 2 * hor[size - 1] + hor[size - 1] + 2) >> 2);
  up_leftF = (uint8_t)((hor[0] + 2 * up_left + ver[0] + 2) >> 2);
  for (i = 0; i < size; i++) {
    for (j = 0; j < size; j++) {
      diag = i - 2 * j;
      if (diag > 1) {
        pblock[i * size + j] = horF[diag - 2];
      } else if (diag == 1)
        pblock[i * size + j] = up_leftF;
      else if (diag == 0)
        pblock[i * size + j] = (up_leftF + verF[0]) >> 1;
      else {
        if (diag & 1)
          pblock[i * size + j] = verF[(-diag) / 2];
        else
          pblock[i * size + j] = (verF[(-diag) / 2] + verF[((-diag) / 2) - 1]) >> 1;
      }
    }
  }
}
```