user: 请将以下的汇编代码转换成C语言代码：

```asm
<cov_arr_check>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x448,%rsp
  mov    %rsi,-0x458(%rbp)
  mov    %edx,-0x45c(%rbp)
  mov    %rsp,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movslq %edx,%rax
  mov    %rax,%rdx
  mov    %rax,-0x468(%rbp)
  shl    $0x4,%rdx
  lea    0x17(%rdx),%rax
  add    $0x10,%rdx
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L242
L44:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L44
L242:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L218
L22:
  lea    0xf(%rsp),%rdx
  mov    %rsp,%rcx
  and    $0xfffffffffffffff0,%rdx
  mov    %rdx,-0x440(%rbp)
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L11
L146:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L146
L11:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L129
L167:
  lea    0xf(%rsp),%rax
  lea    D28(%rip),%rsi
  and    $0xfffffffffffffff0,%rax
  lea    -0x420(%rbp),%r12
  lea    D30(%rip),%r15
  mov    %rax,-0x438(%rbp)
  call   <fopen@plt>
  mov    %rax,%r13
  jmp    L200
  nopw   0x0(%rax,%rax,1)
L171:
  cmpb   $0x23,-0x420(%rbp)
  jne    L1
L200:
  mov    %r13,%rdx
  mov    $0x3e8,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L171
  mov    %r13,%rdi
  lea    -0x428(%rbp),%r15
  lea    D30(%rip),%r14
  call   <fclose@plt>
  mov    -0x458(%rbp),%rdi
  lea    D28(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,-0x458(%rbp)
  nopw   0x0(%rax,%rax,1)
L112:
  mov    %r13,%rdx
  mov    $0x3e8,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L250
  mov    $0x6,%edx
  lea    D0(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L174
  mov    $0x6,%edx
  lea    D34(%rip),%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L112
  mov    -0x458(%rbp),%rdx
  mov    $0x50,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  mov    $0xa,%esi
  mov    %r12,%rdi
  call   <cov_deserialize@plt>
  fstpt  -0x450(%rbp)
  jmp    L112
L218:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L22
  nopw   0x0(%rax,%rax,1)
L174:
  mov    -0x458(%rbp),%rdx
  mov    $0x3e8,%esi
  mov    %r12,%rdi
  call   <fgets@plt>
  mov    %r12,%rdi
  mov    %r15,%rdx
  mov    %r14,%rsi
  call   <strtok_r@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L112
  mov    -0x438(%rbp),%rbx
  nopl   (%rax)
L65:
  mov    $0xa,%esi
  add    $0x10,%rbx
  call   <cov_deserialize@plt>
  xor    %edi,%edi
  mov    %r15,%rdx
  mov    %r14,%rsi
  fstpt  -0x10(%rbx)
  call   <strtok_r@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L65
  jmp    L112
  nopl   0x0(%rax,%rax,1)
L250:
  mov    -0x458(%rbp),%rdi
  call   <fclose@plt>
  mov    -0x45c(%rbp),%eax
  test   %eax,%eax
  jle    L282
  mov    -0x468(%rbp),%rdx
  xor    %eax,%eax
  shl    $0x4,%rdx
  jmp    L2
  nopl   0x0(%rax)
L177:
  fsubp  %st,%st(1)
  fldt   -0x450(%rbp)
  fxch   %st(1)
  fcomip %st(1),%st
  fstp   %st(0)
  ja     L48
L270:
  add    $0x10,%rax
  cmp    %rax,%rdx
  je     L282
L2:
  mov    -0x440(%rbp),%rcx
  fldt   (%rcx,%rax,1)
  mov    -0x438(%rbp),%rcx
  fldt   (%rcx,%rax,1)
  fxch   %st(1)
  fcomi  %st(1),%st
  ja     L177
  fsubrp %st,%st(1)
  fldt   -0x450(%rbp)
  fxch   %st(1)
  fcomip %st(1),%st
  fstp   %st(0)
  jbe    L270
L48:
  lea    D49(%rip),%rdi
  call   <printf@plt>
  jmp    L287
  nopl   (%rax)
L1:
  lea    -0x430(%rbp),%r14
  mov    %r12,%rdi
  mov    %r15,%rsi
  mov    %r14,%rdx
  call   <strtok_r@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L200
  mov    -0x440(%rbp),%rbx
  nopl   0x0(%rax,%rax,1)
L169:
  mov    $0xa,%esi
  add    $0x10,%rbx
  call   <cov_deserialize@plt>
  xor    %edi,%edi
  mov    %r14,%rdx
  mov    %r15,%rsi
  fstpt  -0x10(%rbx)
  call   <strtok_r@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L169
  jmp    L200
  nopl   0x0(%rax,%rax,1)
L282:
  lea    D24(%rip),%rdi
  call   <printf@plt>
L287:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L151
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L129:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L167
L151:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D28
type_infered: string
name: retrieve_data
arguments: data_tag: D30
type_infered: string
name: retrieve_data
arguments: data_tag: D0
type_infered: string
name: retrieve_data
arguments: data_tag: D34
type_infered: string
name: retrieve_data
arguments: data_tag: D49
type_infered: string
name: retrieve_data
arguments: data_tag: D24
type_infered: string

tool: D28: rt

tool: D30:  

tool: D0: #ideal

tool: D34: #delta

tool: D49: false


tool: D24: true


assistant: ```c
void cov_arr_check(char *log, char *spec, int length) {
  char line[1000];
  char *word, *sep, *brkt, *brkb;
  long double estimate[length], ideal[length], delta;
  FILE *log_file, *spec_file;
  int ld_size, cnt, i, predicate;
  sep = " ";
  ld_size = 10;
  log_file = fopen(log, "rt");
  while (fgets(line, 1000, log_file) != NULL) {
    if (line[0] != '#') {
      cnt = 0;
      for (word = strtok_r(line, sep, &brkt); word; word = strtok_r(NULL, sep, &brkt)) {
        estimate[cnt] = cov_deserialize(word, ld_size);
        cnt++;
      }
    }
  }
  fclose(log_file);
  spec_file = fopen(spec, "rt");
  while (fgets(line, 1000, log_file) != NULL) {
    if (strncmp(line, "#ideal", 6) == 0) {
      cnt = 0;
      fgets(line, 1000, spec_file);
      for (word = strtok_r(line, sep, &brkb); word; word = strtok_r(NULL, sep, &brkb)) {
        ideal[cnt] = cov_deserialize(word, ld_size);
        cnt++;
      }
    } else if (strncmp(line, "#delta", 6) == 0) {
      fgets(line, 80, spec_file);
      delta = cov_deserialize(line, ld_size);
    }
  }
  fclose(spec_file);
  predicate = 1;
  for (i = 0; i < length; i++) {
    long double diff;
    if (estimate[i] > ideal[i])
      diff = estimate[i] - ideal[i];
    else
      diff = ideal[i] - estimate[i];
    if (delta < diff) {
      predicate = 0;
      break;
    }
  }
  if (predicate)
    printf("true\n");
  else
    printf("false\n");
}
```