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

```asm
<ShowRefs>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x410,%rsp
  mov    %rdi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  lea    D8(%rip),%rdi
  call   <FixFilename@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cltq
  cmpb   $0x2f,-0x1(%rsp,%rax,1)
  jne    L76
L71:
  lea    0x100(%rsp),%rbx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    $0x2e,%esi
  mov    %rbx,%rdi
  call   <strrchr@plt>
  test   %rax,%rax
  je     L29
  movb   $0x0,(%rax)
L29:
  lea    0x100(%rsp),%rcx
  mov    %rsp,%rdx
  lea    0x200(%rsp),%rbx
  lea    D30(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  lea    D14(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L49
  lea    0x200(%rsp),%r12
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    $0x2e,%esi
  mov    %r12,%rdi
  call   <strrchr@plt>
  test   %rax,%rax
  je     L27
  movb   $0x0,(%rax)
L27:
  lea    0x200(%rsp),%rsi
  lea    D41(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x200(%rsp),%rbp
  lea    D26(%rip),%r12
L42:
  mov    %rbx,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L36
  mov    %rbx,%rdx
  mov    $0x1ff,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L42
  mov    %rbp,%rdi
  call   <strlen@plt>
  cltq
  lea    -0x1(%rbp,%rax,1),%rax
  cmpb   $0xa,(%rax)
  je     L22
L80:
  mov    %rbp,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L42
L76:
  mov    %rsp,%rdi
  lea    D7(%rip),%rsi
  call   <strcat@plt>
  jmp    L71
L22:
  movb   $0x0,(%rax)
  jmp    L80
L36:
  mov    %rbx,%rdi
  call   <fclose@plt>
  lea    D23(%rip),%rdi
  call   <puts@plt>
L49:
  mov    0x408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L15
  add    $0x410,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L15:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D8
type: string
name: extract_symbolic_data
arguments: data_tag: D30
type: string
name: extract_symbolic_data
arguments: data_tag: D14
type: string
name: extract_symbolic_data
arguments: data_tag: D41
type: string
name: extract_symbolic_data
arguments: data_tag: D26
type: string
name: extract_symbolic_data
arguments: data_tag: D7
type: string
name: extract_symbolic_data
arguments: data_tag: D23
type: string

tool: D8: logs/

tool: D30: %s%s.ref

tool: D14: r

tool: D41: <h2>Reference URL's for %s.html</h2>
<ul>


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


tool: D7: /

tool: D23: </ul><hr>

assistant: ```c
void ShowRefs(char *filename) {
  char logdir[256];
  char fn[256];
  char buf[512];
  FILE *fp;
  char *s;
  if ("logs/"[0] != '/')
    FixFilename("logs/", logdir);
  else
    strcpy(logdir, "logs/");
  s = logdir + strlen(logdir) - 1;
  if (*s != '/')
    strcat(logdir, "/");
  strcpy(fn, filename);
  s = strrchr(fn, '.');
  if (s)
    *s = '\0';
  sprintf(buf, "%s%s.ref", logdir, fn);
  fp = fopen(buf, "r");
  if (!fp)
    return;
  strcpy(buf, filename);
  s = strrchr(buf, '.');
  if (s)
    *s = '\0';
  printf("<h2>Reference URL's for %s.html</h2>\n<ul>\n", buf);
  while (!feof(fp)) {
    if (fgets(buf, 511, fp)) {
      s = buf + strlen(buf) - 1;
      if (*s == '\n')
        *s = '\0';
      printf("<li><a href=\"%s\">%s</a><br>\n", buf, buf);
    }
  }
  fclose(fp);
  puts("</ul><hr>");
}
```