user: 下面的汇编指令对应的C源代码是什么：

```asm
<get_upupleft_pred>:
  endbr64
  push   %r15
  mov    %ecx,%r15d
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  mov    %r8d,%ebx
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L117
  test   %r8d,%r8d
  jle    L211
  lea    -0x1(%rsi),%eax
  movslq %r8d,%rdx
  mov    %rsp,%rdi
  imul   %ecx,%eax
  shl    $0x2,%rdx
  add    %r13d,%eax
  cltq
  lea    (%r14,%rax,4),%rsi
  call   <memcpy@plt>
  lea    -0x1(%rbx),%r10d
  test   %r13d,%r13d
  jg     L247
L216:
  xor    %eax,%eax
  lea    0x100(%rsp),%rsi
  nopl   0x0(%rax,%rax,1)
L168:
  movl   $0x80,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L168
L122:
  mov    $0x100,%r8d
  jmp    L267
L117:
  lea    -0x1(%r8),%r10d
  test   %r8d,%r8d
  jle    L122
  lea    -0x1(%r8),%edx
  mov    %rsp,%rax
  mov    %rdx,%r10
  lea    0x4(%rsp,%rdx,4),%rdx
  nopw   0x0(%rax,%rax,1)
L22:
  movl   $0x80,(%rax)
  add    $0x4,%rax
  cmp    %rax,%rdx
  jne    L22
  test   %r13d,%r13d
  jle    L216
L247:
  mov    %r12d,%eax
  movslq %r13d,%rdx
  movslq %r15d,%rdi
  imul   %r15d,%eax
  shl    $0x2,%rdi
  lea    0x100(%rsp),%rsi
  cltq
  add    %rdx,%rax
  lea    (%r14,%rax,4),%rdx
  xor    %eax,%eax
L78:
  mov    -0x4(%rdx),%ecx
  add    %rdi,%rdx
  mov    %ecx,(%rsi,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%ebx
  jg     L78
  test   %r12d,%r12d
  jle    L122
L214:
  lea    -0x1(%r12),%eax
  imul   %r15d,%eax
  add    %r13d,%eax
  cltq
  mov    -0x4(%r14,%rax,4),%r8d
  add    %r8d,%r8d
L267:
  mov    (%rsp),%edi
  mov    0x4(%rsp),%esi
  lea    (%rdi,%rdi,2),%eax
  lea    0x2(%rsi,%rax,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x200(%rsp)
  cmp    $0x1,%r10d
  jle    L282
  lea    -0x3(%rbx),%edx
  lea    0x204(%rsp),%rax
  lea    0x208(%rsp,%rdx,4),%r9
  lea    0x8(%rsp),%rcx
  mov    %edi,%edx
  jmp    L39
  cs nopw 0x0(%rax,%rax,1)
L201:
  mov    -0x8(%rcx),%edx
L39:
  lea    (%rdx,%rsi,2),%edx
  mov    (%rcx),%esi
  add    $0x4,%rax
  add    $0x4,%rcx
  lea    0x2(%rdx,%rsi,1),%edx
  sar    $0x2,%edx
  mov    %edx,-0x4(%rax)
  cmp    %rax,%r9
  jne    L201
L282:
  lea    -0x2(%rbx),%r12d
  movslq %r10d,%r11
  mov    0x100(%rsp),%r9d
  mov    0x104(%rsp),%esi
  movslq %r12d,%r12
  mov    (%rsp,%r11,4),%eax
  mov    (%rsp,%r12,4),%edx
  lea    (%rdx,%rax,2),%edx
  lea    0x2(%rax,%rdx,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x200(%rsp,%r11,4)
  lea    (%r9,%r9,2),%eax
  lea    0x2(%rsi,%rax,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x300(%rsp)
  cmp    $0x1,%r10d
  jle    L92
  lea    -0x3(%rbx),%edx
  lea    0x304(%rsp),%rax
  lea    0x308(%rsp,%rdx,4),%r10
  lea    0x108(%rsp),%rcx
  mov    %r9d,%edx
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L74:
  mov    -0x8(%rcx),%edx
L111:
  lea    (%rdx,%rsi,2),%edx
  mov    (%rcx),%esi
  add    $0x4,%rax
  add    $0x4,%rcx
  lea    0x2(%rdx,%rsi,1),%edx
  sar    $0x2,%edx
  mov    %edx,-0x4(%rax)
  cmp    %rax,%r10
  jne    L74
L92:
  mov    0x100(%rsp,%r11,4),%eax
  mov    0x100(%rsp,%r12,4),%edx
  add    %r8d,%r9d
  lea    0x2(%rdi,%r9,1),%r13d
  lea    (%rdx,%rax,2),%edx
  sar    $0x2,%r13d
  lea    0x2(%rax,%rdx,1),%eax
  sar    $0x2,%eax
  mov    %eax,0x300(%rsp,%r11,4)
  test   %ebx,%ebx
  jle    L125
  mov    0x200(%rsp),%r9d
  mov    %ebx,%r12d
  xor    %r8d,%r8d
  neg    %r12d
  add    %r13d,%r9d
  lea    (%r12,%r12,1),%r11d
  sar    %r9d
  mov    %r11d,%r10d
  nopl   0x0(%rax,%rax,1)
L97:
  mov    %r10d,%eax
  movslq %r8d,%rdx
  sub    %r11d,%eax
  lea    0x0(%rbp,%rdx,4),%rdx
  jmp    L30
  nopl   0x0(%rax,%rax,1)
L230:
  lea    -0x2(%rax),%ecx
  movslq %ecx,%rax
  mov    0x300(%rsp,%rax,4),%esi
L173:
  mov    %esi,(%rdx)
  mov    %ecx,%eax
  add    $0x4,%rdx
  cmp    %r10d,%ecx
  je     L174
L30:
  cmp    $0x1,%eax
  jg     L230
  je     L177
  test   %eax,%eax
  je     L14
  mov    %eax,%edi
  shr    $0x1f,%edi
  add    %eax,%edi
  sar    %edi
  neg    %edi
  movslq %edi,%rcx
  mov    0x200(%rsp,%rcx,4),%esi
  lea    -0x2(%rax),%ecx
  test   $0x1,%al
  jne    L173
  sub    $0x1,%edi
  mov    %ecx,%eax
  add    $0x4,%rdx
  movslq %edi,%rdi
  add    0x200(%rsp,%rdi,4),%esi
  sar    %esi
  mov    %esi,-0x4(%rdx)
  cmp    %r10d,%ecx
  jne    L30
  nopw   0x0(%rax,%rax,1)
L174:
  add    $0x1,%r10d
  add    %ebx,%r8d
  cmp    %r10d,%r12d
  jne    L97
L125:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L255
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L14:
  mov    %r9d,%esi
  mov    $0xfffffffe,%ecx
  jmp    L173
  nopl   (%rax)
L177:
  mov    %r13d,%esi
  mov    $0xffffffff,%ecx
  jmp    L173
L211:
  lea    -0x1(%r8),%r10d
  test   %edx,%edx
  jg     L214
  mov    (%rsp),%edi
  lea    -0x1(%r8),%r10d
  mov    $0x100,%r8d
  lea    (%rdi,%rdi,2),%eax
  add    0x4(%rsp),%eax
  add    $0x2,%eax
  sar    $0x2,%eax
  mov    %eax,0x200(%rsp)
  jmp    L282
L255:
  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;
      }
    }
  }
}
```