user: Demonstrate the C code that generates the assembly output below:

```asm
<popen_noshell_split_command_to_argv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x40(%rbp)
  movl   $0x0,-0x50(%rbp)
  movabs $0x3b267c0a60245c21,%rax
  mov    %rax,-0x15(%rbp)
  movl   $0x3e3c2928,-0xd(%rbp)
  movb   $0x0,-0x9(%rbp)
  movl   $0x0,-0x48(%rbp)
  movl   $0x0,-0x44(%rbp)
  movl   $0x0,-0x4c(%rbp)
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  add    $0x1,%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x70(%rbp),%rax
  mov    -0x28(%rbp),%rdx
  mov    %rdx,(%rax)
  cmpq   $0x0,-0x28(%rbp)
  jne    L4
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L4:
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x4c(%rbp)
  movq   $0x0,-0x38(%rbp)
  jmp    L51
L113:
  cmpq   $0x0,-0x30(%rbp)
  jne    L307
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x30(%rbp)
L307:
  mov    -0x68(%rbp),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x51(%rbp)
  movsbl -0x51(%rbp),%edx
  lea    -0x15(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <index@plt>
  test   %rax,%rax
  je     L22
  mov    D41(%rip),%rax
  mov    (%rax),%edx
  mov    D59(%rip),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L22:
  cmpb   $0x20,-0x51(%rbp)
  je     L214
  cmpb   $0x9,-0x51(%rbp)
  jne    L76
L214:
  cmpl   $0x0,-0x48(%rbp)
  jne    L308
  cmpl   $0x0,-0x44(%rbp)
  je     L219
L308:
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4c(%rbp)
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x51(%rbp),%eax
  mov    %al,(%rdx)
  jmp    L180
L219:
  lea    -0x4c(%rbp),%rdi
  mov    -0x28(%rbp),%rcx
  mov    -0x30(%rbp),%rdx
  lea    -0x50(%rbp),%rsi
  lea    -0x40(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <_popen_noshell_add_token@plt>
  test   %rax,%rax
  je     L232
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L232:
  movq   $0x0,-0x30(%rbp)
  jmp    L180
L76:
  cmpb   $0x27,-0x51(%rbp)
  jne    L73
  cmpl   $0x0,-0x44(%rbp)
  jne    L73
  cmpl   $0x0,-0x48(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x48(%rbp)
  jmp    L180
L73:
  cmpb   $0x22,-0x51(%rbp)
  jne    L30
  cmpl   $0x0,-0x48(%rbp)
  jne    L30
  cmpl   $0x0,-0x44(%rbp)
  sete   %al
  movzbl %al,%eax
  mov    %eax,-0x44(%rbp)
  jmp    L180
L30:
  mov    -0x4c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4c(%rbp)
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rax,%rdx
  movzbl -0x51(%rbp),%eax
  mov    %al,(%rdx)
L180:
  addq   $0x1,-0x38(%rbp)
L51:
  mov    -0x38(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jb     L113
  cmpl   $0x0,-0x48(%rbp)
  jne    L93
  cmpl   $0x0,-0x44(%rbp)
  je     L228
L93:
  mov    D41(%rip),%rax
  mov    (%rax),%edx
  mov    D59(%rip),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L228:
  lea    -0x4c(%rbp),%rdi
  mov    -0x28(%rbp),%rcx
  mov    -0x30(%rbp),%rdx
  lea    -0x50(%rbp),%rsi
  lea    -0x40(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <_popen_noshell_add_token@plt>
  test   %rax,%rax
  je     L226
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L226:
  mov    -0x50(%rbp),%eax
  test   %eax,%eax
  jne    L186
  mov    D41(%rip),%rax
  mov    (%rax),%edx
  mov    D59(%rip),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L186:
  lea    -0x50(%rbp),%rcx
  lea    -0x40(%rbp),%rax
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <popen_noshell_add_ptr_to_argv@plt>
  test   %rax,%rax
  je     L243
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  jmp    L118
L243:
  mov    -0x40(%rbp),%rax
L118:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L291
  call   <__stack_chk_fail@plt>
L291:
  leave
  ret
```

assistant: ```c
char **popen_noshell_split_command_to_argv(const char *command_original, char **free_this_buf) {
  char *command;
  size_t i, len;
  char *start = NULL;
  char c;
  char **argv = NULL;
  int count = 0;
  const char _popen_bash_meta_characters[] = "!\\$`\n|&;()<>";
  int in_sq = 0;
  int in_dq = 0;
  int j = 0;
  command = (char *)calloc(strlen(command_original) + 1, sizeof(char));
  *free_this_buf = command;
  if (!command) {
    free(argv);
    return NULL;
  };
  len = strlen(command_original);
  j = 0;
  for (i = 0; i < len; ++i) {
    if (!start)
      start = command + j;
    c = command_original[i];
    if (index(_popen_bash_meta_characters, c) != NULL) {
      errno = EINVAL;
      {
        free(argv);
        return NULL;
      };
    }
    if (c == ' ' || c == '\t') {
      if (in_sq || in_dq) {
        command[j++] = c;
        continue;
      }
      if (_popen_noshell_add_token(&argv, &count, start, command, &j) != 0) {
        {
          free(argv);
          return NULL;
        };
      }
      start = NULL;
      continue;
    }
    if (c == '\'' && !in_dq) {
      in_sq = !in_sq;
      continue;
    }
    if (c == '"' && !in_sq) {
      in_dq = !in_dq;
      continue;
    }
    command[j++] = c;
  }
  if (in_sq || in_dq) {
    errno = EINVAL;
    {
      free(argv);
      return NULL;
    };
  }
  if (_popen_noshell_add_token(&argv, &count, start, command, &j) != 0) {
    {
      free(argv);
      return NULL;
    };
  }
  if (count == 0) {
    errno = EINVAL;
    {
      free(argv);
      return NULL;
    };
  }
  if (popen_noshell_add_ptr_to_argv(&argv, &count, NULL) != 0) {
    {
      free(argv);
      return NULL;
    };
  }
  return argv;
}
```