user: 请从给定的汇编指令推导出C源代码：

```asm
<dd_cos_taylor>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x158,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  call   <dd_is_zero@plt>
  cmp    $0x1,%eax
  jne    L11
  mov    D209(%rip),%rax
  mov    %rax,(%r12)
  movq   $0x0,0x8(%r12)
L2:
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L33
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L11:
  mov    D223(%rip),%rax
  mov    %rax,0x50(%rsp)
  mov    D54(%rip),%rax
  mov    %rax,0x58(%rsp)
  mov    D242(%rip),%r14
  mov    %r14,0x60(%rsp)
  mov    D258(%rip),%r13
  mov    %r13,0x68(%rsp)
  mov    D303(%rip),%rax
  mov    %rax,0x70(%rsp)
  mov    D57(%rip),%rax
  mov    %rax,0x78(%rsp)
  mov    D139(%rip),%rax
  mov    %rax,0x80(%rsp)
  mov    D104(%rip),%rax
  mov    %rax,0x88(%rsp)
  mov    D272(%rip),%rax
  mov    %rax,0x90(%rsp)
  mov    D344(%rip),%rax
  mov    %rax,0x98(%rsp)
  mov    D234(%rip),%rax
  mov    %rax,0xa0(%rsp)
  mov    D76(%rip),%rax
  mov    %rax,0xa8(%rsp)
  mov    D253(%rip),%rax
  mov    %rax,0xb0(%rsp)
  mov    D36(%rip),%rax
  mov    %rax,0xb8(%rsp)
  mov    D72(%rip),%rax
  mov    %rax,0xc0(%rsp)
  mov    D278(%rip),%rax
  mov    %rax,0xc8(%rsp)
  mov    D145(%rip),%rax
  mov    %rax,0xd0(%rsp)
  mov    D262(%rip),%rax
  mov    %rax,0xd8(%rsp)
  mov    D67(%rip),%rax
  mov    %rax,0xe0(%rsp)
  mov    D169(%rip),%rax
  mov    %rax,0xe8(%rsp)
  mov    D197(%rip),%rax
  mov    %rax,0xf0(%rsp)
  mov    D64(%rip),%rax
  mov    %rax,0xf8(%rsp)
  mov    D1(%rip),%rax
  mov    %rax,0x100(%rsp)
  mov    D245(%rip),%rax
  mov    %rax,0x108(%rsp)
  mov    D165(%rip),%rax
  mov    %rax,0x110(%rsp)
  mov    D31(%rip),%rax
  mov    %rax,0x118(%rsp)
  mov    D68(%rip),%rax
  mov    %rax,0x120(%rsp)
  mov    D180(%rip),%rax
  mov    %rax,0x128(%rsp)
  mov    D211(%rip),%rax
  mov    %rax,0x130(%rsp)
  mov    D146(%rip),%rax
  mov    %rax,0x138(%rsp)
  mov    %rsp,%rbp
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <dd_sqr@plt>
  mov    %rbp,%rdi
  call   <dd_minus@plt>
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <dd_copy@plt>
  lea    0x20(%rsp),%r15
  mov    %r15,%rsi
  movsd  D252(%rip),%xmm0
  mov    %rbx,%rdi
  call   <dd_mul_pwr2@plt>
  movsd  D209(%rip),%xmm0
  mov    %r15,%rdi
  call   <dd_inc_d@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <dd_mlt@plt>
  mov    %r14,0x40(%rsp)
  mov    %r13,0x48(%rsp)
  lea    0x30(%rsp),%rbp
  lea    0x40(%rsp),%rsi
  mov    %rbp,%rdx
  mov    %rbx,%rdi
  call   <dd_mul@plt>
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <dd_inc@plt>
  lea    0x80(%rsp),%rbx
  lea    0x160(%rsp),%r14
  mov    %rsp,%r13
  lea    0x10(%rsp),%rbp
L27:
  movsd  0x30(%rsp),%xmm0
  andpd  D343(%rip),%xmm0
  comisd D144(%rip),%xmm0
  jbe    L49
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <dd_mlt@plt>
  movsd  (%rbx),%xmm0
  movsd  %xmm0,0x40(%rsp)
  movsd  0x8(%rbx),%xmm0
  movsd  %xmm0,0x48(%rsp)
  lea    0x30(%rsp),%r15
  lea    0x40(%rsp),%rsi
  mov    %r15,%rdx
  mov    %rbp,%rdi
  call   <dd_mul@plt>
  lea    0x20(%rsp),%rdi
  mov    %r15,%rsi
  call   <dd_inc@plt>
  add    $0x20,%rbx
  cmp    %r14,%rbx
  jne    L27
L49:
  lea    0x20(%rsp),%rdi
  mov    %r12,%rsi
  call   <dd_copy@plt>
  jmp    L2
L33:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D209
data_type: f64
name: parse_data
arguments: tag: D223
data_type: byte[8]
name: parse_data
arguments: tag: D54
data_type: byte[8]
name: parse_data
arguments: tag: D242
data_type: byte[8]
name: parse_data
arguments: tag: D258
data_type: byte[8]
name: parse_data
arguments: tag: D303
data_type: byte[8]
name: parse_data
arguments: tag: D57
data_type: byte[8]
name: parse_data
arguments: tag: D139
data_type: byte[8]
name: parse_data
arguments: tag: D104
data_type: byte[8]
name: parse_data
arguments: tag: D272
data_type: byte[8]
name: parse_data
arguments: tag: D344
data_type: byte[8]
name: parse_data
arguments: tag: D234
data_type: byte[8]
name: parse_data
arguments: tag: D76
data_type: byte[8]
name: parse_data
arguments: tag: D253
data_type: byte[8]
name: parse_data
arguments: tag: D36
data_type: byte[8]
name: parse_data
arguments: tag: D72
data_type: byte[8]
name: parse_data
arguments: tag: D278
data_type: byte[8]
name: parse_data
arguments: tag: D145
data_type: byte[8]
name: parse_data
arguments: tag: D262
data_type: byte[8]
name: parse_data
arguments: tag: D67
data_type: byte[8]
name: parse_data
arguments: tag: D169
data_type: byte[8]
name: parse_data
arguments: tag: D197
data_type: byte[8]
name: parse_data
arguments: tag: D64
data_type: byte[8]
name: parse_data
arguments: tag: D1
data_type: byte[8]
name: parse_data
arguments: tag: D245
data_type: byte[8]
name: parse_data
arguments: tag: D165
data_type: byte[8]
name: parse_data
arguments: tag: D31
data_type: byte[8]
name: parse_data
arguments: tag: D68
data_type: byte[8]
name: parse_data
arguments: tag: D180
data_type: byte[8]
name: parse_data
arguments: tag: D211
data_type: byte[8]
name: parse_data
arguments: tag: D146
data_type: byte[8]
name: parse_data
arguments: tag: D252
data_type: f64
name: parse_data
arguments: tag: D343
data_type: qword[2]
name: parse_data
arguments: tag: D144
data_type: byte[16]

tool: D209: 1

tool: {"D223": [0x55,0x55,0x55,0x55,0x55,0x55,0xc5,0x3f]}

tool: {"D54": [0x55,0x55,0x55,0x55,0x55,0x55,0x65,0x3c]}

tool: {"D242": [0x55,0x55,0x55,0x55,0x55,0x55,0xa5,0x3f]}

tool: {"D258": [0x55,0x55,0x55,0x55,0x55,0x55,0x45,0x3c]}

tool: {"D303": [0x11,0x11,0x11,0x11,0x11,0x11,0x81,0x3f]}

tool: {"D57": [0x11,0x11,0x11,0x11,0x11,0x11,0x01,0x3c]}

tool: {"D139": [0x17,0x6c,0xc1,0x16,0x6c,0xc1,0x56,0x3f]}

tool: {"D104": [0x9f,0xf4,0x49,0x9f,0xf4,0x49,0xef,0xbb]}

tool: {"D272": [0x1a,0xa0,0x01,0x1a,0xa0,0x01,0x2a,0x3f]}

tool: {"D344": [0x1a,0xa0,0x01,0x1a,0xa0,0x01,0x6a,0x3b]}

tool: {"D234": [0x1a,0xa0,0x01,0x1a,0xa0,0x01,0xfa,0x3e]}

tool: {"D76": [0x1a,0xa0,0x01,0x1a,0xa0,0x01,0x3a,0x3b]}

tool: {"D253": [0x34,0xc7,0x56,0xa5,0xe3,0x1d,0xc7,0x3e]}

tool: {"D36": [0x00,0x6c,0xdc,0x8d,0x4f,0x15,0x6c,0xbb]}

tool: {"D72": [0x5c,0x9f,0x78,0xb7,0x4f,0x7e,0x92,0x3e]}

tool: {"D278": [0x9a,0xa9,0x4f,0x5b,0xc0,0xbb,0x3c,0x3b]}

tool: {"D145": [0xe4,0x44,0xf5,0x67,0x45,0xe6,0x5a,0x3e]}

tool: {"D262": [0x09,0xf2,0xd1,0x06,0x2e,0x06,0xfc,0xba]}

tool: {"D67": [0x98,0xd8,0xf8,0xef,0xd8,0xee,0x21,0x3e]}

tool: {"D169": [0x06,0x4c,0xe1,0x59,0xc9,0xae,0xc2,0xba]}

tool: {"D197": [0x09,0x6d,0xa8,0x13,0x46,0x12,0xe6,0x3d]}

tool: {"D64": [0xbe,0x8e,0x74,0xcc,0xe0,0x28,0x8f,0x3a]}

tool: {"D1": [0x9d,0x7c,0xc0,0xa8,0x74,0x39,0xa9,0x3d]}

tool: {"D245": [0x1f,0xfd,0x2e,0x8a,0x6f,0x5d,0x30,0x3a]}

tool: {"D165": [0x1f,0xb8,0x33,0xe7,0xf3,0xe7,0x6a,0x3d]}

tool: {"D31": [0xcb,0xe8,0x0e,0x6b,0x65,0xd8,0xe1,0x39]}

tool: {"D68": [0x1f,0xb8,0x33,0xe7,0xf3,0xe7,0x2a,0x3d]}

tool: {"D180": [0xcb,0xe8,0x0e,0x6b,0x65,0xd8,0xa1,0x39]}

tool: {"D211": [0x4a,0xad,0x30,0x70,0xc7,0x52,0xe9,0x3c]}

tool: {"D146": [0x6c,0xdc,0x5d,0x46,0x81,0xc9,0x8a,0x39]}

tool: D252: 0.5

tool: {"D343": [0x7fffffffffffffff,0x0000000000000000]}

tool: {"D144": [0xf9,0xff,0xff,0xff,0xff,0xff,0x5f,0x39,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
void dd_cos_taylor(const double *a, double *b) {
  if (dd_is_zero(a) == 1) {
    b[0] = 1.0;
    b[1] = 0.0;
  } else {
    const int n_inv_fact = 15;
    double i_fac[30];
    i_fac[0] = 1.66666666666666657e-01;
    i_fac[1] = 9.25185853854297066e-18;
    i_fac[2] = 4.16666666666666644e-02;
    i_fac[3] = 2.31296463463574266e-18;
    i_fac[4] = 8.33333333333333322e-03;
    i_fac[5] = 1.15648231731787138e-19;
    i_fac[6] = 1.38888888888888894e-03;
    i_fac[7] = -5.30054395437357706e-20;
    i_fac[8] = 1.98412698412698413e-04;
    i_fac[9] = 1.72095582934207053e-22;
    i_fac[10] = 2.48015873015873016e-05;
    i_fac[11] = 2.15119478667758816e-23;
    i_fac[12] = 2.75573192239858925e-06;
    i_fac[13] = -1.85839327404647208e-22;
    i_fac[14] = 2.75573192239858883e-07;
    i_fac[15] = 2.37677146222502973e-23;
    i_fac[16] = 2.50521083854417202e-08;
    i_fac[17] = -1.44881407093591197e-24;
    i_fac[18] = 2.08767569878681002e-09;
    i_fac[19] = -1.20734505911325997e-25;
    i_fac[20] = 1.60590438368216133e-10;
    i_fac[21] = 1.25852945887520981e-26;
    i_fac[22] = 1.14707455977297245e-11;
    i_fac[23] = 2.06555127528307454e-28;
    i_fac[24] = 7.64716373181981641e-13;
    i_fac[25] = 7.03872877733453001e-30;
    i_fac[26] = 4.77947733238738525e-14;
    i_fac[27] = 4.39920548583408126e-31;
    i_fac[28] = 2.81145725434552060e-15;
    i_fac[29] = 1.65088427308614326e-31;
    const double dd_eps = 4.93038065763132e-32;
    const double thresh = 0.5 * dd_eps;
    double x[2], r[2], s[2], t[2], inv_fac[2];
    int i = 1;
    dd_sqr(a, x);
    dd_minus(x);
    dd_copy(x, r);
    dd_mul_pwr2(r, 0.5, s);
    dd_inc_d(s, 1.0);
    do {
      dd_mlt(r, x);
      inv_fac[0] = i_fac[i + 1];
      inv_fac[1] = i_fac[i + 2];
      dd_mul(r, inv_fac, t);
      dd_inc(s, t);
      i += 4;
    } while ((i < 2 * n_inv_fact) && (fabs(t[0]) > thresh));
    dd_copy(s, b);
  }
}
```