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

```asm
<QuantileChi2>:
  endbr64
  movapd %xmm0,%xmm6
  movsd  D534(%rip),%xmm0
  comisd %xmm6,%xmm0
  ja     L77
  sub    $0x58,%rsp
  comisd D437(%rip),%xmm6
  movsd  D524(%rip),%xmm0
  movsd  %xmm6,0x38(%rsp)
  ja     L134
  pxor   %xmm5,%xmm5
  comisd %xmm1,%xmm5
  jae    L134
  movsd  D583(%rip),%xmm5
  movsd  %xmm1,0x20(%rsp)
  mulsd  %xmm1,%xmm5
  movapd %xmm5,%xmm0
  movsd  %xmm5,0x8(%rsp)
  call   <LnGammaFunction@plt>
  movsd  0x8(%rsp),%xmm5
  subsd  D190(%rip),%xmm5
  movsd  %xmm0,0x10(%rsp)
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm5,0x18(%rsp)
  call   <log@plt>
  mulsd  D93(%rip),%xmm0
  movsd  0x20(%rsp),%xmm2
  comisd %xmm0,%xmm2
  jb     L148
  comisd D213(%rip),%xmm2
  jbe    L51
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm2,0x20(%rsp)
  call   <QuantileNormal@plt>
  movsd  0x20(%rsp),%xmm2
  pxor   %xmm5,%xmm5
  movsd  D353(%rip),%xmm3
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm3
  ucomisd %xmm3,%xmm5
  ja     L141
  movapd %xmm3,%xmm0
  sqrtsd %xmm0,%xmm0
L110:
  mulsd  %xmm1,%xmm0
  movsd  D484(%rip),%xmm1
  movsd  %xmm2,0x20(%rsp)
  addsd  D190(%rip),%xmm0
  subsd  %xmm3,%xmm0
  call   <pow@plt>
  movsd  0x20(%rsp),%xmm2
  movapd %xmm0,%xmm3
  mulsd  %xmm2,%xmm3
  mulsd  D15(%rip),%xmm2
  addsd  D133(%rip),%xmm2
  comisd %xmm2,%xmm3
  jbe    L40
  movsd  D190(%rip),%xmm0
  subsd  0x38(%rsp),%xmm0
  movsd  %xmm3,0x28(%rsp)
  call   <log@plt>
  movsd  0x28(%rsp),%xmm3
  movsd  %xmm0,0x20(%rsp)
  movsd  D583(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  call   <log@plt>
  mulsd  0x18(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm1
  movsd  D623(%rip),%xmm3
  subsd  %xmm0,%xmm1
  addsd  0x10(%rsp),%xmm1
  mulsd  %xmm1,%xmm3
  jmp    L40
  nopl   0x0(%rax)
L0:
  movsd  0x38(%rsp),%xmm6
  movsd  %xmm3,0x30(%rsp)
  subsd  %xmm0,%xmm6
  movapd %xmm3,%xmm0
  movsd  %xmm6,0x20(%rsp)
  call   <log@plt>
  movapd %xmm0,%xmm1
  movsd  D216(%rip),%xmm0
  mulsd  0x18(%rsp),%xmm1
  mulsd  0x8(%rsp),%xmm0
  addsd  0x10(%rsp),%xmm0
  addsd  0x28(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  call   <exp@plt>
  movsd  0x20(%rsp),%xmm5
  movsd  0x30(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm2
  movsd  D645(%rip),%xmm1
  movsd  D143(%rip),%xmm8
  mulsd  %xmm0,%xmm5
  movsd  D583(%rip),%xmm0
  movsd  D338(%rip),%xmm15
  movapd %xmm2,%xmm9
  movsd  D343(%rip),%xmm10
  movsd  D11(%rip),%xmm11
  movsd  D604(%rip),%xmm12
  movsd  D439(%rip),%xmm13
  movsd  D589(%rip),%xmm14
  mulsd  %xmm5,%xmm0
  movapd %xmm5,%xmm6
  divsd  %xmm3,%xmm6
  movapd %xmm0,%xmm4
  mulsd  %xmm6,%xmm9
  subsd  %xmm9,%xmm4
  mulsd  %xmm4,%xmm1
  addsd  D568(%rip),%xmm1
  mulsd  %xmm4,%xmm8
  addsd  D624(%rip),%xmm8
  mulsd  %xmm4,%xmm12
  addsd  D69(%rip),%xmm12
  mulsd  %xmm4,%xmm13
  addsd  D706(%rip),%xmm13
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm8
  addsd  D340(%rip),%xmm8
  mulsd  %xmm4,%xmm12
  addsd  D421(%rip),%xmm12
  mulsd  %xmm2,%xmm13
  addsd  %xmm15,%xmm1
  mulsd  %xmm4,%xmm8
  addsd  D611(%rip),%xmm8
  mulsd  %xmm4,%xmm1
  movapd %xmm13,%xmm7
  addsd  D622(%rip),%xmm1
  mulsd  %xmm4,%xmm8
  mulsd  %xmm4,%xmm1
  addsd  D577(%rip),%xmm1
  addsd  %xmm10,%xmm8
  mulsd  %xmm4,%xmm1
  addsd  %xmm11,%xmm1
  divsd  %xmm10,%xmm1
  movapd %xmm8,%xmm10
  movsd  D73(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  D511(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  D164(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  %xmm8,%xmm11
  movsd  D48(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  D591(%rip),%xmm8
  divsd  %xmm14,%xmm11
  mulsd  %xmm4,%xmm8
  mulsd  D327(%rip),%xmm4
  addsd  D671(%rip),%xmm8
  mulsd  %xmm2,%xmm8
  addsd  %xmm15,%xmm4
  mulsd  %xmm1,%xmm0
  addsd  D190(%rip),%xmm0
  addsd  %xmm4,%xmm7
  movapd %xmm2,%xmm4
  addsd  %xmm12,%xmm8
  movsd  D533(%rip),%xmm12
  mulsd  D160(%rip),%xmm2
  addsd  D58(%rip),%xmm2
  mulsd  %xmm4,%xmm2
  addsd  D400(%rip),%xmm2
  divsd  %xmm12,%xmm2
  divsd  %xmm14,%xmm7
  mulsd  %xmm6,%xmm2
  divsd  %xmm12,%xmm8
  subsd  %xmm2,%xmm7
  mulsd  %xmm6,%xmm7
  divsd  %xmm14,%xmm10
  movapd %xmm8,%xmm2
  subsd  %xmm7,%xmm2
  mulsd  %xmm6,%xmm2
  subsd  %xmm2,%xmm11
  mulsd  %xmm6,%xmm11
  subsd  %xmm11,%xmm10
  mulsd  %xmm6,%xmm10
  subsd  %xmm10,%xmm1
  mulsd  %xmm9,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  %xmm5,%xmm0
  addsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm3
  subsd  D190(%rip),%xmm3
  andpd  D132(%rip),%xmm3
  comisd D375(%rip),%xmm3
  jbe    L134
  movapd %xmm0,%xmm3
L40:
  movsd  D583(%rip),%xmm5
  movsd  0x10(%rsp),%xmm2
  movsd  %xmm3,0x20(%rsp)
  movsd  0x8(%rsp),%xmm1
  mulsd  %xmm3,%xmm5
  movapd %xmm5,%xmm0
  movsd  %xmm5,0x28(%rsp)
  call   <IncompleteGamma@plt>
  pxor   %xmm5,%xmm5
  movsd  0x20(%rsp),%xmm3
  comisd %xmm0,%xmm5
  jbe    L0
  lea    D234(%rip),%rdi
  call   <printf@plt>
  movsd  D524(%rip),%xmm0
L134:
  add    $0x58,%rsp
  ret
  nopl   0x0(%rax)
L77:
  movsd  D524(%rip),%xmm0
  ret
  nopl   0x0(%rax)
L148:
  movsd  0x8(%rsp),%xmm0
  mulsd  D216(%rip),%xmm0
  addsd  0x10(%rsp),%xmm0
  call   <exp@plt>
  movsd  0x8(%rsp),%xmm5
  movapd %xmm0,%xmm1
  movsd  0x38(%rsp),%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D190(%rip),%xmm1
  divsd  %xmm5,%xmm1
  call   <pow@plt>
  pxor   %xmm5,%xmm5
  movapd %xmm0,%xmm1
  subsd  D375(%rip),%xmm1
  movapd %xmm0,%xmm3
  comisd %xmm1,%xmm5
  jbe    L40
  jmp    L134
  nopw   0x0(%rax,%rax,1)
L51:
  movsd  D190(%rip),%xmm0
  subsd  0x38(%rsp),%xmm0
  call   <log@plt>
  movsd  0x18(%rsp),%xmm6
  mulsd  D216(%rip),%xmm6
  addsd  0x10(%rsp),%xmm0
  movsd  D13(%rip),%xmm3
  movsd  %xmm0,0x48(%rsp)
  movsd  %xmm6,0x40(%rsp)
  nopl   0x0(%rax,%rax,1)
L10:
  movsd  D505(%rip),%xmm2
  movsd  D83(%rip),%xmm1
  movsd  %xmm3,0x20(%rsp)
  movsd  D583(%rip),%xmm0
  addsd  %xmm3,%xmm2
  addsd  %xmm3,%xmm1
  mulsd  %xmm3,%xmm0
  addsd  0x48(%rsp),%xmm0
  addsd  0x40(%rsp),%xmm0
  mulsd  %xmm3,%xmm2
  addsd  D1(%rip),%xmm2
  mulsd  %xmm3,%xmm1
  addsd  D190(%rip),%xmm1
  mulsd  %xmm3,%xmm2
  movsd  %xmm1,0x30(%rsp)
  movsd  %xmm2,0x28(%rsp)
  call   <exp@plt>
  movsd  0x28(%rsp),%xmm2
  movsd  0x30(%rsp),%xmm1
  pxor   %xmm6,%xmm6
  movsd  0x20(%rsp),%xmm3
  movsd  D190(%rip),%xmm4
  mulsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  subsd  %xmm0,%xmm4
  movapd %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  addsd  D83(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  D484(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D502(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D1(%rip),%xmm1
  divsd  %xmm2,%xmm1
  subsd  D583(%rip),%xmm0
  subsd  %xmm1,%xmm0
  divsd  %xmm0,%xmm4
  movapd %xmm3,%xmm0
  subsd  %xmm4,%xmm3
  divsd  %xmm3,%xmm0
  subsd  D190(%rip),%xmm0
  andpd  D132(%rip),%xmm0
  subsd  D711(%rip),%xmm0
  comisd %xmm0,%xmm6
  jb     L10
  jmp    L40
L141:
  movsd  %xmm0,0x28(%rsp)
  movapd %xmm3,%xmm0
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm3,0x20(%rsp)
  call   <sqrt@plt>
  movsd  0x30(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm3
  jmp    L110
```

