user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<construct_command_argv>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D2(%rip),%rdi
  mov    %rsi,0x10(%rsp)
  call   <variable_expand_for_file@plt>
  lea    D53(%rip),%rsi
  movslq %eax,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L260
L189:
  mov    $0x20,%edi
  xor    %eax,%eax
  call   <xmalloc@plt>
  mov    0x10(%rsp),%rsi
  lea    D2(%rip),%rdi
  movslq %eax,%r12
  xor    %eax,%eax
  call   <variable_expand_for_file@plt>
  movq   $0x0,0x18(%r12)
  cltq
  mov    %rax,(%r12)
  lea    D8(%rip),%rax
  mov    %rax,0x8(%r12)
  mov    0x8(%rsp),%rax
  mov    %rax,0x10(%r12)
L127:
  add    $0x38,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L260:
  mov    %rbx,%rsi
  lea    D60(%rip),%rdi
  call   <variable_expand_for_file@plt>
  cltq
  movzbl (%rax),%edx
  test   %dl,%dl
  je     L251
  nopl   0x0(%rax,%rax,1)
L57:
  lea    -0x9(%rdx),%ecx
  cmp    $0x1,%cl
  jbe    L199
  cmp    $0x20,%dl
  jne    L189
L199:
  movzbl 0x1(%rax),%edx
  add    $0x1,%rax
  test   %dl,%dl
  jne    L57
L251:
  mov    0x8(%rsp),%rbx
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    0x1(%rax),%r13d
  xor    %eax,%eax
  movslq %r13d,%rbp
  lea    0x0(,%rbp,8),%rdi
  call   <xmalloc@plt>
  mov    %r13d,%edi
  movslq %eax,%r12
  xor    %eax,%eax
  call   <xmalloc@plt>
  movslq %eax,%r14
  mov    %r14,(%r12)
  movzbl (%rbx),%r15d
  lea    (%r14,%rbp,1),%rax
  mov    %rax,%rdi
  test   %r15b,%r15b
  je     L21
  cmp    %rax,%r14
  ja     1140 <construct_command_argv.cold>
  mov    0x8(%rsp),%rbp
  mov    %r15d,%eax
  mov    %r12,0x18(%rsp)
  mov    %r14,%r15
  movl   $0x0,0x28(%rsp)
  xor    %ebx,%ebx
  lea    D78(%rip),%r13
  mov    %eax,%r14d
  mov    %rbp,%r12
  mov    %rdi,%rbp
  jmp    L37
  nopl   (%rax)
L72:
  lea    0x1(%r12),%rax
  cmp    $0x27,%r14b
  je     L168
  mov    %r14b,(%r15)
  add    $0x1,%r15
  movzbl 0x1(%r12),%r14d
  mov    %rax,%r12
L190:
  test   %r14b,%r14b
  je     L212
L335:
  cmp    %rbp,%r15
  ja     L292
L37:
  test   %ebx,%ebx
  jne    L72
  movsbl %r14b,%esi
  mov    %r13,%rdi
  call   <index@plt>
  test   %rax,%rax
  jne    L146
  cmp    $0x27,%r14b
  je     L137
  jg     L49
  cmp    $0xa,%r14b
  jg     L158
  cmp    $0x8,%r14b
  jg     L87
L352:
  mov    %r14b,(%r15)
  movzbl 0x1(%r12),%r14d
  add    $0x1,%r15
  add    $0x1,%r12
  test   %r14b,%r14b
  jne    L335
  nopl   0x0(%rax)
L212:
  mov    0x18(%rsp),%r12
  movslq 0x28(%rsp),%rax
  mov    %r15,%r14
  lea    (%r12,%rax,8),%rax
L104:
  movb   $0x0,(%r14)
  mov    (%rax),%rdx
  cmpb   $0x0,(%rdx)
  je     L334
  mov    0x28(%rsp),%eax
  add    $0x1,%eax
  cltq
  lea    (%r12,%rax,8),%rax
L334:
  movq   $0x0,(%rax)
  xor    %eax,%eax
  cmpq   $0x0,(%r12)
  cmove  %rax,%r12
  jmp    L127
  nopl   0x0(%rax)
L49:
  cmp    $0x5c,%r14b
  jne    L352
  movzbl 0x1(%r12),%r14d
  lea    0x1(%r12),%rax
  test   %r14b,%r14b
  je     L22
  cmp    $0xa,%r14b
  je     L22
  mov    %r14b,(%r15)
  add    $0x2,%r12
  movzbl (%r12),%r14d
  add    $0x1,%r15
  jmp    L190
  nopl   0x0(%rax)
L158:
  cmp    $0x20,%r14b
  jne    L352
L87:
  addl   $0x1,0x28(%rsp)
  mov    0x18(%rsp),%rdi
  lea    0x1(%r15),%rsi
  movslq 0x28(%rsp),%rax
  movb   $0x0,(%r15)
  mov    %rsi,0x20(%rsp)
  mov    %rsi,(%rdi,%rax,8)
  cmp    $0x1,%eax
  je     L98
