user: Converte this assembly snippet into its equivalent C code:

```asm
<child_execute_job>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  mov    %esi,%r15d
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %edi,%edi
  jne    L73
L14:
  cmp    $0x1,%r15d
  je     L119
  mov    $0x1,%esi
  mov    %r15d,%edi
  xor    %eax,%eax
  call   <dup2@plt>
L119:
  xor    %eax,%eax
  mov    $0x3,%ebx
  call   <getdtablesize@plt>
  mov    %eax,%r15d
  cmp    $0x3,%eax
  jle    L117
  nopl   0x0(%rax)
L7:
  mov    %ebx,%edi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <close@plt>
  cmp    %ebx,%r15d
  jne    L7
L117:
  xor    %eax,%eax
  call   <unblock_children@plt>
  mov    %r14,%rsi
  lea    D25(%rip),%rdi
  xor    %eax,%eax
  call   <allocated_variable_expand_for_file@plt>
  mov    %r13,%rsi
  mov    %r12,%rdi
  movslq %eax,%r15
  xor    %eax,%eax
  mov    %r15,%rdx
  call   <exec_command@plt>
  cmpq   $0x0,(%r12)
  mov    $0x1,%eax
  je     L47
  nopl   0x0(%rax)
L34:
  movslq %eax,%rbx
  add    $0x1,%rax
  cmpq   $0x0,-0x8(%r12,%rax,8)
  jne    L34
  lea    0x3(%rbx),%eax
  cltq
  shl    $0x3,%rax
L41:
  add    $0x17,%rax
  mov    %rsp,%rcx
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L63
L111:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L111
L63:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L29
L107:
  lea    0xf(%rsp),%r8
  mov    %r14,%rsi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  and    $0xfffffffffffffff0,%r8
  mov    %r8,-0x48(%rbp)
  call   <variable_expand_for_file@plt>
  mov    -0x48(%rbp),%r8
  lea    0x10(,%rbx,8),%rdx
  lea    0x8(,%rbx,8),%r9
  cltq
  mov    %rax,(%r8)
  lea    D11(%rip),%rax
  mov    %rax,0x8(%r8)
  mov    %rbx,%rax
  neg    %rax
  shl    $0x3,%rax
  lea    (%rax,%rdx,1),%rdi
  lea    -0x10(%rdx,%rax,1),%rax
  mov    %r9,%rdx
  add    %r8,%rdi
  lea    (%r12,%rax,1),%rsi
  call   <memcpy@plt>
  mov    -0x48(%rbp),%rdi
  mov    %r15,%rdx
  mov    %r13,%rsi
  xor    %eax,%eax
  call   <exec_command@plt>
  mov    $0x7f,%edi
  call   <_exit@plt>
  nopw   0x0(%rax,%rax,1)
L73:
  xor    %esi,%esi
  call   <dup2@plt>
  jmp    L14
  nopl   0x0(%rax)
L29:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L107
  nopl   0x0(%rax,%rax,1)
L47:
  mov    $0x18,%eax
  xor    %ebx,%ebx
  jmp    L41
```

tool_calls: name: unpack_data
arguments: tag: D25
type_infered: string
name: unpack_data
arguments: tag: D10
type_infered: string
name: unpack_data
arguments: tag: D11
type_infered: string

tool: D25: $(PATH)

tool: D10: $(SHELL)

tool: D11: -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);
  }
}
```