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

```asm
<ccn_filewatch>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x118,%rsp
  mov    %rdi,%r15
  mov    %rdi,0x30(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %rdx,0x38(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,0x18(%rsp)
  mov    %r9d,%ebx
  mov    %r9d,0x2c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movq   $0x0,0x50(%rsp)
  movq   $0x0,0x58(%rsp)
  lea    0x80(%rsp),%rdi
  mov    $0x80,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x60(%rsp),%rdi
  mov    $0x20,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    D0(%rip),%rax
  mov    (%rax),%edx
  mov    D18(%rip),%rax
  mov    %edx,(%rax)
  test   %ebx,%ebx
  jle    L136
  cmpl   $0x0,0x150(%rsp)
  jle    L136
  mov    $0x0,%edx
  mov    D10(%rip),%rax
  mov    (%rax),%esi
  mov    %r15,%rdi
  call   <open@plt>
  mov    %eax,%r13d
  test   %eax,%eax
  js     L227
  movl   $0x0,0x28(%rsp)
  mov    $0x0,%ebp
  movq   $0x0,(%rsp)
  mov    $0x0,%r14d
  mov    $0x0,%r15d
  lea    0x80(%rsp),%rax
  mov    %rax,0x10(%rsp)
  jmp    L29
L114:
  add    $0x1,%r15d
  mov    %rbx,%r14
  movl   $0x0,0x28(%rsp)
L39:
  lea    0x60(%rsp),%rdi
  mov    0x150(%rsp),%edx
  mov    $0x0,%esi
  call   <poll@plt>
  test   %eax,%eax
  jne    L242
L57:
  add    0x150(%rsp),%ebp
  mov    %ebp,%ebx
  imul   $0x10624dd3,%rbx,%rbx
  shr    $0x26,%rbx
  add    (%rsp),%rbx
  cmp    0x18(%rsp),%rbx
  jg     L105
  cmp    $0xbb7,%ebp
  ja     L254
L29:
  mov    %r15d,%r12d
  and    $0x3,%r12d
  mov    %r12d,%ebx
  shl    $0x5,%rbx
  add    0x10(%rsp),%rbx
  mov    %rbx,%rsi
  mov    %r13d,%edi
  call   <fstat@plt>
  cmp    $0xffffffff,%eax
  je     L82
  test   %r14,%r14
  je     L222
  mov    %rbx,%rsi
  mov    %r14,%rdi
  call   <statchanged@plt>
  test   %rax,%rax
  je     L12
L222:
  mov    %rbx,%rsi
  mov    0x8(%rsp),%rdi
  call   <printstat@plt>
  mov    0x20(%rsp),%rcx
  test   %rcx,%rcx
  je     L114
  mov    %r12d,%eax
  shl    $0x5,%rax
  cmp    %rcx,0x80(%rsp,%rax,1)
  jle    L114
  mov    $0xfffffffe,%ebx
  jmp    L145
L12:
  mov    0x150(%rsp),%edx
  add    %edx,0x28(%rsp)
  mov    0x28(%rsp),%eax
  cmp    %eax,0x2c(%rsp)
  ja     L39
  mov    %r12d,%eax
  shl    $0x5,%rax
  mov    0x38(%rsp),%rdx
  cmp    %rdx,0x80(%rsp,%rax,1)
  jl     L39
  mov    $0x0,%ebx
  jmp    L145
L242:
  mov    $0x0,%eax
  call   <abort@plt>
  jmp    L57
L254:
  mov    %ebp,%eax
  imul   $0x10624dd3,%rax,%rax
  shr    $0x26,%rax
  imul   $0x3e8,%eax,%eax
  sub    %eax,%ebp
  lea    0x40(%rsp),%rsi
  mov    0x30(%rsp),%rdi
  call   <stat@plt>
  test   %eax,%eax
  js     L211
  mov    %r12d,%eax
  shl    $0x5,%rax
  mov    0x88(%rsp,%rax,1),%rax
  cmp    %rax,0x48(%rsp)
  jne    L166
  mov    %r12d,%r12d
  shl    $0x5,%r12
  mov    0x90(%rsp,%r12,1),%rax
  cmp    %rax,0x50(%rsp)
  jne    L153
  mov    0x8(%rsp),%rdi
  call   <fflush@plt>
  mov    %rbx,(%rsp)
  jmp    L29
L105:
  mov    $0xfffffffd,%ebx
  jmp    L145
L211:
  mov    $0xfffffffc,%ebx
  jmp    L145
L166:
  mov    $0xfffffffc,%ebx
  jmp    L145
L153:
  mov    $0xfffffffc,%ebx
  jmp    L145
L82:
  mov    %eax,%ebx
L145:
  mov    %r13d,%edi
  call   <close@plt>
  mov    0x8(%rsp),%rdi
  call   <fflush@plt>
L109:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L250
  mov    %ebx,%eax
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L136:
  mov    $0xffffffff,%ebx
  jmp    L109
L227:
  mov    $0xffffffff,%ebx
  jmp    L109
L250:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int ccn_filewatch(const char *path, FILE *out, off_t minsize, off_t maxsize, time_t maxsec, int msecstable, int msecpoll) {
  int fd = -1;
  int res = 0;
  unsigned i = 0;
  const unsigned int nbuf = 4;
  struct stat stats[4];
  struct stat *curr = NULL;
  struct stat *prev = NULL;
  struct stat statname = {0};
  struct pollfd dummy[1];
  time_t elapsed = 0;
  unsigned elapsedms = 0;
  unsigned stablems = 0;
  memset(stats, 0, sizeof(stats));
  memset(dummy, 0, sizeof(dummy));
  errno = EINVAL;
  if (msecpoll < 1)
    return (-1);
  if (msecstable < 1)
    return (-1);
  fd = open(path, O_RDONLY, 0);
  if (fd < 0)
    return (-1);
  for (i = 0;;) {
    curr = &(stats[i % nbuf]);
    res = fstat(fd, curr);
    if (res == -1)
      break;
    if (prev == NULL || statchanged(prev, curr)) {
      printstat(out, curr);
      prev = curr;
      stablems = 0;
      if (maxsize != 0 && curr->st_size > maxsize) {
        res = -2;
        break;
      }
      i++;
    } else {
      stablems += msecpoll;
      if (stablems >= msecstable && curr->st_size >= minsize) {
        res = 0;
        break;
      }
    }
    res = poll(dummy, 0, msecpoll);
    if (res != 0)
      abort();
    elapsedms += msecpoll;
    if (elapsed + elapsedms / 1000 > maxsec) {
      res = -3;
      break;
    }
    if (elapsedms >= 3000) {
      elapsed += elapsedms / 1000;
      elapsedms %= 1000;
      res = stat(path, &statname);
      if (res < 0 || statname.st_dev != curr->st_dev || statname.st_ino != curr->st_ino) {
        res = -4;
        break;
      }
      fflush(out);
    }
  }
  close(fd);
  fflush(out);
  return (res);
}
```