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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x350,%rsp
  mov    %edi,-0x344(%rbp)
  mov    %rsi,-0x350(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x2,-0x344(%rbp)
  je     L7
  mov    -0x350(%rbp),%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <basename@plt>
  mov    %eax,%esi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <err_quit@plt>
L7:
  mov    -0x350(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rdx
  lea    -0x310(%rbp),%rax
  mov    %rdx,%rcx
  lea    D77(%rip),%rdx
  mov    $0x100,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  lea    -0x310(%rbp),%rax
  mov    %rax,%rdi
  call   <opendir@plt>
  mov    %rax,-0x330(%rbp)
  cmpq   $0x0,-0x330(%rbp)
  jne    L109
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <err_sys@plt>
  jmp    L109
L54:
  mov    -0x328(%rbp),%rax
  mov    (%rax),%rax
  lea    D17(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L109
  mov    -0x328(%rbp),%rax
  mov    (%rax),%rax
  lea    D66(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L138
  jmp    L109
L138:
  mov    -0x328(%rbp),%rax
  mov    (%rax),%rcx
  lea    -0x310(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  mov    %rcx,%r8
  mov    %rdx,%rcx
  lea    D29(%rip),%rdx
  mov    $0x100,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  lea    -0x110(%rbp),%rcx
  lea    -0x210(%rbp),%rax
  mov    $0xff,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <readlink@plt>
  mov    %eax,-0x33c(%rbp)
  cmpl   $0xffffffff,-0x33c(%rbp)
  jne    L25
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <err_sys@plt>
L25:
  mov    -0x33c(%rbp),%eax
  cltq
  movb   $0x0,-0x110(%rbp,%rax,1)
  movzbl -0x110(%rbp),%eax
  cmp    $0x2f,%al
  jne    L24
  jmp    L109
L24:
  lea    -0x110(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x320(%rbp)
  cmpq   $0x0,-0x320(%rbp)
  je     L109
  mov    -0x320(%rbp),%rax
  movb   $0x0,(%rax)
  lea    -0x110(%rbp),%rax
  lea    D52(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L109
  lea    -0x338(%rbp),%rdx
  lea    -0x210(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jns    L69
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <err_sys@plt>
L69:
  mov    -0x338(%rbp),%rax
  mov    %rax,-0x318(%rbp)
  mov    -0x318(%rbp),%rax
  mov    %rax,%rdi
  call   <sockq@plt>
L109:
  mov    -0x330(%rbp),%rax
  mov    %rax,%rdi
  call   <readdir@plt>
  mov    %rax,-0x328(%rbp)
  cmpq   $0x0,-0x328(%rbp)
  jne    L54
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L70
  call   <__stack_chk_fail@plt>
L70:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D59
datatype: string
name: disassemble_data
arguments: data_label: D77
datatype: string
name: disassemble_data
arguments: data_label: D6
datatype: string
name: disassemble_data
arguments: data_label: D17
datatype: string
name: disassemble_data
arguments: data_label: D66
datatype: string
name: disassemble_data
arguments: data_label: D29
datatype: string
name: disassemble_data
arguments: data_label: D1
datatype: string
name: disassemble_data
arguments: data_label: D52
datatype: string
name: disassemble_data
arguments: data_label: D30
datatype: string

tool: D59: Usage: %s <PID>

tool: D77: /proc/%s/fd

tool: D6: opendir error

tool: D17: .

tool: D66: ..

tool: D29: %s/%s

tool: D1: readlink

tool: D52: socket

tool: D30: stat error

assistant: ```c
int main(int argc, char *argv[]) {
  DIR *dp;
  char *ch, buf[256], filename[256], pathname[256];
  struct dirent *dirp;
  int n;
  unsigned long long ino;
  struct stat statbuf;
  if (argc != 2)
    err_quit("Usage: %s <PID>", basename(argv[0]));
  snprintf(buf, sizeof(buf), "/proc/%s/fd", argv[1]);
  if ((dp = opendir(buf)) == NULL)
    err_sys("opendir error");
  while ((dirp = readdir(dp)) != NULL) {
    if (strcmp(dirp->d_name, ".") == 0 || strcmp(dirp->d_name, "..") == 0)
      continue;
    snprintf(filename, sizeof(filename), "%s/%s", buf, dirp->d_name);
    if ((n = readlink(filename, pathname, sizeof(pathname) - 1)) == -1)
      err_sys("readlink");
    pathname[n] = '\0';
    if (*pathname == '/')
      continue;
    if ((ch = strchr(pathname, ':'))) {
      *ch = '\0';
      if (strcmp(pathname, "socket") == 0) {
        if (stat(filename, &statbuf) < 0)
          err_sys("stat error");
        ino = (unsigned long long)statbuf.st_ino;
        sockq(ino);
      }
    }
  }
  return 0;
}
```