user: 请从给定的汇编指令推导出C源代码:

```asm
<construitStructure>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %ecx,%r13d
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    $0x28,%edi
  push   %rbx
  mov    %r8,%rbx
  sub    $0x38,%rsp
  mov    %rsi,0x8(%rsp)
  mov    $0x1,%esi
  call   <calloc@plt>
  movl   $0x0,(%rbx)
  mov    %r12,%rdi
  mov    %rax,%r15
  call   <rewind@plt>
  mov    %r12,%rdx
  mov    $0x28,%esi
  mov    %r15,%rdi
  call   <fgets@plt>
  test   %r13d,%r13d
  jle    L65
  lea    -0x1(%r13),%eax
  mov    %rbp,0x20(%rsp)
  lea    0x4(%rbp,%rax,4),%rax
  mov    %r14,0x18(%rsp)
  mov    %rax,0x28(%rsp)
L76:
  mov    %r12,%rdx
  mov    $0x28,%esi
  mov    %r15,%rdi
  xor    %ebp,%ebp
  call   <fgets@plt>
  mov    %r15,%rdi
  call   <stringtoint@plt>
  mov    0x20(%rsp),%rcx
  mov    %r12,%rdx
  mov    %r15,%rdi
  mov    $0x28,%esi
  mov    %eax,(%rcx)
  call   <fgets@plt>
  mov    %r15,%rdi
  call   <stringtoint@plt>
  mov    %eax,0x14(%rsp)
  test   %eax,%eax
  jle    L119
  nopl   0x0(%rax)
L1:
  movb   $0x0,(%r15)
  mov    %r12,%rdx
  mov    $0x28,%esi
  mov    %r15,%rdi
  call   <fgets@plt>
  mov    %r15,%rdi
  call   <modifieLecture@plt>
  mov    %r15,%rdi
  call   <strlen@plt>
  test   %eax,%eax
  je     L115
  mov    (%rbx),%eax
  test   %eax,%eax
  jle    L83
  mov    0x8(%rsp),%r14
  xor    %r13d,%r13d
  jmp    L13
L55:
  mov    (%rbx),%eax
  add    $0x1,%r13d
  add    $0x8,%r14
  cmp    %r13d,%eax
  jle    L3
L13:
  mov    (%r14),%rdi
  mov    %r15,%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L55
  mov    (%rbx),%eax
L3:
  add    $0x1,%ebp
  cmp    %r13d,%eax
  je     L49
  mov    0x18(%rsp),%rax
  movslq %r13d,%rdx
  mov    (%rax),%rax
  mov    %ebp,(%rax,%rdx,4)
L116:
  cmp    %ebp,0x14(%rsp)
  jne    L1
L119:
  addq   $0x4,0x20(%rsp)
  mov    0x20(%rsp),%rax
  addq   $0x8,0x18(%rsp)
  cmp    0x28(%rsp),%rax
  jne    L76
L65:
  mov    %r15,%rdi
  call   <free@plt>
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L49:
  mov    %r15,%rdi
  call   <strlen@plt>
  mov    $0x1,%esi
  lea    0x1(%rax),%edi
  call   <calloc@plt>
  mov    0x8(%rsp),%rcx
  mov    %r15,%rsi
  mov    %rax,%rdi
  movslq (%rbx),%rax
  lea    (%rcx,%rax,8),%r13
  mov    %rdi,0x0(%r13)
  call   <strcpy@plt>
  movslq (%rbx),%rdx
  mov    %rax,0x0(%r13)
  mov    0x18(%rsp),%rax
  mov    (%rax),%rax
  mov    %ebp,(%rax,%rdx,4)
  addl   $0x1,(%rbx)
  jmp    L116
L115:
  mov    %r15,%rdi
  call   <free@plt>
  add    $0x38,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L83:
  xor    %r13d,%r13d
  jmp    L3
```

assistant: ```c
int construitStructure(int *ligne, char **arret, int **mat, int nbLigne, int *nbArret, FILE *fichier) {
  char *temp_string;
  int temp_int = 0;
  int nbArretLigne = 0;
  int i = 0;
  int j = 0;
  int k = 0;
  temp_string = (char *)calloc(40, sizeof(char));
  *nbArret = 0;
  rewind(fichier);
  fgets(temp_string, 40, fichier);
  for (i = 0; i < nbLigne; i++) {
    fgets(temp_string, 40, fichier);
    temp_int = stringtoint(temp_string);
    ligne[i] = temp_int;
    fgets(temp_string, 40, fichier);
    nbArretLigne = stringtoint(temp_string);
    for (j = 0; j < nbArretLigne; j++) {
      strcpy(temp_string, "");
      fgets(temp_string, 40, fichier);
      modifieLecture(temp_string);
      if (strlen(temp_string) == 0) {
        free(temp_string);
        return -1;
      }
      k = 0;
      while ((k < *nbArret) && (strcmp(arret[k], temp_string) != 0)) {
        k = k + 1;
      }
      if (k == *nbArret) {
        arret[*nbArret] = (char *)calloc(strlen(temp_string) + 1, sizeof(char));
        arret[*nbArret] = strcpy(arret[*nbArret], temp_string);
        mat[i][*nbArret] = j + 1;
        *nbArret = *nbArret + 1;
      } else {
        mat[i][k] = j + 1;
      }
    }
  }
  free(temp_string);
  return 0;
}
```