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

```asm
<quicksort>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0xb8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  lea    -0x1(%rdi),%eax
  movl   $0xffffffff,0xc(%rsp)
  mov    %eax,0x8(%rsp)
L51:
  cmp    0x8(%rsp),%ebx
  jl     L28
L129:
  mov    0xc(%rsp),%ebx
  cmp    $0xffffffff,%ebx
  je     L101
  movslq %ebx,%rdx
  lea    -0x1(%rbx),%eax
  sub    $0x2,%ebx
  mov    0x20(%rsp,%rdx,4),%edx
  cltq
  mov    %ebx,0xc(%rsp)
  mov    0x20(%rsp,%rax,4),%ebx
  mov    %edx,0x8(%rsp)
  cmp    0x8(%rsp),%ebx
  jge    L129
L28:
  movslq 0x8(%rsp),%rax
  mov    %ebx,%r13d
  movslq %ebx,%rbp
  lea    0x1(%rbx),%r10d
  mov    %rax,%rdx
  mov    %rax,0x10(%rsp)
  lea    (%r15,%rax,8),%rax
  mov    %rax,0x18(%rsp)
  sub    $0x1,%edx
  movsd  (%rax),%xmm1
  movslq %edx,%rcx
  nopl   (%rax)
L132:
  lea    (%r15,%rbp,8),%r11
  lea    (%r15,%rcx,8),%r8
  mov    %rcx,%r9
  mov    %r10d,%r12d
  movsd  (%r11),%xmm2
  movsd  (%r8),%xmm0
  comisd %xmm2,%xmm1
  ja     L76
  comisd %xmm1,%xmm0
  jb     L117
  cmp    %ebx,%edx
  jle    L117
  lea    -0x1(%rdx),%eax
  lea    -0x8(%r15,%rcx,8),%rcx
  cltq
  nopw   0x0(%rax,%rax,1)
L61:
  movsd  (%rcx),%xmm0
  mov    %eax,%edx
  mov    %rcx,%r8
  mov    %rax,%r9
  comisd %xmm1,%xmm0
  setae  %dil
  cmp    %eax,%ebx
  setl   %sil
  sub    $0x1,%rax
  sub    $0x8,%rcx
  test   %sil,%dil
  jne    L61
L117:
  lea    (%r14,%rbp,4),%rax
  mov    (%rax),%ecx
  cmp    %edx,%r13d
  jge    L16
  lea    (%r14,%r9,4),%rsi
  movsd  %xmm0,(%r11)
  mov    (%rsi),%edi
  movsd  %xmm2,(%r8)
  mov    %edi,(%rax)
  mov    %ecx,(%rsi)
  movslq %edx,%rcx
  jmp    L132
  cs nopw 0x0(%rax,%rax,1)
L76:
  mov    %r10d,%r13d
  movslq %r10d,%rbp
  add    $0x1,%r10d
  jmp    L132
  nop
L16:
  mov    0x18(%rsp),%rdx
  mov    0xc(%rsp),%edi
  mov    0x8(%rsp),%r9d
  movsd  (%rdx),%xmm0
  sub    %r13d,%r9d
  movsd  %xmm0,(%r11)
  mov    %r13d,%r11d
  movsd  %xmm2,(%rdx)
  mov    0x10(%rsp),%rdx
  sub    %ebx,%r11d
  lea    (%r14,%rdx,4),%rsi
  lea    0x1(%rdi),%edx
  add    $0x2,%edi
  mov    %edi,0xc(%rsp)
  mov    (%rsi),%r8d
  lea    -0x1(%r13),%edi
  cmp    %r9d,%r11d
  jle    L0
  mov    %ebx,%r12d
  mov    %r10d,%ebx
L78:
  mov    %r8d,(%rax)
  movd   %edi,%xmm3
  movd   %r12d,%xmm0
  xor    %edi,%edi
  mov    %ecx,(%rsi)
  cmpl   $0x1f,0xc(%rsp)
  punpckldq %xmm3,%xmm0
  movslq %edx,%rdx
  setle  %dil
  movq   %xmm0,0x20(%rsp,%rdx,4)
  call   <assert@plt>
  jmp    L51
L0:
  mov    0x8(%rsp),%r9d
  mov    %edi,0x8(%rsp)
  mov    %r9d,%edi
  jmp    L78
L101:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void quicksort(int n, double arr[], int idx[]) {
  double v, td;
  int i, j, l, r, ti, tos, stack[32];
  l = 0;
  r = n - 1;
  tos = -1;
  for (;;) {
    while (r > l) {
      v = arr[r];
      i = l;
      j = r - 1;
      for (;;) {
        while (arr[i] < v)
          i++;
        while (arr[j] >= v && j > l)
          j--;
        if (i >= j)
          break;
        td = arr[i];
        arr[i] = arr[j];
        arr[j] = td;
        ti = idx[i];
        idx[i] = idx[j];
        idx[j] = ti;
      }
      td = arr[i];
      arr[i] = arr[r];
      arr[r] = td;
      ti = idx[i];
      idx[i] = idx[r];
      idx[r] = ti;
      if (i - l > r - i) {
        stack[++tos] = l;
        stack[++tos] = i - 1;
        l = i + 1;
      } else {
        stack[++tos] = i + 1;
        stack[++tos] = r;
        r = i - 1;
      }
      assert(tos < 32);
    }
    if (tos == -1)
      break;
    r = stack[tos--];
    l = stack[tos--];
  }
}
```