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

```asm
<loadThresholds>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    $0x4,%esi
  sub    $0x38,%rsp
  mov    %rdi,0x8(%rsp)
  mov    $0x3e8,%edi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <calloc@plt>
  mov    %rax,(%r14)
  test   %rax,%rax
  je     L28
L56:
  mov    $0x4,%esi
  mov    $0x3e8,%edi
  call   <calloc@plt>
  mov    %rax,(%rbx)
  test   %rax,%rax
  je     L103
L14:
  mov    %rbp,%rdi
  lea    D49(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L34
L87:
  lea    0x24(%rsp),%r14
  lea    0x20(%rsp),%r13
  lea    0x1c(%rsp),%r12
  mov    %r14,%r8
  mov    %r13,%rcx
  mov    %r12,%rdx
  lea    D19(%rip),%r15
  jmp    L123
  nopw   0x0(%rax,%rax,1)
L121:
  mov    0x8(%rsp),%rcx
  mov    0x20(%rsp),%edx
  mov    %r14,%r8
  mov    (%rcx,%rax,8),%rax
  mov    %r13,%rcx
  mov    %edx,(%rax)
  movslq 0x1c(%rsp),%rax
  mov    0x24(%rsp),%edx
  mov    (%rbx,%rax,8),%rax
  mov    %edx,(%rax)
  mov    %r12,%rdx
L123:
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  cmp    $0x3,%eax
  jne    L106
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L32
L23:
  movslq 0x1c(%rsp),%rax
  cmp    $0x3e7,%eax
  jle    L121
  lea    D15(%rip),%rdi
  call   <terror@plt>
  movslq 0x1c(%rsp),%rax
  jmp    L121
  nopw   0x0(%rax,%rax,1)
L106:
  lea    D50(%rip),%rdi
  call   <terror@plt>
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L23
  nopl   0x0(%rax,%rax,1)
L32:
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L85
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  lea    D57(%rip),%rdi
  call   <terror@plt>
  jmp    L56
L103:
  lea    D31(%rip),%rdi
  call   <terror@plt>
  jmp    L14
L34:
  lea    D62(%rip),%rdi
  call   <terror@plt>
  jmp    L87
L85:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D49
type_infered: string
name: extract_symbolic_data
arguments: tag: D19
type_infered: string
name: extract_symbolic_data
arguments: tag: D15
type_infered: string
name: extract_symbolic_data
arguments: tag: D50
type_infered: string
name: extract_symbolic_data
arguments: tag: D57
type_infered: string
name: extract_symbolic_data
arguments: tag: D31
type_infered: string
name: extract_symbolic_data
arguments: tag: D62
type_infered: string

tool: D49: rt

tool: D19: %d	%d	%d


tool: D15: LowUp threshold out of range (maxL)

tool: D50: Error reading the threshold file. Wrong format intTABintTABint

tool: D57: enought memory for LowThreshold array

tool: D31: enought memory for UpperThreshold array

tool: D62: open Low-Upper threshold file

assistant: ```c
void loadThresholds(int **low, int **up, char *thresholdFile) {
  int length, lowSimilarity, upSimilarity;
  FILE *fThreshold;
  if ((*low = (int *)calloc(1000, sizeof(int))) == NULL)
    terror("enought memory for LowThreshold array");
  if ((*up = (int *)calloc(1000, sizeof(int))) == NULL)
    terror("enought memory for UpperThreshold array");
  if ((fThreshold = fopen(thresholdFile, "rt")) == NULL)
    terror("open Low-Upper threshold file");
  if (fscanf(fThreshold, "%d\t%d\t%d\n", &length, &lowSimilarity, &upSimilarity) != 3) {
    terror("Error reading the threshold file. Wrong format intTABintTABint");
  }
  while (!feof(fThreshold)) {
    if (length >= 1000)
      terror("LowUp threshold out of range (maxL)");
    *low[length] = lowSimilarity;
    *up[length] = upSimilarity;
    if (fscanf(fThreshold, "%d\t%d\t%d\n", &length, &lowSimilarity, &upSimilarity) != 3) {
      terror("Error reading the threshold file. Wrong format intTABintTABint");
    }
  }
  fclose(fThreshold);
}
```