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

```asm
<QuantileChi2>:
  endbr64
  movapd %xmm0,%xmm6
  movsd  D688(%rip),%xmm0
  comisd %xmm6,%xmm0
  ja     L4
  sub    $0x58,%rsp
  comisd D252(%rip),%xmm6
  movsd  D469(%rip),%xmm0
  movsd  %xmm6,0x38(%rsp)
  ja     L111
  pxor   %xmm5,%xmm5
  comisd %xmm1,%xmm5
  jae    L111
  movsd  D21(%rip),%xmm5
  movsd  %xmm1,0x20(%rsp)
  mulsd  %xmm1,%xmm5
  movapd %xmm5,%xmm0
  movsd  %xmm5,0x8(%rsp)
  call   <LnGammaFunction@plt>
  movsd  0x8(%rsp),%xmm5
  subsd  D476(%rip),%xmm5
  movsd  %xmm0,0x10(%rsp)
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm5,0x18(%rsp)
  call   <log@plt>
  mulsd  D551(%rip),%xmm0
  movsd  0x20(%rsp),%xmm2
  comisd %xmm0,%xmm2
  jb     L119
  comisd D262(%rip),%xmm2
  jbe    L49
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm2,0x20(%rsp)
  call   <QuantileNormal@plt>
  movsd  0x20(%rsp),%xmm2
  pxor   %xmm5,%xmm5
  movsd  D317(%rip),%xmm3
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm3
  ucomisd %xmm3,%xmm5
  ja     L34
  movapd %xmm3,%xmm0
  sqrtsd %xmm0,%xmm0
L56:
  mulsd  %xmm1,%xmm0
  movsd  D230(%rip),%xmm1
  movsd  %xmm2,0x20(%rsp)
  addsd  D476(%rip),%xmm0
  subsd  %xmm3,%xmm0
  call   <pow@plt>
  movsd  0x20(%rsp),%xmm2
  movapd %xmm0,%xmm3
  mulsd  %xmm2,%xmm3
  mulsd  D387(%rip),%xmm2
  addsd  D540(%rip),%xmm2
  comisd %xmm2,%xmm3
  jbe    L35
  movsd  D476(%rip),%xmm0
  subsd  0x38(%rsp),%xmm0
  movsd  %xmm3,0x28(%rsp)
  call   <log@plt>
  movsd  0x28(%rsp),%xmm3
  movsd  %xmm0,0x20(%rsp)
  movsd  D21(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  call   <log@plt>
  mulsd  0x18(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm1
  movsd  D452(%rip),%xmm3
  subsd  %xmm0,%xmm1
  addsd  0x10(%rsp),%xmm1
  mulsd  %xmm1,%xmm3
  jmp    L35
  nopl   0x0(%rax)
L11:
  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  D71(%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  D190(%rip),%xmm1
  movsd  D404(%rip),%xmm8
  mulsd  %xmm0,%xmm5
  movsd  D21(%rip),%xmm0
  movsd  D505(%rip),%xmm15
  movapd %xmm2,%xmm9
  movsd  D553(%rip),%xmm10
  movsd  D412(%rip),%xmm11
  movsd  D713(%rip),%xmm12
  movsd  D214(%rip),%xmm13
  movsd  D88(%rip),%xmm14
  mulsd  %xmm5,%xmm0
  movapd %xmm5,%xmm6
  divsd  %xmm3,%xmm6
  movapd %xmm0,%xmm4
  mulsd  %xmm6,%xmm9
  subsd  %xmm9,%xmm4
  mulsd  %xmm4,%xmm1
  addsd  D659(%rip),%xmm1
  mulsd  %xmm4,%xmm8
  addsd  D484(%rip),%xmm8
  mulsd  %xmm4,%xmm12
  addsd  D114(%rip),%xmm12
  mulsd  %xmm4,%xmm13
  addsd  D421(%rip),%xmm13
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm8
  addsd  D423(%rip),%xmm8
  mulsd  %xmm4,%xmm12
  addsd  D385(%rip),%xmm12
  mulsd  %xmm2,%xmm13
  addsd  %xmm15,%xmm1
  mulsd  %xmm4,%xmm8
  addsd  D570(%rip),%xmm8
  mulsd  %xmm4,%xmm1
  movapd %xmm13,%xmm7
  addsd  D679(%rip),%xmm1
  mulsd  %xmm4,%xmm8
  mulsd  %xmm4,%xmm1
  addsd  D84(%rip),%xmm1
  addsd  %xmm10,%xmm8
  mulsd  %xmm4,%xmm1
  addsd  %xmm11,%xmm1
  divsd  %xmm10,%xmm1
  movapd %xmm8,%xmm10
  movsd  D407(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  D355(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  D500(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  %xmm8,%xmm11
  movsd  D580(%rip),%xmm8
  mulsd  %xmm4,%xmm8
  addsd  D725(%rip),%xmm8
  divsd  %xmm14,%xmm11
  mulsd  %xmm4,%xmm8
  mulsd  D498(%rip),%xmm4
  addsd  D619(%rip),%xmm8
  mulsd  %xmm2,%xmm8
  addsd  %xmm15,%xmm4
  mulsd  %xmm1,%xmm0
  addsd  D476(%rip),%xmm0
  addsd  %xmm4,%xmm7
  movapd %xmm2,%xmm4
  addsd  %xmm12,%xmm8
  movsd  D129(%rip),%xmm12
  mulsd  D42(%rip),%xmm2
  addsd  D682(%rip),%xmm2
  mulsd  %xmm4,%xmm2
  addsd  D486(%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  D476(%rip),%xmm3
  andpd  D399(%rip),%xmm3
  comisd D263(%rip),%xmm3
  jbe    L111
  movapd %xmm0,%xmm3
L35:
  movsd  D21(%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    L11
  lea    D157(%rip),%rdi
  call   <printf@plt>
  movsd  D469(%rip),%xmm0
L111:
  add    $0x58,%rsp
  ret
  nopl   0x0(%rax)
L4:
  movsd  D469(%rip),%xmm0
  ret
  nopl   0x0(%rax)
L119:
  movsd  0x8(%rsp),%xmm0
  mulsd  D71(%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  D476(%rip),%xmm1
  divsd  %xmm5,%xmm1
  call   <pow@plt>
  pxor   %xmm5,%xmm5
  movapd %xmm0,%xmm1
  subsd  D263(%rip),%xmm1
  movapd %xmm0,%xmm3
  comisd %xmm1,%xmm5
  jbe    L35
  jmp    L111
  nopw   0x0(%rax,%rax,1)
L49:
  movsd  D476(%rip),%xmm0
  subsd  0x38(%rsp),%xmm0
  call   <log@plt>
  movsd  0x18(%rsp),%xmm6
  mulsd  D71(%rip),%xmm6
  addsd  0x10(%rsp),%xmm0
  movsd  D703(%rip),%xmm3
  movsd  %xmm0,0x48(%rsp)
  movsd  %xmm6,0x40(%rsp)
  nopl   0x0(%rax,%rax,1)
L127:
  movsd  D715(%rip),%xmm2
  movsd  D330(%rip),%xmm1
  movsd  %xmm3,0x20(%rsp)
  movsd  D21(%rip),%xmm0
  addsd  %xmm3,%xmm2
  addsd  %xmm3,%xmm1
  mulsd  %xmm3,%xmm0
  addsd  0x48(%rsp),%xmm0
  addsd  0x40(%rsp),%xmm0
  mulsd  %xmm3,%xmm2
  addsd  D176(%rip),%xmm2
  mulsd  %xmm3,%xmm1
  addsd  D476(%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  D476(%rip),%xmm4
  mulsd  %xmm2,%xmm0
  divsd  %xmm1,%xmm0
  subsd  %xmm0,%xmm4
  movapd %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  addsd  D330(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  D230(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D30(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  addsd  D176(%rip),%xmm1
  divsd  %xmm2,%xmm1
  subsd  D21(%rip),%xmm0
  subsd  %xmm1,%xmm0
  divsd  %xmm0,%xmm4
  movapd %xmm3,%xmm0
  subsd  %xmm4,%xmm3
  divsd  %xmm3,%xmm0
  subsd  D476(%rip),%xmm0
  andpd  D399(%rip),%xmm0
  subsd  D583(%rip),%xmm0
  comisd %xmm0,%xmm6
  jb     L127
  jmp    L35
L34:
  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    L56
```

