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

```asm
<math>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  sub    $0x28,%rsp
  movsd  %xmm0,(%rsp)
  call   <acos@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <acosh@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <asin@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <asinh@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <atan@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <atanh@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <atan2@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <cbrt@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <ceil@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <copysign@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <cos@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <cosh@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <erf@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <erfc@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <exp@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <exp2@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <expm1@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <fabs@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <fdim@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <floor@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm0
  call   <fma@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <fmax@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <fmin@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <fmod@plt>
  movsd  (%rsp),%xmm1
  mov    %r12,%rdi
  movapd %xmm1,%xmm0
  call   <frexp@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <hypot@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <ilogb@plt>
  movsd  (%rsp),%xmm1
  mov    (%r12),%edi
  movapd %xmm1,%xmm0
  call   <ldexp@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <lgamma@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <llrint@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <llround@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <log@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <log10@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <log1p@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <log2@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <logb@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <lrint@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <lround@plt>
  movsd  (%rsp),%xmm1
  mov    %rbp,%rdi
  movapd %xmm1,%xmm0
  call   <modf@plt>
  lea    D6(%rip),%rdi
  call   <nan@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <nearbyint@plt>
  movsd  (%rsp),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x18(%rsp)
  call   <nextafter@plt>
  flds   0x553(%rip)        # 3004 <_fini+0x434>
  fstpt  (%rsp)
  mov    0x8(%rsp),%edx
  mov    (%rsp),%rax
  push   %rdx
  push   %rax
  movsd  0x28(%rsp),%xmm1
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x10(%rsp)
  call   <nexttoward@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <remainder@plt>
  movsd  0x10(%rsp),%xmm1
  mov    %r12,%rdi
  movapd %xmm1,%xmm0
  call   <remquo@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <rint@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <round@plt>
  movsd  0x10(%rsp),%xmm1
  mov    $0x64,%edi
  movapd %xmm1,%xmm0
  call   <scalbln@plt>
  movsd  0x10(%rsp),%xmm1
  mov    $0x64,%edi
  movapd %xmm1,%xmm0
  call   <scalbn@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <sin@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <sinh@plt>
  movsd  0x10(%rsp),%xmm1
  mov    %rbp,%rsi
  mov    %rbp,%rdi
  movapd %xmm1,%xmm0
  call   <sincos@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <sqrt@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <tan@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <tanh@plt>
  movsd  0x10(%rsp),%xmm1
  movapd %xmm1,%xmm0
  call   <tgamma@plt>
  movsd  0x10(%rsp),%xmm1
  add    $0x38,%rsp
  pop    %rbp
  pop    %r12
  movapd %xmm1,%xmm0
  jmp    2630 <trunc@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D6
type_guessed: string

tool: 

assistant: ```c
void math(double d, int *ex, double *dp) {
  acos(d);
  acosh(d);
  asin(d);
  asinh(d);
  atan(d);
  atanh(d);
  atan2(d, d);
  cbrt(d);
  ceil(d);
  copysign(d, d);
  cos(d);
  cosh(d);
  erf(d);
  erfc(d);
  exp(d);
  exp2(d);
  expm1(d);
  fabs(d);
  fdim(d, d);
  floor(d);
  fma(d, d, d);
  fmax(d, d);
  fmin(d, d);
  fmod(d, d);
  frexp(d, ex);
  hypot(d, d);
  ilogb(d);
  ldexp(d, *ex);
  lgamma(d);
  llrint(d);
  llround(d);
  log(d);
  log10(d);
  log1p(d);
  log2(d);
  logb(d);
  lrint(d);
  lround(d);
  modf(d, dp);
  nan("");
  nearbyint(d);
  nextafter(d, d);
  nexttoward(d, 20.0L);
  pow(d, d);
  remainder(d, d);
  remquo(d, d, ex);
  rint(d);
  round(d);
  scalbln(d, 100L);
  scalbn(d, 100);
  sin(d);
  sinh(d);
  sincos(d, dp, dp);
  sqrt(d);
  tan(d);
  tanh(d);
  tgamma(d);
  trunc(d);
}
```