tool_calls: name: extract_symbolic_data
arguments: label: D534
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D437
type_guessed: byte[16]
name: extract_symbolic_data
arguments: label: D524
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D583
type_guessed: f64
name: extract_symbolic_data
arguments: label: D190
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D93
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D213
type_guessed: byte[16]
name: extract_symbolic_data
arguments: label: D353
type_guessed: f64
name: extract_symbolic_data
arguments: label: D484
type_guessed: f64
name: extract_symbolic_data
arguments: label: D15
type_guessed: f64
name: extract_symbolic_data
arguments: label: D133
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D623
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D216
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D645
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D143
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D338
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D343
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D11
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D604
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D439
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D589
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D568
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D624
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D69
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D706
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D340
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D421
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D611
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D622
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D577
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D73
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D511
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D164
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D48
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D591
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D327
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D671
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D533
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D160
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D58
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D400
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D132
type_guessed: qword[2]
name: extract_symbolic_data
arguments: label: D375
type_guessed: byte[16]
name: extract_symbolic_data
arguments: label: D234
type_guessed: string
name: extract_symbolic_data
arguments: label: D13
type_guessed: f64
name: extract_symbolic_data
arguments: label: D505
type_guessed: f64
name: extract_symbolic_data
arguments: label: D83
type_guessed: f64
name: extract_symbolic_data
arguments: label: D1
type_guessed: f64
name: extract_symbolic_data
arguments: label: D502
type_guessed: f64
name: extract_symbolic_data
arguments: label: D711
type_guessed: byte[8]

