user: Demonstrate the C code that generates the assembly output below:

```asm
<trav_dir>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %esi,-0x54(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <opendir@plt>
  test   %rax,%rax
  je     L35
  mov    %r14,%rdi
  mov    %rax,%r13
  lea    D13(%rip),%r15
  call   <strlen@plt>
  mov    %rax,-0x50(%rbp)
  add    $0x1,%rax
  mov    %rax,-0x60(%rbp)
L145:
  mov    %r13,%rdi
  call   <readdir@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L134
L86:
  mov    (%rbx),%rsi
  mov    %rsi,%rdi
  mov    %rsi,-0x48(%rbp)
  call   <strlen@plt>
  mov    -0x48(%rbp),%rsi
  mov    %r15,%rdi
  mov    %rax,%r12
  call   <strcmp@plt>
  test   %eax,%eax
  je     L145
  mov    -0x50(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rsp,%r9
  lea    (%rax,%r12,1),%r8
  lea    0x14(%r8),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L57
L102:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L102
L57:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L38
  orq    $0x0,-0x8(%rsp,%rdx,1)
L38:
  mov    -0x50(%rbp),%rdx
  mov    %r14,%rsi
  mov    %rsp,%rdi
  mov    %r9,-0x68(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %rsp,-0x70(%rbp)
  call   <memcpy@plt>
  mov    -0x50(%rbp),%rax
  mov    %r12,%rdx
  movb   $0x2f,(%rsp,%rax,1)
  mov    -0x60(%rbp),%rax
  mov    (%rbx),%rsi
  lea    (%rsp,%rax,1),%rdi
  call   <memcpy@plt>
  mov    -0x48(%rbp),%r8
  lea    D2(%rip),%rsi
  mov    %rsp,%rdi
  movb   $0x0,0x1(%rsp,%r8,1)
  call   <stat@plt>
  mov    -0x68(%rbp),%r9
  test   %rax,%rax
  jne    L94
  mov    D2(%rip),%edi
  mov    %r9,-0x48(%rbp)
  call   <S_ISDIR@plt>
  mov    -0x48(%rbp),%r9
  test   %rax,%rax
  je     L27
  mov    (%rbx),%rax
  cmpb   $0x2e,(%rax)
  jne    L143
  movzbl 0x1(%rax),%edx
  test   %dl,%dl
  je     L94
  cmp    $0x2e,%dl
  je     L45
L143:
  mov    -0x54(%rbp),%eax
  mov    -0x70(%rbp),%rdi
  mov    %r9,-0x48(%rbp)
  lea    0x1(%rax),%esi
  call   <trav_dir>
  mov    -0x48(%rbp),%r9
L94:
  mov    %r9,%rsp
L155:
  mov    %r13,%rdi
  call   <readdir@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  jne    L86
L134:
  mov    %r13,%rdi
  call   <closedir@plt>
L35:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L65
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L27:
  mov    %rsp,%rdi
  mov    $0x2e,%esi
  mov    %r9,-0x48(%rbp)
  call   <strrchr@plt>
  mov    -0x48(%rbp),%r9
  mov    %r9,%rsp
  jmp    L155
  nopw   0x0(%rax,%rax,1)
L45:
  cmpb   $0x0,0x2(%rax)
  je     L94
  jmp    L143
L65:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D13
type_infered: string

tool: D13: zlib

assistant: ```c
void trav_dir(const char *dir_name, int level) {
  DIR *pdir = opendir(dir_name);
  struct dirent *entry;
  size_t d_len = strlen(dir_name);
  if (!pdir)
    return;
  while ((entry = readdir(pdir))) {
    static struct stat st_buf;
    size_t e_len = strlen(entry->d_name);
    if (!strcmp("zlib", entry->d_name))
      continue;
    else {
      char n_path[d_len + e_len + 5];
      memcpy(n_path, dir_name, d_len);
      n_path[d_len] = '/';
      memcpy(n_path + d_len + 1, entry->d_name, e_len);
      n_path[d_len + 1 + e_len] = '\0';
      if (stat(n_path, &st_buf))
        continue;
      if (S_ISDIR(st_buf.st_mode)) {
        if ('.' != entry->d_name[0] || ('\0' != entry->d_name[1] && ('.' != entry->d_name[1] || '\0' != entry->d_name[2])))
          trav_dir(n_path, level + 1);
      } else {
        char *c_ptr = strrchr(n_path, '.');
        if (!c_ptr)
          continue;
      }
    }
  }
  closedir(pdir);
}
```