user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x3028(%rsp)
  xor    %eax,%eax
  call   <initialization@plt>
  lea    D104(%rip),%rdi
  call   <addnode@plt>
  lea    D118(%rip),%rdi
  call   <addnode@plt>
  lea    D92(%rip),%rdi
  call   <addnode@plt>
  lea    D41(%rip),%rdi
  call   <addnode@plt>
  lea    D72(%rip),%rdi
  call   <addnode@plt>
  lea    D29(%rip),%rdi
  call   <addnode@plt>
  lea    D50(%rip),%rdi
  call   <addnode@plt>
  mov    $0x0,%eax
  call   <dirs@plt>
  lea    D65(%rip),%r13
  lea    D105(%rip),%r12
  lea    D126(%rip),%r14
  lea    D102(%rip),%r15
  jmp    L76
L52:
  lea    0x2020(%rsp),%rdi
  call   <pushd@plt>
  mov    $0x0,%eax
  call   <dirs@plt>
L76:
  movb   $0x0,0x2020(%rsp)
  mov    %rsp,%rbp
  mov    %rbp,%rdi
  call   <gets@plt>
  lea    0x2020(%rsp),%rcx
  lea    0x1010(%rsp),%rbx
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L52
  lea    0x1010(%rsp),%rdi
  mov    %r14,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L21
  lea    0x1010(%rsp),%rdi
  mov    %r15,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L28
  lea    0x1010(%rsp),%rdi
  lea    D55(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L75
  mov    %rsp,%rdi
  call   <system@plt>
  jmp    L76
L21:
  lea    D4(%rip),%rdi
  call   <printf@plt>
  jmp    L76
L28:
  call   <dirs@plt>
  jmp    L76
L75:
  mov    $0x0,%eax
  call   <freenode@plt>
  mov    0x3028(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  mov    $0x0,%eax
  add    $0x3038,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D104
type_guessed: string
name: parse_data
arguments: data_tag: D118
type_guessed: string
name: parse_data
arguments: data_tag: D92
type_guessed: string
name: parse_data
arguments: data_tag: D41
type_guessed: string
name: parse_data
arguments: data_tag: D72
type_guessed: string
name: parse_data
arguments: data_tag: D29
type_guessed: string
name: parse_data
arguments: data_tag: D50
type_guessed: string
name: parse_data
arguments: data_tag: D65
type_guessed: string
name: parse_data
arguments: data_tag: D105
type_guessed: string
name: parse_data
arguments: data_tag: D126
type_guessed: string
name: parse_data
arguments: data_tag: D102
type_guessed: string
name: parse_data
arguments: data_tag: D55
type_guessed: string
name: parse_data
arguments: data_tag: D4
type_guessed: string

tool: D104: /bin

tool: D118: /boot

tool: D92: /etc

tool: D41: /mnt

tool: D72: /tmp

tool: D29: /home

tool: D50: /lib

tool: D65: %s %s

tool: D105: pushd

tool: D126: popd

tool: D102: dirs

tool: D55: exit

tool: D4: unfinished

assistant: ```c
int main() {
  char inputstr[4096 + 1];
  char command[4096 + 1];
  char option[4096 + 1];
  initialization();
  addnode("/bin");
  addnode("/boot");
  addnode("/etc");
  addnode("/mnt");
  addnode("/tmp");
  addnode("/home");
  addnode("/lib");
  dirs();
  for (;;) {
    option[0] = '\0';
    gets(inputstr);
    sscanf(inputstr, "%s %s", command, option);
    if (strcmp(command, "pushd") == 0) {
      pushd(option);
      dirs();
    } else if (strcmp(command, "popd") == 0) {
      printf("unfinished");
    } else if (strcmp(command, "dirs") == 0) {
      dirs();
    } else if (strcmp(command, "exit") == 0) {
      break;
    } else
      system(inputstr);
  }
  freenode();
  return 0;
}
```