user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  cmp    $0x2,%edi
  jne    L125
  mov    0x8(%rbx),%rdi
  lea    0x4(%rsp),%rsi
  call   <lstat@plt>
  test   %rax,%rax
  js     L10
  mov    0x4(%rsp),%edi
  call   <S_ISDIR@plt>
  test   %rax,%rax
  je     L81
  mov    0x8(%rbx),%rdi
  call   <opendir@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L150
  lea    D101(%rip),%r12
  lea    D4(%rip),%r13
  lea    D42(%rip),%r14
  nopl   0x0(%rax)
L22:
  mov    %rbp,%rdi
  call   <readdir@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L86
  mov    (%rbx),%rdi
  mov    %r12,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L22
  mov    (%rbx),%rdi
  mov    %r13,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L22
  mov    (%rbx),%rdi
  mov    %r14,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L22
  mov    (%rbx),%rdi
  lea    D63(%rip),%rsi
  call   <strstr@plt>
  cmp    (%rbx),%rax
  jne    L22
  lea    D94(%rip),%rsi
  mov    %rax,%rdi
  call   <strstr@plt>
  mov    (%rbx),%rbx
  mov    %rax,%r15
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    -0x4(%rbx,%rax,1),%rax
  cmp    %rax,%r15
  jne    L22
  mov    %rbx,%rsi
  lea    D85(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L22
  nopl   (%rax)
L86:
  mov    %rbp,%rdi
  call   <closedir@plt>
  test   %rax,%rax
  js     L92
  xor    %eax,%eax
L37:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L57
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L125:
  mov    (%rsi),%rsi
  lea    D35(%rip),%rdi
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L37
L81:
  mov    0x8(%rbx),%rsi
  lea    D28(%rip),%rdi
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L37
L10:
  mov    0x8(%rbx),%rsi
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L37
L92:
  lea    D74(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%eax
  jmp    L37
L150:
  lea    D32(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%eax
  jmp    L37
L57:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D101
datatype: string
name: extract_symbolic_data
arguments: label: D4
datatype: string
name: extract_symbolic_data
arguments: label: D42
datatype: string
name: extract_symbolic_data
arguments: label: D63
datatype: string
name: extract_symbolic_data
arguments: label: D94
datatype: string
name: extract_symbolic_data
arguments: label: D85
datatype: string
name: extract_symbolic_data
arguments: label: D35
datatype: string
name: extract_symbolic_data
arguments: label: D28
datatype: string
name: extract_symbolic_data
arguments: label: D52
datatype: string
name: extract_symbolic_data
arguments: label: D74
datatype: string
name: extract_symbolic_data
arguments: label: D32
datatype: string

tool: D101: .

tool: D4: ..

tool: D42: server_config.xml

tool: D63: server_

tool: D94: .xml

tool: D85: %s


tool: D35: Usage: %s <path to xml files>


tool: D28: %s not a directory


tool: D52: Unable to stat %s


tool: D74: Unable to close directory

tool: D32: Unable to read directory

assistant: ```c
int main(int argc, char **argv) {
  struct stat statbuf;
  struct dirent *dirp;
  DIR *dp;
  int len;
  if (argc != 2) {
    printf("Usage: %s <path to xml files>\n", argv[0]);
    return -1;
  }
  if (lstat(argv[1], &statbuf) < 0) {
    printf("Unable to stat %s\n", argv[1]);
    return -1;
  }
  if (S_ISDIR(statbuf.st_mode) == 0) {
    printf("%s not a directory\n", argv[1]);
    return -1;
  }
  if ((dp = opendir(argv[1])) == NULL) {
    printf("Unable to read directory\n");
    return -1;
  }
  while ((dirp = readdir(dp)) != NULL) {
    if (strcmp(dirp->d_name, ".") == 0 || strcmp(dirp->d_name, "..") == 0 || strcmp(dirp->d_name, "server_config.xml") == 0 || strstr(dirp->d_name, "server_") != dirp->d_name)
      continue;
    if (strstr(dirp->d_name, ".xml") != dirp->d_name + strlen(dirp->d_name) - strlen(".xml"))
      continue;
    printf("%s\n", dirp->d_name);
  }
  if (closedir(dp) < 0) {
    printf("Unable to close directory\n");
    return -1;
  }
  return 0;
}
```