user: 请将以下的汇编代码转换成C语言代码：

```asm
<pathserver>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x600,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x25f4(%rbp)
  movl   $0x0,-0x2600(%rbp)
  movl   $0x0,-0x25fc(%rbp)
  movl   $0x0,-0x25f8(%rbp)
  mov    -0x25f4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x25f4(%rbp)
  lea    -0x25f0(%rbp),%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x8,%rax
  sub    %rdx,%rax
  add    %rcx,%rax
  mov    $0x10,%edx
  lea    D8(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
L37:
  lea    -0x25f8(%rbp),%rax
  mov    $0x4,%edx
  mov    %rax,%rsi
  mov    $0xd,%edi
  mov    $0x0,%eax
  call   <read@plt>
  lea    -0x25fc(%rbp),%rax
  mov    $0x4,%edx
  mov    %rax,%rsi
  mov    $0xd,%edi
  mov    $0x0,%eax
  call   <read@plt>
  mov    -0x25fc(%rbp),%edx
  lea    -0x110(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xd,%edi
  mov    $0x0,%eax
  call   <read@plt>
  mov    -0x25f8(%rbp),%eax
  test   %eax,%eax
  jne    L16
  mov    -0x25fc(%rbp),%edx
  mov    -0x25f4(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    %ecx,-0x25f4(%rbp)
  lea    -0x25f0(%rbp),%rsi
  movslq %eax,%rcx
  mov    %rcx,%rax
  shl    $0x8,%rax
  sub    %rcx,%rax
  lea    (%rsi,%rax,1),%rcx
  lea    -0x110(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  jmp    L37
L16:
  movl   $0x0,-0x2600(%rbp)
  jmp    L5
L40:
  mov    -0x2600(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x8,%rax
  sub    %rdx,%rax
  add    %rbp,%rax
  sub    $0x25f0,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L75
  mov    -0x2600(%rbp),%eax
  lea    -0x25f0(%rbp),%rcx
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x8,%rax
  sub    %rdx,%rax
  lea    (%rcx,%rax,1),%rdx
  lea    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L75
  mov    -0x2600(%rbp),%eax
  add    $0x3,%eax
  mov    %eax,-0x2600(%rbp)
  mov    -0x2600(%rbp),%eax
  add    $0xa,%eax
  mov    %eax,-0x2600(%rbp)
  mov    -0x25f8(%rbp),%eax
  lea    -0x2600(%rbp),%rcx
  mov    $0x4,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  movl   $0x0,-0x2600(%rbp)
  jmp    L83
L75:
  mov    -0x2600(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x2600(%rbp)
L5:
  mov    -0x2600(%rbp),%eax
  cmp    %eax,-0x25f4(%rbp)
  jg     L40
L83:
  mov    -0x2600(%rbp),%eax
  cmp    %eax,-0x25f4(%rbp)
  jg     L37
  movl   $0xffffffff,-0x2600(%rbp)
  mov    -0x25f8(%rbp),%eax
  lea    -0x2600(%rbp),%rcx
  mov    $0x4,%edx
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <write@plt>
  jmp    L37
```

tool_calls: name: extract_symbolic_data
arguments: label: D8
type_guessed: string

tool: D8: /sys/pathserver

assistant: ```c
void pathserver(void) {
  char paths[(10 * 5) - 10 - 3][255];
  int npaths = 0;
  int i = 0;
  unsigned int plen = 0;
  unsigned int replyfd = 0;
  char path[255];
  memcpy(paths[npaths++], "/sys/pathserver", sizeof("/sys/pathserver"));
  while (1) {
    read((10 + 3), &replyfd, 4);
    read((10 + 3), &plen, 4);
    read((10 + 3), path, plen);
    if (!replyfd) {
      memcpy(paths[npaths++], path, plen);
    } else {
      for (i = 0; i < npaths; i++) {
        if (*paths[i] && strcmp(path, paths[i]) == 0) {
          i += 3;
          i += 10;
          write(replyfd, &i, 4);
          i = 0;
          break;
        }
      }
      if (i >= npaths) {
        i = -1;
        write(replyfd, &i, 4);
      }
    }
  }
}
```