user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<R_qsort_I>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x170,%rsp
  mov    %rdi,-0x158(%rbp)
  mov    %rsi,-0x160(%rbp)
  mov    %edx,-0x164(%rbp)
  mov    %ecx,-0x168(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  D32(%rip),%xmm0
  movsd  %xmm0,-0x120(%rbp)
  subq   $0x8,-0x158(%rbp)
  subq   $0x4,-0x160(%rbp)
  mov    -0x164(%rbp),%eax
  mov    %eax,-0x134(%rbp)
  movl   $0x1,-0x13c(%rbp)
L65:
  mov    -0x164(%rbp),%eax
  cmp    -0x168(%rbp),%eax
  jge    L36
  movsd  D22(%rip),%xmm0
  comisd -0x120(%rbp),%xmm0
  jbe    L97
  movsd  -0x120(%rbp),%xmm1
  movsd  D1(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  jmp    L14
L97:
  movsd  -0x120(%rbp),%xmm0
  movsd  D18(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x120(%rbp)
  jmp    L14
L190:
  nop
L14:
  mov    -0x164(%rbp),%eax
  mov    %eax,-0x144(%rbp)
  mov    -0x168(%rbp),%eax
  sub    -0x164(%rbp),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x120(%rbp),%xmm0
  cvttsd2si %xmm0,%edx
  mov    -0x164(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x130(%rbp)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x138(%rbp)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x128(%rbp)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x128(%rbp),%xmm0
  jbe    L152
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    -0x130(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x160(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rax,%rdx
  mov    -0x138(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x138(%rbp)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rax,%rdx
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x158(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x128(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x128(%rbp)
L152:
  mov    -0x168(%rbp),%eax
  mov    %eax,-0x140(%rbp)
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x128(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L250
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    -0x130(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x160(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rax,%rdx
  mov    -0x138(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x138(%rbp)
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rax,%rdx
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x158(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x168(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x128(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x128(%rbp)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x128(%rbp),%xmm0
  jbe    L250
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    -0x130(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x160(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rax,%rdx
  mov    -0x138(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x138(%rbp)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rax,%rdx
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x158(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x128(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x130(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x128(%rbp)
L250:
  subl   $0x1,-0x140(%rbp)
  jmp    L156
L20:
  subl   $0x1,-0x140(%rbp)
L156:
  mov    -0x140(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x128(%rbp),%xmm0
  ja     L20
  mov    -0x140(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x12c(%rbp)
  mov    -0x140(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x118(%rbp)
  addl   $0x1,-0x144(%rbp)
  jmp    L76
L242:
  addl   $0x1,-0x144(%rbp)
L76:
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x128(%rbp),%xmm0
  comisd %xmm1,%xmm0
  ja     L242
  mov    -0x144(%rbp),%eax
  cmp    -0x140(%rbp),%eax
  jg     L198
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    -0x140(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x160(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rax,%rdx
  mov    -0x12c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rax,%rdx
  mov    -0x140(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x158(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x118(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L250
L198:
  nop
  addl   $0x1,-0x13c(%rbp)
  mov    -0x140(%rbp),%eax
  sub    -0x164(%rbp),%eax
  mov    %eax,%edx
  mov    -0x168(%rbp),%eax
  sub    -0x144(%rbp),%eax
  cmp    %eax,%edx
  jg     L51
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x144(%rbp),%edx
  mov    %edx,-0x110(%rbp,%rax,4)
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x168(%rbp),%edx
  mov    %edx,-0x90(%rbp,%rax,4)
  mov    -0x140(%rbp),%eax
  mov    %eax,-0x168(%rbp)
  jmp    L108
L51:
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x164(%rbp),%edx
  mov    %edx,-0x110(%rbp,%rax,4)
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x140(%rbp),%edx
  mov    %edx,-0x90(%rbp,%rax,4)
  mov    -0x144(%rbp),%eax
  mov    %eax,-0x164(%rbp)
  jmp    L108
L36:
  nop
  jmp    L165
L218:
  nop
L165:
  cmpl   $0x1,-0x13c(%rbp)
  je     L82
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x110(%rbp,%rax,4),%eax
  mov    %eax,-0x164(%rbp)
  mov    -0x13c(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  mov    %eax,-0x168(%rbp)
  subl   $0x1,-0x13c(%rbp)
L108:
  mov    -0x168(%rbp),%eax
  sub    -0x164(%rbp),%eax
  cmp    $0xa,%eax
  jg     L190
  mov    -0x164(%rbp),%eax
  cmp    -0x134(%rbp),%eax
  jne    L1
  jmp    L65
L1:
  subl   $0x1,-0x164(%rbp)
L245:
  addl   $0x1,-0x164(%rbp)
  mov    -0x164(%rbp),%eax
  cmp    -0x168(%rbp),%eax
  je     L218
  mov    -0x164(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x138(%rbp)
  mov    -0x164(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x128(%rbp)
  mov    -0x164(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x128(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L245
  mov    -0x164(%rbp),%eax
  mov    %eax,-0x144(%rbp)
L24:
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  mov    -0x144(%rbp),%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x160(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rax,%rdx
  mov    -0x144(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rcx
  mov    -0x158(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  subl   $0x1,-0x144(%rbp)
  mov    -0x144(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x128(%rbp),%xmm0
  ja     L24
  mov    -0x144(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rax,%rdx
  mov    -0x138(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x144(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x128(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L245
L82:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L78
  call   <__stack_chk_fail@plt>
L78:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D32
type_infered: f64
name: extract_symbolic_data
arguments: tag: D22
type_infered: f64
name: extract_symbolic_data
arguments: tag: D1
type_infered: f64
name: extract_symbolic_data
arguments: tag: D18
type_infered: f64

tool: D32: 0.375

tool: D22: 0.5898437

tool: D1: 0.0390625

tool: D18: 0.21875

assistant: ```c
void R_qsort_I(double *v, int *I, int i, int j) {
  int il[31], iu[31];
  double vt, vtt;
  double R = 0.375;
  int ii, ij, k, l, m;
  int it, tt;
  --v;
  --I;
  ii = i;
  m = 1;
L10:
  if (i < j) {
    if (R < 0.5898437)
      R += 0.0390625;
    else
      R -= 0.21875;
  L20:
    k = i;
    ij = i + (int)((j - i) * R);
    it = I[ij];
    vt = v[ij];
    if (v[i] > vt) {
      I[ij] = I[i];
      I[i] = it;
      it = I[ij];
      v[ij] = v[i];
      v[i] = vt;
      vt = v[ij];
    }
    l = j;
    if (v[j] < vt) {
      I[ij] = I[j];
      I[j] = it;
      it = I[ij];
      v[ij] = v[j];
      v[j] = vt;
      vt = v[ij];
      if (v[i] > vt) {
        I[ij] = I[i];
        I[i] = it;
        it = I[ij];
        v[ij] = v[i];
        v[i] = vt;
        vt = v[ij];
      }
    }
    for (;;) {
      l--;
      for (; v[l] > vt; l--)
        ;
      tt = I[l];
      vtt = v[l];
      k = k + 1;
      for (; v[k] < vt; k++)
        ;
      if (k > l)
        break;
      I[l] = I[k];
      I[k] = tt;
      v[l] = v[k];
      v[k] = vtt;
    }
    m++;
    if (l - i <= j - k) {
      il[m] = k;
      iu[m] = j;
      j = l;
    } else {
      il[m] = i;
      iu[m] = l;
      i = k;
    }
  } else {
  L80:
    if (m == 1)
      return;
    i = il[m];
    j = iu[m];
    m--;
  }
  if (j - i > 10)
    goto L20;
  if (i == ii)
    goto L10;
  --i;
L100:
  do {
    ++i;
    if (i == j) {
      goto L80;
    }
    it = I[i + 1];
    vt = v[i + 1];
  } while (v[i] <= vt);
  k = i;
  do {
    I[k + 1] = I[k];
    v[k + 1] = v[k];
    --k;
  } while (vt < v[k]);
  I[k + 1] = it;
  v[k + 1] = vt;
  goto L100;
}
```