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

```asm
<buildargv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  movl   $0x0,-0x18(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
L203:
  mov    -0x34(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L49
  mov    D6(%rip),%rax
  mov    (%rax),%edx
  mov    D0(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L137
L119:
  addq   $0x1,-0x28(%rbp)
L49:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L119
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L45
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0xc(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%rax
  mov    %rax,(%rdx)
  jmp    L241
L25:
  cmpl   $0x0,-0x10(%rbp)
  je     L206
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  movl   $0x0,-0x10(%rbp)
  jmp    L243
L206:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5c,%al
  jne    L250
  movl   $0x1,-0x10(%rbp)
  jmp    L243
L250:
  cmpl   $0x0,-0x18(%rbp)
  je     L42
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L201
  movl   $0x0,-0x18(%rbp)
  jmp    L243
L201:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L243
L42:
  cmpl   $0x0,-0x14(%rbp)
  je     L52
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L97
  movl   $0x0,-0x14(%rbp)
  jmp    L243
L97:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
  jmp    L243
L52:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L33
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x27,%al
  jne    L76
  movl   $0x1,-0x18(%rbp)
  jmp    L243
L76:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L67
  movl   $0x1,-0x14(%rbp)
  jmp    L243
L67:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x28(%rbp),%rdx
  movzbl (%rdx),%edx
  mov    %dl,(%rax)
L243:
  addq   $0x1,-0x28(%rbp)
L241:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L25
  jmp    L108
L33:
  nop
L108:
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  movzbl (%rax),%eax
  test   %al,%al
  je     L1
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  jmp    L203
L45:
  nop
  jmp    L30
L1:
  nop
L30:
  mov    -0x8(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movq   $0x0,(%rax)
  mov    -0xc(%rbp),%eax
L137:
  leave
  ret
```

assistant: ```c
int buildargv(char *s, char *argv[], int maxargc) {
  bool squote = false;
  bool dquote = false;
  bool bsquote = false;
  char *arg = s;
  int argc = 0;
  for (;;) {
    if (argc >= maxargc - 1) {
      errno = E2BIG;
      return -1;
    }
    while (isspace((int)*s))
      s++;
    if (!*s)
      break;
    arg = s;
    argv[argc++] = arg;
    while (*s) {
      if (bsquote) {
        *arg++ = *s;
        bsquote = false;
      } else if (*s == '\\') {
        bsquote = true;
      } else if (squote) {
        if (*s == '\'')
          squote = false;
        else
          *arg++ = *s;
      } else if (dquote) {
        if (*s == '"')
          dquote = false;
        else
          *arg++ = *s;
      } else {
        if (isspace((int)*s))
          break;
        if (*s == '\'')
          squote = true;
        else if (*s == '"')
          dquote = true;
        else
          *arg++ = *s;
      }
      s++;
    }
    if (!*s++)
      break;
    *arg = 0;
  }
  *arg = 0;
  argv[argc] = NULL;
  return argc;
}
```