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

```asm
<cdflib_dt1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x60(%rbp),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <cdflib_dinvnr@plt>
  mov    %eax,%edi
  call   <fabs@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x20(%rbp)
  movsd  -0x20(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D19(%rip),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L1
L21:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  lea    D57(%rip),%rax
  lea    (%rdx,%rax,1),%rsi
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  lea    D17(%rip),%rdx
  lea    (%rax,%rdx,1),%rcx
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    %rcx,%rdi
  call   <cdflib_eval_pol@plt>
  movsd  -0x20(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x68(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  -0x38(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  lea    D35(%rip),%rax
  movsd  (%rdx,%rax,1),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  -0x10(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  addl   $0x1,-0x44(%rbp)
L1:
  cmpl   $0x3,-0x44(%rbp)
  jle    L21
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd D28(%rip),%xmm0
  setae  %al
  xor    $0x1,%eax
  test   %al,%al
  jne    L4
  movsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  jmp    L13
L4:
  nop
  movsd  -0x30(%rbp),%xmm0
  movq   D31(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
L13:
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L34
  call   <__stack_chk_fail@plt>
L34:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D19
datatype: f64
name: retrieve_data
arguments: data_label: D57
datatype: string
name: retrieve_data
arguments: data_label: D17
datatype: f64
name: retrieve_data
arguments: data_label: D35
datatype: f64
name: retrieve_data
arguments: data_label: D28
datatype: f64[2]
name: retrieve_data
arguments: data_label: D31
datatype: f32[2]

tool: D19: 1

tool: D57: 

tool: D17: 1

tool: D35: 4

tool: {"D28": [0.5,-0.0]}

tool: {"D31": [0.0,-0.0]}

assistant: ```c
double cdflib_dt1(double *p, double *q, double *df) {
  static const double coef[4][5] = {{1.0e0, 1.0e0, 0.0e0, 0.0e0, 0.0e0}, {3.0e0, 16.0e0, 5.0e0, 0.0e0, 0.0e0}, {-15.0e0, 17.0e0, 19.0e0, 3.0e0, 0.0e0}, {-945.0e0, -1920.0e0, 1482.0e0, 776.0e0, 79.0e0}};
  static const double denom[4] = {4.0e0, 96.0e0, 384.0e0, 92160.0e0};
  static const int ideg[4] = {2, 3, 4, 5};
  double dt1, denpow, sum, term, x, xp, xx;
  int i;
  x = fabs(cdflib_dinvnr(p, q));
  xx = x * x;
  sum = x;
  denpow = 1.0e0;
  for (i = 0; i < 4; i++) {
    term = cdflib_eval_pol(&coef[i][0], &ideg[i], &xx) * x;
    denpow *= *df;
    sum += (term / (denpow * denom[i]));
  }
  if (!(*p >= 0.5e0)) {
    goto S20;
  }
  xp = sum;
  goto S30;
S20:
  xp = -sum;
S30:
  dt1 = xp;
  return dt1;
}
```