user: What is the c source code of the assembly code below:

```asm
<collide_polygon_rectangle>:
  endbr64
  push   %r15
  mov    %edi,%r15d
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  mov    %r8d,%ebp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x98,%rsp
  mov    %edi,0x2c(%rsp)
  mov    %ecx,0x20(%rsp)
  mov    %r8d,0x24(%rsp)
  mov    %r9d,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  setg   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %ebx,%ecx
  movd   %ebp,%xmm7
  movd   %ebx,%xmm2
  mov    0xd0(%rsp),%edx
  add    %r12d,%ecx
  punpckldq %xmm7,%xmm2
  lea    -0x1(%r15),%eax
  movd   %ecx,%xmm0
  movd   %ecx,%xmm1
  movdqa %xmm2,%xmm4
  mov    %eax,0xc(%rsp)
  add    %ebp,%edx
  punpckldq %xmm7,%xmm1
  movd   %edx,%xmm3
  punpcklqdq %xmm1,%xmm4
  punpckldq %xmm3,%xmm0
  movaps %xmm4,0x40(%rsp)
  punpcklqdq %xmm0,%xmm1
  movaps %xmm1,0x50(%rsp)
  movd   %ebx,%xmm1
  punpckldq %xmm3,%xmm1
  punpcklqdq %xmm1,%xmm0
  punpcklqdq %xmm2,%xmm1
  movaps %xmm0,0x60(%rsp)
  movaps %xmm1,0x70(%rsp)
  test   %r15d,%r15d
  jle    L3
  movslq %r15d,%rax
  xor    %ebx,%ebx
  lea    0x30(%rsp),%rbp
  mov    %rax,0x18(%rsp)
  lea    0x40(%rsp),%rax
  lea    0x80(%rsp),%r12
  mov    %rax,0x10(%rsp)
L62:
  movslq 0xc(%rsp),%rax
  movd   0x0(%r13,%rbx,4),%xmm1
  mov    %ebx,0xc(%rsp)
  movd   (%r14,%rbx,4),%xmm5
  mov    0x10(%rsp),%r15
  movd   0x0(%r13,%rax,4),%xmm0
  movd   (%r14,%rax,4),%xmm6
  punpckldq %xmm5,%xmm1
  punpckldq %xmm6,%xmm0
  punpcklqdq %xmm1,%xmm0
  movaps %xmm0,0x30(%rsp)
L32:
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <lines_intersect@plt>
  test   %rax,%rax
  jne    L66
  add    $0x10,%r15
  cmp    %r12,%r15
  jne    L32
  add    $0x1,%rbx
  cmp    %rbx,0x18(%rsp)
  jne    L62
L3:
  mov    0x24(%rsp),%r15d
  mov    0x20(%rsp),%ebx
  mov    0xd0(%rsp),%r9d
  mov    0x28(%rsp),%r8d
  mov    (%r14),%esi
  mov    0x0(%r13),%edi
  mov    %r15d,%ecx
  mov    %ebx,%edx
  call   <point_in_rectangle@plt>
  test   %rax,%rax
  je     L36
  nop
L66:
  mov    $0x1,%eax
L69:
  mov    0x88(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L53
  add    $0x98,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  mov    0x2c(%rsp),%edx
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r15d,%esi
  mov    %ebx,%edi
  call   <point_in_polygon@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L69
L53:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int collide_polygon_rectangle(int n, int *xs, int *ys, int rx, int ry, int w, int h) {
  assert(n > 0);
  int polygon_line[2][2];
  int rectangle_lines[4][2][2] = {{{rx, ry}, {rx + w, ry}}, {{rx + w, ry}, {rx + w, ry + h}}, {{rx + w, ry + h}, {rx, ry + h}}, {{rx, ry + h}, {rx, ry}}};
  int polygon_index, rectangle_index;
  int old_polygon_index = n - 1;
  for (polygon_index = 0; polygon_index < n; ++polygon_index) {
    polygon_line[0][0] = xs[old_polygon_index];
    polygon_line[0][1] = ys[old_polygon_index];
    polygon_line[1][0] = xs[polygon_index];
    polygon_line[1][1] = ys[polygon_index];
    for (rectangle_index = 0; rectangle_index < 4; ++rectangle_index) {
      if (lines_intersect(polygon_line, rectangle_lines[rectangle_index])) {
        return (1);
      }
    }
    old_polygon_index = polygon_index;
  }
  if (point_in_rectangle(xs[0], ys[0], rx, ry, w, h)) {
    return (1);
  }
  if (point_in_polygon(rx, ry, n, xs, ys)) {
    return (1);
  }
  return (0);
}
```