user: What would the C source look like for the assembly code provided here:

```asm
<dcs_pair_production_KKP>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  movapd %xmm0,%xmm6
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  pxor   %xmm0,%xmm0
  comisd %xmm6,%xmm0
  jae    L297
  movq   %xmm2,%rbp
  movq   %xmm3,%rbx
  comisd %xmm1,%xmm0
  jae    L231
  comisd %xmm2,%xmm0
  jae    L234
  comisd %xmm3,%xmm0
  jae    L3
  movsd  %xmm4,0x10(%rsp)
  comisd %xmm4,%xmm0
  jae    L108
  lea    0xe0(%rsp),%rsi
  lea    0xd8(%rsp),%rdi
  movapd %xmm3,%xmm2
  movq   %rbp,%xmm1
  movsd  %xmm6,0x98(%rsp)
  movapd %xmm6,%xmm0
  mov    $0x3,%eax
  call   <dcs_pair_production_range@plt>
  pxor   %xmm0,%xmm0
  movsd  0xd8(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm4
  comisd %xmm4,%xmm1
  ja     L108
  comisd 0xe0(%rsp),%xmm4
  ja     L108
  movsd  0x98(%rsp),%xmm0
  mov    $0x1,%eax
  call   <radiation_logarithm@plt>
  mov    %eax,%r13d
  movsd  D317(%rip),%xmm1
  movsd  0x98(%rsp),%xmm0
  call   <pow@plt>
  movsd  %xmm0,0x90(%rsp)
  movsd  D136(%rip),%xmm4
  movq   %rbx,%xmm0
  movq   %rbp,%xmm6
  divsd  %xmm6,%xmm0
  movapd %xmm0,%xmm2
  addsd  %xmm4,%xmm2
  movsd  %xmm2,0xc0(%rsp)
  movsd  D440(%rip),%xmm3
  movsd  0x10(%rsp),%xmm7
  divsd  %xmm7,%xmm3
  divsd  %xmm6,%xmm7
  movapd %xmm2,%xmm0
  subsd  %xmm7,%xmm0
  mulsd  %xmm2,%xmm0
  movsd  D201(%rip),%xmm2
  divsd  %xmm0,%xmm2
  movapd %xmm4,%xmm0
  subsd  %xmm3,%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm3,%xmm1
  movq   %xmm1,%r12
  subsd  %xmm2,%xmm4
  movsd  %xmm4,0x8(%rsp)
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L100
  sqrtsd %xmm0,%xmm0
L341:
  mulsd  0x8(%rsp),%xmm0
  movsd  D136(%rip),%xmm2
  addsd  %xmm2,%xmm0
  movq   %r12,%xmm1
  divsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm2,%xmm1
  jae    L108
  comisd %xmm1,%xmm0
  jae    L108
  movq   %rbx,%xmm7
  movq   %rbp,%xmm5
  addsd  %xmm5,%xmm7
  movsd  %xmm7,0xc8(%rsp)
  movsd  0x10(%rsp),%xmm4
  divsd  %xmm7,%xmm4
  divsd  D34(%rip),%xmm5
  movsd  %xmm5,0xa8(%rsp)
  movsd  D314(%rip),%xmm0
  movapd %xmm4,%xmm3
  mulsd  %xmm0,%xmm3
  mulsd  %xmm4,%xmm3
  movsd  D136(%rip),%xmm2
  subsd  %xmm4,%xmm2
  divsd  %xmm2,%xmm3
  movsd  %xmm3,0x20(%rsp)
  mulsd  %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  mulsd  %xmm3,%xmm0
  movsd  %xmm0,0xb0(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13d,%xmm0
  movsd  0x90(%rsp),%xmm4
  divsd  %xmm4,%xmm0
  movsd  %xmm0,0x70(%rsp)
  mulsd  D408(%rip),%xmm0
  movq   %xmm0,%r13
  movapd %xmm5,%xmm6
  mulsd  %xmm5,%xmm6
  movsd  %xmm6,0xa0(%rsp)
  movapd %xmm4,%xmm0
  mulsd  D551(%rip),%xmm0
  mulsd  %xmm4,%xmm0
  divsd  %xmm6,%xmm0
  movsd  %xmm0,0xb8(%rsp)
  movapd %xmm1,%xmm0
  call   <log@plt>
  movsd  %xmm0,0x78(%rsp)
  lea    0xf0(%rsp),%rdx
  lea    0xe8(%rsp),%rsi
  mov    $0xc,%edi
  mov    $0x0,%eax
  call   <math_gauss_quad_coefficients@plt>
  mov    $0x0,%ebx
  mov    D12(%rip),%rbp
  jmp    L304
L100:
  call   <sqrt@plt>
  jmp    L341
L149:
  movsd  0x60(%rsp),%xmm0
  addsd  D136(%rip),%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm3
  movsd  0x20(%rsp),%xmm6
  movapd %xmm6,%xmm1
  addsd  D136(%rip),%xmm1
  movsd  0x8(%rsp),%xmm7
  movapd %xmm7,%xmm0
  addsd  D24(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D548(%rip),%xmm2
  movapd %xmm7,%xmm1
  addsd  %xmm2,%xmm1
  movsd  0x18(%rsp),%xmm4
  mulsd  %xmm4,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  movapd %xmm4,%xmm3
  addsd  D136(%rip),%xmm3
  movsd  0x58(%rsp),%xmm1
  subsd  %xmm6,%xmm1
  divsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  subsd  %xmm2,%xmm0
  subsd  %xmm7,%xmm0
  movsd  %xmm0,0x80(%rsp)
  jmp    L240
L193:
  movsd  0x30(%rsp),%xmm0
  call   <sqrt@plt>
  jmp    L99
L189:
  movsd  %xmm0,0x30(%rsp)
  jmp    L284
L276:
  movsd  D136(%rip),%xmm5
  addsd  0x68(%rsp),%xmm5
  movsd  %xmm5,0x48(%rsp)
  movsd  0x50(%rsp),%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm2
  movsd  0x20(%rsp),%xmm3
  movapd %xmm3,%xmm1
  mulsd  D494(%rip),%xmm1
  addsd  D136(%rip),%xmm1
  mulsd  0x28(%rsp),%xmm1
  movsd  0x60(%rsp),%xmm7
  movsd  0x48(%rsp),%xmm5
  mulsd  %xmm5,%xmm7
  movapd %xmm7,%xmm0
  movsd  0x58(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  subsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  movapd %xmm6,%xmm1
  subsd  %xmm3,%xmm1
  mulsd  0x18(%rsp),%xmm1
  divsd  0x50(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  mulsd  %xmm6,%xmm5
  addsd  %xmm5,%xmm0
  movsd  %xmm0,0x48(%rsp)
  jmp    L178
L312:
  divsd  0xa0(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  D136(%rip),%xmm1
  subsd  0x88(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  mov    0xf0(%rsp),%rax
  mulsd  (%rax,%rbx,1),%xmm1
  mulsd  0x78(%rsp),%xmm1
  movq   %rbp,%xmm7
  subsd  %xmm1,%xmm7
  movq   %xmm7,%rbp
  add    $0x8,%rbx
  cmp    $0x60,%rbx
  je     L9
L304:
  mov    0xe8(%rsp),%rax
  movsd  0x78(%rsp),%xmm0
  mulsd  (%rax,%rbx,1),%xmm0
  call   <exp@plt>
  movsd  D136(%rip),%xmm7
  subsd  %xmm0,%xmm7
  movsd  %xmm7,0x88(%rsp)
  mulsd  %xmm7,%xmm7
  movsd  %xmm7,0x8(%rsp)
  movsd  D24(%rip),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x58(%rsp)
  movsd  0xb0(%rsp),%xmm5
  mulsd  %xmm1,%xmm5
  movsd  %xmm5,0x18(%rsp)
  movsd  D136(%rip),%xmm2
  divsd  %xmm5,%xmm2
  movsd  %xmm2,0x60(%rsp)
  comisd D41(%rip),%xmm5
  jb     L149
  movapd %xmm7,%xmm1
  addsd  D136(%rip),%xmm1
  movsd  0x20(%rsp),%xmm3
  movapd %xmm3,%xmm0
  addsd  %xmm3,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D548(%rip),%xmm1
  subsd  %xmm7,%xmm1
  addsd  %xmm1,%xmm0
  mulsd  D314(%rip),%xmm2
  mulsd  %xmm2,%xmm0
  movsd  %xmm0,0x80(%rsp)
L240:
  movsd  D390(%rip),%xmm0
  movsd  0x8(%rsp),%xmm3
  subsd  %xmm3,%xmm0
  movsd  %xmm0,0x48(%rsp)
  movsd  D136(%rip),%xmm6
  addsd  %xmm3,%xmm6
  movsd  %xmm6,0x28(%rsp)
  movsd  D548(%rip),%xmm0
  movsd  0x20(%rsp),%xmm3
  mulsd  %xmm0,%xmm3
  movsd  %xmm3,0x38(%rsp)
  addsd  0x60(%rsp),%xmm0
  call   <log@plt>
  movsd  0x20(%rsp),%xmm5
  movapd %xmm5,%xmm7
  addsd  %xmm5,%xmm7
  movsd  %xmm7,0x68(%rsp)
  movsd  D136(%rip),%xmm4
  addsd  0x18(%rsp),%xmm4
  movsd  %xmm4,0x50(%rsp)
  mulsd  D76(%rip),%xmm5
  movapd %xmm5,%xmm1
  mulsd  0x28(%rsp),%xmm1
  addsd  0x48(%rsp),%xmm1
  movsd  D136(%rip),%xmm2
  addsd  0x38(%rsp),%xmm2
  addsd  %xmm2,%xmm2
  mulsd  %xmm2,%xmm0
  movsd  0x8(%rsp),%xmm3
  subsd  %xmm3,%xmm0
  movsd  D24(%rip),%xmm2
  subsd  %xmm3,%xmm2
  mulsd  %xmm7,%xmm2
  subsd  %xmm2,%xmm0
  divsd  %xmm0,%xmm1
  addsd  D136(%rip),%xmm1
  mulsd  %xmm4,%xmm1
  movsd  %xmm1,0x30(%rsp)
  movq   %r13,%xmm5
  divsd  0x58(%rsp),%xmm5
  movsd  %xmm5,0x40(%rsp)
  pxor   %xmm0,%xmm0
  ucomisd %xmm1,%xmm0
  ja     L193
  sqrtsd %xmm1,%xmm1
  movapd %xmm1,%xmm0
L99:
  mulsd  0x70(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  movsd  0x30(%rsp),%xmm1
  mulsd  0x40(%rsp),%xmm1
  addsd  %xmm6,%xmm1
  divsd  %xmm1,%xmm0
  call   <log@plt>
  movq   %xmm0,%r12
  movsd  0x30(%rsp),%xmm0
  mulsd  0xb8(%rsp),%xmm0
  addsd  D136(%rip),%xmm0
  call   <log@plt>
  mulsd  D314(%rip),%xmm0
  movq   %r12,%xmm1
  subsd  %xmm0,%xmm1
  mulsd  0x80(%rsp),%xmm1
  movsd  %xmm1,0x30(%rsp)
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  ja     L189
L284:
  movsd  D277(%rip),%xmm0
  movsd  0x18(%rsp),%xmm7
  comisd %xmm7,%xmm0
  jb     L276
  movsd  0x8(%rsp),%xmm0
  addsd  D548(%rip),%xmm0
  mulsd  0x20(%rsp),%xmm0
  addsd  0x48(%rsp),%xmm0
  mulsd  D314(%rip),%xmm7
  mulsd  %xmm7,%xmm0
  movsd  %xmm0,0x48(%rsp)
L178:
  movsd  0x18(%rsp),%xmm0
  addsd  D548(%rip),%xmm0
  call   <log@plt>
  movapd %xmm0,%xmm2
  movsd  0xa8(%rsp),%xmm3
  mulsd  0x70(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm6
  mulsd  %xmm6,%xmm3
  movsd  0x8(%rsp),%xmm7
  movapd %xmm7,%xmm1
  addsd  D76(%rip),%xmm1
  movsd  0x38(%rsp),%xmm0
  movsd  0x28(%rsp),%xmm5
  mulsd  %xmm5,%xmm0
  addsd  %xmm1,%xmm0
  movsd  D494(%rip),%xmm4
  movsd  0x68(%rsp),%xmm1
  addsd  %xmm4,%xmm1
  mulsd  %xmm5,%xmm1
  mulsd  %xmm2,%xmm1
  movsd  D136(%rip),%xmm5
  addsd  %xmm5,%xmm1
  mulsd  %xmm4,%xmm7
  subsd  %xmm7,%xmm1
  divsd  %xmm1,%xmm0
  addsd  %xmm5,%xmm0
  mulsd  0x50(%rsp),%xmm0
  mulsd  0x40(%rsp),%xmm0
  addsd  %xmm6,%xmm0
  mulsd  0x90(%rsp),%xmm4
  mulsd  %xmm4,%xmm0
  divsd  %xmm0,%xmm3
  movapd %xmm3,%xmm0
  call   <log@plt>
  movsd  0x48(%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L312
  movapd %xmm0,%xmm1
  jmp    L312
L9:
  pxor   %xmm1,%xmm1
  movsd  D368(%rip),%xmm0
  comisd 0xc0(%rsp),%xmm0
  jae    L334
  movsd  0x98(%rsp),%xmm4
  ucomisd D136(%rip),%xmm4
  jp     L281
  jne    L281
  mov    D8(%rip),%rbx
  movsd  D113(%rip),%xmm0
  jmp    L182
L281:
  mov    D383(%rip),%rbx
  movsd  D437(%rip),%xmm0
L182:
  movsd  0xc0(%rsp),%xmm6
  mulsd  %xmm6,%xmm0
  movsd  0x90(%rsp),%xmm5
  mulsd  %xmm5,%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D136(%rip),%xmm0
  movapd %xmm6,%xmm1
  divsd  %xmm0,%xmm1
  movapd %xmm1,%xmm0
  call   <log@plt>
  mulsd  D333(%rip),%xmm0
  subsd  D56(%rip),%xmm0
  pxor   %xmm1,%xmm1
  movsd  %xmm0,0x8(%rsp)
  comisd %xmm0,%xmm1
  jb     L18
L334:
  movsd  0x98(%rsp),%xmm6
  movapd %xmm6,%xmm0
  mulsd  D392(%rip),%xmm0
  addsd  %xmm6,%xmm1
  mulsd  %xmm1,%xmm0
  movsd  0xc8(%rsp),%xmm3
  movapd %xmm3,%xmm1
  movsd  0x10(%rsp),%xmm2
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm7
  mulsd  %xmm7,%xmm0
  mulsd  %xmm2,%xmm3
  divsd  %xmm3,%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm0,%xmm1
  jbe    L108
  pxor   %xmm0,%xmm0
  jmp    L108
L18:
  movq   %rbx,%xmm7
  movsd  0xc0(%rsp),%xmm6
  mulsd  %xmm6,%xmm7
  movapd %xmm7,%xmm1
  mulsd  0x90(%rsp),%xmm1
  addsd  D136(%rip),%xmm1
  divsd  %xmm1,%xmm6
  movapd %xmm6,%xmm0
  call   <log@plt>
  mulsd  D473(%rip),%xmm0
  subsd  D217(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  divsd  %xmm0,%xmm1
  jmp    L334
L297:
  pxor   %xmm0,%xmm0
L108:
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L51
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L231:
  pxor   %xmm0,%xmm0
  jmp    L108
L234:
  pxor   %xmm0,%xmm0
  jmp    L108
L3:
  pxor   %xmm0,%xmm0
  jmp    L108
L51:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D317
data_type: byte[8]
name: parse_data
arguments: data_tag: D136
data_type: f64
name: parse_data
arguments: data_tag: D440
data_type: byte[8]
name: parse_data
arguments: data_tag: D201
data_type: f64
name: parse_data
arguments: data_tag: D34
data_type: byte[8]
name: parse_data
arguments: data_tag: D314
data_type: f64
name: parse_data
arguments: data_tag: D408
data_type: byte[8]
name: parse_data
arguments: data_tag: D551
data_type: f64
name: parse_data
arguments: data_tag: D12
data_type: f64
name: parse_data
arguments: data_tag: D24
data_type: f64
name: parse_data
arguments: data_tag: D548
data_type: f64
name: parse_data
arguments: data_tag: D494
data_type: f64
name: parse_data
arguments: data_tag: D41
data_type: byte[16]
name: parse_data
arguments: data_tag: D390
data_type: f64
name: parse_data
arguments: data_tag: D76
data_type: f64
name: parse_data
arguments: data_tag: D277
data_type: byte[8]
name: parse_data
arguments: data_tag: D368
data_type: f64
name: parse_data
arguments: data_tag: D8
data_type: byte[8]
name: parse_data
arguments: data_tag: D113
data_type: byte[8]
name: parse_data
arguments: data_tag: D383
data_type: byte[8]
name: parse_data
arguments: data_tag: D437
data_type: byte[8]
name: parse_data
arguments: data_tag: D333
data_type: f64
name: parse_data
arguments: data_tag: D56
data_type: f64
name: parse_data
arguments: data_tag: D392
data_type: byte[8]
name: parse_data
arguments: data_tag: D473
data_type: f64
name: parse_data
arguments: data_tag: D217
data_type: f64

tool: {"D317": [0x55,0x55,0x55,0x55,0x55,0x55,0xd5,0x3f]}

tool: D136: 1

tool: {"D440": [0xd6,0xb5,0xa9,0xcd,0x91,0xbe,0x60,0x3f]}

tool: D201: 6

tool: {"D34": [0xd6,0xb5,0xa9,0xcd,0x91,0xbe,0x40,0x3f]}

tool: D314: 0.5

tool: {"D408": [0x3f,0xf3,0x32,0xbf,0x5b,0x9b,0x5b,0x3f]}

tool: D551: 2.25

tool: D12: 0

tool: D24: 2

tool: D548: 3

tool: D494: 1.5

tool: {"D41": [0x00,0x00,0x00,0x00,0x00,0x40,0x8f,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: D390: 5

tool: D76: 4

tool: {"D277": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: D368: 35

tool: {"D8": [0x54,0xe4,0x10,0x71,0x73,0x2a,0x09,0x3f]}

tool: {"D113": [0xa2,0x26,0xfa,0x7c,0x94,0x11,0x07,0x3f]}

tool: {"D383": [0x72,0x51,0x2d,0x22,0x8a,0xc9,0x0b,0x3f]}

tool: {"D437": [0x84,0xb9,0xdd,0xcb,0x7d,0x72,0xf4,0x3e]}

tool: D333: 0.073

tool: D56: 0.26

tool: {"D392": [0x58,0x1f,0x43,0x0b,0xa8,0xd1,0xed,0x38]}

tool: D473: 0.058

tool: D217: 0.14

assistant: ```c
double dcs_pair_production_KKP(double Z, double A_, double mass, double K, double q) {
  if ((Z <= 0) || (A_ <= 0) || (mass <= 0) || (K <= 0) || (q <= 0))
    return 0.;
  double qmin, qmax;
  dcs_pair_production_range(Z, mass, K, &qmin, &qmax);
  if ((q < qmin) || (q > qmax))
    return 0.;
  const double nu = q / (K + mass);
  const double r = mass / 0.510998910E-03;
  const double beta = 0.5 * nu * nu / (1. - nu);
  const double xi_factor = 0.5 * r * r * beta;
  const double A = radiation_logarithm(Z);
  const double Z13 = pow(Z, 1. / 3.);
  const double AZ13 = A / Z13;
  const double sqrte = 1.6487212707;
  const double cL = 2. * sqrte * 0.510998910E-03 * AZ13;
  const double cLe = 2.25 * Z13 * Z13 / (r * r);
  const double gamma = 1. + K / mass;
  const double x0 = 4. * 0.510998910E-03 / q;
  const double x1 = 6. / (gamma * (gamma - q / mass));
  const double argmin = (x0 + 2. * (1. - x0) * x1) / (1. + (1. - x1) * sqrt(1. - x0));
  if ((argmin >= 1.) || (argmin <= 0.))
    return 0.;
  const double tmin = log(argmin);
  const double *xGQ, *wGQ;
  math_gauss_quad_coefficients(12, &xGQ, &wGQ);
  double I = 0.;
  int i;
  for (i = 0; i < 12; i++) {
    const double eps = exp(xGQ[i] * tmin);
    const double rho = 1. - eps;
    const double rho2 = rho * rho;
    const double rho21 = eps * (2. - eps);
    const double xi = xi_factor * rho21;
    const double xi_i = 1. / xi;
    double Be;
    if (xi >= 1E+03)
      Be = 0.5 * xi_i * ((3 - rho2) + 2. * beta * (1. + rho2));
    else
      Be = ((2. + rho2) * (1. + beta) + xi * (3. + rho2)) * log(1. + xi_i) + (rho21 - beta) / (1. + xi) - 3. - rho2;
    const double Ye = (5. - rho2 + 4. * beta * (1. + rho2)) / (2. * (1. + 3. * beta) * log(3. + xi_i) - rho2 - 2. * beta * (2. - rho2));
    const double xe = (1. + xi) * (1. + Ye);
    const double cLi = cL / rho21;
    const double Le = log(AZ13 * sqrt(xe) * q / (q + cLi * xe)) - 0.5 * log(1. + cLe * xe);
    double Phi_e = Be * Le;
    if (Phi_e < 0.)
      Phi_e = 0.;
    double Bmu;
    if (xi <= 1E-03)
      Bmu = 0.5 * xi * (5. - rho2 + beta * (3. + rho2));
    else
      Bmu = ((1. + rho2) * (1. + 1.5 * beta) - xi_i * (1. + 2. * beta) * rho21) * log(1. + xi) + xi * (rho21 - beta) / (1. + xi) + (1. + 2. * beta) * rho21;
    const double Ymu = (4. + rho2 + 3. * beta * (1. + rho2)) / ((1. + rho2) * (1.5 + 2. * beta) * log(3. + xi) + 1. - 1.5 * rho2);
    const double xmu = (1. + xi) * (1. + Ymu);
    const double Lmu = log(r * AZ13 * q / (1.5 * Z13 * (q + cLi * xmu)));
    double Phi_mu = Bmu * Lmu;
    if (Phi_mu < 0.)
      Phi_mu = 0.;
    I -= (Phi_e + Phi_mu / (r * r)) * (1. - rho) * wGQ[i] * tmin;
  }
  double zeta;
  if (gamma <= 35.)
    zeta = 0.;
  else {
    double gamma1, gamma2;
    if (Z == 1.) {
      gamma1 = 4.4E-05;
      gamma2 = 4.8E-05;
    } else {
      gamma1 = 1.95E-05;
      gamma2 = 5.30E-05;
    }
    zeta = 0.073 * log(gamma / (1. + gamma1 * gamma * Z13 * Z13)) - 0.26;
    if (zeta <= 0.)
      zeta = 0.;
    else {
      zeta /= 0.058 * log(gamma / (1. + gamma2 * gamma * Z13)) - 0.14;
    }
  }
  const double E = K + mass;
  const double dcs = 1.794664E-34 * Z * (Z + zeta) * (E - q) * I / (q * E);
  return (dcs < 0.) ? 0. : dcs;
}
```