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

```asm
<fs_loadall>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  lea    D113(%rip),%rsi
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  test   %rax,%rax
  je     L8
  lea    0x30(%rsp),%r13
  mov    %rax,%rcx
  mov    $0x8,%edx
  mov    %rax,%rbp
  mov    $0x1,%esi
  mov    %r13,%rdi
  call   <fread@plt>
  cmp    $0x8,%eax
  jne    L16
  mov    $0x4,%edx
  lea    D3(%rip),%rsi
  mov    %r12,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L149
  cmpb   $0x0,(%r12)
  jne    L68
L149:
  movsbl 0x37(%rsp),%edx
  movsbl 0x30(%rsp),%esi
  movsbl 0x35(%rsp),%r11d
  movsbl 0x34(%rsp),%r10d
  movsbl 0x32(%rsp),%ecx
  movsbl 0x31(%rsp),%ebx
  mov    %edx,%edi
  mov    %esi,0x8(%rsp)
  movsbl 0x33(%rsp),%r8d
  movsbl 0x36(%rsp),%eax
  mov    %r11d,0x2c(%rsp)
  mov    %r10d,0x28(%rsp)
  mov    %r8d,0x24(%rsp)
  mov    %ecx,0x20(%rsp)
  mov    %edx,0x1c(%rsp)
  mov    %ebx,0x4(%rsp)
  mov    %eax,(%rsp)
  call   <dispchar@plt>
  movsbl 0x36(%rsp),%edi
  mov    %eax,0xc(%rsp)
  call   <dispchar@plt>
  movsbl 0x35(%rsp),%edi
  mov    %eax,0x10(%rsp)
  call   <dispchar@plt>
  movsbl 0x34(%rsp),%edi
  mov    %eax,0x14(%rsp)
  call   <dispchar@plt>
  movsbl 0x33(%rsp),%edi
  mov    %eax,0x18(%rsp)
  call   <dispchar@plt>
  movsbl 0x32(%rsp),%edi
  mov    %eax,%ebx
  call   <dispchar@plt>
  movsbl 0x31(%rsp),%edi
  mov    %eax,%r15d
  call   <dispchar@plt>
  movsbl 0x30(%rsp),%edi
  mov    %eax,%r14d
  call   <dispchar@plt>
  sub    $0x8,%rsp
  lea    D25(%rip),%rdi
  mov    0x24(%rsp),%edx
  mov    %eax,%esi
  push   %rdx
  mov    0x10(%rsp),%ecx
  push   %rcx
  mov    0x44(%rsp),%r11d
  push   %r11
  mov    0x48(%rsp),%r10d
  push   %r10
  mov    0x4c(%rsp),%r8d
  push   %r8
  mov    0x50(%rsp),%ecx
  mov    %ebx,%r8d
  push   %rcx
  mov    0x3c(%rsp),%ecx
  push   %rcx
  mov    0x48(%rsp),%ecx
  push   %rcx
  mov    0x54(%rsp),%ecx
  push   %rcx
  mov    0x60(%rsp),%edx
  mov    %r15d,%ecx
  push   %rdx
  mov    0x6c(%rsp),%eax
  mov    %r14d,%edx
  push   %rax
  mov    0x78(%rsp),%r9d
  xor    %eax,%eax
  call   <printf@plt>
  add    $0x60,%rsp
L68:
  mov    $0x8,%edx
  lea    D87(%rip),%rsi
  mov    %r13,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  je     L124
  mov    $0x5,%edx
  lea    D46(%rip),%rsi
  mov    %r13,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L11
  movzbl 0x35(%rsp),%esi
  lea    -0x31(%rsi),%eax
  cmp    $0x8,%al
  ja     L11
  cmpb   $0x2e,0x36(%rsp)
  jne    L11
  movzbl 0x37(%rsp),%eax
  sub    $0x30,%eax
  cmp    $0x9,%al
  ja     L11
  shl    $0x4,%esi
  add    %eax,%esi
  cmp    $0x16,%sil
  jg     L117
  cmpb   $0x0,(%r12)
  jne    L249
  mov    %rbp,%rdi
  call   <fs_load_pre17@plt>
  test   %rax,%rax
  js     L170
  mov    $0x10,%esi
  mov    %rbp,%rdi
  call   <chunk_load@plt>
  test   %rax,%rax
  js     L6
L120:
  mov    %rbp,%rdi
  call   <ferror@plt>
  test   %rax,%rax
  jne    L80
  mov    %rbp,%rdi
  call   <fclose@plt>
  xor    %eax,%eax
L46:
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L91
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L124:
  lea    D123(%rip),%rdi
  call   <puts@plt>
  jmp    L120
  xchg   %ax,%ax
L117:
  movsbl %sil,%esi
  mov    %r12,%rdx
  mov    %rbp,%rdi
  call   <fs_load@plt>
  test   %rax,%rax
  jns    L120
  nopl   0x0(%rax)
L27:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L46
  nopw   0x0(%rax,%rax,1)
L11:
  lea    D18(%rip),%rdi
  call   <puts@plt>
  jmp    L27
  xchg   %ax,%ax
L16:
  lea    D33(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L46
L80:
  lea    D115(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L46
L8:
  lea    D70(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L46
L249:
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L46
L170:
  lea    D81(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L46
L6:
  lea    D126(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L46
L91:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D113
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D3
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D25
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D87
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D46
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D123
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D18
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D33
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D115
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D70
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D35
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D81
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D126
type_guessed: string

tool: D113: r

tool: D3: HEAD

tool: D25: # header: %c%c%c%c%c%c%c%c (%02X%02X%02X%02X%02X%02X%02X%02X)


tool: D87: MFSM NEW

tool: D46: MFSM 

tool: D123: empty file

tool: D18: wrong metadata header (old version ?)

tool: D33: can't read metadata header

tool: D115: error reading metadata

tool: D70: can't open metadata file

tool: D35: old format detected - can't dump sections separatelly

tool: D81: error reading metadata (structure)

tool: D126: error reading metadata (chunks)

assistant: ```c
int fs_loadall(const char *fname, const char section[4]) {
  FILE *fd;
  uint8_t hdr[8];
  uint8_t fver;
  fd = fopen(fname, "r");
  if (fd == NULL) {
    printf("can't open metadata file\n");
    return -1;
  }
  if (fread(hdr, 1, 8, fd) != 8) {
    printf("can't read metadata header\n");
    fclose(fd);
    return -1;
  }
  if (memcmp(section, "HEAD", 4) == 0 || section[0] == 0) {
    printf("# header: %c%c%c%c%c%c%c%c (%02X%02X%02X%02X%02X%02X%02X%02X)\n", dispchar(hdr[0]), dispchar(hdr[1]), dispchar(hdr[2]), dispchar(hdr[3]), dispchar(hdr[4]), dispchar(hdr[5]), dispchar(hdr[6]), dispchar(hdr[7]), hdr[0], hdr[1], hdr[2], hdr[3], hdr[4], hdr[5], hdr[6], hdr[7]);
  }
  if (memcmp(hdr, "MFSM NEW", 8) == 0) {
    printf("empty file\n");
  } else if (memcmp(hdr,
                    "MFS"
                    "M ",
                    5) == 0 &&
             hdr[5] >= '1' && hdr[5] <= '9' && hdr[6] == '.' && hdr[7] >= '0' && hdr[7] <= '9') {
    fver = ((hdr[5] - '0') << 4) + (hdr[7] - '0');
    if (fver < 0x17) {
      if (section[0] != 0) {
        printf("old format detected - can't dump sections separatelly");
        fclose(fd);
        return -1;
      }
      if (fs_load_pre17(fd) < 0) {
        printf("error reading metadata (structure)\n");
        fclose(fd);
        return -1;
      }
      if (chunk_load(fd, 0x10) < 0) {
        printf("error reading metadata (chunks)\n");
        fclose(fd);
        return -1;
      }
    } else {
      if (fs_load(fd, fver, section) < 0) {
        fclose(fd);
        return -1;
      }
    }
  } else {
    printf("wrong metadata header (old version ?)\n");
    fclose(fd);
    return -1;
  }
  if (ferror(fd) != 0) {
    printf("error reading metadata\n");
    fclose(fd);
    return -1;
  }
  fclose(fd);
  return 0;
}
```