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

```asm
<qsort_twin>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x978,%rsp
  mov    %rdi,%r9
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x968(%rsp)
  xor    %eax,%eax
  movl   $0x0,(%rsp)
  mov    %edx,0x4b0(%rsp)
  mov    $0x0,%ebp
  jmp    L29
L142:
  movslq %esi,%rax
  mov    (%r9,%rax,4),%r8d
  mov    (%rbx,%rax,4),%r13d
  jmp    L155
L173:
  mov    %edi,%esi
  jmp    L18
L116:
  mov    %edx,(%r11)
  sub    $0x1,%ecx
  mov    (%rbx,%r15,1),%eax
  mov    %eax,(%rbx,%r10,1)
  cmp    %esi,%ecx
  jle    L32
L155:
  movslq %ecx,%rdx
  lea    0x0(,%rdx,4),%r10
  lea    (%r9,%r10,1),%r11
  mov    (%r11),%edi
  cmp    %ecx,%esi
  jge    L62
  cmp    %edi,%r8d
  jg     L62
  lea    -0x1(%rcx),%eax
  cltq
  lea    -0x4(%r9,%rdx,4),%rdx
L68:
  mov    %eax,%ecx
  lea    0x0(,%rax,4),%r10
  mov    %rdx,%r11
  mov    (%rdx),%edi
  cmp    %eax,%esi
  setl   %r15b
  cmp    %r8d,%edi
  setge  %r14b
  sub    $0x1,%rax
  sub    $0x4,%rdx
  test   %r14b,%r15b
  jne    L68
L62:
  cmp    %ecx,%esi
  jge    L32
  movslq %esi,%rax
  lea    0x0(,%rax,4),%rdx
  mov    %edi,(%r9,%rax,4)
  lea    0x1(%rsi),%edi
  mov    (%rbx,%r10,1),%r14d
  mov    %r14d,(%rbx,%rax,4)
  lea    0x4(%rdx),%r15
  mov    0x4(%r9,%rdx,1),%edx
  cmp    %ecx,%edi
  jge    L173
  cmp    %edx,%r8d
  jl     L173
  lea    0x2(%rsi),%eax
  cltq
L144:
  mov    %eax,%esi
  lea    0x0(,%rax,4),%r15
  mov    (%r9,%rax,4),%edx
  cmp    %eax,%ecx
  setg   %r14b
  cmp    %r8d,%edx
  setle  %dil
  add    $0x1,%rax
  test   %dil,%r14b
  jne    L144
L18:
  cmp    %ecx,%esi
  jl     L116
L32:
  movslq %esi,%rax
  mov    %r8d,(%r9,%rax,4)
  mov    %r13d,(%rbx,%rax,4)
  lea    0x1(%rbp),%ecx
  lea    0x1(%rsi),%edx
  movslq %ecx,%rax
  mov    %edx,(%rsp,%rax,4)
  mov    %r12d,0x4b0(%rsp,%rax,4)
  movslq %ebp,%rdi
  mov    %esi,0x4b0(%rsp,%rdi,4)
  mov    0x4b0(%rsp,%rax,4),%eax
  mov    (%rsp,%rdi,4),%edi
  mov    %eax,%r10d
  sub    %edx,%r10d
  mov    %esi,%r8d
  sub    %edi,%r8d
  cmp    %r8d,%r10d
  jle    L6
  movslq %ecx,%r8
  mov    %edi,(%rsp,%r8,4)
  movslq %ebp,%rbp
  mov    %edx,(%rsp,%rbp,4)
  mov    %esi,0x4b0(%rsp,%r8,4)
  mov    %eax,0x4b0(%rsp,%rbp,4)
  mov    %ecx,%ebp
L169:
  test   %ebp,%ebp
  js     L111
L29:
  movslq %ebp,%rax
  mov    (%rsp,%rax,4),%esi
  mov    0x4b0(%rsp,%rax,4),%r12d
  lea    -0x1(%r12),%ecx
  cmp    %ecx,%esi
  jl     L142
  sub    $0x1,%ebp
  jmp    L169
L6:
  mov    %ecx,%ebp
  jmp    L169
L111:
  mov    0x968(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L130
  add    $0x978,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L130:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void qsort_twin(int *arr_pri, int *arr_sec, const int elements) {
  int piv_pri, piv_sec, beg[300], end[300], i = 0, L, R, swap;
  beg[0] = 0;
  end[0] = elements;
  while (i >= 0) {
    L = beg[i];
    R = end[i] - 1;
    if (L < R) {
      piv_pri = arr_pri[L];
      piv_sec = arr_sec[L];
      while (L < R) {
        while (arr_pri[R] >= piv_pri && L < R)
          R--;
        if (L < R) {
          arr_pri[L] = arr_pri[R];
          arr_sec[L++] = arr_sec[R];
        }
        while (arr_pri[L] <= piv_pri && L < R)
          L++;
        if (L < R) {
          arr_pri[R] = arr_pri[L];
          arr_sec[R--] = arr_sec[L];
        }
      }
      arr_pri[L] = piv_pri;
      arr_sec[L] = piv_sec;
      beg[i + 1] = L + 1;
      end[i + 1] = end[i];
      end[i++] = L;
      if (end[i] - beg[i] > end[i - 1] - beg[i - 1]) {
        swap = beg[i];
        beg[i] = beg[i - 1];
        beg[i - 1] = swap;
        swap = end[i];
        end[i] = end[i - 1];
        end[i - 1] = swap;
      }
    } else {
      i--;
    }
  }
}
```