user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r12
  push   %rbx
  sub    $0x60,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%r12
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  movslq %ebx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x58(%rbp)
  movslq %ebx,%rax
  mov    %rax,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movslq %ebx,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %ebx,%rax
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L0:
  cmp    %rdx,%rsp
  je     L56
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L0
L56:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L45
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L45:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x50(%rbp)
  lea    D49(%rip),%rax
  mov    %rax,-0x40(%rbp)
  lea    D14(%rip),%rax
  mov    %rax,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  lea    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <pipe@plt>
  mov    %eax,-0x5c(%rbp)
  cmpl   $0x0,-0x5c(%rbp)
  je     L51
  mov    -0x5c(%rbp),%eax
  jmp    L32
L51:
  mov    -0x48(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,%ecx
  lea    D22(%rip),%rdx
  mov    %ebx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <putenv@plt>
  mov    -0x44(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,%ecx
  lea    D39(%rip),%rdx
  mov    %ebx,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <putenv@plt>
  lea    -0x40(%rbp),%rax
  mov    %rax,%rsi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <execv@plt>
L32:
  mov    %r12,%rsp
  mov    -0x28(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L38
  call   <__stack_chk_fail@plt>
L38:
  lea    -0x20(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D44
type: string
name: unpack_data
arguments: data_tag: D49
type: string
name: unpack_data
arguments: data_tag: D14
type: string
name: unpack_data
arguments: data_tag: D22
type: string
name: unpack_data
arguments: data_tag: D39
type: string

tool: D44: CNCIPCX=DDD

tool: D49: httpd

tool: D14: http_admin

tool: D22: CNCIPCI=%d

tool: D39: CNCIPCO=%d

assistant: ```c
int main(int argc, char *argv[]) {
  int pipe_fds[2];
  char ipc_var[(strlen("CNCIPC"
                       "X"
                       "=DDD"))];
  char *cmd[] = {"httpd", "http_admin", NULL};
  int err;
  if ((err = pipe(pipe_fds))) {
    return err;
  }
  snprintf(ipc_var, sizeof(ipc_var),
           "CNCIPC"
           "I"
           "=%d",
           pipe_fds[0]);
  putenv(ipc_var);
  snprintf(ipc_var, sizeof(ipc_var),
           "CNCIPC"
           "O"
           "=%d",
           pipe_fds[1]);
  putenv(ipc_var);
  return execv("httpd", cmd);
}
```