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

```asm
<inverff>:
  endbr64
  movapd %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  ucomisd %xmm0,%xmm1
  jp     L78
  je     L99
L78:
  sub    $0x38,%rsp
  movsd  D16(%rip),%xmm2
  comisd %xmm1,%xmm2
  jae    L5
  mov    D15(%rip),%rax
  movq   %rax,%xmm2
  comisd %xmm2,%xmm1
  jb     L117
L6:
  movapd %xmm2,%xmm0
  add    $0x38,%rsp
  ret
  nopl   (%rax)
L99:
  ret
  nopl   0x0(%rax)
L117:
  comisd %xmm1,%xmm0
  ja     L56
  movsd  D65(%rip),%xmm4
  movsd  %xmm0,0x10(%rsp)
  movsd  %xmm4,0x28(%rsp)
  movapd %xmm4,%xmm0
  movsd  %xmm4,0x8(%rsp)
  jmp    L92
  nopw   0x0(%rax,%rax,1)
L15:
  movsd  0x8(%rsp),%xmm5
  movsd  D15(%rip),%xmm0
  addsd  %xmm5,%xmm0
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm0,0x8(%rsp)
L92:
  movsd  %xmm1,0x18(%rsp)
  call   <erff_@plt>
  movsd  0x18(%rsp),%xmm1
  comisd %xmm0,%xmm1
  ja     L15
L82:
  movsd  0x10(%rsp),%xmm2
  addsd  0x8(%rsp),%xmm2
  mulsd  0x28(%rsp),%xmm2
  nopl   (%rax)
L41:
  movapd %xmm2,%xmm0
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  call   <erff_@plt>
  movsd  0x20(%rsp),%xmm1
  movsd  D74(%rip),%xmm4
  movapd %xmm0,%xmm3
  movsd  0x18(%rsp),%xmm2
  subsd  %xmm1,%xmm3
  andpd  D7(%rip),%xmm3
  comisd %xmm3,%xmm4
  ja     L6
  comisd %xmm0,%xmm1
  jbe    L25
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm2,0x10(%rsp)
  addsd  %xmm2,%xmm0
  movsd  0x28(%rsp),%xmm2
  mulsd  %xmm0,%xmm2
  jmp    L41
  nopl   0x0(%rax)
L56:
  movsd  D76(%rip),%xmm7
  movsd  D65(%rip),%xmm4
  movsd  %xmm0,0x8(%rsp)
  movsd  %xmm7,0x10(%rsp)
  movapd %xmm7,%xmm0
  movsd  %xmm4,0x28(%rsp)
  jmp    L87
  nopl   0x0(%rax,%rax,1)
L50:
  movsd  0x10(%rsp),%xmm6
  movapd %xmm6,%xmm0
  subsd  D15(%rip),%xmm0
  movsd  %xmm6,0x8(%rsp)
  mulsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x10(%rsp)
L87:
  movsd  %xmm1,0x18(%rsp)
  call   <erff_@plt>
  movsd  0x18(%rsp),%xmm1
  comisd %xmm1,%xmm0
  ja     L50
  jmp    L82
L25:
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm2,0x8(%rsp)
  addsd  %xmm2,%xmm0
  movsd  0x28(%rsp),%xmm2
  mulsd  %xmm0,%xmm2
  jmp    L41
  nop
L5:
  movapd %xmm2,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm2
  xorpd  D41(%rip),%xmm2
  jmp    L6
```

tool_calls: name: extract_symbolic_data
arguments: label: D16
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D15
type_guessed: f64
name: extract_symbolic_data
arguments: label: D65
type_guessed: f64
name: extract_symbolic_data
arguments: label: D74
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D7
type_guessed: qword[2]
name: extract_symbolic_data
arguments: label: D76
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D41
type_guessed: f32[4]

tool: {"D16": [0.0,-1.875]}

tool: D15: 1

tool: D65: 0.5

tool: {"D74": [0xdf,0x41,0x3a,0xdc,0x11,0xc5,0x29,0x3e]}

tool: {"D7": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D76": [0.0,-1.75]}

tool: {"D41": [0.0,-0.0,0.0,0.0]}

assistant: ```c
double inverff(double p) {
  double xlow, xhigh, xtry, ptry;
  if (p == 0) {
    return 0.0;
  }
  if (p <= -1.0) {
    return -sqrt(-1.0);
  } else if (p >= 1.0) {
    return sqrt(1.0);
  }
  if (p < 0) {
    xhigh = 0.0;
    xlow = -0.5;
    while (erff_(xlow) > p) {
      xhigh = xlow;
      xlow = (xlow - 1.0) / 2.;
    }
    xtry = (xlow + xhigh) / 2.;
  } else {
    xlow = 0.0;
    xhigh = 0.5;
    while (erff_(xhigh) < p) {
      xlow = xhigh;
      xhigh = (xhigh + 1.0) / 2.;
    }
    xtry = (xlow + xhigh) / 2.;
  }
  do {
    ptry = erff_(xtry);
    if (fabs(ptry - p) < 3.0e-9)
      return xtry;
    if (ptry < p) {
      xlow = xtry;
      xtry = (xlow + xhigh) / 2.;
    } else {
      xhigh = xtry;
      xtry = (xlow + xhigh) / 2.;
    }
  } while (1);
}
```