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

```asm
<scale2x3>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9d,-0x40(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpl   $0x1,0x10(%rbp)
  seta   %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    0x10(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%r9
  mov    -0x2c(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x2c(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x8(%rbp),%r8
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  sub    $0x8,%rsp
  mov    0x18(%rbp),%ecx
  push   %rcx
  mov    -0x40(%rbp),%ecx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <stage_scale2x3@plt>
  add    $0x20,%rsp
  mov    -0x2c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,%eax
  add    %rax,-0x10(%rbp)
  subl   $0x2,-0x14(%rbp)
  jmp    L18
L19:
  mov    -0x30(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%r9
  mov    -0x30(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%r8
  mov    -0x2c(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x2c(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  sub    $0x8,%rsp
  mov    0x18(%rbp),%ecx
  push   %rcx
  mov    -0x40(%rbp),%ecx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <stage_scale2x3@plt>
  add    $0x20,%rsp
  mov    -0x2c(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  mov    %eax,%eax
  add    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%eax
  add    %rax,-0x8(%rbp)
  subl   $0x1,-0x14(%rbp)
L18:
  cmpl   $0x0,-0x14(%rbp)
  jne    L19
  mov    -0x30(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%r9
  mov    -0x30(%rbp),%edx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%r8
  mov    -0x2c(%rbp),%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x2c(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  sub    $0x8,%rsp
  mov    0x18(%rbp),%ecx
  push   %rcx
  mov    -0x40(%rbp),%ecx
  push   %rcx
  mov    -0x3c(%rbp),%ecx
  push   %rcx
  mov    %rdx,%rcx
  mov    %rdi,%rdx
  mov    %rax,%rdi
  call   <stage_scale2x3@plt>
  add    $0x20,%rsp
  nop
  leave
  ret
```

assistant: ```c
void scale2x3(void *void_dst, unsigned dst_slice, const void *void_src, unsigned src_slice, unsigned pixel, unsigned width, unsigned height, unsigned opt) {
  unsigned char *dst = (unsigned char *)void_dst;
  const unsigned char *src = (const unsigned char *)void_src;
  unsigned count;
  assert(height >= 2);
  count = height;
  stage_scale2x3((dst + (0) * dst_slice), (dst + (1) * dst_slice), (dst + (2) * dst_slice), (src + (0) * src_slice), (src + (0) * src_slice), (src + (1) * src_slice), pixel, width, opt);
  dst = (dst + (3) * dst_slice);
  count -= 2;
  while (count) {
    stage_scale2x3((dst + (0) * dst_slice), (dst + (1) * dst_slice), (dst + (2) * dst_slice), (src + (0) * src_slice), (src + (1) * src_slice), (src + (2) * src_slice), pixel, width, opt);
    dst = (dst + (3) * dst_slice);
    src = (src + (1) * src_slice);
    --count;
  }
  stage_scale2x3((dst + (0) * dst_slice), (dst + (1) * dst_slice), (dst + (2) * dst_slice), (src + (0) * src_slice), (src + (1) * src_slice), (src + (1) * src_slice), pixel, width, opt);
}
```