user: What is the c source code of the assembly code below?

```asm
<ayuv2yuyv_ref>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L31
L36:
  mov    -0xc(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sar    $0x10,%eax
  mov    %eax,%ecx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  add    %eax,%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sar    $0x8,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sar    $0x10,%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x2(%rax),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  mov    -0xc(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x3(%rax),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addl   $0x1,-0xc(%rbp)
L31:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0xc(%rbp)
  jl     L36
  movl   $0x0,-0xc(%rbp)
  jmp    L75
L12:
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0xc(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  sar    $0x10,%edx
  cmp    %edx,%eax
  jne    L68
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0xc(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  sar    $0x8,%edx
  cmp    %edx,%eax
  jne    L68
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0xc(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x20(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  sar    $0x10,%edx
  cmp    %edx,%eax
  jne    L68
  mov    -0xc(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    0x3(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0xc(%rbp),%eax
  add    %eax,%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L2
L68:
  mov    $0x0,%eax
  call   <abort@plt>
L2:
  addl   $0x1,-0xc(%rbp)
L75:
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  cmp    %eax,-0xc(%rbp)
  jl     L12
  nop
  nop
  leave
  ret
```

assistant: ```c
__attribute__((no)) void ayuv2yuyv_ref(int *d, int *src, int n) {
  char *dest = (char *)d;
  int i;
  for (i = 0; i < n / 2; i++) {
    dest[i * 4 + 0] = (src[i * 2 + 0]) >> 16;
    dest[i * 4 + 1] = (src[i * 2 + 1]) >> 8;
    dest[i * 4 + 2] = (src[i * 2 + 0]) >> 16;
    dest[i * 4 + 3] = (src[i * 2 + 0]) >> 0;
  }
  for (i = 0; i < n / 2; i++) {
    if (dest[i * 4 + 0] != (src[i * 2 + 0]) >> 16 || dest[i * 4 + 1] != (src[i * 2 + 1]) >> 8 || dest[i * 4 + 2] != (src[i * 2 + 0]) >> 16 || dest[i * 4 + 3] != (src[i * 2 + 0]) >> 0)
      abort();
  }
}
```