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    %rdi,%rbx
  mov    %rsi,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L30
  call   <strlen@plt>
  add    $0x18,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L405:
  cmp    %rdx,%rsp
  je     L274
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L405
L274:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L288
  orq    $0x0,-0x8(%rsp,%rax,1)
L288:
  lea    0xf(%rsp),%rax
  and    $0xfffffffffffffff0,%rax
  mov    %rax,-0x68(%rbp)
  movq   $0x0,-0x50(%rbp)
  movl   $0x0,-0x5c(%rbp)
  mov    $0x0,%r13d
  movl   $0x0,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L10
L96:
  add    $0x1,%rbx
L10:
  movzbl (%rbx),%r12d
  movsbl %r12b,%edi
  call   <isspace@plt>
  mov    %eax,%r15d
  test   %eax,%eax
  jne    L96
  mov    -0x5c(%rbp),%eax
  test   %eax,%eax
  je     L26
  sub    $0x1,%eax
  mov    -0x58(%rbp),%rcx
  cmp    %eax,(%rcx)
  jl     L208
L26:
  cmpq   $0x0,-0x50(%rbp)
  je     L292
  shll   -0x5c(%rbp)
  mov    -0x5c(%rbp),%eax
  movslq %eax,%rsi
  shl    $0x3,%rsi
  mov    -0x50(%rbp),%rdi
  call   <realloc@plt>
  mov    %rax,%r14
L11:
  test   %r14,%r14
  je     L59
  mov    -0x58(%rbp),%rax
  movslq (%rax),%rax
  movq   $0x0,(%r14,%rax,8)
  mov    %r14,-0x50(%rbp)
L208:
  test   %r12b,%r12b
  je     L410
  mov    -0x68(%rbp),%r14
  jmp    L236
L292:
  mov    -0x58(%rbp),%rax
  mov    (%rax),%edx
  mov    $0x8,%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,-0x5c(%rbp)
  movslq %eax,%rdi
  shl    $0x3,%rdi
  call   <malloc@plt>
  mov    %rax,%r14
  jmp    L11
L59:
  cmpq   $0x0,-0x50(%rbp)
  je     L108
  mov    -0x50(%rbp),%rdi
  mov    $0x0,%eax
  call   <freeargv@plt>
  mov    %r14,-0x50(%rbp)
  jmp    L108
L171:
  test   %r13d,%r13d
  je     L287
  mov    %r12b,(%r14)
  mov    %r15d,%r13d
  lea    0x1(%r14),%r14
L389:
  add    $0x1,%rbx
  movzbl (%rbx),%r12d
  test   %r12b,%r12b
  je     L130
L236:
  movsbl %r12b,%edi
  call   <isspace@plt>
  test   %eax,%eax
  je     L171
  mov    -0x44(%rbp),%eax
  or     -0x48(%rbp),%eax
  or     %r13d,%eax
  jne    L171
  mov    %eax,%r13d
  mov    %eax,-0x48(%rbp)
  mov    %eax,-0x44(%rbp)
L130:
  movb   $0x0,(%r14)
  mov    -0x58(%rbp),%r15
  movslq (%r15),%rax
  mov    -0x50(%rbp),%r14
  lea    (%r14,%rax,8),%r12
  mov    -0x68(%rbp),%rdi
  call   <strdup@plt>
  mov    %rax,(%r12)
  mov    (%r15),%eax
  movslq %eax,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    (%r14,%rdx,8),%r12
  test   %r12,%r12
  je     L6
  add    $0x1,%eax
  mov    -0x58(%rbp),%rsi
  mov    %eax,(%rsi)
  mov    -0x50(%rbp),%rax
  movq   $0x0,0x8(%rax,%rcx,1)
  jmp    L178
L287:
  cmp    $0x5c,%r12b
  je     L121
  cmpl   $0x0,-0x44(%rbp)
  je     L344
  cmp    $0x27,%r12b
  je     L33
  mov    %r12b,(%r14)
  lea    0x1(%r14),%r14
  jmp    L389
L344:
  cmpl   $0x0,-0x48(%rbp)
  je     L109
  cmp    $0x22,%r12b
  je     L63
  mov    %r12b,(%r14)
  mov    -0x44(%rbp),%r13d
  lea    0x1(%r14),%r14
  jmp    L389
L109:
  cmp    $0x27,%r12b
  je     L203
  cmp    $0x22,%r12b
  je     L262
  mov    %r12b,(%r14)
  mov    -0x48(%rbp),%eax
  mov    %eax,%r13d
  mov    %eax,-0x44(%rbp)
  lea    0x1(%r14),%r14
  jmp    L389
L121:
  mov    $0x1,%r13d
  jmp    L389
L33:
  mov    %r13d,-0x44(%rbp)
  jmp    L389
L63:
  mov    -0x44(%rbp),%eax
  mov    %eax,%r13d
  mov    %eax,-0x48(%rbp)
  jmp    L389
L203:
  mov    -0x48(%rbp),%r13d
  movl   $0x1,-0x44(%rbp)
  jmp    L389
L262:
  mov    -0x48(%rbp),%eax
  mov    %eax,%r13d
  mov    %eax,-0x44(%rbp)
  movl   $0x1,-0x48(%rbp)
  jmp    L389
L410:
  mov    -0x68(%rbp),%r14
  jmp    L130
L6:
  mov    -0x50(%rbp),%rdi
  mov    $0x0,%eax
  call   <freeargv@plt>
  mov    %r12,-0x50(%rbp)
L108:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  mov    -0x50(%rbp),%rax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L358:
  add    $0x1,%rbx
L178:
  movzbl (%rbx),%r12d
  movsbl %r12b,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L358
  test   %r12b,%r12b
  jne    L10
  jmp    L108
L30:
  mov    %rdi,-0x50(%rbp)
  jmp    L108
L48:
  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);
}
```