user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x458,%rsp
  mov    0x8(%rsi),%rdi
  mov    %rsi,0x18(%rsp)
  lea    D49(%rip),%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x448(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  mov    $0x1e60000,%edi
  movl   $0x120,0x4c(%rsp)
  mov    %rax,0x10(%rsp)
  movabs $0x6000000060,%rax
  mov    %rax,0x44(%rsp)
  lea    D46(%rip),%rax
  movl   $0x1,0x28(%rsp)
  movl   $0x1,0x2c(%rsp)
  mov    %rax,0x30(%rsp)
  call   <malloc@plt>
  mov    $0xa20000,%edi
  mov    %rax,%r12
  call   <malloc@plt>
  mov    %r12,%r9
  xor    %r8d,%r8d
  xor    %edi,%edi
  mov    %rax,0x38(%rsp)
  mov    %rax,%rbp
L49:
  pxor   %xmm2,%xmm2
  mov    %r9,%rsi
  xor    %ecx,%ecx
  cvtsi2ss %r8d,%xmm2
  nopw   0x0(%rax,%rax,1)
L115:
  pxor   %xmm1,%xmm1
  mov    %rsi,%rax
  xor    %edx,%edx
  cvtsi2ss %ecx,%xmm1
  nopl   (%rax)
L16:
  pxor   %xmm0,%xmm0
  movss  %xmm1,0x4(%rax)
  add    $0xc,%rax
  cvtsi2ss %edx,%xmm0
  add    $0x1,%edx
  movss  %xmm2,-0x4(%rax)
  movss  %xmm0,-0xc(%rax)
  cmp    $0x60,%edx
  jne    L16
  add    $0x1,%ecx
  add    $0x480,%rsi
  cmp    $0x60,%ecx
  jne    L115
  add    $0x6c00,%edi
  add    $0x1,%r8d
  add    $0x1b000,%r9
  cmp    $0x798000,%edi
  jne    L49
  movl   $0x0,0xc(%rsp)
  xor    %r14d,%r14d
  xor    %r13d,%r13d
  lea    0x50(%rsp),%r15
L2:
  mov    0x10(%rsp),%rdx
  mov    $0x1f4,%esi
  mov    %r15,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L14
  lea    0x250(%rsp),%rbx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  call   <strcpy@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L2
  mov    %rbx,%rdi
  lea    D3(%rip),%rsi
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L2
  xor    %ebx,%ebx
  jmp    L42
L90:
  call   <atoi@plt>
  cvttsd2si %xmm0,%eax
  test   %ebx,%ebx
  jne    L118
  mov    %eax,0xc(%rsp)
L67:
  add    $0x1,%ebx
L27:
  xor    %edi,%edi
  lea    D3(%rip),%rsi
  call   <strtok@plt>
  mov    %rax,%rdi
  test   %rax,%rax
  je     L2
L42:
  cmp    $0x2,%ebx
  jle    L90
  call   <atof@plt>
  lea    (%r14,%r14,8),%eax
  lea    0x0(%r13,%r13,2),%edx
  shl    $0xa,%eax
  shl    $0x5,%edx
  cvtsd2ss %xmm0,%xmm0
  add    %edx,%eax
  add    0xc(%rsp),%eax
  cltq
  movss  %xmm0,0x0(%rbp,%rax,4)
  jmp    L27
L14:
  movss  0x110048(%rbp),%xmm0
  lea    D12(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  lea    0x44(%rsp),%rdx
  mov    %r12,%rcx
  sub    $0x8,%rsp
  mov    $0x1,%r8d
  mov    $0x1,%esi
  mov    0x10(%rax),%rdi
  lea    0x40(%rsp),%rax
  push   %rax
  lea    0x40(%rsp),%rax
  push   %rax
  lea    0x44(%rsp),%rax
  push   %rax
  lea    0x48(%rsp),%r9
  call   <write_curvilinear_mesh@plt>
  add    $0x20,%rsp
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x448(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L62
  add    $0x458,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L118:
  cmp    $0x1,%ebx
  cmovne %eax,%r14d
  cmove  %eax,%r13d
  jmp    L67
L62:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D49
data_type: string
name: disassemble_data
arguments: tag: D46
data_type: string
name: disassemble_data
arguments: tag: D3
data_type: string
name: disassemble_data
arguments: tag: D12
data_type: string

tool: D49: r

tool: D46: zonal

tool: D3: 	

tool: D12: %f


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *file = fopen(argv[1], "r");
  char str[500];
  int dims[] = {96, 96, 288};
  int nvars = 1;
  int vardims[] = {1};
  int centering[] = {1};
  int i, j, k;
  const char *varnames[] = {"zonal"};
  float *pts = (float *)malloc(96 * 96 * 288 * 3 * sizeof(float));
  float *zonal = (float *)malloc(96 * 96 * 288 * sizeof(float));
  float *vars[] = {(float *)zonal};
  int x = 0;
  int y = 0;
  int z = 0;
  int index = 0;
  for (int i = 0; i < 288; i++) {
    for (int j = 0; j < 96; j++) {
      for (int k = 0; k < 96; k++) {
        pts[index++] = k;
        pts[index++] = j;
        pts[index++] = i;
      }
    }
  }
  while (fgets(str, 500, file) != NULL) {
    char line[500];
    strcpy(line, str);
    if ((index / 3) % 10000 == 0) {
      printf("Processed %d lines\n", index / 3);
    }
    if (strlen(line) >= 2) {
      int count = 0;
      for (char *token = strtok(line, "\t"); token != NULL; token = strtok(NULL, "\t")) {
        if (count < 3) {
          double point_val = atoi(token);
          if (count == 0) {
            x = point_val;
          } else if (count == 1) {
            y = point_val;
          } else {
            z = point_val;
          }
          count++;
        } else {
          double val = atof(token);
          int pos = z * 96 * 96 + y * 96 + x;
          zonal[pos] = val;
        }
      }
    }
  }
  int pos = 30 * 96 * 96 + 21 * 96 + 50;
  printf("%f\n", zonal[pos]);
  write_curvilinear_mesh(argv[2], 1, dims, pts, nvars, vardims, centering, varnames, vars);
  free(zonal);
  free(pts);
}
```