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

```asm
<RGB24toRGB24>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,(%rsp)
  mov    %edx,0x10(%rsp)
  mov    %ecx,%ebp
  mov    %r8d,%r13d
  mov    %r9d,0x8(%rsp)
  mov    0x90(%rsp),%r15
  mov    0xa8(%rsp),%r12d
  mov    0xb0(%rsp),%r14d
  mov    0xc0(%rsp),%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x34(%rsp),%rax
  push   %rax
  lea    0x38(%rsp),%rax
  push   %rax
  mov    0xd8(%rsp),%eax
  push   %rax
  push   %rbx
  mov    0xd8(%rsp),%eax
  push   %rax
  push   %r14
  push   %r12
  mov    0xd8(%rsp),%eax
  push   %rax
  mov    0xd8(%rsp),%eax
  push   %rax
  push   %r15
  mov    0xd8(%rsp),%eax
  push   %rax
  mov    0xd8(%rsp),%eax
  push   %rax
  call   <chk_args@plt>
  add    $0x60,%rsp
  test   %eax,%eax
  je     L177
  test   %r12d,%r12d
  js     L50
L230:
  test   %ebp,%ebp
  js     L15
L306:
  mov    0x30(%rsp),%eax
  cmp    $0x1,%eax
  je     L247
  cmp    $0x2,%eax
  jne    L275
  cmpl   $0x2,0x34(%rsp)
  jne    L235
  lea    (%r14,%r14,2),%eax
  movslq %eax,%rdx
  mov    %r12d,%eax
  imul   0xb8(%rsp),%eax
  cltq
  add    %rdx,%rax
  add    %r15,%rax
  lea    0x0(%r13,%r13,2),%ecx
  movslq %ecx,%rcx
  mov    0x8(%rsp),%edx
  imul   %ebp,%edx
  movslq %edx,%rdx
  add    %rdx,%rcx
  add    (%rsp),%rcx
  cmpl   $0x0,0xc8(%rsp)
  jle    L140
  lea    (%rbx,%rbx,1),%edx
  lea    (%rdx,%rbx,1),%esi
  lea    (%rsi,%rsi,1),%edi
  mov    %edi,0x24(%rsp)
  movslq %edi,%rsi
  neg    %rsi
  mov    %rsi,0x8(%rsp)
  movslq %r12d,%r12
  add    %ebx,%edx
  movslq %edx,%rdx
  sub    %rdx,%r12
  mov    %r12,0x18(%rsp)
  lea    0x0(%rbp,%rbp,1),%edx
  movslq %edx,%rdi
  mov    %rdi,0x10(%rsp)
  mov    $0x0,%r12d
  mov    %r14d,%r13d
  and    $0x3,%r13d
  lea    0x1(%r14,%rbx,1),%r14d
  movslq %ebp,%rdi
  mov    %rdi,0x28(%rsp)
  mov    %rcx,%rbp
  jmp    L224
L50:
  mov    0xa0(%rsp),%eax
  sub    $0x1,%eax
  imul   %r12d,%eax
  cltq
  sub    %rax,%r15
  jmp    L230
L15:
  mov    0x10(%rsp),%eax
  sub    $0x1,%eax
  imul   %ebp,%eax
  cltq
  sub    %rax,(%rsp)
  jmp    L306
L247:
  mov    $0xffffffff,%eax
  cmpl   $0x1,0x34(%rsp)
  jne    L259
  lea    (%r14,%r14,2),%ebx
  movslq %ebx,%rbx
  mov    %r12d,%eax
  imul   0xb8(%rsp),%eax
  cltq
  add    %rax,%rbx
  add    %r15,%rbx
  lea    0x0(%r13,%r13,2),%r13d
  movslq %r13d,%r13
  mov    0x8(%rsp),%eax
  imul   %ebp,%eax
  cltq
  add    %rax,%r13
  add    (%rsp),%r13
  cmpl   $0x0,0x88(%rsp)
  jle    L108
  mov    0x80(%rsp),%eax
  lea    (%rax,%rax,2),%r15d
  mov    $0x0,%r14d
  movslq %r12d,%r12
  mov    %r12,(%rsp)
  mov    0x88(%rsp),%r12d
L90:
  mov    %r15d,%edx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  add    (%rsp),%rbx
  movslq %ebp,%rax
  add    %rax,%r13
  add    $0x1,%r14d
  cmp    %r14d,%r12d
  jne    L90
  mov    $0x0,%eax
  jmp    L259
L110:
  mov    %rax,%r15
  jmp    L301
L126:
  mov    %ebx,%edi
L281:
  cmp    $0x3,%edi
  jle    L110
  lea    -0x4(%rdi),%r8d
  shr    $0x2,%r8d
  lea    0x1(%r8),%r9d
  mov    %r9d,%r9d
  lea    (%r9,%r9,2),%rdx
  lea    (%rax,%rdx,4),%r15
  mov    %rbp,%rsi
  mov    %edi,(%rsp)
L72:
  mov    (%rax),%ecx
  mov    0x4(%rax),%edx
  mov    %ecx,%r10d
  and    $0xffffff,%r10d
  mov    %ecx,%r11d
  shl    $0x18,%r11d
  or     %r11d,%r10d
  mov    %r10d,(%rsi)
  mov    %ecx,%r10d
  shr    $0x8,%r10d
  mov    %edx,%r11d
  shl    $0x18,%r11d
  or     %r11d,%r10d
  mov    %r10d,0x4(%rsi)
  movzbl %dh,%edi
  mov    %edi,%r10d
  shr    $0x10,%ecx
  and    $0xff00,%ecx
  or     %ecx,%r10d
  mov    %edx,%ecx
  shl    $0x10,%ecx
  or     %ecx,%r10d
  mov    %r10d,0x8(%rsi)
  mov    0x8(%rax),%ecx
  mov    %ecx,%r10d
  shl    $0x10,%r10d
  and    $0xff0000,%r10d
  mov    %edx,%r11d
  shl    $0x8,%r11d
  and    $0xff000000,%r11d
  or     %r11d,%r10d
  mov    %edx,%r11d
  shr    $0x10,%r11d
  or     %r11d,%r10d
  mov    %r10d,0xc(%rsi)
  shr    $0x18,%edx
  mov    %ecx,%r10d
  shl    $0x8,%r10d
  or     %r10d,%edx
  mov    %edx,0x10(%rsi)
  mov    %ecx,%edx
  shr    $0x18,%edx
  mov    $0x0,%cl
  or     %ecx,%edx
  mov    %edx,0x14(%rsi)
  add    $0x18,%rsi
  add    $0xc,%rax
  cmp    %r15,%rax
  jne    L72
  mov    (%rsp),%edi
  lea    (%r9,%r9,2),%rax
  lea    0x0(%rbp,%rax,8),%rbp
  neg    %r8d
  lea    -0x4(%rdi,%r8,4),%edi
L301:
  test   %edi,%edi
  je     L48
  mov    %edi,%eax
  lea    (%rax,%rax,2),%rsi
  add    %r15,%rsi
  mov    %rbp,%rax
  mov    %r15,%rdx
L106:
  movzbl (%rdx),%ecx
  mov    %cl,(%rax)
  mov    %cl,0x3(%rax)
  movzbl 0x1(%rdx),%ecx
  mov    %cl,0x1(%rax)
  mov    %cl,0x4(%rax)
  movzbl 0x2(%rdx),%ecx
  mov    %cl,0x2(%rax)
  mov    %cl,0x5(%rax)
  add    $0x6,%rax
  add    $0x3,%rdx
  cmp    %rsi,%rdx
  jne    L106
  lea    -0x1(%rdi),%eax
  add    $0x1,%rax
  lea    (%rax,%rax,1),%rdx
  lea    (%rdx,%rax,1),%rcx
  lea    0x0(%rbp,%rcx,2),%rbp
  add    %rcx,%r15
L48:
  add    0x8(%rsp),%rbp
  mov    0x28(%rsp),%rax
  lea    0x0(%rbp,%rax,1),%rdi
  mov    0x24(%rsp),%edx
  mov    %rbp,%rsi
  call   <memcpy@plt>
  mov    0x18(%rsp),%rax
  add    %r15,%rax
  add    0x10(%rsp),%rbp
  add    $0x1,%r12d
  cmp    %r12d,0xc8(%rsp)
  je     L214
L224:
  test   %r13d,%r13d
  je     L126
  mov    %ebx,%edi
  test   %ebx,%ebx
  je     L126
L280:
  movzbl (%rax),%edx
  mov    %dl,0x0(%rbp)
  mov    %dl,0x3(%rbp)
  movzbl 0x1(%rax),%edx
  mov    %dl,0x1(%rbp)
  mov    %dl,0x4(%rbp)
  movzbl 0x2(%rax),%edx
  mov    %dl,0x2(%rbp)
  mov    %dl,0x5(%rbp)
  add    $0x6,%rbp
  add    $0x3,%rax
  mov    %r14d,%edx
  sub    %edi,%edx
  sub    $0x1,%edi
  test   $0x3,%dl
  je     L281
  test   %edi,%edi
  jne    L280
  jmp    L281
L177:
  mov    $0xffffffff,%eax
  jmp    L259
L108:
  mov    $0x0,%eax
  jmp    L259
L275:
  mov    $0xffffffff,%eax
  jmp    L259
L235:
  mov    $0xffffffff,%eax
  jmp    L259
L140:
  mov    $0x0,%eax
  jmp    L259
L214:
  mov    $0x0,%eax
L259:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L11
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int RGB24toRGB24(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 (src_pitch < 0)
    src_ptr -= (src_height - 1) * src_pitch;
  if (dest_pitch < 0)
    dest_ptr -= (dest_height - 1) * dest_pitch;
  if (scale_x == 1 && scale_y == 1) {
    unsigned char *s, *d;
    register int i;
    s = src_ptr + src_x * 3 + src_y * src_pitch;
    d = dest_ptr + dest_x * 3 + dest_y * dest_pitch;
    for (i = 0; i < dest_dy; i++) {
      memcpy(d, s, dest_dx * 3);
      s += src_pitch;
      d += dest_pitch;
    }
    return 0;
  }
  if (scale_x == 2 && scale_y == 2) {
    unsigned char *s, *d;
    register int i;
    s = src_ptr + src_x * 3 + src_y * src_pitch;
    d = dest_ptr + dest_x * 3 + dest_y * dest_pitch;
    for (i = 0; i < src_dy; i++) {
      register int sx = src_x, sdx = src_dx;
      while ((sx & 3) && sdx) {
        register unsigned char a;
        a = *s;
        *d = a;
        *(d + 3) = a;
        a = *(s + 1);
        *(d + 1) = a;
        *(d + 1 + 3) = a;
        a = *(s + 2);
        *(d + 2) = a;
        *(d + 2 + 3) = a;
        d += 2 * 3;
        s += 3;
        sx++;
        sdx--;
      }
      while (sdx >= 4) {
        register unsigned int a, b;
        a = *(unsigned int *)s;
        b = *(unsigned int *)(s + 4);
        *(unsigned int *)(d) = (a & 0x00FFFFFF) | (a << 24);
        *(unsigned int *)(d + 4) = (a >> 8) | (b << 24);
        *(unsigned int *)(d + 2 * 4) = ((b & 0xFF00) >> 8) | ((a & 0xFF000000) >> 16) | (b << 16);
        a = *(unsigned int *)(s + 8);
        *(unsigned int *)(d + 3 * 4) = (b >> 16) | ((a & 0xFF) << 16) | ((b & 0xFF0000) << 8);
        *(unsigned int *)(d + 4 * 4) = (b >> 24) | (a << 8);
        *(unsigned int *)(d + 5 * 4) = (a >> 24) | (a & 0xFFFFFF00);
        d += 4 * 2 * 3;
        s += 4 * 3;
        sdx -= 4;
      }
      while (sdx) {
        register unsigned char a;
        a = *s;
        *d = a;
        *(d + 3) = a;
        a = *(s + 1);
        *(d + 1) = a;
        *(d + 1 + 3) = a;
        a = *(s + 2);
        *(d + 2) = a;
        *(d + 2 + 3) = a;
        d += 2 * 3;
        s += 3;
        sdx--;
      }
      s -= src_dx * 3;
      d -= src_dx * 2 * 3;
      memcpy(d + dest_pitch, d, src_dx * 2 * 3);
      s += src_pitch;
      d += dest_pitch * 2;
    }
    return 0;
  }
  return -1;
}
```