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

```asm
<loadStrings>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x38,%rsp
  mov    %rsi,0x18(%rsp)
  lea    D6(%rip),%rsi
  mov    %rdx,0x28(%rsp)
  call   <fopen@plt>
  movl   $0x7a120,(%rbx)
  mov    $0x3d0900,%edi
  mov    %rax,0x10(%rsp)
  mov    %rax,%r14
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  test   %r14,%r14
  je     L62
  mov    $0x3e8,%edi
  mov    %rax,%r12
  xor    %r14d,%r14d
  call   <malloc@plt>
  lea    D18(%rip),%rbp
  mov    %rax,%r13
  xchg   %ax,%ax
L67:
  mov    0x10(%rsp),%rdx
  mov    $0x3e8,%esi
  mov    %r13,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L57
  mov    $0x3e8,%edi
  call   <malloc@plt>
  mov    %r13,%rsi
  mov    %rax,%r15
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <strtok@plt>
  test   %rax,%rax
  je     L29
  xor    %ebx,%ebx
  nopl   0x0(%rax)
L81:
  xor    %edi,%edi
  mov    %rbp,%rsi
  add    $0x1,%ebx
  call   <strtok@plt>
  test   %rax,%rax
  jne    L81
  lea    0x0(,%rbx,4),%r8d
L12:
  mov    %r15,%rdi
  mov    %r8d,0xc(%rsp)
  call   <free@plt>
  mov    0x18(%rsp),%rax
  mov    0xc(%rsp),%edi
  mov    %ebx,(%rax,%r14,4)
  xor    %ebx,%ebx
  call   <malloc@plt>
  mov    $0x3e8,%edi
  mov    %rax,(%r12)
  call   <malloc@plt>
  mov    %r13,%rsi
  mov    %rax,%r15
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %r15,%rdi
  mov    %rbp,%rsi
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L85
  nopw   0x0(%rax,%rax,1)
L75:
  call   <atoi@plt>
  mov    (%r12),%rdx
  xor    %edi,%edi
  mov    %rbp,%rsi
  mov    %eax,(%rdx,%rbx,1)
  add    $0x4,%rbx
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  jne    L75
L85:
  mov    %r15,%rdi
  add    $0x1,%r14
  add    $0x8,%r12
  call   <free@plt>
  jmp    L67
  nopw   0x0(%rax,%rax,1)
L57:
  mov    0x28(%rsp),%rax
  mov    0x10(%rsp),%rdi
  mov    %r14d,(%rax)
  call   <fclose@plt>
  mov    %r13,%rdi
  call   <free@plt>
L82:
  mov    0x20(%rsp),%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L29:
  xor    %r8d,%r8d
  xor    %ebx,%ebx
  jmp    L12
L62:
  mov    %rbp,%rdi
  call   <perror@plt>
  jmp    L82
```

tool_calls: name: extract_symbolic_data
arguments: label: D6
data_type: string
name: extract_symbolic_data
arguments: label: D18
data_type: string

tool: D6: r

tool: D18:  

assistant: ```c
int **loadStrings(char *filename, int *len, int *nStr) {
  int **S;
  char *str, *linetemp, *line, *next_elem;
  int i, j, c;
  int elem;
  FILE *inpfile;
  inpfile = fopen(filename, "r");
  nStr[0] = 500000;
  S = (int **)malloc(nStr[0] * sizeof(int *));
  if (inpfile) {
    line = (char *)malloc(1000 * sizeof(char));
    i = 0;
    while (fgets(line, 1000, inpfile)) {
      c = 0;
      linetemp = (char *)malloc(1000 * sizeof(char));
      strcpy(linetemp, line);
      next_elem = strtok(linetemp, " ");
      while (next_elem != NULL) {
        c++;
        next_elem = strtok(NULL, " ");
      }
      free(linetemp);
      len[i] = c;
      S[i] = (int *)malloc(len[i] * sizeof(int));
      linetemp = (char *)malloc(1000 * sizeof(char));
      strcpy(linetemp, line);
      c = 0;
      next_elem = strtok(linetemp, " ");
      while (next_elem != NULL) {
        elem = atoi(next_elem);
        S[i][c] = elem;
        c++;
        next_elem = strtok(NULL, " ");
      }
      free(linetemp);
      i++;
    }
    nStr[0] = i;
    fclose(inpfile);
    free(line);
  } else {
    perror(filename);
  }
  return S;
}
```