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

```asm
<child_execute_job>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %esi,%ebx
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,%r12
  mov    %r8,%r14
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %edi,%edi
  jne    L93
L92:
  cmp    $0x1,%ebx
  jne    L96
L105:
  mov    $0x0,%eax
  call   <getdtablesize@plt>
  mov    %eax,%r13d
  cmp    $0x3,%eax
  jle    L53
  mov    $0x3,%ebx
L32:
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <close@plt>
  add    $0x1,%ebx
  cmp    %ebx,%r13d
  jne    L32
L53:
  mov    $0x0,%eax
  call   <unblock_children@plt>
  mov    -0x48(%rbp),%rsi
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <allocated_variable_expand_for_file@plt>
  movslq %eax,%r15
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <exec_command@plt>
  cmpq   $0x0,(%r12)
  je     L95
  mov    $0x1,%eax
L55:
  mov    %eax,%ebx
  add    $0x1,%rax
  cmpq   $0x0,-0x8(%r12,%rax,8)
  jne    L55
L102:
  lea    0x3(%rbx),%eax
  cltq
  lea    0x17(,%rax,8),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L33:
  cmp    %rdx,%rsp
  je     L12
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L33
L93:
  mov    $0x0,%esi
  call   <dup2@plt>
  jmp    L92
L96:
  mov    $0x1,%esi
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <dup2@plt>
  jmp    L105
L95:
  mov    $0x0,%ebx
  jmp    L102
L12:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L63
  orq    $0x0,-0x8(%rsp,%rax,1)
L63:
  lea    0xf(%rsp),%r13
  and    $0xfffffffffffffff0,%r13
  mov    -0x48(%rbp),%rsi
  lea    D0(%rip),%rdi
  mov    $0x0,%eax
  call   <variable_expand_for_file@plt>
  cltq
  mov    %rax,0x0(%r13)
  lea    D14(%rip),%rax
  mov    %rax,0x8(%r13)
  movslq %ebx,%rbx
L94:
  mov    (%r12,%rbx,8),%rax
  mov    %rax,0x10(%r13,%rbx,8)
  sub    $0x1,%rbx
  lea    0x1(%rbx),%eax
  test   %eax,%eax
  jg     L94
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <exec_command@plt>
  mov    $0x7f,%edi
  call   <_exit@plt>
```

tool_calls: name: read_data
arguments: tag: D2
type_guessed: string
name: read_data
arguments: tag: D0
type_guessed: string
name: read_data
arguments: tag: D14
type_guessed: string

tool: D2: $(PATH)

tool: D0: $(SHELL)

tool: D14: -c

assistant: ```c
void child_execute_job(stdin_fd, stdout_fd, file, argv, envp) int stdin_fd, stdout_fd;
struct file *file;
char **argv, **envp;
{
  char *path;
  if (stdin_fd != 0)
    (void)dup2(stdin_fd, 0);
  if (stdout_fd != 1)
    (void)dup2(stdout_fd, 1);
  {
    register int d;
    int max = getdtablesize();
    for (d = 3; d < max; ++d)
      (void)close(d);
  }
  unblock_children();
  path = allocated_variable_expand_for_file("$(PATH)", file);
  exec_command(argv, envp, path);
  {
    int argc;
    char **shell_argv;
    argc = 0;
    while (argv[argc] != 0)
      ++argc;
    shell_argv = (char **)__builtin_alloca((2 + argc + 1) * sizeof(char *));
    shell_argv[0] = variable_expand_for_file("$(SHELL)", file);
    shell_argv[1] = "-c";
    do
      shell_argv[2 + argc] = argv[argc];
    while (argc-- > 0);
    exec_command(shell_argv, envp, path);
    _exit(127);
  }
}
```