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

```asm
<__kernel_tan>:
  endbr64
  movapd %xmm0,%xmm6
  mov    %edi,%edx
  movq   %xmm0,%rax
  sar    $0x20,%rax
  mov    %eax,%ecx
  and    $0x7fffffff,%ecx
  cmp    $0x3e2fffff,%ecx
  jg     L11
  cvttsd2si %xmm0,%esi
  test   %esi,%esi
  jne    L65
  movq   %xmm0,%rax
  or     %ecx,%eax
  lea    0x1(%rdi),%ecx
  or     %ecx,%eax
  je     L55
  cmp    $0x1,%edi
  je     L70
  movapd %xmm1,%xmm0
  addsd  %xmm6,%xmm0
  movq   %xmm0,%rax
  movabs $0xffffffff00000000,%rdx
  and    %rdx,%rax
  movq   %rax,%xmm3
  movsd  D94(%rip),%xmm4
  divsd  %xmm0,%xmm4
  movq   %xmm4,%rax
  and    %rdx,%rax
  movq   %rax,%xmm2
  movapd %xmm3,%xmm5
  subsd  %xmm6,%xmm5
  subsd  %xmm5,%xmm1
  movapd %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  mulsd  %xmm2,%xmm3
  addsd  D113(%rip),%xmm3
  addsd  %xmm3,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm2,%xmm0
  ret
L55:
  andpd  D59(%rip),%xmm6
  movsd  D113(%rip),%xmm0
  divsd  %xmm6,%xmm0
  ret
L11:
  cmp    $0x3fe59427,%ecx
  jle    L65
  test   %eax,%eax
  js     L69
L39:
  movsd  D208(%rip),%xmm0
  subsd  %xmm6,%xmm0
  movsd  D49(%rip),%xmm6
  subsd  %xmm1,%xmm6
  addsd  %xmm0,%xmm6
  pxor   %xmm1,%xmm1
L65:
  movapd %xmm6,%xmm3
  mulsd  %xmm6,%xmm3
  movapd %xmm3,%xmm5
  mulsd  %xmm3,%xmm5
  movapd %xmm3,%xmm2
  mulsd  %xmm6,%xmm2
  movapd %xmm5,%xmm0
  mulsd  D218(%rip),%xmm0
  addsd  D129(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D130(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D214(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D103(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  addsd  D160(%rip),%xmm0
  mulsd  %xmm3,%xmm0
  movapd %xmm5,%xmm4
  mulsd  D177(%rip),%xmm4
  addsd  D8(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D92(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D80(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D123(%rip),%xmm4
  mulsd  %xmm5,%xmm4
  addsd  D199(%rip),%xmm4
  addsd  %xmm4,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  addsd  %xmm0,%xmm1
  mulsd  D27(%rip),%xmm2
  addsd  %xmm1,%xmm2
  movapd %xmm2,%xmm0
  addsd  %xmm6,%xmm0
  cmp    $0x3fe59427,%ecx
  jg     L81
  cmp    $0x1,%edx
  je     L70
  movq   %xmm0,%rax
  movabs $0xffffffff00000000,%rdx
  and    %rdx,%rax
  movq   %rax,%xmm3
  movsd  D94(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  and    %rdx,%rax
  movq   %rax,%xmm0
  movapd %xmm3,%xmm4
  subsd  %xmm6,%xmm4
  subsd  %xmm4,%xmm2
  mulsd  %xmm0,%xmm2
  mulsd  %xmm0,%xmm3
  addsd  D113(%rip),%xmm3
  addsd  %xmm3,%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm2,%xmm0
L70:
  ret
L69:
  movq   D65(%rip),%xmm0
  xorpd  %xmm0,%xmm6
  xorpd  %xmm0,%xmm1
  jmp    L39
L81:
  pxor   %xmm3,%xmm3
  cvtsi2sd %edx,%xmm3
  movapd %xmm0,%xmm1
  mulsd  %xmm0,%xmm1
  addsd  %xmm3,%xmm0
  divsd  %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm6
  addsd  %xmm6,%xmm6
  subsd  %xmm6,%xmm3
  sar    $0x1e,%eax
  and    $0x2,%eax
  mov    $0x1,%edx
  sub    %eax,%edx
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  mulsd  %xmm3,%xmm0
  ret
```

