user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1b0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movb   $0x46,-0x1a5(%rbp)
  movabs $0x79732f2e2e2f2e2e,%rax
  mov    %rax,-0x16(%rbp)
  movl   $0x6d657473,-0xe(%rbp)
  movw   $0x32,-0xa(%rbp)
  lea    -0x16(%rbp),%rax
  lea    D95(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x168(%rbp)
  lea    -0x198(%rbp),%rcx
  lea    -0x19c(%rbp),%rdx
  mov    -0x168(%rbp),%rax
  lea    D20(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %eax,-0x170(%rbp)
  mov    -0x19c(%rbp),%edx
  mov    -0x19c(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x16c(%rbp)
  mov    -0x16c(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x160(%rbp)
  movl   $0x0,-0x194(%rbp)
  jmp    L86
L96:
  mov    -0x194(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x160(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,(%rax)
  mov    -0x194(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x194(%rbp)
L86:
  mov    -0x194(%rbp),%eax
  cmp    %eax,-0x16c(%rbp)
  jg     L96
  movl   $0x0,-0x178(%rbp)
  jmp    L13
L41:
  lea    -0x190(%rbp),%rcx
  lea    -0x194(%rbp),%rdx
  mov    -0x168(%rbp),%rax
  lea    D69(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %eax,-0x170(%rbp)
  mov    -0x190(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x19c(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x194(%rbp),%eax
  add    %eax,%eax
  cltq
  add    %rdx,%rax
  shl    $0x2,%rax
  lea    -0x4(%rax),%rdx
  mov    -0x160(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x190(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x19c(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%eax
  movslq %eax,%rdx
  mov    -0x194(%rbp),%eax
  add    %eax,%eax
  cltq
  add    %rdx,%rax
  shl    $0x2,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x160(%rbp),%rax
  add    %rax,%rdx
  mov    -0x168(%rbp),%rax
  lea    D53(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fscanf@plt>
  mov    %eax,-0x170(%rbp)
  addl   $0x1,-0x178(%rbp)
L13:
  mov    -0x198(%rbp),%eax
  cmp    %eax,-0x178(%rbp)
  jl     L41
  mov    -0x168(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x19c(%rbp),%eax
  mov    %eax,%esi
  lea    D108(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x140(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <gettimeofday@plt>
  movss  D126(%rip),%xmm0
  movss  %xmm0,-0x180(%rbp)
  movss  D174(%rip),%xmm0
  movss  %xmm0,-0x17c(%rbp)
  movl   $0x28,-0x18c(%rbp)
  mov    -0x18c(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x158(%rbp)
  mov    -0x18c(%rbp),%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x150(%rbp)
  mov    -0x19c(%rbp),%edx
  mov    -0x18c(%rbp),%eax
  imul   %edx,%eax
  add    %eax,%eax
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <calloc@plt>
  mov    %rax,-0x148(%rbp)
  lea    -0x120(%rbp),%rax
  mov    %rax,%rdi
  call   <feastinit@plt>
  movl   $0x1,-0x120(%rbp)
  lea    -0x1a4(%rbp),%r9
  lea    -0x120(%rbp),%r8
  lea    -0x19c(%rbp),%rcx
  mov    -0x160(%rbp),%rdx
  lea    -0x19c(%rbp),%rsi
  lea    -0x1a5(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x184(%rbp),%rdi
  push   %rdi
  push   -0x150(%rbp)
  lea    -0x188(%rbp),%rdi
  push   %rdi
  push   -0x148(%rbp)
  push   -0x158(%rbp)
  lea    -0x18c(%rbp),%rdi
  push   %rdi
  lea    -0x17c(%rbp),%rdi
  push   %rdi
  lea    -0x180(%rbp),%rdi
  push   %rdi
  lea    -0x1a0(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <cfeast_heev@plt>
  add    $0x50,%rsp
  lea    -0x130(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <gettimeofday@plt>
  mov    -0x184(%rbp),%eax
  mov    %eax,%esi
  lea    D127(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x184(%rbp),%eax
  test   %eax,%eax
  jne    L61
  lea    D106(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D176(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D106(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movsd  -0x130(%rbp),%xmm0
  movsd  -0x140(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  -0x128(%rbp),%xmm0
  movsd  -0x138(%rbp),%xmm3
  movapd %xmm0,%xmm2
  subsd  %xmm3,%xmm2
  movsd  D87(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  lea    D135(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movss  -0x17c(%rbp),%xmm0
  cvtss2sd %xmm0,%xmm0
  movss  -0x180(%rbp),%xmm1
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm1,%xmm4
  movq   %xmm4,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    -0x18c(%rbp),%edx
  mov    -0x188(%rbp),%eax
  mov    %eax,%esi
  lea    D150(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1a0(%rbp),%eax
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x174(%rbp)
  movl   $0x0,-0x194(%rbp)
  jmp    L95
L38:
  mov    -0x194(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x174(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x174(%rbp)
  mov    -0x194(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x194(%rbp)
L95:
  mov    -0x188(%rbp),%edx
  mov    -0x194(%rbp),%eax
  cmp    %eax,%edx
  jg     L38
  pxor   %xmm5,%xmm5
  cvtss2sd -0x174(%rbp),%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  lea    D121(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movss  -0x1a4(%rbp),%xmm0
  pxor   %xmm6,%xmm6
  cvtss2sd %xmm0,%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  lea    D191(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D153(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x194(%rbp)
  jmp    L39
L25:
  mov    -0x194(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x150(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  mov    -0x194(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x158(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  pxor   %xmm7,%xmm7
  cvtss2sd %xmm1,%xmm7
  movq   %xmm7,%rdx
  mov    -0x194(%rbp),%eax
  movapd %xmm0,%xmm1
  movq   %rdx,%xmm0
  mov    %eax,%esi
  lea    D175(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  mov    -0x194(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x194(%rbp)
L39:
  mov    -0x188(%rbp),%edx
  mov    -0x194(%rbp),%eax
  cmp    %eax,%edx
  jg     L25
L61:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L82
  call   <__stack_chk_fail@plt>
L82:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: tag: D95
type: string
name: unpack_data
arguments: tag: D20
type: string
name: unpack_data
arguments: tag: D69
type: string
name: unpack_data
arguments: tag: D53
type: string
name: unpack_data
arguments: tag: D108
type: string
name: unpack_data
arguments: tag: D126
type: byte[4]
name: unpack_data
arguments: tag: D174
type: f32
name: unpack_data
arguments: tag: D127
type: string
name: unpack_data
arguments: tag: D106
type: string
name: unpack_data
arguments: tag: D176
type: string
name: unpack_data
arguments: tag: D87
type: f64
name: unpack_data
arguments: tag: D135
type: string
name: unpack_data
arguments: tag: D83
type: string
name: unpack_data
arguments: tag: D150
type: string
name: unpack_data
arguments: tag: D28
type: string
name: unpack_data
arguments: tag: D121
type: string
name: unpack_data
arguments: tag: D191
type: string
name: unpack_data
arguments: tag: D153
type: string
name: unpack_data
arguments: tag: D175
type: string

tool: D95: r

tool: D20: %d%d


tool: D69: %d %d

tool: D53: %f%f


tool: D108: dense matrix -system2- size %.d


tool: {"D126": [0x33,0x33,0xb3,0xbe]}

tool: D174: 0.23

tool: D127: FEAST OUTPUT INFO %d


tool: D106: *************************************************

tool: D176: ************** REPORT ***************************

tool: D87: 1e-06

tool: D135: SIMULATION TIME %f


tool: D83: # Search interval [Emin,Emax] %f %f


tool: D150: # mode found/subspace %d %d 


tool: D28: # iterations %d 


tool: D121: TRACE %f


tool: D191: Relative error on the Trace %f


tool: D153: Eigenvalues/Residuals

tool: D175:    %d %f %f


assistant: ```c
int main() {
  int feastparam[64];
  float epsout;
  int loop;
  char UPLO = 'F';
  FILE *fp;
  char name[] = "../../system2";
  int N, nnz;
  float *A;
  struct timeval t1, t2;
  int i, j, k, n2, err;
  int M0, M, info;
  float Emin, Emax, trace;
  float *X;
  float *E, *res;
  fp = fopen(name, "r");
  err = fscanf(fp, "%d%d\n", &N, &nnz);
  n2 = 2 * N * N;
  A = calloc(n2, sizeof(float));
  for (i = 0; i <= n2 - 1; i++) {
    *(A + i) = (float)0.0;
  };
  for (k = 0; k <= nnz - 1; k++) {
    err = fscanf(fp, "%d %d", &i, &j);
    err = fscanf(fp, "%f%f\n", A + (j - 1) * 2 * N + 2 * i - 2, A + (j - 1) * 2 * N + 2 * i - 1);
  };
  fclose(fp);
  printf("dense matrix -system2- size %.d\n", N);
  gettimeofday(&t1, NULL);
  Emin = (float)-0.35;
  Emax = (float)0.23;
  M0 = 40;
  E = calloc(M0, sizeof(float));
  res = calloc(M0, sizeof(float));
  X = calloc(2 * N * M0, sizeof(float));
  feastinit(feastparam);
  feastparam[0] = 1;
  cfeast_heev(&UPLO, &N, A, &N, feastparam, &epsout, &loop, &Emin, &Emax, &M0, E, X, &M, res, &info);
  gettimeofday(&t2, NULL);
  printf("FEAST OUTPUT INFO %d\n", info);
  if (info == 0) {
    printf("*************************************************\n");
    printf("************** REPORT ***************************\n");
    printf("*************************************************\n");
    printf("SIMULATION TIME %f\n", (t2.tv_sec - t1.tv_sec) * 1.0 + (t2.tv_usec - t1.tv_usec) * 0.000001);
    printf("# Search interval [Emin,Emax] %f %f\n", Emin, Emax);
    printf("# mode found/subspace %d %d \n", M, M0);
    printf("# iterations %d \n", loop);
    trace = (float)0.0;
    for (i = 0; i <= M - 1; i = i + 1) {
      trace = trace + *(E + i);
    }
    printf("TRACE %f\n", trace);
    printf("Relative error on the Trace %f\n", epsout);
    printf("Eigenvalues/Residuals\n");
    for (i = 0; i <= M - 1; i = i + 1) {
      printf("   %d %f %f\n", i, *(E + i), *(res + i));
    }
  }
  return 0;
}
```