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

```asm
<QuantileChi2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0xc8,%rsp
  movsd  %xmm0,-0xb8(%rbp)
  movsd  %xmm1,-0xc0(%rbp)
  movsd  D182(%rip),%xmm0
  movsd  %xmm0,-0xa8(%rbp)
  movsd  D422(%rip),%xmm0
  movsd  %xmm0,-0xa0(%rbp)
  movsd  -0xb8(%rbp),%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  D19(%rip),%xmm0
  comisd -0x98(%rbp),%xmm0
  ja     L57
  movsd  -0x98(%rbp),%xmm0
  comisd D404(%rip),%xmm0
  ja     L57
  pxor   %xmm0,%xmm0
  comisd -0xc0(%rbp),%xmm0
  jb     L76
L57:
  movsd  D30(%rip),%xmm0
  jmp    L162
L76:
  movsd  -0xc0(%rbp),%xmm0
  movsd  D731(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <LnGammaFunction@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x58(%rbp)
  movsd  -0xc0(%rbp),%xmm0
  movsd  D731(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  -0x50(%rbp),%xmm0
  movsd  D292(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x98(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movsd  D443(%rip),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  -0xc0(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L158
  movsd  D292(%rip),%xmm0
  divsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  movsd  -0x98(%rbp),%xmm0
  movapd %xmm0,%xmm5
  mulsd  -0x50(%rbp),%xmm5
  movsd  %xmm5,-0xd0(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0xa0(%rbp),%xmm0
  movapd %xmm0,%xmm6
  addsd  -0x58(%rbp),%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movapd %xmm0,%xmm7
  mulsd  -0xd0(%rbp),%xmm7
  movq   %xmm7,%rax
  movsd  -0xc8(%rbp),%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xb0(%rbp)
  movsd  -0xb0(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  -0xa8(%rbp),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  ja     L119
  jmp    L107
L119:
  movsd  -0xb0(%rbp),%xmm0
  jmp    L162
L158:
  nop
  movsd  -0xc0(%rbp),%xmm0
  comisd D690(%rip),%xmm0
  ja     L71
  movsd  D384(%rip),%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  D292(%rip),%xmm0
  subsd  -0x98(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x90(%rbp)
L130:
  movsd  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  -0xb0(%rbp),%xmm1
  movsd  D449(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0xb0(%rbp),%xmm1
  movsd  D292(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  -0xb0(%rbp),%xmm1
  movsd  D647(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0xb0(%rbp),%xmm1
  movsd  D442(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  -0xb0(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  -0xb0(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  movsd  D449(%rip),%xmm0
  addsd  %xmm1,%xmm0
  divsd  -0x80(%rbp),%xmm0
  movsd  D728(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movsd  -0xb0(%rbp),%xmm2
  movsd  D203(%rip),%xmm1
  mulsd  %xmm1,%xmm2
  movsd  D42(%rip),%xmm1
  addsd  %xmm2,%xmm1
  movapd %xmm1,%xmm2
  mulsd  -0xb0(%rbp),%xmm2
  movsd  D442(%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  -0xb0(%rbp),%xmm2
  movsd  D728(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  -0xa0(%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  D292(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  divsd  -0x70(%rbp),%xmm1
  movsd  -0xb0(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  -0x88(%rbp),%xmm0
  divsd  -0xb0(%rbp),%xmm0
  movsd  D292(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movq   D242(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  D572(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jae    L126
  jmp    L130
L71:
  nop
  mov    -0x98(%rbp),%rax
  movq   %rax,%xmm0
  call   <QuantileNormal@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x68(%rbp)
  movsd  D176(%rip),%xmm0
  divsd  -0xc0(%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  D292(%rip),%xmm0
  addsd  %xmm1,%xmm0
  subsd  -0x80(%rbp),%xmm0
  movq   %xmm0,%rax
  movsd  D203(%rip),%xmm0
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <pow@plt>
  movsd  -0xc0(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  -0xc0(%rbp),%xmm1
  movsd  D636(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D541(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0xb0(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jbe    L107
  movsd  D292(%rip),%xmm0
  subsd  -0x98(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rbx
  movsd  -0xb0(%rbp),%xmm1
  movsd  D728(%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  D56(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  jmp    L107
L126:
  nop
L107:
  movsd  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0x88(%rbp)
  movsd  -0xb0(%rbp),%xmm1
  movsd  D728(%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    L56
  lea    D313(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movsd  D30(%rip),%xmm0
  jmp    L162
L56:
  movsd  -0x98(%rbp),%xmm0
  subsd  -0x70(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0xa0(%rbp),%xmm0
  addsd  -0x58(%rbp),%xmm0
  addsd  -0x80(%rbp),%xmm0
  movsd  %xmm0,-0xc8(%rbp)
  mov    -0xb0(%rbp),%rax
  movq   %rax,%xmm0
  call   <log@plt>
  movq   %xmm0,%rax
  movq   %rax,%xmm6
  mulsd  -0x48(%rbp),%xmm6
  movapd %xmm6,%xmm0
  movsd  -0xc8(%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  -0xb0(%rbp),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D728(%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  D262(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D578(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D192(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D73(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D84(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D609(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D118(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D231(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D639(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D97(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D741(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D118(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D666(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D247(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D102(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D493(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D609(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D666(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D689(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D412(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x90(%rbp),%xmm1
  movsd  D532(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x90(%rbp),%xmm2
  movsd  D122(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  movsd  D580(%rip),%xmm0
  addsd  %xmm2,%xmm0
  movapd %xmm0,%xmm2
  mulsd  -0x90(%rbp),%xmm2
  movsd  D453(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D224(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x90(%rbp),%xmm1
  movsd  D321(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D192(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x90(%rbp),%xmm2
  movsd  D94(%rip),%xmm0
  mulsd  %xmm0,%xmm2
  movsd  D3(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  -0x48(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D666(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  D346(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D171(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x48(%rbp),%xmm1
  movsd  D214(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D224(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D728(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x40(%rbp),%xmm1
  movsd  D292(%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  -0xb0(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  movsd  -0x88(%rbp),%xmm0
  divsd  -0xb0(%rbp),%xmm0
  movsd  D292(%rip),%xmm1
  subsd  %xmm1,%xmm0
  movq   D242(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd -0xa8(%rbp),%xmm0
  jbe    L29
  jmp    L107
L29:
  movsd  -0xb0(%rbp),%xmm0
L162:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D182
type: byte[8]
name: read_data
arguments: tag: D422
type: byte[8]
name: read_data
arguments: tag: D19
type: byte[8]
name: read_data
arguments: tag: D404
type: byte[16]
name: read_data
arguments: tag: D30
type: f32[2]
name: read_data
arguments: tag: D731
type: f32[2]
name: read_data
arguments: tag: D292
type: f32[2]
name: read_data
arguments: tag: D443
type: byte[8]
name: read_data
arguments: tag: D690
type: byte[16]
name: read_data
arguments: tag: D384
type: f64
name: read_data
arguments: tag: D449
type: f64
name: read_data
arguments: tag: D647
type: f64
name: read_data
arguments: tag: D442
type: f64
name: read_data
arguments: tag: D728
type: f64
name: read_data
arguments: tag: D203
type: f64
name: read_data
arguments: tag: D42
type: f64
name: read_data
arguments: tag: D242
type: qword
name: read_data
arguments: tag: D572
type: byte[8]
name: read_data
arguments: tag: D176
type: f64
name: read_data
arguments: tag: D636
type: f64
name: read_data
arguments: tag: D541
type: f32[2]
name: read_data
arguments: tag: D56
type: f32[2]
name: read_data
arguments: tag: D313
type: string
name: read_data
arguments: tag: D262
type: f32[2]
name: read_data
arguments: tag: D578
type: f32[2]
name: read_data
arguments: tag: D192
type: f32[2]
name: read_data
arguments: tag: D73
type: f32[2]
name: read_data
arguments: tag: D84
type: f32[2]
name: read_data
arguments: tag: D609
type: f32[2]
name: read_data
arguments: tag: D118
type: f32[2]
name: read_data
arguments: tag: D231
type: f32[2]
name: read_data
arguments: tag: D639
type: f32[2]
name: read_data
arguments: tag: D97
type: f32[2]
name: read_data
arguments: tag: D741
type: f32[2]
name: read_data
arguments: tag: D666
type: f32[2]
name: read_data
arguments: tag: D247
type: f32[2]
name: read_data
arguments: tag: D102
type: f32[2]
name: read_data
arguments: tag: D493
type: f32[2]
name: read_data
arguments: tag: D689
type: f32[2]
name: read_data
arguments: tag: D412
type: f32[2]
name: read_data
arguments: tag: D532
type: f32[2]
name: read_data
arguments: tag: D122
type: f32[2]
name: read_data
arguments: tag: D580
type: f32[2]
name: read_data
arguments: tag: D453
type: f32[2]
name: read_data
arguments: tag: D224
type: f32[2]
name: read_data
arguments: tag: D321
type: f32[2]
name: read_data
arguments: tag: D94
type: f32[2]
name: read_data
arguments: tag: D3
type: f32[2]
name: read_data
arguments: tag: D346
type: f32[2]
name: read_data
arguments: tag: D171
type: f32[2]
name: read_data
arguments: tag: D214
type: f32[2]

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

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

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

tool: {"D404": [0xd3,0x17,0x42,0xce,0xfb,0xff,0xef,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

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

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

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

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

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

tool: D384: 0.4

tool: D449: 4.67

tool: D647: 6.66

tool: D442: 6.73

tool: D728: 0.5

tool: D203: 3

tool: D42: 13.32

tool: D242: 9223372036854775807

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

tool: D176: 0.222222

tool: D636: 2.2

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

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

tool: D313: 
err IncompleteGamma

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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);
}
```