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

```asm
<get_upupright_pred>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x450,%rsp
  mov    %rdi,-0x428(%rbp)
  mov    %esi,-0x42c(%rbp)
  mov    %edx,-0x430(%rbp)
  mov    %ecx,-0x434(%rbp)
  mov    %r8d,-0x438(%rbp)
  mov    %r9d,-0x43c(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x448(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x0,-0x42c(%rbp)
  jle    L45
  movl   $0x0,-0x418(%rbp)
  jmp    L58
L85:
  mov    -0x42c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x434(%rbp),%eax
  mov    %eax,%edx
  mov    -0x430(%rbp),%eax
  add    %eax,%edx
  mov    -0x418(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x418(%rbp),%eax
  cltq
  mov    %edx,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x418(%rbp)
L58:
  mov    -0x418(%rbp),%eax
  cmp    -0x438(%rbp),%eax
  jl     L85
  cmpl   $0x0,0x18(%rbp)
  je     L23
  mov    -0x438(%rbp),%eax
  mov    %eax,-0x418(%rbp)
  jmp    L200
L31:
  mov    -0x42c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x434(%rbp),%eax
  mov    %eax,%edx
  mov    -0x430(%rbp),%eax
  add    %eax,%edx
  mov    -0x418(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x418(%rbp),%eax
  cltq
  mov    %edx,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x418(%rbp)
L200:
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0x418(%rbp)
  jl     L31
  jmp    L115
L23:
  mov    -0x438(%rbp),%eax
  mov    %eax,-0x418(%rbp)
  jmp    L196
L176:
  mov    -0x42c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x434(%rbp),%eax
  mov    %eax,%edx
  mov    -0x430(%rbp),%eax
  add    %eax,%edx
  mov    -0x438(%rbp),%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x428(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x418(%rbp),%eax
  cltq
  mov    %edx,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x418(%rbp)
L196:
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0x418(%rbp)
  jl     L176
  jmp    L115
L45:
  movl   $0x0,-0x418(%rbp)
  jmp    L194
L170:
  mov    -0x418(%rbp),%eax
  cltq
  movl   $0x80,-0x410(%rbp,%rax,4)
  addl   $0x1,-0x418(%rbp)
L194:
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0x418(%rbp)
  jl     L170
L115:
  mov    -0x410(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x40c(%rbp),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,-0x210(%rbp)
  movl   $0x1,-0x418(%rbp)
  jmp    L203
L84:
  mov    -0x418(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%edx
  mov    -0x418(%rbp),%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x418(%rbp),%eax
  add    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  add    %edx,%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,%edx
  mov    -0x418(%rbp),%eax
  cltq
  mov    %edx,-0x210(%rbp,%rax,4)
  addl   $0x1,-0x418(%rbp)
L203:
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  cmp    %eax,-0x418(%rbp)
  jl     L84
  mov    -0x438(%rbp),%eax
  sub    $0x1,%eax
  add    %eax,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%edx
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  add    %eax,%eax
  add    %eax,%edx
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  cltq
  mov    -0x410(%rbp,%rax,4),%eax
  add    %edx,%eax
  lea    0x2(%rax),%edx
  mov    -0x438(%rbp),%eax
  add    %eax,%eax
  sub    $0x1,%eax
  sar    $0x2,%edx
  cltq
  mov    %edx,-0x210(%rbp,%rax,4)
  movl   $0x0,-0x41c(%rbp)
  jmp    L80
L70:
  movl   $0x0,-0x418(%rbp)
  jmp    L206
L136:
  mov    -0x418(%rbp),%eax
  lea    (%rax,%rax,1),%edx
  mov    -0x41c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x414(%rbp)
  mov    -0x414(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L158
  mov    -0x414(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%ecx
  mov    -0x41c(%rbp),%eax
  imul   -0x438(%rbp),%eax
  mov    %eax,%edx
  mov    -0x418(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x448(%rbp),%rax
  add    %rax,%rdx
  movslq %ecx,%rax
  mov    -0x210(%rbp,%rax,4),%eax
  mov    %eax,(%rdx)
  jmp    L50
L158:
  mov    -0x414(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cltq
  mov    -0x210(%rbp,%rax,4),%edx
  mov    -0x414(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  add    $0x1,%eax
  cltq
  mov    -0x210(%rbp,%rax,4),%eax
  add    %eax,%edx
  mov    -0x41c(%rbp),%eax
  imul   -0x438(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x418(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x448(%rbp),%rax
  add    %rcx,%rax
  sar    %edx
  mov    %edx,(%rax)
L50:
  addl   $0x1,-0x418(%rbp)
L206:
  mov    -0x418(%rbp),%eax
  cmp    -0x438(%rbp),%eax
  jl     L136
  addl   $0x1,-0x41c(%rbp)
L80:
  mov    -0x41c(%rbp),%eax
  cmp    -0x438(%rbp),%eax
  jl     L70
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L177
  call   <__stack_chk_fail@plt>
L177:
  leave
  ret
```

assistant: ```c
void get_upupright_pred(uint8_t *rec, int ypos, int xpos, int stride, int size, int width, uint8_t *pblock, int upright_available) {
  int i, j, diag;
  uint16_t ver[2 * 64];
  uint8_t verF[2 * 64];
  if (ypos > 0) {
    for (j = 0; j < size; j++) {
      ver[j] = rec[(ypos - 1) * stride + xpos + j];
    }
    if (upright_available) {
      for (j = size; j < 2 * size; j++) {
        ver[j] = rec[(ypos - 1) * stride + xpos + j];
      }
    } else {
      for (j = size; j < 2 * size; j++) {
        ver[j] = rec[(ypos - 1) * stride + xpos + size - 1];
      }
    }
  } else {
    for (j = 0; j < 2 * size; j++) {
      ver[j] = 128;
    }
  }
  verF[0] = (uint8_t)((ver[0] + 2 * ver[0] + ver[1] + 2) >> 2);
  for (j = 1; j < 2 * size - 1; j++) {
    verF[j] = (uint8_t)((ver[j - 1] + 2 * ver[j] + ver[j + 1] + 2) >> 2);
  }
  verF[2 * size - 1] = (uint8_t)((ver[2 * size - 2] + 2 * ver[2 * size - 1] + ver[2 * size - 1] + 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] = verF[(diag + 1) / 2];
      } else {
        pblock[i * size + j] = (verF[diag / 2] + verF[diag / 2 + 1]) >> 1;
      }
    }
  }
}
```