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

```asm
<buildargv_argc>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %rsi,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L287
  mov    %rdi,%r13
  call   <strlen@plt>
  mov    %rsp,%rsi
  add    $0x18,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L54
L30:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L30
L54:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L179
L126:
  movsbl 0x0(%r13),%r15d
  lea    0xf(%rsp),%rax
  xor    %ebx,%ebx
  and    $0xfffffffffffffff0,%rax
  mov    %r15d,%edi
  mov    %rax,-0x68(%rbp)
  mov    %r15d,%r14d
  call   <isspace@plt>
  movq   $0x0,-0x50(%rbp)
  movl   $0x0,-0x5c(%rbp)
  movl   $0x0,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  nopl   0x0(%rax,%rax,1)
L282:
  test   %eax,%eax
  jne    L61
L265:
  mov    -0x5c(%rbp),%edx
  test   %edx,%edx
  je     L162
  mov    -0x58(%rbp),%rax
  lea    -0x1(%rdx),%esi
  movslq (%rax),%rax
  cmp    %esi,%eax
  jge    L162
  mov    %rax,-0x70(%rbp)
L135:
  mov    -0x68(%rbp),%r12
  test   %r14b,%r14b
  jne    L167
  jmp    L327
  nopl   0x0(%rax)
L300:
  mov    %r14b,(%r12)
  xor    %ebx,%ebx
  add    $0x1,%r12
L137:
  movzbl 0x1(%r13),%r14d
  add    $0x1,%r13
  test   %r14b,%r14b
  je     L327
L21:
  movsbl %r14b,%r15d
L167:
  mov    %r15d,%edi
  call   <isspace@plt>
  test   %eax,%eax
  je     L388
  mov    -0x48(%rbp),%eax
  or     %ebx,%eax
  or     -0x44(%rbp),%eax
  je     L400
L388:
  test   %ebx,%ebx
  jne    L300
  cmp    $0x5c,%r14b
  je     L127
  mov    -0x44(%rbp),%edx
  test   %edx,%edx
  je     L204
  cmp    $0x27,%r14b
  je     L298
L11:
  add    $0x1,%r13
  mov    %r14b,(%r12)
  add    $0x1,%r12
  movzbl 0x0(%r13),%r14d
  test   %r14b,%r14b
  jne    L21
  nopw   0x0(%rax,%rax,1)
L327:
  movb   $0x0,(%r12)
  mov    -0x68(%rbp),%rdi
  call   <strdup@plt>
  mov    -0x50(%rbp),%rcx
  mov    -0x70(%rbp),%rsi
  mov    %rax,(%rcx,%rsi,8)
  mov    -0x58(%rbp),%rax
  movslq (%rax),%rdx
  cmpq   $0x0,(%rcx,%rdx,8)
  mov    %rdx,%rax
  lea    0x0(,%rdx,8),%rsi
  je     L134
  mov    -0x58(%rbp),%rdx
  add    $0x1,%eax
  mov    %eax,(%rdx)
  mov    -0x50(%rbp),%rax
  movq   $0x0,0x8(%rax,%rsi,1)
  jmp    L221
  nop
L365:
  add    $0x1,%r13
L221:
  movsbl 0x0(%r13),%r15d
  mov    %r15d,%edi
  mov    %r15d,%r14d
  call   <isspace@plt>
  test   %eax,%eax
  jne    L365
  test   %r15b,%r15b
  jne    L265
L190:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L129
  mov    -0x50(%rbp),%rax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L127:
  mov    $0x1,%ebx
  jmp    L137
  nopw   0x0(%rax,%rax,1)
L204:
  mov    -0x48(%rbp),%eax
  test   %eax,%eax
  je     L87
  cmp    $0x22,%r14b
  jne    L11
  movl   $0x0,-0x48(%rbp)
  jmp    L137
  nopl   (%rax)
L61:
  movsbl 0x1(%r13),%r15d
  lea    0x1(%r13),%r12
  mov    %r12,%r13
  mov    %r15d,%edi
  mov    %r15d,%r14d
  call   <isspace@plt>
  jmp    L282
  nopl   0x0(%rax)
L87:
  cmp    $0x27,%r14b
  je     L17
  cmp    $0x22,%r14b
  jne    L11
  movl   $0x1,-0x48(%rbp)
  jmp    L137
L298:
  movl   $0x0,-0x44(%rbp)
  jmp    L137
  nopl   0x0(%rax)
L162:
  cmpq   $0x0,-0x50(%rbp)
  je     L309
  shll   -0x5c(%rbp)
  movslq -0x5c(%rbp),%rsi
  mov    -0x50(%rbp),%rdi
  shl    $0x3,%rsi
  call   <realloc@plt>
L172:
  test   %rax,%rax
  je     L112
  mov    -0x58(%rbp),%rdx
  mov    %rax,-0x50(%rbp)
  movslq (%rdx),%rsi
  mov    %rsi,-0x70(%rbp)
  movq   $0x0,(%rax,%rsi,8)
  jmp    L135
L400:
  movl   $0x0,-0x48(%rbp)
  xor    %ebx,%ebx
  movl   $0x0,-0x44(%rbp)
  jmp    L327
  nopl   (%rax)
L17:
  movl   $0x1,-0x44(%rbp)
  jmp    L137
  nopl   0x0(%rax)
L309:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%esi
  mov    $0x8,%eax
  cmp    %eax,%esi
  cmovge %esi,%eax
  movslq %eax,%rdi
  mov    %eax,-0x5c(%rbp)
  shl    $0x3,%rdi
  call   <malloc@plt>
  jmp    L172
L134:
  mov    %rcx,%rdi
  xor    %eax,%eax
  call   <freeargv@plt>
  movq   $0x0,-0x50(%rbp)
  jmp    L190
L179:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L126
L112:
  mov    -0x50(%rbp),%rax
  test   %rax,%rax
  je     L287
  mov    %rax,%rdi
  xor    %eax,%eax
  call   <freeargv@plt>
L287:
  movq   $0x0,-0x50(%rbp)
  jmp    L190
L129:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char **buildargv_argc(input, argc) const char *input;
int *argc;
{
  char *arg;
  char *copybuf;
  int squote = 0;
  int dquote = 0;
  int bsquote = 0;
  int maxargc = 0;
  char **argv = 0;
  char **nargv;
  if (input != 0) {
    copybuf = __builtin_alloca(strlen(input) + 1);
    do {
      while ((1 && isspace((int)*input)))
        input++;
      if ((maxargc == 0) || (*argc >= (maxargc - 1))) {
        if (argv == 0) {
          maxargc = *argc > 8 ? *argc : 8;
          nargv = (char **)malloc(maxargc * sizeof(char *));
        } else {
          maxargc *= 2;
          nargv = (char **)realloc(argv, maxargc * sizeof(char *));
        }
        if (nargv == 0) {
          if (argv != 0) {
            freeargv(argv);
            argv = 0;
          }
          break;
        }
        argv = nargv;
        argv[*argc] = 0;
      }
      arg = copybuf;
      while (*input != '\0') {
        if ((1 && isspace((int)*input)) && !squote && !dquote && !bsquote)
          break;
        else {
          if (bsquote) {
            bsquote = 0;
            *arg++ = *input;
          } else if (*input == '\\') {
            bsquote = 1;
          } else if (squote) {
            if (*input == '\'')
              squote = 0;
            else
              *arg++ = *input;
          } else if (dquote) {
            if (*input == '"')
              dquote = 0;
            else
              *arg++ = *input;
          } else {
            if (*input == '\'') {
              squote = 1;
            } else if (*input == '"') {
              dquote = 1;
            } else {
              *arg++ = *input;
            }
          }
          input++;
        }
      }
      *arg = '\0';
      argv[*argc] = strdup(copybuf);
      if (argv[*argc] == 0) {
        freeargv(argv);
        argv = 0;
        break;
      }
      (*argc)++;
      argv[*argc] = 0;
      while ((1 && isspace((int)*input)))
        input++;
    } while (*input != '\0');
  }
  return (argv);
}
```