user: What is the c source code of the assembly code below:

```asm
<iindexx>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  mov    %rdi,%r14
  mov    $0x1,%edi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    $0x32,%esi
  sub    $0x38,%rsp
  call   <ivector@plt>
  mov    %r14,%rcx
  mov    %rax,0x18(%rsp)
  mov    $0x1,%eax
  test   %r14,%r14
  je     L137
L51:
  mov    %rax,%rdx
  mov    %rax,(%r15,%rax,8)
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L51
L137:
  mov    $0x1,%r12d
  movl   $0x0,0xc(%rsp)
  mov    $0x2,%r11d
  mov    %r14,%r9
L177:
  mov    %r9,%rax
  mov    %r11,%r8
  sub    %r12,%rax
  cmp    $0x6,%rax
  ja     L179
L103:
  lea    (%r15,%r11,8),%rbp
  mov    %r12,%r10
  cmp    %r11,%r9
  jb     L151
  nopw   0x0(%rax,%rax,1)
L211:
  mov    0x0(%rbp),%r11
  mov    %rbp,%rdi
  mov    (%rbx,%r11,8),%r8
  cmp    %r10,%r12
  ja     L193
  mov    %rbp,%rdx
  mov    %r10,%rsi
  jmp    L241
L253:
  sub    $0x1,%rsi
  mov    %rcx,(%rax)
  cmp    %rsi,%r12
  ja     L228
L241:
  mov    %rdx,%rax
  sub    $0x8,%rdx
  mov    -0x8(%rax),%rcx
  mov    %rax,%rdi
  cmp    %r8,(%rbx,%rcx,8)
  jg     L253
L193:
  lea    0x1(%r10),%rax
  add    $0x2,%r10
  mov    %r11,(%rdi)
  add    $0x8,%rbp
  cmp    %r10,%r9
  jb     L151
  mov    %rax,%r10
  jmp    L211
  nopl   0x0(%rax)
L228:
  mov    %rdx,%rdi
  jmp    L193
  nopl   (%rax)
L151:
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  je     L92
  movslq 0xc(%rsp),%rax
  mov    0x18(%rsp),%rsi
  movslq (%rsi,%rax,4),%r9
  movslq -0x4(%rsi,%rax,4),%r12
  mov    %rax,%rdi
  sub    $0x2,%edi
  mov    %r9,%rax
  lea    0x1(%r12),%r11
  mov    %edi,0xc(%rsp)
  sub    %r12,%rax
  mov    %r11,%r8
  cmp    $0x6,%rax
  jbe    L103
L179:
  lea    (%r9,%r12,1),%rax
  shr    %rax
  lea    (%r15,%rax,8),%rdx
  lea    0x0(,%r11,8),%rax
  lea    (%r15,%rax,1),%r14
  mov    (%rdx),%rdi
  lea    -0x8(%r15,%rax,1),%rax
  mov    (%r14),%rcx
  mov    %r14,0x20(%rsp)
  mov    %rdi,0x10(%rsp)
  mov    %rcx,(%rdx)
  mov    %rdi,(%r14)
  lea    (%r15,%r9,8),%rdi
  mov    (%rax),%rsi
  mov    (%rdi),%rdx
  lea    (%rbx,%rsi,8),%r10
  mov    (%rbx,%rdx,8),%rcx
  cmp    %rcx,(%r10)
  jle    L220
  mov    %rdx,(%rax)
  mov    %rsi,(%rdi)
  mov    (%r14),%rdx
  mov    (%r10),%rcx
  mov    %rdx,0x10(%rsp)
  mov    %rsi,%rdx
L220:
  mov    0x10(%rsp),%r14
  mov    (%rbx,%r14,8),%rsi
  cmp    %rcx,%rsi
  jle    L186
  mov    0x20(%rsp),%rsi
  mov    %rdx,(%rsi)
  mov    %r14,(%rdi)
  mov    (%rsi),%rdi
  mov    %rdi,0x10(%rsp)
  mov    (%rbx,%rdi,8),%rsi
L186:
  mov    (%rax),%rdx
  lea    (%rbx,%rdx,8),%rcx
  cmp    %rsi,(%rcx)
  jle    L109
  mov    0x10(%rsp),%rdi
  mov    %rdx,0x10(%rsp)
  mov    %rdi,(%rax)
  mov    0x20(%rsp),%rax
  mov    %rdx,(%rax)
  mov    (%rcx),%rsi
L109:
  mov    %r9,%rdx
  nopw   0x0(%rax,%rax,1)
L122:
  lea    0x1(%r8),%r14
  mov    (%r15,%r14,8),%r10
  cmp    %rsi,(%rbx,%r10,8)
  jl     L171
  lea    -0x1(%rdx),%rbp
  lea    (%r15,%rbp,8),%rax
  jmp    L41
L85:
  sub    $0x1,%rbp
L41:
  mov    (%rax),%rcx
  mov    %rdx,%r13
  mov    %rax,%rdi
  mov    %rbp,%rdx
  sub    $0x8,%rax
  cmp    %rsi,(%rbx,%rcx,8)
  jg     L85
  cmp    %rbp,%r14
  ja     L234
  mov    %rcx,(%r15,%r14,8)
  mov    %r10,(%rdi)
L171:
  mov    %r14,%r8
  jmp    L122
L234:
  mov    0x20(%rsp),%rax
  addl   $0x2,0xc(%rsp)
  mov    %rcx,(%rax)
  mov    0x10(%rsp),%rax
  mov    %rax,(%rdi)
  mov    0xc(%rsp),%eax
  cmp    $0x32,%eax
  jg     L37
L76:
  movslq 0xc(%rsp),%rax
  mov    0x18(%rsp),%rdi
  mov    %r9,%rsi
  mov    %rbp,%rcx
  sub    %r8,%rsi
  sub    %r12,%rcx
  shl    $0x2,%rax
  lea    (%rdi,%rax,1),%rdx
  lea    -0x4(%rdi,%rax,1),%rax
  cmp    %rcx,%rsi
  jb     L132
  mov    %r9d,(%rdx)
  lea    -0x2(%r13),%r9
  mov    %r14d,(%rax)
  jmp    L177
L132:
  sub    $0x1,%ebp
  lea    0x1(%r14),%r11
  mov    %ebp,(%rdx)
  mov    %r12d,(%rax)
  mov    %r14,%r12
  jmp    L177
L37:
  lea    D0(%rip),%rdi
  mov    %r11,0x28(%rsp)
  mov    %r9,0x20(%rsp)
  mov    %r8,0x10(%rsp)
  call   <nrerror@plt>
  mov    0x28(%rsp),%r11
  mov    0x20(%rsp),%r9
  mov    0x10(%rsp),%r8
  jmp    L76
L92:
  mov    0x18(%rsp),%rdi
  add    $0x38,%rsp
  mov    $0x32,%edx
  mov    $0x1,%esi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <free_ivector@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D0
datatype: string

tool: D0: NSTACK too small in iindexx.

assistant: ```c
void iindexx(unsigned long n, long arr[], unsigned long indx[]) {
  unsigned long i, indxt, ir = n, itemp, j, k, l = 1;
  int jstack = 0, *istack;
  long a;
  istack = ivector(1, 50);
  for (j = 1; j <= n; j++)
    indx[j] = j;
  for (;;) {
    if (ir - l < 7) {
      for (j = l + 1; j <= ir; j++) {
        indxt = indx[j];
        a = arr[indxt];
        for (i = j - 1; i >= l; i--) {
          if (arr[indx[i]] <= a)
            break;
          indx[i + 1] = indx[i];
        }
        indx[i + 1] = indxt;
      }
      if (jstack == 0)
        break;
      ir = istack[jstack--];
      l = istack[jstack--];
    } else {
      k = (l + ir) >> 1;
      itemp = (indx[k]);
      (indx[k]) = (indx[l + 1]);
      (indx[l + 1]) = itemp;
      ;
      if (arr[indx[l]] > arr[indx[ir]]) {
        itemp = (indx[l]);
        (indx[l]) = (indx[ir]);
        (indx[ir]) = itemp;
      }
      if (arr[indx[l + 1]] > arr[indx[ir]]) {
        itemp = (indx[l + 1]);
        (indx[l + 1]) = (indx[ir]);
        (indx[ir]) = itemp;
      }
      if (arr[indx[l]] > arr[indx[l + 1]]) {
        itemp = (indx[l]);
        (indx[l]) = (indx[l + 1]);
        (indx[l + 1]) = itemp;
      }
      i = l + 1;
      j = ir;
      indxt = indx[l + 1];
      a = arr[indxt];
      for (;;) {
        do
          i++;
        while (arr[indx[i]] < a);
        do
          j--;
        while (arr[indx[j]] > a);
        if (j < i)
          break;
        itemp = (indx[i]);
        (indx[i]) = (indx[j]);
        (indx[j]) = itemp;
      }
      indx[l + 1] = indx[j];
      indx[j] = indxt;
      jstack += 2;
      if (jstack > 50)
        nrerror("NSTACK too small in iindexx.");
      if (ir - i + 1 >= j - l) {
        istack[jstack] = ir;
        istack[jstack - 1] = i;
        ir = j - 1;
      } else {
        istack[jstack] = j - 1;
        istack[jstack - 1] = l;
        l = i;
      }
    }
  }
  free_ivector(istack, 1, 50);
}
```