user: 这段汇编代码用C语言表示是什么样的：

```asm
<dd_cos>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  sub    $0x108,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  call   <dd_is_zero@plt>
  cmp    $0x1,%eax
  jne    L101
  movq   D9(%rip),%xmm0
  movups %xmm0,(%r12)
L79:
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L122
  add    $0x108,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L101:
  lea    0x10(%rsp),%r13
  lea    0x4(%rsp),%rcx
  mov    %rsp,%rdx
  mov    %rbp,%rdi
  lea    0xc(%rsp),%r9
  lea    0x8(%rsp),%r8
  mov    %r13,%rsi
  call   <dd_reduce_modulo_2pi@plt>
  cmpl   $0x1,0xc(%rsp)
  je     L137
  mov    0x4(%rsp),%edi
  test   %edi,%edi
  jne    L151
  mov    (%rsp),%eax
  mov    %r12,%rsi
  mov    %r13,%rdi
  test   %eax,%eax
  je     L55
  cmp    $0x1,%eax
  je     L66
  cmp    $0xffffffff,%eax
  je     L42
  call   <dd_cos_taylor@plt>
  mov    %r12,%rdi
  call   <dd_minus@plt>
  jmp    L79
  nopw   0x0(%rax,%rax,1)
L55:
  call   <dd_cos_taylor@plt>
  jmp    L79
  nopw   0x0(%rax,%rax,1)
L137:
  movq   D12(%rip),%xmm0
  movups %xmm0,(%r12)
  jmp    L79
  nopw   0x0(%rax,%rax,1)
L151:
  lea    0xd0(%rsp),%rcx
  lea    0xb0(%rsp),%rdx
  lea    0x90(%rsp),%rsi
  lea    0x70(%rsp),%rdi
  call   <sincostables@plt>
  mov    0x8(%rsp),%eax
  lea    0x60(%rsp),%rbp
  mov    %r13,%rdi
  lea    0x50(%rsp),%r14
  mov    %rbp,%rdx
  sub    $0x1,%eax
  mov    %r14,%rsi
  cltq
  movsd  0xb0(%rsp,%rax,8),%xmm0
  movhpd 0xd0(%rsp,%rax,8),%xmm0
  movaps %xmm0,0x20(%rsp)
  movsd  0x70(%rsp,%rax,8),%xmm0
  movhpd 0x90(%rsp,%rax,8),%xmm0
  movaps %xmm0,0x30(%rsp)
  call   <dd_sincos_taylor@plt>
  mov    (%rsp),%eax
  test   %eax,%eax
  je     L111
  cmp    $0x1,%eax
  je     L139
  cmp    $0xffffffff,%eax
  je     L147
  lea    0x30(%rsp),%rdi
  mov    %r12,%rdx
  lea    0x40(%rsp),%r13
  mov    %r14,%rsi
  call   <dd_mul@plt>
  lea    0x20(%rsp),%rdi
  mov    %r13,%rdx
  mov    %rbp,%rsi
  call   <dd_mul@plt>
  mov    0x4(%rsp),%eax
  test   %eax,%eax
  jle    L23
L212:
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <dd_dec@plt>
  jmp    L79
  nopl   0x0(%rax,%rax,1)
L147:
  lea    0x20(%rsp),%rdi
  mov    %r12,%rdx
  lea    0x40(%rsp),%r13
  mov    %r14,%rsi
  call   <dd_mul@plt>
  mov    %r13,%rdx
  lea    0x30(%rsp),%rdi
  mov    %rbp,%rsi
  call   <dd_mul@plt>
  mov    0x4(%rsp),%edx
  test   %edx,%edx
  jle    L212
L192:
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <dd_inc@plt>
  jmp    L79
  nopl   (%rax)
L42:
  call   <dd_sin_taylor@plt>
  jmp    L79
  nopw   0x0(%rax,%rax,1)
L111:
  lea    0x20(%rsp),%rdi
  mov    %r12,%rdx
  lea    0x40(%rsp),%r13
  mov    %rbp,%rsi
  call   <dd_mul@plt>
  mov    %r14,%rsi
  lea    0x30(%rsp),%rdi
  mov    %r13,%rdx
  call   <dd_mul@plt>
  mov    0x4(%rsp),%esi
  test   %esi,%esi
  jg     L212
  jmp    L192
  nopl   0x0(%rax,%rax,1)
L66:
  call   <dd_sin_taylor@plt>
  mov    %r12,%rdi
  call   <dd_minus@plt>
  jmp    L79
  nopw   0x0(%rax,%rax,1)
L139:
  lea    0x30(%rsp),%rdi
  mov    %r12,%rdx
  lea    0x40(%rsp),%r13
  mov    %rbp,%rsi
  call   <dd_mul@plt>
  lea    0x20(%rsp),%rdi
  mov    %r13,%rdx
  mov    %r14,%rsi
  call   <dd_mul@plt>
  mov    0x4(%rsp),%ecx
  test   %ecx,%ecx
  jle    L212
L23:
  mov    %r12,%rdi
  call   <dd_minus@plt>
  jmp    L212
L122:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D9
data_type: f64
name: extract_symbolic_data
arguments: data_tag: D12
data_type: f32[2]

tool: D9: 1

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

assistant: ```c
void dd_cos(const double *a, double *cos_a) {
  if (dd_is_zero(a) == 1) {
    cos_a[0] = 1.0;
    cos_a[1] = 0.0;
  } else {
    double t[2];
    int j, k, abs_k, fail;
    dd_reduce_modulo_2pi(a, t, &j, &k, &abs_k, &fail);
    if (fail == 1) {
      cos_a[0] = -2.0;
      cos_a[1] = 0.0;
    } else if (k == 0) {
      if (j == 0) {
        dd_cos_taylor(t, cos_a);
      } else if (j == 1) {
        dd_sin_taylor(t, cos_a);
        dd_minus(cos_a);
      } else if (j == -1) {
        dd_sin_taylor(t, cos_a);
      } else {
        dd_cos_taylor(t, cos_a);
        dd_minus(cos_a);
      }
    } else {
      double u[2], v[2], w[2], t_sin[2], t_cos[2];
      double sintabhi[4], sintablo[4];
      double costabhi[4], costablo[4];
      sincostables(sintabhi, sintablo, costabhi, costablo);
      u[0] = costabhi[abs_k - 1];
      u[1] = costablo[abs_k - 1];
      v[0] = sintabhi[abs_k - 1];
      v[1] = sintablo[abs_k - 1];
      dd_sincos_taylor(t, t_sin, t_cos);
      if (j == 0) {
        dd_mul(u, t_cos, cos_a);
        dd_mul(v, t_sin, w);
        if (k > 0)
          dd_dec(cos_a, w);
        else
          dd_inc(cos_a, w);
      } else if (j == 1) {
        dd_mul(v, t_cos, cos_a);
        dd_mul(u, t_sin, w);
        if (k > 0) {
          dd_minus(cos_a);
          dd_dec(cos_a, w);
        } else {
          dd_dec(cos_a, w);
        }
      } else if (j == -1) {
        dd_mul(u, t_sin, cos_a);
        dd_mul(v, t_cos, w);
        if (k > 0)
          dd_inc(cos_a, w);
        else
          dd_dec(cos_a, w);
      } else {
        dd_mul(v, t_sin, cos_a);
        dd_mul(u, t_cos, w);
        if (k > 0) {
          dd_dec(cos_a, w);
        } else {
          dd_minus(cos_a);
          dd_dec(cos_a, w);
        }
      }
    }
  }
}
```