tool: {"D534": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xc0,0x3e]}

tool: {"D437": [0xd3,0x17,0x42,0xce,0xfb,0xff,0xef,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x3f]}

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

tool: D583: 0.5

tool: {"D190": [0.0,1.875]}

tool: {"D93": [0xd7,0xa3,0x70,0x3d,0x0a,0xd7,0xf3,0xbf]}

tool: {"D213": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0xd4,0x3f,0xcc,0xfc,0xf1,0xfe,0x42,0x2e,0xe6,0x3f]}

tool: D353: 0.222222

tool: D484: 3

tool: D15: 2.2

tool: {"D133": [0.0,2.375]}

tool: {"D623": [0.0,-2.0]}

tool: {"D216": [0xcc,0xfc,0xf1,0xfe,0x42,0x2e,0xe6,0x3f]}

tool: {"D645": [0.0,3.21875]}

tool: {"D143": [0.0,4.6240234375]}

tool: {"D338": [0.0,3.328125]}

tool: {"D343": [0.0,3.91015625]}

tool: {"D11": [0.0,3.66015625]}

tool: {"D604": [0.0,4.5771484375]}

tool: {"D439": [0.0,4.091796875]}

tool: {"D589": [0.0,5.115234375]}

tool: {"D568": [0.0,3.2734375]}

