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    D4(%rip),%rsi
  mov    %rdx,0x28(%rsp)
  call   <fopen@plt>
  movl   $0x2710,(%rbx)
  mov    $0x13880,%edi
  mov    %rax,0x10(%rsp)
  mov    %rax,%r15
  call   <malloc@plt>
  mov    %rax,0x20(%rsp)
  test   %r15,%r15
  je     L5
  mov    $0x3e8,%edi
  mov    %rax,%r12
  lea    D18(%rip),%rbp
  call   <malloc@plt>
  movq   $0x0,(%rsp)
  mov    %rax,%r13
  nopl   0x0(%rax,%rax,1)
L39:
  mov    0x10(%rsp),%rdx
  mov    $0x3e8,%esi
  mov    %r13,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L37
  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     L44
  xor    %r14d,%r14d
  nopw   0x0(%rax,%rax,1)
L66:
  xor    %edi,%edi
  mov    %rbp,%rsi
  mov    %r14d,%ebx
  add    $0x1,%r14d
  call   <strtok@plt>
  test   %rax,%rax
  jne    L66
  sub    $0x1,%ebx
  lea    0x0(,%rbx,4),%r8d
L51:
  mov    %r15,%rdi
  mov    %r8d,0xc(%rsp)
  call   <free@plt>
  mov    (%rsp),%rcx
  mov    0x18(%rsp),%rax
  mov    0xc(%rsp),%edi
  mov    %ebx,(%rax,%rcx,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     L59
  nopl   0x0(%rax)
L12:
  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    L12
L59:
  mov    %r15,%rdi
  add    $0x8,%r12
  call   <free@plt>
  addq   $0x1,(%rsp)
  jmp    L39
  nopl   0x0(%rax,%rax,1)
L37:
  mov    0x28(%rsp),%rax
  mov    (%rsp),%ecx
  mov    0x10(%rsp),%rdi
  mov    %ecx,(%rax)
  call   <fclose@plt>
  mov    %r13,%rdi
  call   <free@plt>
L8:
  mov    0x20(%rsp),%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L44:
  mov    $0xfffffff8,%r8d
  mov    $0xfffffffe,%ebx
  jmp    L51
L5:
  mov    %rbp,%rdi
  call   <perror@plt>
  jmp    L8
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D4
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D18
type_guessed: string

tool: D4: 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] = 10000;
  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 - 2;
      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;
}
```