user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<check_objects>:
  endbr64
  push   %r15
  lea    D106(%rip),%r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  lea    D118(%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    D127(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  lea    0x18(%rsp),%rax
  mov    %rax,(%rsp)
L41:
  mov    (%rsp),%rdx
  lea    D52(%rip),%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D197(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    0x18(%rsp),%r12d
  cmp    %ebx,%r12d
  jl     L84
  mov    %r14,%rdi
  call   <fread_string@plt>
  cmpb   $0x24,(%rax)
  jne    L48
L3:
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L69
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L84:
  mov    %r12d,%edx
  xor    %edi,%edi
  mov    $0x1,%esi
  lea    D168(%rip),%rcx
  call   <assume@plt>
  mov    %r14,%rdi
  mov    0x18(%rsp),%r12d
  call   <fread_string@plt>
  cmpb   $0x24,(%rax)
  je     L3
L48:
  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    D188(%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    D142(%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    D181(%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    D3(%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    D5(%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    D99(%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    D44(%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    D134(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    D68(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D60(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    D68(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D133(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  jmp    L40
  nopl   (%rax)
L62:
  mov    %r14,%rdi
  call   <fread_string@plt>
  mov    %r14,%rdi
  call   <fread_string@plt>
L40:
  mov    %rbp,%rdx
  mov    %r15,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  movzbl 0x20(%rsp),%eax
  cmp    $0x45,%al
  je     L62
  movl   $0x2,0xc(%rsp)
  mov    %rbp,%rcx
  mov    %r14,%rbp
  mov    %r12d,%r14d
  mov    %rcx,%r12
L25:
  cmp    $0x41,%al
  jne    L52
  mov    %rbx,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D67(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  mov    %rbx,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D68(%rip),%rsi
  call   <fscanf@plt>
  mov    0x18(%rsp),%edx
  mov    $0x1,%esi
  lea    D187(%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    D211(%rip),%rcx
  mov    %eax,%edi
  call   <assume@plt>
  cmpl   $0x1,0xc(%rsp)
  jne    L35
L52:
  mov    %r12,%rax
  mov    %r14d,%r12d
  mov    %rbp,%r14
  mov    %r12d,%ebx
  mov    %rax,%rbp
  jmp    L41
  nopl   0x0(%rax)
L35:
  movl   $0x1,0xc(%rsp)
  movzbl 0x20(%rsp),%eax
  jmp    L25
L69:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: label: D106
type_guessed: string
name: extract_symbolic_data
arguments: label: D118
type_guessed: string
name: extract_symbolic_data
arguments: label: D127
type_guessed: string
name: extract_symbolic_data
arguments: label: D52
type_guessed: string
name: extract_symbolic_data
arguments: label: D197
type_guessed: string
name: extract_symbolic_data
arguments: label: D168
type_guessed: string
name: extract_symbolic_data
arguments: label: D188
type_guessed: string
name: extract_symbolic_data
arguments: label: D142
type_guessed: string
name: extract_symbolic_data
arguments: label: D181
type_guessed: string
name: extract_symbolic_data
arguments: label: D3
type_guessed: string
name: extract_symbolic_data
arguments: label: D5
type_guessed: string
name: extract_symbolic_data
arguments: label: D99
type_guessed: string
name: extract_symbolic_data
arguments: label: D44
type_guessed: string
name: extract_symbolic_data
arguments: label: D134
type_guessed: string
name: extract_symbolic_data
arguments: label: D68
type_guessed: string
name: extract_symbolic_data
arguments: label: D60
type_guessed: string
name: extract_symbolic_data
arguments: label: D133
type_guessed: string
name: extract_symbolic_data
arguments: label: D67
type_guessed: string
name: extract_symbolic_data
arguments: label: D187
type_guessed: string
name: extract_symbolic_data
arguments: label: D211
type_guessed: string

tool: D106:  %s 


tool: D118:  %d 

tool: D127: First #xxx number

tool: D52:  #%d


tool: D197: Reading #xxx

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

tool: D188: Error reading type flag

tool: D142: Extra Flag

tool: D181: wear_flags

tool: D3: value[0]

tool: D5: value[1]

tool: D99: value[2]

tool: D44: value[3]

tool: D134: Weight

tool: D68:  %d 


tool: D60: Cost

tool: D133: Cost Per Day

tool: D67: affected location

tool: D187: Modifier

tool: D211: 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);
}
```