user: 请将以下的汇编代码转换成C语言代码：

```asm
<get_token>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    -0x18(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L389
L295:
  addq   $0x1,-0x8(%rbp)
L389:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L164
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L295
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L295
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  je     L295
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L295
L164:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L280
  mov    $0xffffffff,%eax
  jmp    L211
L280:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  je     L97
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  je     L97
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  je     L97
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  je     L97
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L175
L97:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L392
  mov    -0x8(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  jne    L163
  mov    -0x8(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L163
L392:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L196
  addq   $0x1,-0x8(%rbp)
  jmp    L15
L32:
  mov    -0x20(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L399
  mov    $0xffffffff,%eax
  jmp    L211
L399:
  mov    -0x8(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L15:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L344
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L32
L344:
  mov    -0x20(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L204
  mov    $0xffffffff,%eax
  jmp    L211
L204:
  addq   $0x1,-0x8(%rbp)
  jmp    L163
L196:
  mov    -0x8(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L163:
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L278
L3:
  mov    -0x8(%rbp),%rdx
  lea    0x1(%rdx),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x20(%rbp),%rax
  lea    0x1(%rax),%rcx
  mov    %rcx,-0x20(%rbp)
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L175
  mov    $0xffffffff,%eax
  jmp    L211
L175:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x9,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xd,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0xa,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3c,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3e,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x7c,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  je     L103
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L3
L103:
  mov    -0x20(%rbp),%rax
  movb   $0x0,(%rax)
L278:
  mov    -0x18(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L232
  mov    $0x0,%eax
  jmp    L211
L232:
  mov    $0xffffffff,%eax
L211:
  pop    %rbp
  ret
```

assistant: ```c
int get_token(char **buf, char *tok, char *end) {
  char *p;
  p = *buf;
  while (*p && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\n'))
    p++;
  if (!*p)
    return -1;
  if ((*p == '<' || *p == '>' || *p == '|' || *p == ';' || *p == '"')) {
    if (*p == '>') {
      *tok++ = *p++;
      if (*p == '>')
        *tok++ = *p++;
    } else if (*p == '"') {
      p++;
      while (*p && *p != '"') {
        if (tok == end)
          return -1;
        *tok++ = *p++;
      }
      if (tok == end)
        return -1;
      p++;
    } else {
      *tok++ = *p++;
    }
    *tok = 0;
  } else {
    while (*p && !(*p == ' ' || *p == '\t' || *p == '\r' || *p == '\n') && !(*p == '<' || *p == '>' || *p == '|' || *p == ';' || *p == '"')) {
      *tok++ = *p++;
      if (tok == end)
        return -1;
    }
    *tok = 0;
  }
  *buf = p;
  return *p ? 0 : -1;
}
```