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     L297
  mov    %rdi,%r15
  call   <strlen@plt>
  mov    %rsp,%rsi
  add    $0x18,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L6
L1:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L1
L6:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L139
L187:
  lea    0xf(%rsp),%rax
  movl   $0x0,-0x5c(%rbp)
  xor    %ebx,%ebx
  xor    %r13d,%r13d
  and    $0xfffffffffffffff0,%rax
  movq   $0x0,-0x50(%rbp)
  mov    %rax,-0x68(%rbp)
  movl   $0x0,-0x44(%rbp)
  nopl   0x0(%rax)
L12:
  movsbl (%r15),%r8d
  mov    %r8d,%edi
  mov    %r8d,-0x48(%rbp)
  mov    %r8d,%r14d
  call   <isspace@plt>
  test   %eax,%eax
  jne    L254
  mov    -0x5c(%rbp),%eax
  mov    -0x48(%rbp),%r8d
  test   %eax,%eax
  je     L129
  mov    -0x58(%rbp),%rcx
  sub    $0x1,%eax
  cmp    %eax,(%rcx)
  jge    L129
  mov    (%rcx),%eax
  mov    %eax,-0x48(%rbp)
L25:
  mov    -0x68(%rbp),%r12
  test   %r14b,%r14b
  jne    L292
  jmp    L240
  nopl   0x0(%rax)
L109:
  mov    %r14b,(%r12)
  xor    %ebx,%ebx
  add    $0x1,%r12
L175:
  movzbl 0x1(%r15),%r14d
  add    $0x1,%r15
  test   %r14b,%r14b
  je     L240
L15:
  movsbl %r14b,%r8d
L292:
  mov    %r8d,%edi
  call   <isspace@plt>
  test   %eax,%eax
  je     L402
  mov    -0x44(%rbp),%eax
  or     %ebx,%eax
  or     %r13d,%eax
  je     L295
L402:
  test   %ebx,%ebx
  jne    L109
  cmp    $0x5c,%r14b
  je     L34
  test   %r13d,%r13d
  je     L232
  cmp    $0x27,%r14b
  je     L261
L41:
  add    $0x1,%r15
  mov    %r14b,(%r12)
  add    $0x1,%r12
  movzbl (%r15),%r14d
  test   %r14b,%r14b
  jne    L15
  nopl   0x0(%rax)
L240:
  mov    -0x50(%rbp),%r14
  mov    -0x68(%rbp),%rdi
  movb   $0x0,(%r12)
  movslq -0x48(%rbp),%r12
  call   <strdup@plt>
  lea    (%r14,%r12,8),%r12
  mov    %rax,(%r12)
  mov    -0x58(%rbp),%rax
  movslq (%rax),%rcx
  cmpq   $0x0,(%r14,%rcx,8)
  mov    %rcx,%rax
  lea    0x0(,%rcx,8),%rsi
  je     L37
  mov    -0x58(%rbp),%rdx
  add    $0x1,%eax
  mov    %eax,(%rdx)
  mov    -0x50(%rbp),%rax
  movq   $0x0,0x8(%rax,%rsi,1)
  jmp    L367
  nopl   0x0(%rax,%rax,1)
L176:
  add    $0x1,%r15
L367:
  movsbl (%r15),%edi
  mov    %edi,%r12d
  call   <isspace@plt>
  test   %eax,%eax
  jne    L176
  test   %r12b,%r12b
  jne    L12
L126:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  mov    -0x50(%rbp),%rax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L34:
  mov    $0x1,%ebx
  jmp    L175
  nopw   0x0(%rax,%rax,1)
L232:
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  je     L164
  cmp    $0x22,%r14b
  jne    L41
  movl   $0x0,-0x44(%rbp)
  jmp    L175
  nopl   (%rax)
L254:
  add    $0x1,%r15
  jmp    L12
  nopl   0x0(%rax)
L164:
  cmp    $0x27,%r14b
  je     L347
  cmp    $0x22,%r14b
  jne    L41
  movl   $0x1,-0x44(%rbp)
  jmp    L175
  nopl   0x0(%rax,%rax,1)
L261:
  xor    %r13d,%r13d
  jmp    L175
  nopl   0x0(%rax,%rax,1)
L129:
  cmpq   $0x0,-0x50(%rbp)
  mov    %r8d,-0x48(%rbp)
  je     L159
  shll   -0x5c(%rbp)
  movslq -0x5c(%rbp),%rsi
  mov    -0x50(%rbp),%rdi
  shl    $0x3,%rsi
  call   <realloc@plt>
  mov    -0x48(%rbp),%r8d
L315:
  test   %rax,%rax
  je     L105
  mov    -0x58(%rbp),%rdx
  mov    %rax,-0x50(%rbp)
  movslq (%rdx),%rsi
  mov    %esi,-0x48(%rbp)
  movq   $0x0,(%rax,%rsi,8)
  jmp    L25
  nopw   0x0(%rax,%rax,1)
L295:
  movl   $0x0,-0x44(%rbp)
  xor    %ebx,%ebx
  xor    %r13d,%r13d
  jmp    L240
  nopl   0x0(%rax)
L347:
  mov    $0x1,%r13d
  jmp    L175
  nopl   0x0(%rax,%rax,1)
L159:
  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>
  mov    -0x48(%rbp),%r8d
  jmp    L315
L37:
  mov    -0x50(%rbp),%rdi
  xor    %eax,%eax
  call   <freeargv@plt>
  movq   $0x0,-0x50(%rbp)
  jmp    L126
L139:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L187
L105:
  mov    -0x50(%rbp),%rax
  test   %rax,%rax
  je     L297
  mov    %rax,%rdi
  xor    %eax,%eax
  call   <freeargv@plt>
L297:
  movq   $0x0,-0x50(%rbp)
  jmp    L126
L42:
  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);
}
```