user: 下面的汇编指令对应的C源代码是什么:

```asm
<ss_swapmerge>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x458,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %rdx,%r15
  mov    %rcx,%rbx
  mov    %r8,%r12
  mov    %r9,0x20(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x448(%rsp)
  xor    %eax,%eax
  mov    $0x0,%r14d
  movl   $0x0,0x28(%rsp)
  movslq 0x490(%rsp),%rax
  mov    %rax,0x10(%rsp)
L196:
  mov    %r12,%rax
  sub    %rbx,%rax
  mov    %rax,%rbp
  sar    $0x2,%rbp
  cmp    0x10(%rsp),%rbp
  jg     L366
  cmp    %rbx,%r15
  jae    L223
  cmp    %r12,%rbx
  jb     L302
L223:
  test   $0x1,%r14b
  jne    L657
  test   $0x2,%r14b
  je     L320
  movslq (%r15),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rdx
  mov    -0x4(%r15),%eax
  test   %eax,%eax
  js     L181
  movslq %eax,%rsi
  shl    $0x2,%rsi
L447:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L320
L657:
  notl   (%r15)
L320:
  test   $0x4,%r14b
  je     L538
  movslq (%r12),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rdx
  mov    -0x4(%r12),%eax
  test   %eax,%eax
  js     L306
  movslq %eax,%rsi
  shl    $0x2,%rsi
L128:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L538
  notl   (%r12)
L538:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  jne    L416
L301:
  mov    0x448(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L460
  add    $0x458,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L302:
  sub    $0x8,%rsp
  mov    0x4a0(%rsp),%eax
  push   %rax
  mov    0x30(%rsp),%r9
  mov    %r12,%r8
  mov    %rbx,%rcx
  mov    %r15,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_mergebackward@plt>
  add    $0x10,%rsp
  jmp    L223
L181:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L447
L306:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L128
L416:
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cltq
  shl    $0x5,%rax
  mov    0x40(%rsp,%rax,1),%r15
  mov    0x48(%rsp,%rax,1),%rbx
  mov    0x50(%rsp,%rax,1),%r12
  mov    0x58(%rsp,%rax,1),%r14d
  jmp    L196
L366:
  mov    %rbx,%rcx
  sub    %r15,%rcx
  mov    %rcx,%rdx
  sar    $0x2,%rdx
  cmp    %rdx,0x10(%rsp)
  jl     L698
  cmp    %rbx,%r15
  jb     L186
L661:
  test   $0x1,%r14b
  jne    L328
  test   $0x2,%r14b
  je     L203
  movslq (%r15),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rdx
  mov    -0x4(%r15),%eax
  test   %eax,%eax
  js     L70
  movslq %eax,%rsi
  shl    $0x2,%rsi
L261:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L203
L328:
  notl   (%r15)
L203:
  test   $0x4,%r14b
  je     L183
  movslq (%r12),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rdx
  mov    -0x4(%r12),%eax
  test   %eax,%eax
  js     L148
  movslq %eax,%rsi
  shl    $0x2,%rsi
L435:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L183
  notl   (%r12)
L183:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  je     L301
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cltq
  shl    $0x5,%rax
  mov    0x40(%rsp,%rax,1),%r15
  mov    0x48(%rsp,%rax,1),%rbx
  mov    0x50(%rsp,%rax,1),%r12
  mov    0x58(%rsp,%rax,1),%r14d
  jmp    L196
L186:
  sub    $0x8,%rsp
  mov    0x4a0(%rsp),%eax
  push   %rax
  mov    0x30(%rsp),%r9
  mov    %r12,%r8
  mov    %rbx,%rcx
  mov    %r15,%rdx
  mov    0x18(%rsp),%rsi
  mov    0x28(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_mergeforward@plt>
  add    $0x10,%rsp
  jmp    L661
L70:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L261
L148:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L435
L698:
  cmp    %rcx,%rax
  cmovg  %edx,%ebp
  mov    %ebp,%r13d
  sar    %r13d
  test   %ebp,%ebp
  jle    L500
  mov    $0x0,%eax
  mov    %r14d,0x2c(%rsp)
  mov    %eax,%r14d
  mov    %r15,0x30(%rsp)
  mov    %r12,0x38(%rsp)
  mov    0x18(%rsp),%r12
  mov    0x498(%rsp),%r15d
  jmp    L124
L340:
  not    %edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  jmp    L293
L205:
  not    %esi
  movslq %esi,%rsi
  shl    $0x2,%rsi
  jmp    L92
L79:
  lea    0x1(%r14,%r13,1),%r14d
  test   $0x1,%bpl
  sete   %al
  movzbl %al,%eax
  mov    %r13d,%ebp
  sub    %eax,%ebp
L637:
  mov    %ebp,%r13d
  sar    %r13d
  test   %ebp,%ebp
  jle    L626
L124:
  movslq %r14d,%rax
  movslq %r13d,%rdx
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rcx
  mov    $0xfffffffffffffffc,%rdx
  sub    %rcx,%rdx
  mov    (%rbx,%rdx,1),%edx
  test   %edx,%edx
  js     L340
  movslq %edx,%rdx
  shl    $0x2,%rdx
L293:
  add    0x8(%rsp),%rdx
  mov    (%rbx,%rax,4),%esi
  test   %esi,%esi
  js     L205
  movslq %esi,%rsi
  shl    $0x2,%rsi
L92:
  add    0x8(%rsp),%rsi
  mov    %r15d,%ecx
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  js     L79
  mov    %r13d,%ebp
  jmp    L637
L626:
  mov    %r14d,%edx
  mov    0x2c(%rsp),%r14d
  mov    0x30(%rsp),%r15
  mov    0x38(%rsp),%r12
  test   %edx,%edx
  jg     L36
L500:
  movslq (%rbx),%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rdx
  mov    -0x4(%rbx),%eax
  test   %eax,%eax
  js     L74
  movslq %eax,%rsi
  shl    $0x2,%rsi
L367:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L19
  notl   (%rbx)
L19:
  test   $0x1,%r14b
  jne    L355
  test   $0x2,%r14b
  je     L342
  movslq (%r15),%rax
  mov    0x8(%rsp),%rbx
  lea    (%rbx,%rax,4),%rdx
  mov    -0x4(%r15),%eax
  test   %eax,%eax
  js     L212
  movslq %eax,%rsi
  shl    $0x2,%rsi
L413:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L342
L355:
  notl   (%r15)
L342:
  test   $0x4,%r14b
  je     L193
  movslq (%r12),%rax
  mov    0x8(%rsp),%rbx
  lea    (%rbx,%rax,4),%rdx
  mov    -0x4(%r12),%eax
  test   %eax,%eax
  js     L266
  movslq %eax,%rsi
  shl    $0x2,%rsi
L651:
  add    0x8(%rsp),%rsi
  mov    0x498(%rsp),%ecx
  mov    0x18(%rsp),%rdi
  mov    $0x0,%eax
  call   <ss_compare@plt>
  test   %eax,%eax
  jne    L193
  notl   (%r12)
L193:
  mov    0x28(%rsp),%eax
  test   %eax,%eax
  je     L301
  sub    $0x1,%eax
  mov    %eax,0x28(%rsp)
  cltq
  shl    $0x5,%rax
  mov    0x40(%rsp,%rax,1),%r15
  mov    0x48(%rsp,%rax,1),%rbx
  mov    0x50(%rsp,%rax,1),%r12
  mov    0x58(%rsp,%rax,1),%r14d
  jmp    L196
L36:
  movslq %edx,%rbp
  shl    $0x2,%rbp
  mov    %rbx,%r13
  sub    %rbp,%r13
  add    %rbx,%rbp
  mov    %rbx,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <ss_blockswap@plt>
  cmp    %rbp,%r12
  jbe    L86
  mov    0x0(%rbp),%eax
  test   %eax,%eax
  js     L437
  cmp    %r13,%r15
  jb     L341
  mov    %rbx,%rdx
  mov    %rbx,%rcx
  mov    $0x0,%eax
  jmp    L409
L437:
  not    %eax
  mov    %eax,0x0(%rbp)
  mov    %rbx,%rcx
  mov    $0x0,%eax
  cmp    %r13,%r15
  jb     L576
L473:
  or     $0x1,%eax
  mov    %rbx,%rdx
  jmp    L409
L576:
  sub    $0x4,%rcx
  cmpl   $0x0,(%rcx)
  js     L576
  mov    $0x4,%eax
  jmp    L473
L341:
  cmpl   $0x0,(%rbx)
  jns    L392
  mov    %rbx,%rdx
L463:
  add    $0x4,%rdx
  cmpl   $0x0,(%rdx)
  js     L463
  mov    %rbx,%rcx
  mov    $0x2,%eax
  jmp    L409
L86:
  mov    %rbx,%rdx
  mov    %rbx,%rcx
  mov    $0x0,%eax
L409:
  mov    %rcx,%rdi
  sub    %r15,%rdi
  mov    %r12,%rsi
  sub    %rdx,%rsi
  cmp    %rsi,%rdi
  jg     L526
  mov    0x28(%rsp),%ebx
  movslq %ebx,%rsi
  shl    $0x5,%rsi
  mov    %rdx,0x40(%rsp,%rsi,1)
  mov    %rbp,0x48(%rsp,%rsi,1)
  mov    %r12,0x50(%rsp,%rsi,1)
  mov    %eax,%edx
  and    $0x3,%edx
  mov    %r14d,%edi
  and    $0x4,%edi
  or     %edi,%edx
  mov    %edx,0x58(%rsp,%rsi,1)
  and    $0x3,%r14d
  and    $0x4,%eax
  or     %eax,%r14d
  lea    0x1(%rbx),%eax
  mov    %eax,0x28(%rsp)
  mov    %rcx,%r12
  mov    %r13,%rbx
  jmp    L196
L392:
  mov    %rbx,%rdx
  mov    %rbx,%rcx
  mov    $0x2,%eax
  jmp    L409
L526:
  test   $0x2,%al
  je     L570
  cmp    %rdx,%rbx
  sete   %dil
  mov    %eax,%esi
  xor    $0x6,%esi
  test   %dil,%dil
  cmovne %esi,%eax
L570:
  mov    0x28(%rsp),%ebx
  movslq %ebx,%rsi
  shl    $0x5,%rsi
  mov    %r15,0x40(%rsp,%rsi,1)
  mov    %r13,0x48(%rsp,%rsi,1)
  mov    %rcx,0x50(%rsp,%rsi,1)
  mov    %r14d,%ecx
  and    $0x3,%ecx
  mov    %eax,%edi
  and    $0x4,%edi
  or     %edi,%ecx
  mov    %ecx,0x58(%rsp,%rsi,1)
  and    $0x4,%r14d
  and    $0x3,%eax
  or     %eax,%r14d
  lea    0x1(%rbx),%eax
  mov    %eax,0x28(%rsp)
  mov    %rbp,%rbx
  mov    %rdx,%r15
  jmp    L196
L74:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L367
L212:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L413
L266:
  not    %eax
  movslq %eax,%rsi
  shl    $0x2,%rsi
  jmp    L651
L460:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void ss_swapmerge(const unsigned char *T, const int *PA, int *first, int *middle, int *last, int *buf, int bufsize, int depth) {
  struct {
    int *a, *b, *c;
    int d;
  } stack[(32)];
  int *l, *r, *lm, *rm;
  int m, len, half;
  int ssize;
  int check, next;
  for (check = 0, ssize = 0;;) {
    if ((last - middle) <= bufsize) {
      if ((first < middle) && (middle < last)) {
        ss_mergebackward(T, PA, first, middle, last, buf, depth);
      }
      do {
        if (((check)&1) || (((check)&2) && (ss_compare(T, PA + ((0 <= (*((first)-1))) ? (*((first)-1)) : (~(*((first)-1)))), PA + *(first), depth) == 0))) {
          *(first) = ~*(first);
        }
        if (((check)&4) && ((ss_compare(T, PA + ((0 <= (*((last)-1))) ? (*((last)-1)) : (~(*((last)-1)))), PA + *(last), depth) == 0))) {
          *(last) = ~*(last);
        }
      } while (0);
      do {
        if (ssize == 0) {
          return;
        }
        (first) = stack[--ssize].a, (middle) = stack[ssize].b, (last) = stack[ssize].c, (check) = stack[ssize].d;
      } while (0);
      continue;
    }
    if ((middle - first) <= bufsize) {
      if (first < middle) {
        ss_mergeforward(T, PA, first, middle, last, buf, depth);
      }
      do {
        if (((check)&1) || (((check)&2) && (ss_compare(T, PA + ((0 <= (*((first)-1))) ? (*((first)-1)) : (~(*((first)-1)))), PA + *(first), depth) == 0))) {
          *(first) = ~*(first);
        }
        if (((check)&4) && ((ss_compare(T, PA + ((0 <= (*((last)-1))) ? (*((last)-1)) : (~(*((last)-1)))), PA + *(last), depth) == 0))) {
          *(last) = ~*(last);
        }
      } while (0);
      do {
        if (ssize == 0) {
          return;
        }
        (first) = stack[--ssize].a, (middle) = stack[ssize].b, (last) = stack[ssize].c, (check) = stack[ssize].d;
      } while (0);
      continue;
    }
    for (m = 0, len = (((middle - first) < (last - middle)) ? (middle - first) : (last - middle)), half = len >> 1; 0 < len; len = half, half >>= 1) {
      if (ss_compare(T, PA + ((0 <= (*(middle + m + half))) ? (*(middle + m + half)) : (~(*(middle + m + half)))), PA + ((0 <= (*(middle - m - half - 1))) ? (*(middle - m - half - 1)) : (~(*(middle - m - half - 1)))), depth) < 0) {
        m += half + 1;
        half -= (len & 1) ^ 1;
      }
    }
    if (0 < m) {
      lm = middle - m, rm = middle + m;
      ss_blockswap(lm, middle, m);
      l = r = middle, next = 0;
      if (rm < last) {
        if (*rm < 0) {
          *rm = ~*rm;
          if (first < lm) {
            for (; *--l < 0;) {
            }
            next |= 4;
          }
          next |= 1;
        } else if (first < lm) {
          for (; *r < 0; ++r) {
          }
          next |= 2;
        }
      }
      if ((l - first) <= (last - r)) {
        do {
          stack[ssize].a = (r), stack[ssize].b = (rm), stack[ssize].c = (last), stack[ssize++].d = ((next & 3) | (check & 4));
        } while (0);
        middle = lm, last = l, check = (check & 3) | (next & 4);
      } else {
        if ((next & 2) && (r == middle)) {
          next ^= 6;
        }
        do {
          stack[ssize].a = (first), stack[ssize].b = (lm), stack[ssize].c = (l), stack[ssize++].d = ((check & 3) | (next & 4));
        } while (0);
        first = r, middle = rm, check = (next & 3) | (check & 4);
      }
    } else {
      if (ss_compare(T, PA + ((0 <= (*(middle - 1))) ? (*(middle - 1)) : (~(*(middle - 1)))), PA + *middle, depth) == 0) {
        *middle = ~*middle;
      }
      do {
        if (((check)&1) || (((check)&2) && (ss_compare(T, PA + ((0 <= (*((first)-1))) ? (*((first)-1)) : (~(*((first)-1)))), PA + *(first), depth) == 0))) {
          *(first) = ~*(first);
        }
        if (((check)&4) && ((ss_compare(T, PA + ((0 <= (*((last)-1))) ? (*((last)-1)) : (~(*((last)-1)))), PA + *(last), depth) == 0))) {
          *(last) = ~*(last);
        }
      } while (0);
      do {
        if (ssize == 0) {
          return;
        }
        (first) = stack[--ssize].a, (middle) = stack[ssize].b, (last) = stack[ssize].c, (check) = stack[ssize].d;
      } while (0);
    }
  }
}
```