L20:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <next_token@plt>
  mov    0x20(%rsp),%r15
  movslq %eax,%r12
  movzbl (%r12),%r14d
  jmp    L190
  nopl   0x0(%rax,%rax,1)
L168:
  movzbl 0x1(%r12),%r14d
  xor    %ebx,%ebx
  mov    %rax,%r12
  jmp    L190
  nopl   0x0(%rax,%rax,1)
L137:
  movzbl 0x1(%r12),%r14d
  mov    $0x1,%ebx
  add    $0x1,%r12
  jmp    L190
  nopl   0x0(%rax)
L22:
  mov    %rax,%r12
  jmp    L190
L98:
  mov    (%rdi),%r14
  mov    %ebx,0x2c(%rsp)
  lea    D3(%rip),%r15
  lea    D25(%rip),%rax
  lea    0x1(%r14),%rdi
  mov    %r14,%rbx
  mov    %rdi,%r14
  jmp    L378
  nopl   0x0(%rax)
L27:
  mov    (%r15),%rax
  add    $0x8,%r15
  test   %rax,%rax
  je     L363
L378:
  cmp    %rax,%rbx
  je     L146
  movzbl (%rax),%edx
  cmp    (%rbx),%dl
  jne    L27
  test   %dl,%dl
  je     L146
  lea    0x1(%rax),%rdi
  mov    %r14,%rsi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L27
  nopl   0x0(%rax)
L146:
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  jmp    L189
  nopw   0x0(%rax,%rax,1)
L363:
  mov    0x2c(%rsp),%ebx
  jmp    L20
L21:
  movl   $0x0,0x28(%rsp)
  mov    %r12,%rax
  jmp    L104
L292:
  jmp    1140 <construct_command_argv.cold>
```

tool_calls: name: parse_data
arguments: tag: D2
type_infered: string
name: parse_data
arguments: tag: D53
type_infered: string
name: parse_data
arguments: tag: D8
type_infered: string
name: parse_data
arguments: tag: D60
type_infered: string
name: parse_data
arguments: tag: D25
type_infered: string

tool: D2: $(SHELL)

tool: D53: /bin/sh

tool: D8: -c

tool: D60: $(IFS)

tool: D25: cd

assistant: ```c
char **construct_command_argv(line, file)
char *line;
struct file *file;
{
  static char sh_chars[] = "#;\"*?[]&|<>(){}=$`";
  static char *sh_cmds[] = {"cd", "eval", "exec", "exit", "login", "logout", "set", "umask", "wait", "while", "for", "case", "if", ":", ".", "break", "continue", "export", "read", "readonly", "shift", "times", "trap", "switch", 0};
  register int i;
  register char *p;
  register char *ap;
  char *end;
  int instring;
  char **new_argv = 0;
  p = variable_expand_for_file("$(SHELL)", file);
  if (strcmp(p, "/bin/sh"))
    goto slow;
  p = variable_expand_for_file("$(IFS)", file);
  for (ap = p; *ap != '\0'; ++ap)
    if (*ap != ' ' && *ap != '\t' && *ap != '\n')
      goto slow;
  i = strlen(line) + 1;
  new_argv = (char **)xmalloc(i * sizeof(char *));
  ap = new_argv[0] = (char *)xmalloc(i);
  end = ap + i;
  i = 0;
  instring = 0;
  for (p = line; *p != '\0'; ++p) {
    if (ap > end)
      abort();
    if (instring) {
      if (*p == '\'')
        instring = 0;
      else
        *ap++ = *p;
    } else if (index(sh_chars, *p) != 0)
      goto slow;
    else
      switch (*p) {
      case '\\':
        if (p[1] != '\0' && p[1] != '\n')
          *ap++ = *++p;
        break;
      case '\'':
        instring = 1;
        break;
      case '\n':
      case ' ':
      case '\t':
        *ap++ = '\0';
        new_argv[++i] = ap;
        if (i == 1) {
          register int j;
          for (j = 0; sh_cmds[j] != 0; ++j)
            if (((sh_cmds[j]) == (new_argv[0]) || (*(sh_cmds[j]) == *(new_argv[0]) && (*(sh_cmds[j]) == '\0' || !strcmp((sh_cmds[j]) + 1, (new_argv[0]) + 1)))))
              goto slow;
        }
        p = next_token(p);
        --p;
        break;
      default:
        *ap++ = *p;
        break;
      }
  }
  *ap = '\0';
  if (new_argv[i][0] != '\0')
    ++i;
  new_argv[i] = 0;
  if (new_argv[0] == 0)
    return 0;
  else
    return new_argv;
slow:;
  if (new_argv != 0)
    free(new_argv);
  new_argv = (char **)xmalloc(4 * sizeof(char *));
  new_argv[0] = variable_expand_for_file("$(SHELL)", file);
  new_argv[1] = "-c";
  new_argv[2] = line;
  new_argv[3] = 0;
  return new_argv;
}
```