user: 这段汇编代码用C语言表示是什么样的？

```asm
<fs_loadall>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    -0x58(%rbp),%rax
  lea    D47(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x48(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  jne    L204
  lea    D79(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L204:
  mov    -0x48(%rbp),%rdx
  lea    -0x40(%rbp),%rax
  mov    %rdx,%rcx
  mov    $0x8,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <fread@plt>
  cmp    $0x8,%eax
  je     L83
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L83:
  movzbl -0x39(%rbp),%eax
  movsbl %al,%r12d
  movzbl -0x3a(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,-0x5c(%rbp)
  movzbl -0x3b(%rbp),%eax
  movsbl %al,%ebx
  mov    %ebx,-0x60(%rbp)
  movzbl -0x3c(%rbp),%eax
  movsbl %al,%ecx
  mov    %ecx,-0x64(%rbp)
  movzbl -0x3d(%rbp),%eax
  movsbl %al,%edx
  mov    %edx,-0x68(%rbp)
  movzbl -0x3e(%rbp),%eax
  movsbl %al,%edi
  mov    %edi,-0x6c(%rbp)
  movzbl -0x3f(%rbp),%eax
  movsbl %al,%r10d
  mov    %r10d,-0x70(%rbp)
  movzbl -0x40(%rbp),%eax
  movsbl %al,%r11d
  mov    %r11d,-0x74(%rbp)
  movzbl -0x39(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,%r15d
  movzbl -0x3a(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,%r14d
  movzbl -0x3b(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,%r13d
  movzbl -0x3c(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,-0x78(%rbp)
  movzbl -0x3d(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,-0x7c(%rbp)
  movzbl -0x3e(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,-0x80(%rbp)
  movzbl -0x3f(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  mov    %eax,%ebx
  movzbl -0x40(%rbp),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <dispchar@plt>
  sub    $0x8,%rsp
  push   %r12
  mov    -0x5c(%rbp),%esi
  push   %rsi
  mov    -0x60(%rbp),%esi
  push   %rsi
  mov    -0x64(%rbp),%esi
  push   %rsi
  mov    -0x68(%rbp),%edx
  push   %rdx
  mov    -0x6c(%rbp),%edi
  push   %rdi
  mov    -0x70(%rbp),%r10d
  push   %r10
  mov    -0x74(%rbp),%r11d
  push   %r11
  push   %r15
  push   %r14
  push   %r13
  mov    -0x78(%rbp),%r9d
  mov    -0x7c(%rbp),%r8d
  mov    -0x80(%rbp),%ecx
  mov    %ebx,%edx
  mov    %eax,%esi
  lea    D98(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x60,%rsp
  lea    -0x40(%rbp),%rax
  mov    $0x8,%edx
  lea    D64(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L210
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L128
L210:
  lea    -0x40(%rbp),%rax
  mov    $0x5,%edx
  lea    D39(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L50
  movzbl -0x3b(%rbp),%eax
  cmp    $0x30,%al
  jle    L50
  movzbl -0x3b(%rbp),%eax
  cmp    $0x39,%al
  jg     L50
  movzbl -0x3a(%rbp),%eax
  cmp    $0x2e,%al
  jne    L50
  movzbl -0x39(%rbp),%eax
  cmp    $0x2f,%al
  jle    L50
  movzbl -0x39(%rbp),%eax
  cmp    $0x39,%al
  jg     L50
  movzbl -0x3b(%rbp),%eax
  sub    $0x30,%eax
  shl    $0x4,%eax
  mov    %eax,%edx
  movzbl -0x39(%rbp),%eax
  add    %edx,%eax
  sub    $0x30,%eax
  mov    %al,-0x49(%rbp)
  cmpb   $0x16,-0x49(%rbp)
  jg     L88
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fs_load_pre17@plt>
  test   %rax,%rax
  jns    L193
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L193:
  mov    -0x48(%rbp),%rax
  mov    $0x10,%esi
  mov    %rax,%rdi
  call   <chunk_load@plt>
  test   %rax,%rax
  jns    L127
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L88:
  movsbl -0x49(%rbp),%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <fs_load@plt>
  test   %rax,%rax
  jns    L127
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L50:
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L127:
  nop
L128:
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <ferror@plt>
  test   %rax,%rax
  je     L69
  lea    D46(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0xffffffff,%eax
  jmp    L64
L69:
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    $0x0,%eax
L64:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L12
  call   <__stack_chk_fail@plt>
L12:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: tag: D47
type_guessed: string
name: unpack_data
arguments: tag: D79
type_guessed: string
name: unpack_data
arguments: tag: D45
type_guessed: string
name: unpack_data
arguments: tag: D98
type_guessed: string
name: unpack_data
arguments: tag: D64
type_guessed: string
name: unpack_data
arguments: tag: D72
type_guessed: string
name: unpack_data
arguments: tag: D39
type_guessed: string
name: unpack_data
arguments: tag: D31
type_guessed: string
name: unpack_data
arguments: tag: D102
type_guessed: string
name: unpack_data
arguments: tag: D36
type_guessed: string
name: unpack_data
arguments: tag: D46
type_guessed: string

tool: D47: r

tool: D79: can't open metadata file

tool: D45: can't read metadata header

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


tool: D64: MFSM NEW

tool: D72: empty file

tool: D39: MFSM 

tool: D31: error reading metadata (structure)

tool: D102: error reading metadata (chunks)

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

tool: D46: error reading metadata

assistant: ```c
int fs_loadall(const char *fname) {
  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;
  }
  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 (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) < 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;
}
```