user: 这段汇编代码用C语言表示是什么样的？

```asm
<cocktailsort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movl   $0x0,-0x4(%rbp)
  mov    -0x2c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x18(%rbp)
  movl   $0x1,-0x14(%rbp)
  jmp    L78
L2:
  movl   $0x0,-0x14(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  jmp    L74
L92:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L80
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  movl   $0x1,-0x14(%rbp)
L80:
  addl   $0x1,-0x10(%rbp)
L74:
  mov    -0x10(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L92
  cmpl   $0x0,-0x14(%rbp)
  je     L105
  movl   $0x0,-0x14(%rbp)
  subl   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L53
L21:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L49
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0xc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x4(%rbp),%eax
  mov    %eax,(%rdx)
  movl   $0x1,-0x14(%rbp)
L49:
  subl   $0x1,-0xc(%rbp)
L53:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L21
  addl   $0x1,-0x1c(%rbp)
L78:
  cmpl   $0x0,-0x14(%rbp)
  jne    L2
  jmp    L45
L105:
  nop
L45:
  movl   $0x0,-0x8(%rbp)
  jmp    L10
L99:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x8(%rbp)
L10:
  mov    -0x8(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L99
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D6
datatype: string

tool: D6: %d 

assistant: ```c
void cocktailsort(int l[], int n) {
  int first = 0;
  int temp = 0;
  int last = n - 1;
  int p = 1;
  while (p != 0) {
    p = 0;
    for (int i = first; i < last; ++i) {
      if (l[i] > l[i + 1]) {
        temp = l[i];
        l[i] = l[i + 1];
        l[i + 1] = temp;
        p = 1;
      }
    }
    if (!p)
      break;
    else {
      p = 0;
      last--;
    }
    for (int i = last; i >= first; --i) {
      if (l[i] > l[i + 1]) {
        temp = l[i];
        l[i] = l[i + 1];
        l[i + 1] = temp;
        p = 1;
      }
    }
    first++;
  }
  for (int i = 0; i < n; ++i)
    printf("%d ", l[i]);
  printf("\n");
}
```