user: 请从给定的汇编指令推导出C源代码:

```asm
<check_objects>:
  endbr64
  push   %r15
  lea    D7(%rip),%r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  lea    D13(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0xffffffff,%ebx
  sub    $0x138,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
  call   <rewind@plt>
  mov    %rbp,%rdx
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D132(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  lea    0x18(%rsp),%rax
  mov    %rax,(%rsp)
L51:
  mov    (%rsp),%rdx
  lea    D137(%rip),%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D121(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    0x18(%rsp),%r12d
  cmp    %ebx,%r12d
  jl     L29
  mov    %r14,%rdi
  call   <fread_string@plt>
  cmpb   $0x24,(%rax)
  jne    L65
L49:
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L29:
  mov    %r12d,%edx
  xor    %edi,%edi
  mov    $0x1,%esi
  lea    D41(%rip),%rcx
  call   <assume@plt>
  mov    %r14,%rdi
  mov    0x18(%rsp),%r12d
  call   <fread_string@plt>
  cmpb   $0x24,(%rax)
  je     L49
L65:
  mov    %r14,%rdi
  lea    0x1c(%rsp),%rbx
  call   <fread_string@plt>
  mov    %r14,%rdi
  call   <fread_string@plt>
  mov    %r14,%rdi
  call   <fread_string@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D154(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D111(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D101(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D24(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D82(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D208(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D187(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D119(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    D10(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D199(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    D10(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D61(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  jmp    L82
  nopl   (%rax)
L46:
  mov    %r14,%rdi
  call   <fread_string@plt>
  mov    %r14,%rdi
  call   <fread_string@plt>
L82:
  mov    %rbp,%rdx
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  movzbl 0x20(%rsp),%eax
  cmp    $0x45,%al
  je     L46
  movl   $0x2,0xc(%rsp)
  mov    %rbp,%rcx
  mov    %r14,%rbp
  mov    %r12d,%r14d
  mov    %rcx,%r12
L8:
  cmp    $0x41,%al
  jne    L61
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D92(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D10(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D123(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %r12,%rdx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D177(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  cmpl   $0x1,0xc(%rsp)
  jne    L90
L61:
  mov    %r12,%rax
  mov    %r14d,%r12d
  mov    %rbp,%r14
  mov    %r12d,%ebx
  mov    %rax,%rbp
  jmp    L51
  nopl   0x0(%rax)
L90:
  movl   $0x1,0xc(%rsp)
  movzbl 0x20(%rsp),%eax
  jmp    L8
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D7
datatype: string
name: disassemble_data
arguments: data_label: D13
datatype: string
name: disassemble_data
arguments: data_label: D132
datatype: string
name: disassemble_data
arguments: data_label: D137
datatype: string
name: disassemble_data
arguments: data_label: D121
datatype: string
name: disassemble_data
arguments: data_label: D41
datatype: string
name: disassemble_data
arguments: data_label: D154
datatype: string
name: disassemble_data
arguments: data_label: D111
datatype: string
name: disassemble_data
arguments: data_label: D101
datatype: string
name: disassemble_data
arguments: data_label: D24
datatype: string
name: disassemble_data
arguments: data_label: D82
datatype: string
name: disassemble_data
arguments: data_label: D208
datatype: string
name: disassemble_data
arguments: data_label: D187
datatype: string
name: disassemble_data
arguments: data_label: D119
datatype: string
name: disassemble_data
arguments: data_label: D10
datatype: string
name: disassemble_data
arguments: data_label: D199
datatype: string
name: disassemble_data
arguments: data_label: D61
datatype: string
name: disassemble_data
arguments: data_label: D92
datatype: string
name: disassemble_data
arguments: data_label: D123
datatype: string
name: disassemble_data
arguments: data_label: D177
datatype: string

tool: D7:  %s 


tool: D13:  %d 

tool: D132: First #xxx number

tool: D137:  #%d


tool: D121: Reading #xxx

tool: D41: Error - #'s not in order.

tool: D154: Error reading type flag

tool: D111: Extra Flag

tool: D101: wear_flags

tool: D24: value[0]

tool: D82: value[1]

tool: D208: value[2]

tool: D187: value[3]

tool: D119: Weight

tool: D10:  %d 


tool: D199: Cost

tool: D61: Cost Per Day

tool: D92: affected location

tool: D123: Modifier

tool: D177: Next string with E/A/$

assistant: ```c
void check_objects(FILE *fl) {
  int virtual_nr, old_virtual, antal, flag;
  char *temp;
  struct obj_data *obj;
  int tmp, i;
  char chk[256];
  struct extra_descr_data *new_descr;
  old_virtual = -1;
  rewind(fl);
  antal = fscanf(fl, " %s \n", chk);
  assume(antal, 1, virtual_nr, "First #xxx number");
  do {
    antal = sscanf(chk, " #%d\n", &virtual_nr);
    assume(antal, 1, virtual_nr, "Reading #xxx");
    if (old_virtual > virtual_nr)
      assume(0, 1, virtual_nr, "Error - #'s not in order.");
    old_virtual = virtual_nr;
    temp = fread_string(fl);
    if (flag = (*temp != '$')) {
      temp = fread_string(fl);
      temp = fread_string(fl);
      temp = fread_string(fl);
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "Error reading type flag");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "Extra Flag");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "wear_flags");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "value[0]");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "value[1]");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "value[2]");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "value[3]");
      antal = fscanf(fl, " %d ", &tmp);
      assume(antal, 1, virtual_nr, "Weight");
      antal = fscanf(fl, " %d \n", &tmp);
      assume(antal, 1, virtual_nr, "Cost");
      antal = fscanf(fl, " %d \n", &tmp);
      assume(antal, 1, virtual_nr, "Cost Per Day");
      while (fscanf(fl, " %s \n", chk), *chk == 'E') {
        temp = fread_string(fl);
        temp = fread_string(fl);
      }
      for (i = 0; (i < 2) && (*chk == 'A'); i++) {
        antal = fscanf(fl, " %d ", &tmp);
        assume(antal, 1, virtual_nr, "affected location");
        antal = fscanf(fl, " %d \n", &tmp);
        assume(antal, 1, virtual_nr, "Modifier");
        antal = fscanf(fl, " %s \n", chk);
        assume(antal, 1, virtual_nr, "Next string with E/A/$");
      }
    }
  } while (flag);
}
```