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

```asm
<pie_intercept>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebp
  mov    %esi,%r15d
  movq   %xmm0,%r14
  movq   %xmm1,%r13
  mov    %rdx,%r12
  mov    %rcx,%rbx
  movsd  D111(%rip),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm2,%xmm0
  jbe    L90
L28:
  addsd  %xmm1,%xmm2
  comisd %xmm2,%xmm0
  ja     L28
L90:
  movsd  D111(%rip),%xmm0
  comisd %xmm0,%xmm2
  jb     L54
L140:
  subsd  %xmm0,%xmm2
  comisd %xmm0,%xmm2
  jae    L140
L54:
  movapd %xmm2,%xmm0
  subsd  D49(%rip),%xmm0
  andpd  D76(%rip),%xmm0
  movsd  D140(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L31
  movapd %xmm2,%xmm0
  andpd  D76(%rip),%xmm0
  movsd  D140(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L126
  movsd  D49(%rip),%xmm0
  comisd %xmm2,%xmm0
  jbe    L88
  lea    0x1(%r15),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rbx)
  movapd %xmm2,%xmm0
  subsd  D144(%rip),%xmm0
  andpd  D76(%rip),%xmm0
  movsd  D140(%rip),%xmm1
  comisd %xmm0,%xmm1
  jbe    L77
  mov    %r14,(%r12)
  mov    $0x1,%eax
  jmp    L102
L31:
  movq   $0x0,(%r12)
  mov    %r13,(%rbx)
  mov    $0x2,%eax
  jmp    L102
L126:
  add    $0x1,%ebp
  pxor   %xmm0,%xmm0
  cvtsi2sd %ebp,%xmm0
  movsd  %xmm0,(%r12)
  mov    %r13,(%rbx)
  mov    $0x4,%eax
  jmp    L102
L88:
  movq   $0x0,(%rbx)
  movapd %xmm2,%xmm0
  subsd  D35(%rip),%xmm0
  andpd  D76(%rip),%xmm0
  movsd  D140(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L110
L77:
  divsd  D49(%rip),%xmm2
  mulsd  D4(%rip),%xmm2
  movapd %xmm2,%xmm0
  call   <tan@plt>
  movsd  (%rbx),%xmm1
  movq   %r13,%xmm4
  subsd  %xmm4,%xmm1
  divsd  %xmm0,%xmm1
  movq   %r14,%xmm5
  addsd  %xmm5,%xmm1
  movsd  %xmm1,(%r12)
  pxor   %xmm2,%xmm2
  comisd %xmm1,%xmm2
  ja     L112
  add    $0x1,%ebp
  pxor   %xmm2,%xmm2
  cvtsi2sd %ebp,%xmm2
  comisd %xmm2,%xmm1
  ja     L109
  pxor   %xmm0,%xmm0
  cvtsi2sd %r15d,%xmm0
  comisd (%rbx),%xmm0
  seta   %al
  movzbl %al,%eax
  lea    0x1(%rax,%rax,1),%eax
L102:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L110:
  mov    %r14,(%r12)
  mov    $0x3,%eax
  jmp    L102
L112:
  movq   %r14,%xmm6
  mulsd  %xmm0,%xmm6
  movq   %r13,%xmm1
  subsd  %xmm6,%xmm1
  movsd  %xmm1,(%rbx)
  movq   $0x0,(%r12)
  mov    $0x2,%eax
  jmp    L102
L109:
  movapd %xmm2,%xmm1
  subsd  %xmm5,%xmm1
  mulsd  %xmm1,%xmm0
  addsd  %xmm4,%xmm0
  movsd  %xmm0,(%rbx)
  movsd  %xmm2,(%r12)
  mov    $0x4,%eax
  jmp    L102
```

tool_calls: name: read_data
arguments: tag: D111
type_infered: f64
name: read_data
arguments: tag: D49
type_infered: f64
name: read_data
arguments: tag: D76
type_infered: qword[2]
name: read_data
arguments: tag: D140
type_infered: byte[8]
name: read_data
arguments: tag: D144
type_infered: f64
name: read_data
arguments: tag: D35
type_infered: f64
name: read_data
arguments: tag: D4
type_infered: f64

tool: D111: 360

tool: D49: 180

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

tool: {"D140": [0xa7,0x8e,0xa8,0x99,0xc2,0x57,0xf3,0x3a]}

tool: D144: 90

tool: D35: 270

tool: D4: 3.141592653589793

assistant: ```c
int pie_intercept(int width, int height, double xcen, double ycen, double angle, double *xcept, double *ycept) {
  double angl, slope;
  angl = angle;
  while (angl < 0.0)
    angl = angl + 360.0;
  while (angl >= 360.0)
    angl = angl - 360.0;
  if (fabs(angl - 180.0) < 1.0E-24) {
    *xcept = 0.0;
    *ycept = ycen;
    return (2);
  }
  if (fabs(angl - 0.0) < 1.0E-24) {
    *xcept = width + 1;
    *ycept = ycen;
    return (4);
  }
  if (angl >= 360.0)
    angl = angl - 360.0;
  if (angl < 180.0) {
    *ycept = height + 1;
    if (fabs(angl - 90.0) < 1.0E-24) {
      *xcept = xcen;
      return (1);
    }
  } else {
    *ycept = 0.0;
    if (fabs(angl - 270.0) < 1.0E-24) {
      *xcept = xcen;
      return (3);
    }
  }
  angl = (angl / 180.0) * 3.14159265358979323846;
  slope = tan(angl);
  *xcept = xcen + ((*ycept - ycen) / slope);
  if (*xcept < 0) {
    *ycept = (ycen - (xcen * slope));
    *xcept = 0.0;
    return (2);
  } else if (*xcept > (width + 1)) {
    *ycept = (ycen + ((width + 1 - xcen) * slope));
    *xcept = width + 1;
    return (4);
  } else {
    if (*ycept < height)
      return (3);
    else
      return (1);
  }
}
```