user: 这段汇编代码用C语言表示是什么样的：

```asm
<parse_coarse>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x48(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x20(%rbp)
  je     L51
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L32
  mov    $0xffffffff,%eax
  jmp    L102
L32:
  mov    D1(%rip),%rax
  movq   $0x0,(%rax)
  lea    -0x38(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    $0xa,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtoul@plt>
  mov    %rax,-0x18(%rbp)
  mov    D1(%rip),%rax
  mov    (%rax),%rax
  test   %rax,%rax
  jne    L159
  mov    -0x38(%rbp),%rax
  cmp    %rax,-0x20(%rbp)
  jne    L159
  mov    D21(%rip),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x18(%rbp)
  jbe    L150
L159:
  mov    $0xffffffff,%eax
  jmp    L102
L150:
  mov    -0x18(%rbp),%rax
  mov    %eax,%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x58(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L195
L51:
  mov    -0x50(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x58(%rbp),%rax
  mov    -0x48(%rbp),%rdx
  mov    %rdx,(%rax)
L195:
  mov    -0x48(%rbp),%rax
  mov    $0x2d,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L99
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  sub    -0x48(%rbp),%rax
  mov    %rax,%rcx
  mov    -0x28(%rbp),%rax
  sub    %rcx,%rax
  mov    %rax,%rdx
  mov    -0x70(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%rax
  sub    %rdx,%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x30(%rbp)
  jmp    L176
L18:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <is_revchar@plt>
  test   %eax,%eax
  jne    L165
  mov    $0xffffffff,%eax
  jmp    L102
L165:
  addq   $0x1,-0x30(%rbp)
L176:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L18
  jmp    L7
L99:
  mov    -0x48(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  mov    -0x68(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x70(%rbp),%rax
  movq   $0x0,(%rax)
  mov    -0x68(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rcx
  mov    %rdx,%rax
  sub    %rcx,%rax
  mov    %rax,%rdx
  mov    -0x60(%rbp),%rax
  mov    %rdx,(%rax)
L7:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x30(%rbp)
  jmp    L156
L14:
  cmpq   $0x0,-0x10(%rbp)
  setne  %al
  movzbl %al,%edx
  cmpq   $0x0,-0x20(%rbp)
  setne  %al
  movzbl %al,%ecx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <is_uschar@plt>
  test   %eax,%eax
  jne    L47
  mov    $0xffffffff,%eax
  jmp    L102
L47:
  addq   $0x1,-0x30(%rbp)
L156:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L25
  mov    -0x30(%rbp),%rax
  cmp    -0x10(%rbp),%rax
  jne    L14
L25:
  mov    $0x0,%eax
L102:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L112
  call   <__stack_chk_fail@plt>
L112:
  leave
  ret
```

assistant: ```c
int parse_coarse(const char *v, unsigned *epoch, const char **upstream, size_t *us_len, const char **rev, size_t *rev_len) {
  char *col, *end, *hyp;
  const char *c;
  unsigned long u;
  size_t len = strlen(v);
  if ((col = strchr(v, ':')) != NULL) {
    if (v[0] == '-') {
      return -1;
    }
    errno = 0;
    u = strtoul(v, &end, 10);
    if (errno != 0 || end != col || u > UINT_MAX) {
      return -1;
    }
    *epoch = u;
    *upstream = col + 1;
  } else {
    *epoch = 0;
    *upstream = v;
  }
  if ((hyp = strchr(v, '-')) != NULL) {
    *rev = hyp + 1;
    *rev_len = len - ((hyp + 1) - v);
    *us_len = (hyp - *upstream);
    for (c = hyp + 1; *c != 0; c++) {
      if (!is_revchar(*c)) {
        return -1;
      }
    }
  } else {
    *rev = v + len;
    *rev_len = 0;
    *us_len = (*rev - *upstream);
  }
  c = *upstream;
  for (; *c != 0 && c != hyp; c++) {
    if (!is_uschar(*c, col != NULL, hyp != NULL)) {
      return -1;
    }
  }
  return 0;
}
```