user: 请从给定的汇编指令推导出C源代码:

```asm
<QuantileChi2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xd8,%rsp
  movsd  %xmm0,-0xc8(%rbp)
  movsd  %xmm1,-0xd0(%rbp)
  movsd  D379(%rip),%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  D119(%rip),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  movsd  -0xc8(%rbp),%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movsd  D445(%rip),%xmm0
  movsd  %xmm0,-0x98(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x88(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x98(%rbp),%xmm0
  comisd -0xa0(%rbp),%xmm0
  jbe    L99
  pxor   %xmm0,%xmm0
  jmp    L55
L99:
  movsd  D536(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0x98(%rbp),%xmm1
  movsd  -0xa0(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L27
  movsd  D128(%rip),%xmm0
  jmp    L55
L27:
  pxor   %xmm0,%xmm0
  comisd -0xd0(%rbp),%xmm0
  jb     L5
  movsd  D66(%rip),%xmm0
  jmp    L55
L5:
  movsd  -0xd0(%rbp),%xmm0
  movsd  D443(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <LnGamma@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x58(%rbp)
  movsd  -0xd0(%rbp),%xmm0
  movsd  D443(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x50(%rbp),%xmm0
  movsd  D536(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0xa0(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movsd  D744(%rip),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0xd0(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L158
  movsd  D536(%rip),%xmm0
  divsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  movsd  -0xa0(%rbp),%xmm0
  movapd %xmm0,%xmm5
  mulsd  -0x50(%rbp),%xmm5
  movsd  %xmm5,-0xe0(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0xa8(%rbp),%xmm0
  movapd %xmm0,%xmm6
  addsd  -0x58(%rbp),%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movapd %xmm0,%xmm7
  mulsd  -0xe0(%rbp),%xmm7
  movq   %xmm7,%rax
  movsd  -0xd8(%rbp),%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xb8(%rbp)
  movsd  -0xb8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0xb0(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  ja     L29
  jmp    L152
L29:
  movsd  -0xb8(%rbp),%xmm0
  jmp    L55
L158:
  nop
  movsd  -0xd0(%rbp),%xmm0
  comisd D551(%rip),%xmm0
  ja     L30
  movsd  D644(%rip),%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  D536(%rip),%xmm0
  subsd  -0xa0(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x90(%rbp)
L14:
  movsd  -0xb8(%rbp),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  -0xb8(%rbp),%xmm1
  movsd  D46(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0xb8(%rbp),%xmm1
  movsd  D536(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  -0xb8(%rbp),%xmm1
  movsd  D170(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0xb8(%rbp),%xmm1
  movsd  D335(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0xb8(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  -0xb8(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  movsd  D46(%rip),%xmm0
  addsd  %xmm1,%xmm0
  divsd  -0x80(%rbp),%xmm0
  movsd  D282(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0xb8(%rbp),%xmm2
  movsd  D630(%rip),%xmm1
  mulsd  %xmm1,%xmm2
  movsd  D1(%rip),%xmm1
  addsd  %xmm2,%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0xb8(%rbp),%xmm2
  movsd  D335(%rip),%xmm1
  addsd  %xmm2,%xmm1
  divsd  -0x78(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x90(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x58(%rbp),%xmm1
  movsd  -0xb8(%rbp),%xmm2
  movsd  D282(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  -0xa8(%rbp),%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mulsd  -0x78(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x80(%rbp),%xmm1
  movsd  D536(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x70(%rbp),%xmm1
  movsd  -0xb8(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  -0x88(%rbp),%xmm0
  divsd  -0xb8(%rbp),%xmm0
  movsd  D536(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movq   D640(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  D708(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jae    L65
  jmp    L14
L30:
  nop
  mov    -0xa0(%rbp),%rax
  movq   %rax,%xmm0
  call   <QuantileNormal@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x68(%rbp)
  movsd  D612(%rip),%xmm0
  divsd  -0xd0(%rbp),%xmm0
  movsd  %xmm0,-0x80(%rbp)
  mov    -0x80(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm1
  mulsd  -0x68(%rbp),%xmm1
  movsd  D536(%rip),%xmm0
  addsd  %xmm1,%xmm0
  subsd  -0x80(%rbp),%xmm0
  movq   %xmm0,%rax
  movsd  D630(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0xd0(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  -0xd0(%rbp),%xmm1
  movsd  D97(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D248(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xb8(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L152
  movsd  D536(%rip),%xmm0
  subsd  -0xa0(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  movsd  -0xb8(%rbp),%xmm1
  movsd  D282(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm1
  mulsd  -0x48(%rbp),%xmm1
  movq   %rbx,%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x58(%rbp),%xmm1
  movsd  D366(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  jmp    L152
L65:
  nop
L152:
  movsd  -0xb8(%rbp),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  -0xb8(%rbp),%xmm1
  movsd  D282(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  -0x58(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mov    -0x80(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <IncompleteGamma@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x70(%rbp),%xmm0
  jbe    L13
  lea    D265(%rip),%rax
  mov    %rax,%rdi
  call   <error2@plt>
L13:
  movsd  -0xa0(%rbp),%xmm0
  subsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0xa8(%rbp),%xmm0
  addsd  -0x58(%rbp),%xmm0
  addsd  -0x80(%rbp),%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  mov    -0xb8(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm6
  mulsd  -0x48(%rbp),%xmm6
  movapd %xmm6,%xmm0
  movsd  -0xd8(%rbp),%xmm4
  subsd  %xmm0,%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movsd  -0x78(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movsd  -0x70(%rbp),%xmm0
  divsd  -0xb8(%rbp),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D282(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x60(%rbp),%xmm1
  mulsd  -0x48(%rbp),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x90(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D189(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D20(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D441(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D629(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D569(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D645(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D615(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D488(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D647(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D358(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D50(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D615(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D756(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D204(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D52(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D157(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D645(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D756(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D274(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D473(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D408(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x90(%rbp),%xmm2
  movsd  D639(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  movsd  D636(%rip),%xmm0
  addsd  %xmm2,%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x90(%rbp),%xmm2
  movsd  D657(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D168(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D260(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D441(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x90(%rbp),%xmm2
  movsd  D13(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  movsd  D720(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D756(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  D405(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D326(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x48(%rbp),%xmm1
  movsd  D258(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D168(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D282(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x40(%rbp),%xmm1
  movsd  D536(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0x60(%rbp),%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0x48(%rbp),%xmm2
  movsd  -0x60(%rbp),%xmm1
  movapd %xmm1,%xmm3
  mulsd  -0x18(%rbp),%xmm3
  movsd  -0x20(%rbp),%xmm1
  subsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  mulsd  -0x60(%rbp),%xmm3
  movsd  -0x28(%rbp),%xmm1
  subsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  mulsd  -0x60(%rbp),%xmm3
  movsd  -0x30(%rbp),%xmm1
  subsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  mulsd  -0x60(%rbp),%xmm3
  movsd  -0x38(%rbp),%xmm1
  subsd  %xmm3,%xmm1
  movapd %xmm1,%xmm3
  mulsd  -0x60(%rbp),%xmm3
  movsd  -0x40(%rbp),%xmm1
  subsd  %xmm3,%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  mulsd  -0x70(%rbp),%xmm0
  movsd  -0xb8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  movsd  -0x88(%rbp),%xmm0
  divsd  -0xb8(%rbp),%xmm0
  movsd  D536(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movq   D640(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd -0xb0(%rbp),%xmm0
  jbe    L89
  jmp    L152
L89:
  movsd  -0xb8(%rbp),%xmm0
L55:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D379
type_infered: byte[8]
name: read_data
arguments: label: D119
type_infered: byte[8]
name: read_data
arguments: label: D445
type_infered: byte[8]
name: read_data
arguments: label: D536
type_infered: f32[2]
name: read_data
arguments: label: D128
type_infered: f32[2]
name: read_data
arguments: label: D66
type_infered: f32[2]
name: read_data
arguments: label: D443
type_infered: f32[2]
name: read_data
arguments: label: D744
type_infered: byte[8]
name: read_data
arguments: label: D551
type_infered: byte[16]
name: read_data
arguments: label: D644
type_infered: f64
name: read_data
arguments: label: D46
type_infered: f64
name: read_data
arguments: label: D170
type_infered: f64
name: read_data
arguments: label: D335
type_infered: f64
name: read_data
arguments: label: D282
type_infered: f64
name: read_data
arguments: label: D630
type_infered: f64
name: read_data
arguments: label: D1
type_infered: f64
name: read_data
arguments: label: D640
type_infered: qword
name: read_data
arguments: label: D708
type_infered: byte[8]
name: read_data
arguments: label: D612
type_infered: f64
name: read_data
arguments: label: D97
type_infered: f64
name: read_data
arguments: label: D248
type_infered: f32[2]
name: read_data
arguments: label: D366
type_infered: f32[2]
name: read_data
arguments: label: D265
type_infered: string
name: read_data
arguments: label: D189
type_infered: f32[2]
name: read_data
arguments: label: D20
type_infered: f32[2]
name: read_data
arguments: label: D441
type_infered: f32[2]
name: read_data
arguments: label: D629
type_infered: f32[2]
name: read_data
arguments: label: D569
type_infered: f32[2]
name: read_data
arguments: label: D645
type_infered: f32[2]
name: read_data
arguments: label: D615
type_infered: f32[2]
name: read_data
arguments: label: D488
type_infered: f32[2]
name: read_data
arguments: label: D647
type_infered: f32[2]
name: read_data
arguments: label: D358
type_infered: f32[2]
name: read_data
arguments: label: D50
type_infered: f32[2]
name: read_data
arguments: label: D756
type_infered: f32[2]
name: read_data
arguments: label: D204
type_infered: f32[2]
name: read_data
arguments: label: D52
type_infered: f32[2]
name: read_data
arguments: label: D157
type_infered: f32[2]
name: read_data
arguments: label: D274
type_infered: f32[2]
name: read_data
arguments: label: D473
type_infered: f32[2]
name: read_data
arguments: label: D408
type_infered: f32[2]
name: read_data
arguments: label: D639
type_infered: f32[2]
name: read_data
arguments: label: D636
type_infered: f32[2]
name: read_data
arguments: label: D657
type_infered: f32[2]
name: read_data
arguments: label: D168
type_infered: f32[2]
name: read_data
arguments: label: D260
type_infered: f32[2]
name: read_data
arguments: label: D13
type_infered: f32[2]
name: read_data
arguments: label: D720
type_infered: f32[2]
name: read_data
arguments: label: D405
type_infered: f32[2]
name: read_data
arguments: label: D326
type_infered: f32[2]
name: read_data
arguments: label: D258
type_infered: f32[2]

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

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

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

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

tool: {"D128": [0.0,6.11029052734375]}

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

tool: {"D443": [0.0,2.0]}

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

tool: {"D551": [0x7b,0x14,0xae,0x47,0xe1,0x7a,0xd4,0x3f,0x9a,0x99,0x99,0x99,0x99,0x99,0xd9,0x3f]}

tool: D644: 0.4

tool: D46: 4.67

tool: D170: 6.66

tool: D335: 6.73

tool: D282: 0.5

tool: D630: 3

tool: D1: 13.32

tool: D640: 9223372036854775807

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

tool: D612: 0.222222

tool: D97: 2.2

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

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

tool: D265: 
IncompleteGamma

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

assistant: ```c
double QuantileChi2(double prob, double v) {
  double e = .5e-6, aa = .6931471805, p = prob, g, small = 1e-6;
  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 < small)
    return (0);
  if (p > 1 - small)
    return (9999);
  if (v <= 0)
    return (-1);
  g = LnGamma(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)
    error2("\nIncompleteGamma");
  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);
}
```