tool_calls: name: retrieve_data
arguments: label: D94
data_type: f32[2]
name: retrieve_data
arguments: label: D113
data_type: f64
name: retrieve_data
arguments: label: D59
data_type: qword[2]
name: retrieve_data
arguments: label: D208
data_type: byte[8]
name: retrieve_data
arguments: label: D49
data_type: byte[8]
name: retrieve_data
arguments: label: D218
data_type: byte[8]
name: retrieve_data
arguments: label: D129
data_type: byte[8]
name: retrieve_data
arguments: label: D130
data_type: byte[8]
name: retrieve_data
arguments: label: D214
data_type: byte[8]
name: retrieve_data
arguments: label: D103
data_type: byte[8]
name: retrieve_data
arguments: label: D160
data_type: byte[8]
name: retrieve_data
arguments: label: D177
data_type: byte[8]
name: retrieve_data
arguments: label: D8
data_type: byte[8]
name: retrieve_data
arguments: label: D92
data_type: byte[8]
name: retrieve_data
arguments: label: D80
data_type: byte[8]
name: retrieve_data
arguments: label: D123
data_type: byte[8]
name: retrieve_data
arguments: label: D199
data_type: byte[8]
name: retrieve_data
arguments: label: D27
data_type: byte[8]
name: retrieve_data
arguments: label: D65
data_type: f32[2]

tool: {"D94": [0.0,-1.875]}

tool: D113: 1

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

tool: {"D208": [0x18,0x2d,0x44,0x54,0xfb,0x21,0xe9,0x3f]}

tool: {"D49": [0x07,0x5c,0x14,0x33,0x26,0xa6,0x81,0x3c]}

tool: {"D218": [0xd4,0x7a,0xbf,0x74,0x70,0x2a,0xfb,0x3e]}

tool: {"D129": [0xe9,0xa7,0xf0,0x32,0x0f,0xb8,0x12,0x3f]}

tool: {"D130": [0x68,0x10,0x8d,0x1a,0xf7,0x26,0x30,0x3f]}

tool: {"D214": [0x15,0x83,0xe0,0xfe,0xc8,0xdb,0x57,0x3f]}

tool: {"D103": [0x93,0x84,0x6e,0xe9,0xe3,0x26,0x82,0x3f]}

tool: {"D160": [0xfe,0x41,0xb3,0x1b,0xba,0xa1,0xab,0x3f]}

tool: {"D177": [0x73,0x53,0x60,0xdb,0xcb,0x75,0xf3,0xbe]}

tool: {"D8": [0xa6,0x92,0x37,0xa0,0x88,0x7e,0x14,0x3f]}

tool: {"D92": [0x01,0x65,0xf2,0xf2,0xd8,0x44,0x43,0x3f]}

tool: {"D80": [0x28,0x03,0x56,0xc9,0x22,0x6d,0x6d,0x3f]}

tool: {"D123": [0x37,0xd6,0x06,0x84,0xf4,0x64,0x96,0x3f]}

tool: {"D199": [0x7a,0xfe,0x10,0x11,0x11,0x11,0xc1,0x3f]}

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

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

assistant: ```c
double __kernel_tan(double x, double y, int iy) {
  double z, r, v, w, s;
  int ix, hx;
  hx = *(1 + (int *)&x);
  ix = hx & 0x7fffffff;
  if (ix < 0x3e300000) {
    if ((int)x == 0) {
      if (((ix | *(int *)&x) | (iy + 1)) == 0) {
        return 1.00000000000000000000e+00 / fabs(x);
      } else {
        if (iy == 1) {
          return x;
        } else {
          double a, t;
          z = w = x + y;
          *(int *)&z = 0;
          v = y - (z - x);
          t = a = -1.00000000000000000000e+00 / w;
          *(int *)&t = 0;
          s = 1.00000000000000000000e+00 + t * z;
          return t + a * (s + t * v);
        }
      }
    }
  }
  if (ix >= 0x3FE59428) {
    if (hx < 0) {
      x = -x;
      y = -y;
    }
    z = 7.85398163397448278999e-01 - x;
    w = 3.06161699786838301793e-17 - y;
    x = z + w;
    y = 0.0;
  }
  z = x * x;
  w = z * z;
  r = 1.33333333333201242699e-01 + w * (2.18694882948595424599e-02 + w * (3.59207910759131235356e-03 + w * (5.88041240820264096874e-04 + w * (7.81794442939557092300e-05 + w * -1.85586374855275456654e-05))));
  v = z * (5.39682539762260521377e-02 + w * (8.86323982359930005737e-03 + w * (1.45620945432529025516e-03 + w * (2.46463134818469906812e-04 + w * (7.14072491382608190305e-05 + w * 2.59073051863633712884e-05)))));
  s = z * x;
  r = y + z * (s * (r + v) + y);
  r += 3.33333333333334091986e-01 * s;
  w = x + r;
  if (ix >= 0x3FE59428) {
    v = (double)iy;
    return (double)(1 - ((hx >> 30) & 2)) * (v - 2.0 * (x - (w * w / (w + v) - r)));
  }
  if (iy == 1) {
    return w;
  } else {
    double a, t;
    z = w;
    *(int *)&z = 0;
    v = r - (z - x);
    t = a = -1.0 / w;
    *(int *)&t = 0;
    s = 1.0 + t * z;
    return t + a * (s + t * v);
  }
}
```