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

```asm
<YVU9toI420>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,%r12
  mov    %rdi,0x10(%rsp)
  mov    %edx,%r13d
  mov    %ecx,%r15d
  mov    %r8d,0x3c(%rsp)
  mov    %r9d,0x38(%rsp)
  mov    0xa0(%rsp),%rbp
  mov    %rbp,0x18(%rsp)
  mov    0xb8(%rsp),%r14d
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x44(%rsp),%rax
  push   %rax
  lea    0x48(%rsp),%rax
  push   %rax
  mov    0xe8(%rsp),%eax
  push   %rax
  mov    0xe8(%rsp),%eax
  push   %rax
  mov    0xe8(%rsp),%eax
  push   %rax
  mov    0xe8(%rsp),%eax
  push   %rax
  push   %r14
  mov    0xe8(%rsp),%eax
  push   %rax
  mov    0xe8(%rsp),%eax
  push   %rax
  push   %rbp
  mov    0xe8(%rsp),%eax
  push   %rax
  mov    0xe8(%rsp),%eax
  push   %rax
  call   <chk_args@plt>
  add    $0x60,%rsp
  test   %eax,%eax
  je     L75
  lea    0xd0(%rsp),%rcx
  lea    0xc0(%rsp),%rdx
  lea    0x3c(%rsp),%rdi
  mov    0x40(%rsp),%r8d
  lea    0x90(%rsp),%rsi
  call   <adjust_range@plt>
  test   %eax,%eax
  jne    L9
L131:
  mov    0x48(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L109
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L9:
  lea    0xd8(%rsp),%rcx
  lea    0xc8(%rsp),%rdx
  lea    0x98(%rsp),%rsi
  lea    0x38(%rsp),%rdi
  mov    0x44(%rsp),%r8d
  call   <adjust_range@plt>
  test   %eax,%eax
  je     L131
  mov    0xc0(%rsp),%eax
  test   $0x1,%al
  jne    L107
  mov    0xc8(%rsp),%ebx
  mov    %ebx,%ecx
  and    $0x1,%ecx
  mov    %ecx,0x34(%rsp)
  jne    L24
  test   %r15d,%r15d
  jle    L143
  test   %r14d,%r14d
  jle    L143
  imul   %r14d,%ebx
  movslq %ebx,%rbx
  cltq
  add    %rax,%rbx
  add    %rbp,%rbx
  mov    %r15d,%ebp
  imul   0x38(%rsp),%ebp
  movslq %ebp,%rbp
  movslq 0x3c(%rsp),%rax
  add    %rax,%rbp
  add    %r12,%rbp
  cmpl   $0x0,0x98(%rsp)
  jle    L182
  mov    %ecx,%r12d
  movslq %r14d,%rax
  mov    %rax,0x8(%rsp)
L146:
  mov    0x90(%rsp),%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  add    0x8(%rsp),%rbx
  movslq %r15d,%rax
  add    %rax,%rbp
  add    $0x1,%r12d
  cmp    %r12d,0x98(%rsp)
  jg     L146
L182:
  mov    %r14d,%esi
  imul   0xb0(%rsp),%esi
  lea    0xf(%rsi),%eax
  test   %esi,%esi
  cmovns %esi,%eax
  sar    $0x4,%eax
  mov    %eax,0x2c(%rsp)
  imul   %r15d,%r13d
  lea    0x3(%r13),%eax
  test   %r13d,%r13d
  cmovns %r13d,%eax
  sar    $0x2,%eax
  mov    %eax,0x30(%rsp)
  mov    0xc0(%rsp),%edx
  mov    0xc8(%rsp),%eax
  lea    0x3(%rax),%ecx
  test   %eax,%eax
  cmovns %eax,%ecx
  sar    $0x2,%ecx
  imul   %r14d,%ecx
  lea    0x3(%rcx),%ebp
  test   %ecx,%ecx
  cmovns %ecx,%ebp
  sar    $0x2,%ebp
  movslq %ebp,%rbp
  movslq %esi,%rsi
  add    %rsi,%rbp
  lea    0x3(%rdx),%ecx
  test   %edx,%edx
  cmovns %edx,%ecx
  sar    $0x2,%ecx
  movslq %ecx,%rcx
  add    %rcx,%rbp
  add    0x18(%rsp),%rbp
  mov    0x38(%rsp),%esi
  mov    %esi,%ecx
  shr    $0x1f,%ecx
  add    %esi,%ecx
  sar    %ecx
  imul   %r15d,%ecx
  mov    %ecx,%ebx
  shr    $0x1f,%ebx
  add    %ecx,%ebx
  sar    %ebx
  movslq %ebx,%rbx
  movslq %r13d,%r13
  add    %r13,%rbx
  mov    0x3c(%rsp),%esi
  mov    %esi,%ecx
  shr    $0x1f,%ecx
  add    %esi,%ecx
  sar    %ecx
  movslq %ecx,%rcx
  add    %rcx,%rbx
  add    0x10(%rsp),%rbx
  test   $0x2,%al
  jne    L74
L60:
  mov    0x98(%rsp),%eax
  cmp    $0x3,%eax
  jle    L183
  mov    %r15d,%r13d
  shr    $0x1f,%r13d
  add    %r15d,%r13d
  sar    %r13d
  movslq %r13d,%r13
  movslq 0x30(%rsp),%rax
  mov    %rax,0x8(%rsp)
  add    %r13,%rax
  mov    %rax,0x10(%rsp)
  lea    0x3(%r14),%eax
  test   %r14d,%r14d
  cmovns %r14d,%eax
  sar    $0x2,%eax
  cltq
  mov    %rax,0x18(%rsp)
  mov    0x34(%rsp),%r12d
  movslq 0x2c(%rsp),%rax
  mov    %rax,0x20(%rsp)
L187:
  mov    0x90(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <lineYVU9toI420@plt>
  mov    0x90(%rsp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  lea    0x0(%r13,%rbx,1),%rdi
  mov    %rbx,%rsi
  call   <memcpy@plt>
  mov    0x8(%rsp),%rax
  lea    (%rax,%rbx,1),%r14
  mov    0x20(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rsi
  mov    0x90(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    %r14,%rdi
  call   <lineYVU9toI420@plt>
  mov    0x90(%rsp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %eax,%edx
  sar    %edx
  mov    0x10(%rsp),%rax
  lea    (%rax,%rbx,1),%rdi
  mov    %r14,%rsi
  call   <memcpy@plt>
  add    0x18(%rsp),%rbp
  movslq %r15d,%rax
  add    %rax,%rbx
  add    $0x1,%r12d
  mov    0x98(%rsp),%eax
  lea    0x3(%rax),%edx
  test   %eax,%eax
  cmovns %eax,%edx
  sar    $0x2,%edx
  cmp    %r12d,%edx
  jg     L187
L183:
  and    $0x2,%eax
  je     L131
  mov    0x90(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <lineYVU9toI420@plt>
  movslq 0x2c(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rsi
  movslq 0x30(%rsp),%rax
  lea    (%rbx,%rax,1),%rdi
  mov    0x90(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  call   <lineYVU9toI420@plt>
  mov    0x34(%rsp),%eax
  jmp    L131
L74:
  mov    0x90(%rsp),%ecx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <lineYVU9toI420@plt>
  movslq 0x2c(%rsp),%rsi
  add    %rbp,%rsi
  movslq 0x30(%rsp),%rdi
  add    %rbx,%rdi
  mov    0x90(%rsp),%ecx
  mov    0xc0(%rsp),%edx
  call   <lineYVU9toI420@plt>
  lea    0x3(%r14),%eax
  test   %r14d,%r14d
  cmovns %r14d,%eax
  sar    $0x2,%eax
  cltq
  add    %rax,%rbp
  mov    %r15d,%eax
  shr    $0x1f,%eax
  add    %r15d,%eax
  sar    %eax
  cltq
  add    %rax,%rbx
  subl   $0x2,0x98(%rsp)
  jmp    L60
L75:
  mov    $0xffffffff,%eax
  jmp    L131
L107:
  mov    $0xffffffff,%eax
  jmp    L131
L24:
  mov    $0xffffffff,%eax
  jmp    L131
L143:
  mov    $0xffffffff,%eax
  jmp    L131
L109:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int YVU9toI420(unsigned char *dest_ptr, int dest_width, int dest_height, int dest_pitch, int dest_x, int dest_y, int dest_dx, int dest_dy, unsigned char *src_ptr, int src_width, int src_height, int src_pitch, int src_x, int src_y, int src_dx, int src_dy) {
  int scale_x, scale_y;
  if (!chk_args(dest_ptr, dest_width, dest_height, dest_pitch, dest_x, dest_y, dest_dx, dest_dy, src_ptr, src_width, src_height, src_pitch, src_x, src_y, src_dx, src_dy, &scale_x, &scale_y))
    return -1;
  if (!adjust_range(&dest_x, &dest_dx, &src_x, &src_dx, scale_x) || !adjust_range(&dest_y, &dest_dy, &src_y, &src_dy, scale_y))
    return 0;
  if ((src_x & 1) || (src_y & 1))
    return -1;
  if (dest_pitch <= 0 || src_pitch <= 0)
    return -1;
  {
    unsigned char *s, *d;
    int src_uv_offs, dest_uv_offs;
    register int j;
    s = src_ptr + src_x + src_y * src_pitch;
    d = dest_ptr + dest_x + dest_y * dest_pitch;
    for (j = 0; j < dest_dy; j++) {
      memcpy(d, s, dest_dx);
      s += src_pitch;
      d += dest_pitch;
    }
    src_uv_offs = src_height * src_pitch / 16;
    dest_uv_offs = dest_height * dest_pitch / 4;
    s = (src_ptr + src_height * src_pitch) + src_x / 4 + src_y / 4 * src_pitch / 4;
    d = (dest_ptr + dest_height * dest_pitch) + dest_x / 2 + dest_y / 2 * dest_pitch / 2;
    if (src_y & 2) {
      lineYVU9toI420(d, s, src_x, dest_dx);
      lineYVU9toI420(d + dest_uv_offs, s + src_uv_offs, src_x, dest_dx);
      s += src_pitch / 4;
      d += dest_pitch / 2;
      dest_dy -= 2;
    }
    for (j = 0; j < dest_dy / 4; j++) {
      lineYVU9toI420(d, s, src_x, dest_dx);
      memcpy(d + dest_pitch / 2, d, dest_dx / 2);
      lineYVU9toI420(d + dest_uv_offs, s + src_uv_offs, src_x, dest_dx);
      memcpy(d + dest_pitch / 2 + dest_uv_offs, d + dest_uv_offs, dest_dx / 2);
      s += src_pitch / 4;
      d += dest_pitch;
    }
    if (dest_dy & 2) {
      lineYVU9toI420(d, s, src_x, dest_dx);
      lineYVU9toI420(d + dest_uv_offs, s + src_uv_offs, src_x, dest_dx);
    }
  }
  return 0;
}
```