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

```asm
<indexx>:
  endbr64
  push   %r15
  mov    %edi,%r15d
  mov    $0x1,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  mov    $0x32,%esi
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x28,%rsp
  call   <ivector@plt>
  lea    0x1(%r15),%edx
  mov    %rax,0x8(%rsp)
  mov    $0x1,%eax
  test   %r15d,%r15d
  jle    L236
L51:
  mov    %eax,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L51
L236:
  xor    %r11d,%r11d
  mov    $0x1,%r13d
  mov    $0x2,%r10d
L14:
  mov    %r15d,%eax
  sub    %r13d,%eax
  cmp    $0x6,%eax
  jg     L99
L231:
  movslq %r10d,%rsi
  sub    $0x1,%rsi
  cmp    %r10d,%r15d
  jl     L170
  nopl   0x0(%rax,%rax,1)
L194:
  movslq 0x4(%rbx,%rsi,4),%rax
  movss  0x0(%rbp,%rax,4),%xmm0
  mov    %rax,%rdi
  test   %r13d,%r13d
  jle    L78
  movslq %r13d,%rax
  jmp    L37
  nopl   0x0(%rax)
L209:
  mov    %ecx,0x4(%rbx,%rax,4)
  lea    -0x1(%rax),%edx
  sub    $0x1,%rax
  je     L57
L37:
  movslq (%rbx,%rax,4),%rcx
  comiss 0x0(%rbp,%rcx,4),%xmm0
  jb     L209
L207:
  add    $0x1,%r13d
  mov    %edi,0x4(%rbx,%rax,4)
  add    $0x1,%rsi
  cmp    %r13d,%r15d
  jne    L194
L170:
  test   %r11d,%r11d
  je     L221
  mov    0x8(%rsp),%rsi
  movslq %r11d,%rax
  sub    $0x2,%r11d
  mov    (%rsi,%rax,4),%r15d
  mov    -0x4(%rsi,%rax,4),%r13d
  mov    %r15d,%eax
  lea    0x1(%r13),%r10d
  sub    %r13d,%eax
  cmp    $0x6,%eax
  jle    L231
L99:
  lea    (%r15,%r13,1),%eax
  sar    %eax
  cltq
  lea    (%rbx,%rax,4),%rcx
  movslq %r13d,%rax
  lea    0x4(,%rax,4),%rdi
  mov    (%rcx),%edx
  lea    (%rbx,%rdi,1),%rax
  mov    (%rax),%esi
  mov    %esi,(%rcx)
  movslq %edx,%rcx
  movss  0x0(%rbp,%rcx,4),%xmm1
  movslq %r15d,%rcx
  mov    %edx,(%rax)
  lea    (%rbx,%rcx,4),%rsi
  movslq (%rsi),%r8
  movss  0x0(%rbp,%r8,4),%xmm0
  mov    %r8,%rcx
  comiss %xmm0,%xmm1
  jbe    L180
  mov    %r8d,(%rax)
  movaps %xmm1,%xmm0
  mov    %edx,%ecx
  mov    %edx,(%rsi)
L180:
  lea    -0x4(%rbx,%rdi,1),%rdi
  movslq (%rdi),%rdx
  mov    %rdi,0x10(%rsp)
  movss  0x0(%rbp,%rdx,4),%xmm1
  mov    %edx,0x18(%rsp)
  comiss %xmm0,%xmm1
  jbe    L63
  mov    %ecx,(%rdi)
  mov    %edx,(%rsi)
  movslq (%rdi),%rdx
  mov    %edx,0x18(%rsp)
  movss  0x0(%rbp,%rdx,4),%xmm1
L63:
  movslq (%rax),%rcx
  movss  0x0(%rbp,%rcx,4),%xmm0
  comiss %xmm1,%xmm0
  jbe    L197
  mov    0x18(%rsp),%edi
  mov    %ecx,0x18(%rsp)
  movaps %xmm0,%xmm1
  mov    %edi,(%rax)
  mov    0x10(%rsp),%rax
  mov    %ecx,(%rax)
L197:
  lea    0x2(%r13),%edi
  mov    %r15d,%r12d
  movslq %edi,%rdi
  xchg   %ax,%ax
L116:
  movslq (%rbx,%rdi,4),%rax
  mov    %edi,%r8d
  comiss 0x0(%rbp,%rax,4),%xmm1
  mov    %rax,%rcx
  ja     L32
  movslq %r12d,%rax
  lea    -0x4(%rbx,%rax,4),%rax
  nopl   0x0(%rax)
L144:
  movslq (%rax),%r9
  mov    %r12d,%r14d
  mov    %rax,%rsi
  sub    $0x1,%r12d
  sub    $0x4,%rax
  movss  0x0(%rbp,%r9,4),%xmm0
  comiss %xmm1,%xmm0
  ja     L144
  cmp    %edi,%r12d
  jl     L52
  mov    %r9d,(%rbx,%rdi,4)
  mov    %ecx,(%rsi)
L32:
  add    $0x1,%rdi
  jmp    L116
  xchg   %ax,%ax
L57:
  movslq %edx,%rax
  jmp    L207
L78:
  mov    %rsi,%rax
  jmp    L207
L52:
  mov    0x10(%rsp),%rax
  add    $0x2,%r11d
  mov    %r9d,(%rax)
  mov    0x18(%rsp),%eax
  mov    %eax,(%rsi)
  cmp    $0x32,%r11d
  jg     L186
L131:
  mov    0x8(%rsp),%rsi
  movslq %r11d,%rax
  sub    %r13d,%r12d
  sub    $0x2,%r14d
  shl    $0x2,%rax
  lea    (%rsi,%rax,1),%rdx
  lea    -0x4(%rsi,%rax,1),%rcx
  mov    %r15d,%eax
  sub    %r8d,%eax
  add    $0x1,%eax
  cmp    %r12d,%eax
  jl     L20
  mov    %r15d,(%rdx)
  mov    %r14d,%r15d
  mov    %r8d,(%rcx)
  jmp    L14
L20:
  mov    %r14d,(%rdx)
  lea    0x1(%r8),%r10d
  mov    %r13d,(%rcx)
  mov    %r8d,%r13d
  jmp    L14
L186:
  lea    D9(%rip),%rdi
  mov    %r10d,0x1c(%rsp)
  mov    %r11d,0x10(%rsp)
  mov    %r8d,0x18(%rsp)
  call   <nrerror@plt>
  mov    0x1c(%rsp),%r10d
  mov    0x10(%rsp),%r11d
  mov    0x18(%rsp),%r8d
  jmp    L131
L221:
  mov    0x8(%rsp),%rdi
  add    $0x28,%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: unpack_data
arguments: label: D9
type_guessed: string

tool: D9: NSTACK too small in indexx.

assistant: ```c
void indexx(int n, float arr[], int indx[]) {
  int i, indxt, ir = n, itemp, j, k, l = 1;
  int jstack = 0, *istack;
  float 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 >= 1; 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 + 1]] > arr[indx[ir]]) {
        itemp = (indx[l + 1]);
        (indx[l + 1]) = (indx[ir]);
        (indx[ir]) = 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[l]]) {
        itemp = (indx[l + 1]);
        (indx[l + 1]) = (indx[l]);
        (indx[l]) = itemp;
      }
      i = l + 1;
      j = ir;
      indxt = indx[l];
      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] = indx[j];
      indx[j] = indxt;
      jstack += 2;
      if (jstack > 50)
        nrerror("NSTACK too small in indexx.");
      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);
}
```