user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<__kernel_tan>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  movsd  %xmm0,-0x58(%rbp)
  movsd  %xmm1,-0x60(%rbp)
  mov    %edi,-0x64(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x50(%rbp)
  mov    -0x50(%rbp),%eax
  and    $0x7fffffff,%eax
  mov    %eax,-0x4c(%rbp)
  cmpl   $0x3e2fffff,-0x4c(%rbp)
  jg     L117
  movsd  -0x58(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  test   %eax,%eax
  jne    L117
  lea    -0x58(%rbp),%rax
  mov    (%rax),%eax
  or     -0x4c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x64(%rbp),%eax
  add    $0x1,%eax
  or     %edx,%eax
  test   %eax,%eax
  jne    L121
  movsd  -0x58(%rbp),%xmm0
  movq   D9(%rip),%xmm1
  andpd  %xmm0,%xmm1
  movsd  D140(%rip),%xmm0
  divsd  %xmm1,%xmm0
  jmp    L116
L121:
  cmpl   $0x1,-0x64(%rbp)
  jne    L107
  movsd  -0x58(%rbp),%xmm0
  jmp    L116
L107:
  movsd  -0x58(%rbp),%xmm0
  movsd  -0x60(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  lea    -0x48(%rbp),%rax
  movl   $0x0,(%rax)
  movsd  -0x48(%rbp),%xmm0
  movsd  -0x58(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  -0x60(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D43(%rip),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  lea    -0x40(%rbp),%rax
  movl   $0x0,(%rax)
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D140(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x28(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  jmp    L116
L117:
  cmpl   $0x3fe59427,-0x4c(%rbp)
  jle    L75
  cmpl   $0x0,-0x50(%rbp)
  jns    L125
  movsd  -0x58(%rbp),%xmm0
  movq   D138(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x60(%rbp),%xmm0
  movq   D138(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x60(%rbp)
L125:
  movsd  -0x58(%rbp),%xmm1
  movsd  D155(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  D76(%rip),%xmm0
  subsd  -0x60(%rbp),%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x48(%rbp),%xmm0
  addsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x60(%rbp)
L75:
  movsd  -0x58(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  -0x38(%rbp),%xmm1
  movsd  D58(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D61(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D206(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D141(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D6(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D164(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x38(%rbp),%xmm1
  movsd  D30(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D139(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D98(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D134(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D93(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x38(%rbp),%xmm1
  movsd  D82(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  -0x48(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x18(%rbp),%xmm0
  addsd  -0x30(%rbp),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x60(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x60(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D102(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x58(%rbp),%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  cmpl   $0x3fe59427,-0x4c(%rbp)
  jle    L42
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x64(%rbp),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x50(%rbp),%eax
  sar    $0x1e,%eax
  and    $0x2,%eax
  mov    %eax,%edx
  mov    $0x1,%eax
  sub    %edx,%eax
  pxor   %xmm3,%xmm3
  cvtsi2sd %eax,%xmm3
  movsd  -0x58(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  movsd  -0x38(%rbp),%xmm2
  addsd  -0x30(%rbp),%xmm2
  divsd  %xmm2,%xmm0
  movapd %xmm0,%xmm2
  subsd  -0x18(%rbp),%xmm2
  subsd  %xmm2,%xmm1
  movapd %xmm1,%xmm0
  movapd %xmm0,%xmm1
  addsd  %xmm0,%xmm1
  movsd  -0x30(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  jmp    L116
L42:
  cmpl   $0x1,-0x64(%rbp)
  jne    L111
  movsd  -0x38(%rbp),%xmm0
  jmp    L116
L111:
  movsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  lea    -0x48(%rbp),%rax
  movl   $0x0,(%rax)
  movsd  -0x48(%rbp),%xmm0
  movsd  -0x58(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  -0x18(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D43(%rip),%xmm0
  divsd  -0x38(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  lea    -0x40(%rbp),%rax
  movl   $0x0,(%rax)
  movsd  -0x40(%rbp),%xmm1
  movsd  -0x48(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D140(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  addsd  -0x20(%rbp),%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x10(%rbp),%xmm1
  movsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
L116:
  movq   %xmm0,%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L87
  call   <__stack_chk_fail@plt>
L87:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D9
type_guessed: qword
name: extract_symbolic_data
arguments: label: D140
type_guessed: f64
name: extract_symbolic_data
arguments: label: D43
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D138
type_guessed: f32[2]
name: extract_symbolic_data
arguments: label: D155
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D76
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D58
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D61
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D206
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D141
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D6
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D164
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D30
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D139
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D98
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D134
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D93
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D82
type_guessed: byte[8]
name: extract_symbolic_data
arguments: label: D102
type_guessed: byte[8]

tool: D9: 9223372036854775807

tool: D140: 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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);
  }
}
```