user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<write_vtkFile_debug>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x150,%rsp
  mov    %rdi,-0xe8(%rbp)
  mov    %esi,-0xec(%rbp)
  movsd  %xmm0,-0xf8(%rbp)
  movsd  %xmm1,-0x100(%rbp)
  movsd  %xmm2,-0x108(%rbp)
  mov    %edx,-0xf0(%rbp)
  mov    %ecx,-0x10c(%rbp)
  mov    %r8d,-0x110(%rbp)
  movsd  %xmm3,-0x118(%rbp)
  movsd  %xmm4,-0x120(%rbp)
  movsd  %xmm5,-0x128(%rbp)
  mov    %r9,-0x130(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0x138(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0x140(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0x148(%rbp)
  mov    0x28(%rbp),%rax
  mov    %rax,-0x150(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0xd0(%rbp)
  mov    -0xec(%rbp),%ecx
  mov    -0xe8(%rbp),%rdx
  lea    -0xb0(%rbp),%rax
  lea    D4(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0xb0(%rbp),%rax
  lea    D196(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xd0(%rbp)
  cmpq   $0x0,-0xd0(%rbp)
  jne    L166
  lea    -0xb0(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  lea    D159(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D177(%rip),%rax
  mov    %rax,%rsi
  mov    $0x59,%edi
  call   <errhandler@plt>
  jmp    L217
L166:
  movsd  -0x128(%rbp),%xmm1
  movsd  -0x120(%rbp),%xmm0
  mov    -0x118(%rbp),%rdi
  mov    -0x110(%rbp),%ecx
  mov    -0x10c(%rbp),%edx
  mov    -0xf0(%rbp),%esi
  mov    -0xd0(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <write_vtkHeader_debug@plt>
  movsd  -0x128(%rbp),%xmm1
  movsd  -0x120(%rbp),%xmm0
  mov    -0x118(%rbp),%rdi
  mov    -0x110(%rbp),%ecx
  mov    -0x10c(%rbp),%edx
  mov    -0xf0(%rbp),%esi
  mov    -0xd0(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <write_vtkPointCoordinates_debug@plt>
  mov    -0xf0(%rbp),%eax
  lea    0x3(%rax),%edx
  mov    -0x10c(%rbp),%eax
  add    $0x3,%eax
  imul   %edx,%eax
  mov    -0x110(%rbp),%edx
  add    $0x3,%edx
  imul   %eax,%edx
  mov    -0xd0(%rbp),%rax
  lea    D158(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x17,%edx
  mov    $0x1,%esi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  movl   $0xffffffff,-0xd4(%rbp)
  jmp    L171
L175:
  movl   $0xffffffff,-0xd8(%rbp)
  jmp    L97
L85:
  movl   $0xffffffff,-0xdc(%rbp)
  jmp    L32
L237:
  cmpl   $0x0,-0xdc(%rbp)
  js     L200
  cmpl   $0x0,-0xd8(%rbp)
  js     L200
  cmpl   $0x0,-0xd4(%rbp)
  js     L200
  mov    -0xf0(%rbp),%eax
  cmp    -0xdc(%rbp),%eax
  jl     L200
  mov    -0x10c(%rbp),%eax
  cmp    -0xd8(%rbp),%eax
  jl     L200
  mov    -0x110(%rbp),%eax
  cmp    -0xd4(%rbp),%eax
  jl     L200
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x130(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D106(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <getValidValue@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xc8(%rbp)
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x138(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D106(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <getValidValue@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xc0(%rbp)
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  mov    -0xdc(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x140(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  add    $0x1,%rax
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  D106(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <getValidValue@plt>
  movq   %xmm0,%rax
  mov    %rax,-0xb8(%rbp)
  movsd  -0xb8(%rbp),%xmm1
  movsd  -0xc0(%rbp),%xmm0
  mov    -0xc8(%rbp),%rdx
  mov    -0xd0(%rbp),%rax
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  lea    D98(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x3,%eax
  call   <fprintf@plt>
  jmp    L231
L200:
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x6,%edx
  mov    $0x1,%esi
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L231:
  addl   $0x1,-0xdc(%rbp)
L32:
  mov    -0xf0(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xdc(%rbp)
  jle    L237
  addl   $0x1,-0xd8(%rbp)
L97:
  mov    -0x10c(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xd8(%rbp)
  jle    L85
  addl   $0x1,-0xd4(%rbp)
L171:
  mov    -0x110(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xd4(%rbp)
  jle    L175
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    -0xf0(%rbp),%eax
  lea    0x2(%rax),%edx
  mov    -0x10c(%rbp),%eax
  add    $0x2,%eax
  imul   %edx,%eax
  mov    -0x110(%rbp),%edx
  add    $0x2,%edx
  imul   %eax,%edx
  mov    -0xd0(%rbp),%rax
  lea    D77(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x1a,%edx
  mov    $0x1,%esi
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x16,%edx
  mov    $0x1,%esi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  movl   $0x0,-0xd4(%rbp)
  jmp    L16
L81:
  movl   $0x0,-0xd8(%rbp)
  jmp    L106
L245:
  movl   $0x0,-0xdc(%rbp)
  jmp    L116
L3:
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x148(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  call   <getValidValue@plt>
  movq   %xmm0,%rax
  mov    -0xd0(%rbp),%rdx
  movq   %rax,%xmm0
  lea    D65(%rip),%rax
  mov    %rax,%rsi
  mov    %rdx,%rdi
  mov    $0x1,%eax
  call   <fprintf@plt>
  addl   $0x1,-0xdc(%rbp)
L116:
  mov    -0xf0(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xdc(%rbp)
  jle    L3
  addl   $0x1,-0xd8(%rbp)
L106:
  mov    -0x10c(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xd8(%rbp)
  jle    L245
  addl   $0x1,-0xd4(%rbp)
L16:
  mov    -0x110(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xd4(%rbp)
  jle    L81
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x16,%edx
  mov    $0x1,%esi
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x16,%edx
  mov    $0x1,%esi
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  movl   $0x0,-0xd4(%rbp)
  jmp    L53
L28:
  movl   $0x0,-0xd8(%rbp)
  jmp    L109
L280:
  movl   $0x0,-0xdc(%rbp)
  jmp    L104
L196:
  mov    -0xdc(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x150(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd8(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xd4(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <getcelltype@plt>
  mov    %eax,%edx
  mov    -0xd0(%rbp),%rax
  lea    D99(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0xdc(%rbp)
L104:
  mov    -0xf0(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xdc(%rbp)
  jle    L196
  addl   $0x1,-0xd8(%rbp)
L109:
  mov    -0x10c(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xd8(%rbp)
  jle    L280
  addl   $0x1,-0xd4(%rbp)
L53:
  mov    -0x110(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0xd4(%rbp)
  jle    L28
  mov    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  test   %rax,%rax
  je     L217
  lea    -0xb0(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  lea    D179(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdx
  lea    D177(%rip),%rax
  mov    %rax,%rsi
  mov    $0x92,%edi
  call   <errhandler@plt>
L217:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L258
  call   <__stack_chk_fail@plt>
L258:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D4
type: string
name: unpack_data
arguments: data_tag: D196
type: string
name: unpack_data
arguments: data_tag: D159
type: string
name: unpack_data
arguments: data_tag: D177
type: string
name: unpack_data
arguments: data_tag: D158
type: string
name: unpack_data
arguments: data_tag: D54
type: string
name: unpack_data
arguments: data_tag: D106
type: f64
name: unpack_data
arguments: data_tag: D98
type: string
name: unpack_data
arguments: data_tag: D116
type: string
name: unpack_data
arguments: data_tag: D77
type: string
name: unpack_data
arguments: data_tag: D113
type: string
name: unpack_data
arguments: data_tag: D66
type: string
name: unpack_data
arguments: data_tag: D65
type: string
name: unpack_data
arguments: data_tag: D35
type: string
name: unpack_data
arguments: data_tag: D99
type: string
name: unpack_data
arguments: data_tag: D179
type: string

tool: D4: /media/norbert/940CB6150CB5F27A/Documents/simulation/%s.%i_debug.vtk

tool: D196: w

tool: D159: Failed to open %s

tool: D177: /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/visual.c

tool: D158: POINT_DATA %i 


tool: D54: VECTORS velocity float


tool: D106: 0.25

tool: D98: %f %f %f


tool: D116: 0 0 0


tool: D77: CELL_DATA %i 


tool: D113: SCALARS pressure float 1 


tool: D66: LOOKUP_TABLE default 


tool: D65: %f


tool: D35: SCALARS flag short 1 


tool: D99: %d


tool: D179: Failed to close %s

assistant: ```c
void write_vtkFile_debug(const char *szProblem, int timeStepNumber, double xlength, double ylength, double zlength, int imax, int jmax, int kmax, double dx, double dy, double dz, double ***U, double ***V, double ***W, double ***P, int ***Flag) {
  int i, j, k;
  double uVel, vVel, wVel;
  char szFileName[80];
  FILE *fp = NULL;
  sprintf(szFileName, "/media/norbert/940CB6150CB5F27A/Documents/simulation/%s.%i_debug.vtk", szProblem, timeStepNumber);
  fp = fopen(szFileName, "w");
  if (fp == NULL) {
    char szBuff[80];
    sprintf(szBuff, "Failed to open %s", szFileName);
    errhandler(89, "/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/visual.c", szBuff);
    return;
  }
  write_vtkHeader_debug(fp, imax, jmax, kmax, dx, dy, dz);
  write_vtkPointCoordinates_debug(fp, imax, jmax, kmax, dx, dy, dz);
  fprintf(fp, "POINT_DATA %i \n", (imax + 3) * (jmax + 3) * (kmax + 3));
  fprintf(fp, "\n");
  fprintf(fp, "VECTORS velocity float\n");
  for (k = -1; k < kmax + 2; k++) {
    for (j = -1; j < jmax + 2; j++) {
      for (i = -1; i < imax + 2; i++) {
        if (i >= 0 && j >= 0 && k >= 0 && i < imax + 1 && j < jmax + 1 && k < kmax + 1) {
          uVel = getValidValue((U[i][j][k] + U[i][j + 1][k] + U[i][j][k + 1] + U[i][j + 1][k + 1]) * 0.25);
          vVel = getValidValue((V[i][j][k] + V[i + 1][j][k] + V[i][j][k + 1] + V[i + 1][j][k + 1]) * 0.25);
          wVel = getValidValue((W[i][j][k] + W[i + 1][j][k] + W[i][j + 1][k] + W[i + 1][j + 1][k]) * 0.25);
          fprintf(fp, "%f %f %f\n", uVel, vVel, wVel);
        } else {
          fprintf(fp, "0 0 0\n");
        }
      }
    }
  }
  fprintf(fp, "\n");
  fprintf(fp, "CELL_DATA %i \n", ((imax + 2) * (jmax + 2) * (kmax + 2)));
  fprintf(fp, "SCALARS pressure float 1 \n");
  fprintf(fp, "LOOKUP_TABLE default \n");
  for (k = 0; k < kmax + 2; k++) {
    for (j = 0; j < jmax + 2; j++) {
      for (i = 0; i < imax + 2; i++) {
        fprintf(fp, "%f\n", getValidValue(P[i][j][k]));
      }
    }
  }
  fprintf(fp, "\n");
  fprintf(fp, "SCALARS flag short 1 \n");
  fprintf(fp, "LOOKUP_TABLE default \n");
  for (k = 0; k < kmax + 2; k++) {
    for (j = 0; j < jmax + 2; j++) {
      for (i = 0; i < imax + 2; i++) {
        fprintf(fp, "%d\n", getcelltype(Flag[i][j][k]));
      }
    }
  }
  if (fclose(fp)) {
    char szBuff[80];
    sprintf(szBuff, "Failed to close %s", szFileName);
    errhandler(146, "/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/visual.c", szBuff);
  }
}
```