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

```asm
<csv_gettoken>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x20(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L74
  mov    $0x0,%eax
  jmp    L107
L74:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <skipblanks@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <issep@plt>
  test   %rax,%rax
  je     L56
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  jmp    L107
L56:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isquote@plt>
  test   %rax,%rax
  je     L42
  addq   $0x1,-0x18(%rbp)
  jmp    L95
L130:
  mov    -0x18(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L95:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L65
  mov    -0x8(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  jae    L65
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isquote@plt>
  test   %rax,%rax
  je     L130
L65:
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isquote@plt>
  test   %rax,%rax
  je     L142
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <skipblanks@plt>
  mov    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <issep@plt>
  test   %rax,%rax
  je     L142
  addq   $0x1,-0x18(%rbp)
L142:
  mov    -0x18(%rbp),%rax
  jmp    L107
L81:
  mov    -0x18(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L42:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L36
  mov    -0x8(%rbp),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  jae    L36
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <issep@plt>
  test   %rax,%rax
  je     L81
L36:
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <rm_blank_tails@plt>
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <issep@plt>
  test   %rax,%rax
  je     L62
  addq   $0x1,-0x18(%rbp)
L62:
  mov    -0x18(%rbp),%rax
L107:
  leave
  ret
```

assistant: ```c
char *csv_gettoken(char *p, char *s, size_t max) {
  char *s_ori;
  s_ori = s;
  if (*p == '\0')
    return NULL;
  p = skipblanks(p);
  if (issep(*p)) {
    s[0] = '\0';
    return ++p;
  }
  if (isquote(*p)) {
    p++;
    while (*p != '\0' && s < max + s_ori && !isquote(*p)) {
      *s++ = *p++;
    }
    *s = '\0';
    if (isquote(*p++)) {
      p = skipblanks(p);
      if (issep(*p))
        p++;
    }
    return p;
  }
  while (*p != '\0' && s < max + s_ori && !issep(*p)) {
    *s++ = *p++;
  }
  *s = '\0';
  rm_blank_tails(s_ori);
  if (issep(*p))
    p++;
  return p;
}
```