user: 下面的汇编指令对应的C源代码是什么：

```asm
<reg_poly_winding_num>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movsd  %xmm0,-0x40(%rbp)
  movsd  %xmm1,-0x48(%rbp)
  movl   $0x0,-0x14(%rbp)
  movq   $0x0,-0x10(%rbp)
  jmp    L149
L154:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm2
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movsd  -0x48(%rbp),%xmm4
  movsd  -0x40(%rbp),%xmm3
  movapd %xmm4,%xmm5
  movapd %xmm3,%xmm4
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  call   <reg_poly_is_left@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x8(%rbp)
  pxor   %xmm0,%xmm0
  ucomisd -0x8(%rbp),%xmm0
  jp     L136
  pxor   %xmm0,%xmm0
  ucomisd -0x8(%rbp),%xmm0
  jne    L136
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x40(%rbp),%xmm0
  jb     L14
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x40(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L110
L14:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x40(%rbp),%xmm0
  jb     L136
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x40(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L136
L110:
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x48(%rbp),%xmm0
  jb     L64
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x48(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jae    L177
L64:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x48(%rbp),%xmm0
  jb     L136
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x48(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L136
L177:
  mov    $0x1,%eax
  jmp    L126
L136:
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x48(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L91
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x48(%rbp),%xmm0
  jbe    L166
  movsd  -0x8(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L166
  addl   $0x1,-0x14(%rbp)
  jmp    L166
L91:
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x48(%rbp),%xmm0
  comisd %xmm1,%xmm0
  jb     L166
  pxor   %xmm0,%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L166
  subl   $0x1,-0x14(%rbp)
L166:
  addq   $0x1,-0x10(%rbp)
L149:
  mov    -0x38(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x10(%rbp)
  jl     L154
  mov    -0x14(%rbp),%eax
L126:
  leave
  ret
```

assistant: ```c
int reg_poly_winding_num(double *xpos, double *ypos, long nPoints, double x, double y) {
  int wn = 0;
  long ii;
  double isLeft;
  for (ii = 0; ii < nPoints - 1; ii++) {
    isLeft = reg_poly_is_left(xpos[ii], ypos[ii], xpos[ii + 1], ypos[ii + 1], x, y);
    if (isLeft == 0) {
      if (((x <= xpos[ii] && x >= xpos[ii + 1]) || (x <= xpos[ii + 1] && x >= xpos[ii])) && ((y <= ypos[ii] && y >= ypos[ii + 1]) || (y <= ypos[ii + 1] && y >= ypos[ii]))) {
        return 1;
      }
    }
    if (ypos[ii] <= y) {
      if (ypos[ii + 1] > y) {
        if (isLeft > 0) {
          wn++;
        }
      }
    } else {
      if (ypos[ii + 1] <= y) {
        if (isLeft < 0) {
          wn--;
        }
      }
    }
  }
  return wn;
}
```