user: 请将以下的汇编代码转换成C语言代码：

```asm
<qsortUpInts>:
  endbr64
  push   %r15
  lea    -0x1(%rdi),%r10d
  mov    %rsi,%r8
  mov    %rdx,%r15
  push   %r14
  xor    %r9d,%r9d
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edi,-0xc(%rsp)
  mov    $0x2,%edi
  nopl   0x0(%rax)
L82:
  mov    %r10d,%eax
  sub    %r9d,%eax
  cmp    $0xa,%eax
  jg     L94
  lea    -0x1(%rdi),%eax
  sub    $0x2,%edi
  cltq
  mov    (%r15,%rax,4),%r10d
  mov    -0x4(%r15,%rax,4),%r9d
  test   %edi,%edi
  jg     L82
  mov    -0xc(%rsp),%edi
  mov    %r8,%rsi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <insertUpInts@plt>
  xchg   %ax,%ax
L94:
  sar    %eax
  movslq %r10d,%rsi
  lea    (%rax,%r9,1),%edx
  movslq %r9d,%rax
  lea    (%r8,%rsi,4),%r11
  lea    (%r8,%rax,4),%rax
  mov    (%r11),%esi
  mov    (%rax),%ecx
  cmp    %esi,%ecx
  jle    L79
  mov    %esi,(%rax)
  mov    %ecx,(%r11)
  mov    (%rax),%ecx
L79:
  movslq %edx,%rdx
  lea    (%r8,%rdx,4),%rsi
  mov    (%rsi),%edx
  cmp    %ecx,%edx
  jge    L52
  mov    %edx,(%rax)
  mov    %ecx,%edx
  mov    %ecx,(%rsi)
L52:
  mov    (%r11),%r13d
  cmp    %edx,%r13d
  jle    L70
  mov    %r13d,(%rsi)
  mov    %edx,%r13d
  mov    %edx,(%r11)
L70:
  lea    -0x1(%r9),%esi
  mov    %r10d,%ebp
  nop
L15:
  mov    (%rax),%ecx
  lea    0x1(%rsi),%edx
  cmp    %r13d,%ecx
  jl     L64
  movslq %ebp,%rbx
  lea    -0x4(%r8,%rbx,4),%rbx
  nopw   0x0(%rax,%rax,1)
L75:
  mov    %rbx,%r14
  mov    (%rbx),%r12d
  sub    $0x4,%rbx
  sub    $0x1,%ebp
  cmp    %r13d,%r12d
  jg     L75
  cmp    %ebp,%edx
  jge    L20
  mov    %r12d,(%rax)
  mov    %ecx,(%r14)
L64:
  add    $0x4,%rax
  mov    %edx,%esi
  jmp    L15
  nopl   0x0(%rax)
L20:
  mov    %edx,%r14d
  movslq %edi,%rbp
  mov    (%r11),%r13d
  lea    0x2(%rsi),%ebx
  sub    %r9d,%r14d
  shl    $0x2,%rbp
  add    $0x2,%edi
  mov    %r14d,-0x10(%rsp)
  mov    %r10d,%r14d
  lea    (%r15,%rbp,1),%r12
  lea    0x4(%r15,%rbp,1),%rbp
  sub    %edx,%r14d
  cmp    %r14d,-0x10(%rsp)
  jg     L81
  mov    %r10d,%edx
  mov    %esi,%r10d
  mov    %edx,%esi
L97:
  mov    %r13d,(%rax)
  mov    %ecx,(%r11)
  mov    %ebx,(%r12)
  mov    %esi,0x0(%rbp)
  jmp    L82
L81:
  mov    %r9d,%edx
  mov    %ebx,%r9d
  mov    %edx,%ebx
  jmp    L97
```

assistant: ```c
void qsortUpInts(int n, int *array, int *stack) {
  register int i, j;
  int t, l, m, r, p;
  l = 0;
  r = n - 1;
  p = 2;
  while (p > 0)
    if ((r - l) > 10) {
      m = l + ((r - l) >> 1);
      if (array[l] > array[r]) {
        (t) = (array[l]);
        (array[l]) = (array[r]);
        (array[r]) = (t);
      };
      if (array[l] > array[m]) {
        (t) = (array[l]);
        (array[l]) = (array[m]);
        (array[m]) = (t);
      };
      if (array[r] > array[m]) {
        (t) = (array[m]);
        (array[m]) = (array[r]);
        (array[r]) = (t);
      };
      m = array[r];
      i = l - 1;
      j = r;
      for (;;) {
        while (array[++i] < m)
          ;
        while (array[--j] > m)
          ;
        if (i >= j)
          break;
        {
          (t) = (array[i]);
          (array[i]) = (array[j]);
          (array[j]) = (t);
        };
      }
      {
        (t) = (array[i]);
        (array[i]) = (array[r]);
        (array[r]) = (t);
      };
      if ((i - l) > (r - i)) {
        stack[p++] = l;
        stack[p++] = i - 1;
        l = i + 1;
      } else {
        stack[p++] = i + 1;
        stack[p++] = r;
        r = i - 1;
      }
    } else {
      r = stack[--p];
      l = stack[--p];
    }
  if (10 > 0)
    insertUpInts(n, array);
}
```