tool_calls: name: unpack_data
arguments: data_label: D688
data_type: byte[8]
name: unpack_data
arguments: data_label: D252
data_type: byte[16]
name: unpack_data
arguments: data_label: D469
data_type: f32[2]
name: unpack_data
arguments: data_label: D21
data_type: f64
name: unpack_data
arguments: data_label: D476
data_type: f32[2]
name: unpack_data
arguments: data_label: D551
data_type: byte[8]
name: unpack_data
arguments: data_label: D262
data_type: byte[16]
name: unpack_data
arguments: data_label: D317
data_type: f64
name: unpack_data
arguments: data_label: D230
data_type: f64
name: unpack_data
arguments: data_label: D387
data_type: f64
name: unpack_data
arguments: data_label: D540
data_type: f32[2]
name: unpack_data
arguments: data_label: D452
data_type: f32[2]
name: unpack_data
arguments: data_label: D71
data_type: byte[8]
name: unpack_data
arguments: data_label: D190
data_type: f32[2]
name: unpack_data
arguments: data_label: D404
data_type: f32[2]
name: unpack_data
arguments: data_label: D505
data_type: f32[2]
name: unpack_data
arguments: data_label: D553
data_type: f32[2]
name: unpack_data
arguments: data_label: D412
data_type: f32[2]
name: unpack_data
arguments: data_label: D713
data_type: f32[2]
name: unpack_data
arguments: data_label: D214
data_type: f32[2]
name: unpack_data
arguments: data_label: D88
data_type: f32[2]
name: unpack_data
arguments: data_label: D659
data_type: f32[2]
name: unpack_data
arguments: data_label: D484
data_type: f32[2]
name: unpack_data
arguments: data_label: D114
data_type: f32[2]
name: unpack_data
arguments: data_label: D421
data_type: f32[2]
name: unpack_data
arguments: data_label: D423
data_type: f32[2]
name: unpack_data
arguments: data_label: D385
data_type: f32[2]
name: unpack_data
arguments: data_label: D570
data_type: f32[2]
name: unpack_data
arguments: data_label: D679
data_type: f32[2]
name: unpack_data
arguments: data_label: D84
data_type: f32[2]
name: unpack_data
arguments: data_label: D407
data_type: f32[2]
name: unpack_data
arguments: data_label: D355
data_type: f32[2]
name: unpack_data
arguments: data_label: D500
data_type: f32[2]
name: unpack_data
arguments: data_label: D580
data_type: f32[2]
name: unpack_data
arguments: data_label: D725
data_type: f32[2]
name: unpack_data
arguments: data_label: D498
data_type: f32[2]
name: unpack_data
arguments: data_label: D619
data_type: f32[2]
name: unpack_data
arguments: data_label: D129
data_type: f32[2]
name: unpack_data
arguments: data_label: D42
data_type: f32[2]
name: unpack_data
arguments: data_label: D682
data_type: f32[2]
name: unpack_data
arguments: data_label: D486
data_type: f32[2]
name: unpack_data
arguments: data_label: D399
data_type: qword[2]
name: unpack_data
arguments: data_label: D263
data_type: byte[16]
name: unpack_data
arguments: data_label: D157
data_type: string
name: unpack_data
arguments: data_label: D703
data_type: f64
name: unpack_data
arguments: data_label: D715
data_type: f64
name: unpack_data
arguments: data_label: D330
data_type: f64
name: unpack_data
arguments: data_label: D176
data_type: f64
name: unpack_data
arguments: data_label: D30
data_type: f64
name: unpack_data
arguments: data_label: D583
data_type: byte[8]

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

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

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

tool: D21: 0.5

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

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

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

tool: D317: 0.222222

tool: D230: 3

tool: D387: 2.2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tool: D157: 
err IncompleteGamma

tool: D703: 0.4

tool: D715: 6.66

tool: D330: 4.67

tool: D176: 6.73

tool: D30: 13.32

tool: {"D583": [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);
}
```