user: 下面的汇编指令对应的C源代码是什么:

```asm
<SendDirectory>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0xd0,%rsp
  mov    %edi,-0x30b4(%rbp)
  mov    %rsi,-0x30c0(%rbp)
  mov    %rdx,-0x30c8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x30c0(%rbp),%rax
  mov    %rax,%rdi
  call   <opendir@plt>
  mov    %rax,-0x30a8(%rbp)
  cmpq   $0x0,-0x30a8(%rbp)
  jne    L5
  lea    -0x2810(%rbp),%rax
  mov    $0x80,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x30c8(%rbp),%rdx
  lea    -0x3090(%rbp),%rax
  lea    D44(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x3090(%rbp),%rdx
  mov    -0x30b4(%rbp),%eax
  mov    %rdx,%r8
  lea    D47(%rip),%rdx
  mov    %rdx,%rcx
  lea    D40(%rip),%rdx
  mov    $0x1f4,%esi
  mov    %eax,%edi
  call   <SendError@plt>
L5:
  lea    -0x2c10(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x2c10(%rbp),%rdx
  mov    -0x30c8(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x1,%edx
  mov    $0xffffffff,%esi
  mov    %rax,%rdi
  call   <substr@plt>
  lea    -0x2c10(%rbp),%rax
  lea    D108(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L55
  lea    -0x2c10(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x30c8(%rbp),%rdx
  lea    -0x2c10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L31
L55:
  lea    -0x2c10(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x30c8(%rbp),%rdx
  lea    -0x2c10(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x2c10(%rbp),%rax
  lea    D108(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L31:
  mov    -0x30c8(%rbp),%rcx
  mov    -0x30c8(%rbp),%rdx
  lea    -0x3010(%rbp),%rax
  mov    %rcx,%r8
  lea    D121(%rip),%rcx
  lea    D85(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x3010(%rbp),%rdx
  lea    -0x2810(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L33
L20:
  mov    -0x30a0(%rbp),%rax
  mov    (%rax),%rax
  lea    D31(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L33
  lea    -0x3010(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x30a0(%rbp),%rax
  mov    (%rax),%rsi
  mov    -0x30a0(%rbp),%rax
  mov    (%rax),%rcx
  lea    -0x2c10(%rbp),%rdx
  lea    -0x3010(%rbp),%rax
  mov    %rsi,%r8
  lea    D102(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x3010(%rbp),%rdx
  lea    -0x2810(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L33:
  mov    -0x30a8(%rbp),%rax
  mov    %rax,%rdi
  call   <readdir@plt>
  mov    %rax,-0x30a0(%rbp)
  cmpq   $0x0,-0x30a0(%rbp)
  jne    L20
  lea    -0x3010(%rbp),%rax
  mov    $0x400,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  lea    -0x3010(%rbp),%rax
  lea    D121(%rip),%rdx
  lea    D18(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x3010(%rbp),%rdx
  lea    -0x2810(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  lea    -0x2810(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x3098(%rbp)
  mov    -0x3098(%rbp),%rdx
  mov    -0x30b4(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    %rdx,%r9
  lea    D98(%rip),%r8
  lea    D47(%rip),%rdx
  mov    %rdx,%rcx
  lea    D123(%rip),%rdx
  mov    $0xc8,%esi
  mov    %eax,%edi
  call   <SendHeaders@plt>
  add    $0x10,%rsp
  mov    -0x3098(%rbp),%rdx
  lea    -0x2810(%rbp),%rcx
  mov    -0x30b4(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L58
  call   <__stack_chk_fail@plt>
L58:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D44
type: string
name: retrieve_data
arguments: label: D47
type: string
name: retrieve_data
arguments: label: D40
type: string
name: retrieve_data
arguments: label: D108
type: string
name: retrieve_data
arguments: label: D121
type: string
name: retrieve_data
arguments: label: D85
type: string
name: retrieve_data
arguments: label: D31
type: string
name: retrieve_data
arguments: label: D102
type: string
name: retrieve_data
arguments: label: D18
type: string
name: retrieve_data
arguments: label: D98
type: string
name: retrieve_data
arguments: label: D123
type: string

tool: D44: Something unexpected went wrong browse directory %s.

tool: 

tool: D40: Internal Server Error

tool: D108: /

tool: D121: tmhttpd/1.0.0_alpha

tool: D85: <html>
<head>
<title>Browse directory %s - %s</title>
</head>
<body><h3>Directory %s</h3>
<hr />
<ul>


tool: D31: .

tool: D102: 	<li><a href="%s%s">%s</a></li>


tool: D18: 
</ul>
<br /><hr />
<address>%s</address>
</body>
</html>


tool: D98: text/html

tool: D123: OK

assistant: ```c
int SendDirectory(int client_sock, char *path, char *pathinfo) {
  size_t file_size;
  char msg[128], buf[10240], tmp[1024], tmp_path[1024];
  DIR *dp;
  struct dirent *node;
  if ((dp = opendir(path)) == NULL) {
    memset(buf, 0, sizeof(msg));
    sprintf(msg, "Something unexpected went wrong browse directory %s.", pathinfo);
    SendError(client_sock, 500, "Internal Server Error", "", msg);
  }
  memset(tmp_path, 0, sizeof(tmp_path));
  substr(pathinfo, -1, 1, tmp_path);
  if (strcmp(tmp_path, "/") == 0) {
    memset(tmp_path, 0, sizeof(tmp_path));
    strcpy(tmp_path, pathinfo);
  } else {
    memset(tmp_path, 0, sizeof(tmp_path));
    strcpy(tmp_path, pathinfo);
    strcat(tmp_path, "/");
  }
  sprintf(tmp, "<html>\n<head>\n<title>Browse directory %s - %s</title>\n</head>\n<body><h3>Directory %s</h3>\n<hr />\n<ul>\n", pathinfo, "tmhttpd/1.0.0_alpha", pathinfo);
  strcat(buf, tmp);
  while ((node = readdir(dp)) != NULL) {
    if (strcmp(node->d_name, ".") != 0) {
      memset(tmp, 0, sizeof(tmp));
      sprintf(tmp, "\t<li><a href=\"%s%s\">%s</a></li>\n", tmp_path, node->d_name, node->d_name);
      strcat(buf, tmp);
    }
  }
  memset(tmp, 0, sizeof(tmp));
  sprintf(tmp, "\n</ul>\n<br /><hr />\n<address>%s</address>\n</body>\n</html>\n", "tmhttpd/1.0.0_alpha");
  strcat(buf, tmp);
  file_size = strlen(buf);
  SendHeaders(client_sock, 200, "OK", "", "text/html", file_size, 0);
  write(client_sock, buf, file_size);
  return 0;
}
```