user: 下面的汇编指令对应的C源代码是什么：

```asm
<write_matrix2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xf0,%rsp
  mov    %rdi,-0xd8(%rbp)
  mov    %esi,-0xdc(%rbp)
  mov    %rdx,-0xe8(%rbp)
  mov    %ecx,-0xe0(%rbp)
  mov    %r8d,-0xec(%rbp)
  mov    %r9d,-0xf0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0xb8(%rbp)
  cmpl   $0x3e7,-0xdc(%rbp)
  jg     L36
  mov    -0xd8(%rbp),%rcx
  mov    -0xdc(%rbp),%edx
  lea    -0xb0(%rbp),%rax
  lea    D66(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L97
L36:
  subl   $0x3e8,-0xdc(%rbp)
  mov    -0xd8(%rbp),%rcx
  mov    -0xdc(%rbp),%edx
  lea    -0xb0(%rbp),%rax
  lea    D59(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L97:
  lea    -0xb0(%rbp),%rax
  lea    D26(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xb8(%rbp)
  cmpq   $0x0,-0xb8(%rbp)
  jne    L18
  lea    -0xb0(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  lea    D73(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D33(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1cd,%edi
  call   <errhandler@plt>
L18:
  mov    0x18(%rbp),%eax
  mov    %eax,-0xbc(%rbp)
  jmp    L66
L50:
  mov    -0xf0(%rbp),%eax
  mov    %eax,-0xc0(%rbp)
  jmp    L25
L58:
  mov    -0xe0(%rbp),%eax
  mov    %eax,-0xc4(%rbp)
  jmp    L76
L86:
  mov    -0xc4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xe8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc0(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xbc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xb8(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D84(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  addl   $0x1,-0xc4(%rbp)
L76:
  mov    -0xc4(%rbp),%eax
  cmp    -0xec(%rbp),%eax
  jle    L86
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  addl   $0x1,-0xc0(%rbp)
L25:
  mov    -0xc0(%rbp),%eax
  cmp    0x10(%rbp),%eax
  jle    L58
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x3c,%edx
  mov    $0x1,%esi
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  addl   $0x1,-0xbc(%rbp)
L66:
  mov    -0xbc(%rbp),%eax
  cmp    0x20(%rbp),%eax
  jle    L50
  mov    -0xb8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  test   %rax,%rax
  je     L13
  lea    -0xb0(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  lea    D83(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D33(%rip),%rax
  mov    %rax,%rsi
  mov    $0x1e0,%edi
  call   <errhandler@plt>
L13:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L106
  call   <__stack_chk_fail@plt>
L106:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D66
datatype: string
name: retrieve_data
arguments: label: D59
datatype: string
name: retrieve_data
arguments: label: D26
datatype: string
name: retrieve_data
arguments: label: D73
datatype: string
name: retrieve_data
arguments: label: D33
datatype: string
name: retrieve_data
arguments: label: D84
datatype: string
name: retrieve_data
arguments: label: D56
datatype: string
name: retrieve_data
arguments: label: D83
datatype: string

tool: D66: /media/norbert/940CB6150CB5F27A/Documents/simulation/debug/d%i_%s

tool: D59: /media/norbert/940CB6150CB5F27A/Documents/simulation/debug/P/d%i_%s

tool: D26: w

tool: D73: Outputfile %s cannot be created

tool: D33: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProject/helper.c

tool: D84: %f 

tool: D56: -----------------------------------------------------------


tool: D83: Outputfile %s cannot be closed

assistant: ```c
void write_matrix2(const char *szDebug, int timeStepNumber, double ***m, int nrl, int nrh, int ncl, int nch, int nll, int nlh) {
  int i, j, k;
  FILE *fh = 0;
  char szFileName[80];
  if (timeStepNumber < 1000) {
    sprintf(szFileName, "/media/norbert/940CB6150CB5F27A/Documents/simulation/debug/d%i_%s", timeStepNumber, szDebug);
  } else {
    timeStepNumber = timeStepNumber - 1000;
    sprintf(szFileName, "/media/norbert/940CB6150CB5F27A/Documents/simulation/debug/P/d%i_%s", timeStepNumber, szDebug);
  }
  fh = fopen(szFileName, "w");
  if (fh == NULL) {
    char szBuff[80];
    sprintf(szBuff, "Outputfile %s cannot be created", szFileName);
    errhandler(461, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProject/helper.c", szBuff);
  }
  for (k = nll; k <= nlh; k++) {
    for (j = ncl; j <= nch; j++) {
      for (i = nrl; i <= nrh; i++) {
        fprintf(fh, "%f ", m[i][j][k]);
      }
      fprintf(fh, "\n");
    }
    fprintf(fh, "-----------------------------------------------------------\n");
  }
  if (fclose(fh)) {
    char szBuff[80];
    sprintf(szBuff, "Outputfile %s cannot be closed", szFileName);
    errhandler(480, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/EvaBr/CFD-Lab/refs/heads/master/Backup/FinalProject/helper.c", szBuff);
  };
}
```