tool: {"D624": [0.0,4.55712890625]}

tool: {"D69": [0.0,4.15625]}

tool: {"D706": [0.0,3.591796875]}

tool: {"D340": [0.0,4.443359375]}

tool: {"D421": [0.0,3.7421875]}

tool: {"D611": [0.0,4.2177734375]}

tool: {"D622": [0.0,3.41015625]}

tool: {"D577": [0.0,3.5234375]}

tool: {"D73": [0.0,4.41015625]}

tool: {"D511": [0.0,4.1904296875]}

tool: {"D164": [0.0,3.951171875]}

tool: {"D48": [0.0,4.849609375]}

tool: {"D591": [0.0,4.3681640625]}

tool: {"D327": [0.0,3.7578125]}

tool: {"D671": [0.0,3.787109375]}

tool: {"D533": [0.0,5.615234375]}

tool: {"D160": [0.0,3.49609375]}

tool: {"D58": [0.0,3.837890625]}

tool: {"D400": [0.0,3.46875]}

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

tool: {"D375": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xa0,0x3e,0xb3,0xd1,0x39,0x3f,0xc5,0x71,0xcc,0x3f]}

tool: D234: 
err IncompleteGamma

tool: D13: 0.4

tool: D505: 6.66

tool: D83: 4.67

tool: D1: 6.73

tool: D502: 13.32

tool: {"D711": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0x84,0x3f]}

assistant: ```c
double QuantileChi2(double prob, double v) {
  double e = .5e-6, aa = .6931471805, p = prob, g;
  double xx, c, ch, a = 0, q = 0, p1 = 0, p2 = 0, t = 0, x = 0, b = 0, s1, s2, s3, s4, s5, s6;
  if (p < .000002 || p > .999998 || v <= 0)
    return (-1);
  g = LnGammaFunction(v / 2);
  xx = v / 2;
  c = xx - 1;
  if (v >= -1.24 * log(p))
    goto l1;
  ch = pow((p * xx * exp(g + xx * aa)), 1 / xx);
  if (ch - e < 0)
    return (ch);
  goto l4;
l1:
  if (v > .32)
    goto l3;
  ch = 0.4;
  a = log(1 - p);
l2:
  q = ch;
  p1 = 1 + ch * (4.67 + ch);
  p2 = ch * (6.73 + ch * (6.66 + ch));
  t = -0.5 + (4.67 + 2 * ch) / p1 - (6.73 + ch * (13.32 + 3 * ch)) / p2;
  ch -= (1 - exp(a + g + .5 * ch + c * aa) * p2 / p1) / t;
  if (fabs(q / ch - 1) - .01 <= 0)
    goto l4;
  else
    goto l2;
l3:
  x = QuantileNormal(p);
  p1 = 0.222222 / v;
  ch = v * pow((x * sqrt(p1) + 1 - p1), 3.0);
  if (ch > 2.2 * v + 6)
    ch = -2 * (log(1 - p) - c * log(.5 * ch) + g);
l4:
  q = ch;
  p1 = .5 * ch;
  if ((t = IncompleteGamma(p1, xx, g)) < 0) {
    printf("\nerr IncompleteGamma");
    return (-1);
  }
  p2 = p - t;
  t = p2 * exp(xx * aa + g + p1 - c * log(ch));
  b = t / ch;
  a = 0.5 * t - b * c;
  s1 = (210 + a * (140 + a * (105 + a * (84 + a * (70 + 60 * a))))) / 420;
  s2 = (420 + a * (735 + a * (966 + a * (1141 + 1278 * a)))) / 2520;
  s3 = (210 + a * (462 + a * (707 + 932 * a))) / 2520;
  s4 = (252 + a * (672 + 1182 * a) + c * (294 + a * (889 + 1740 * a))) / 5040;
  s5 = (84 + 264 * a + c * (175 + 606 * a)) / 2520;
  s6 = (120 + c * (346 + 127 * c)) / 5040;
  ch += t * (1 + 0.5 * t * s1 - b * c * (s1 - b * (s2 - b * (s3 - b * (s4 - b * (s5 - b * s6))))));
  if (fabs(q / ch - 1) > e)
    goto l4;
  return (ch);
}
```