user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x160,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D142(%rip),%rax
  mov    %rax,%rsi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x118(%rbp)
  cmpq   $0x0,-0x118(%rbp)
  je     L67
  lea    D142(%rip),%rax
  mov    %rax,%rsi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x120(%rbp)
  cmpq   $0x0,-0x120(%rbp)
  je     L119
  mov    $0x10,%esi
  mov    $0x76c1,%edi
  call   <calloc@plt>
  mov    %rax,-0x130(%rbp)
  cmpq   $0x0,-0x130(%rbp)
  jne    L187
  mov    -0x118(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L181
L187:
  mov    $0x10,%esi
  mov    $0x8f013a9,%edi
  call   <calloc@plt>
  mov    %rax,-0x128(%rbp)
  cmpq   $0x0,-0x128(%rbp)
  jne    L189
  mov    -0x118(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L181
L189:
  lea    D153(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x128(%rbp),%rdx
  mov    -0x130(%rbp),%rcx
  mov    -0x118(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <LocusHistoryInit@plt>
  mov    %rax,-0x148(%rbp)
  cmpq   $0xffffffffffffffff,-0x148(%rbp)
  je     L130
  lea    D115(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movq   $0xfffffffffccb13c0,-0xf0(%rbp)
  movq   $0xffffffffff475e60,-0xe8(%rbp)
  movq   $0xffffffffff5cbb20,-0xe0(%rbp)
  movq   $0xffffffffff922300,-0xd8(%rbp)
  movq   $0xffffffffffeaa340,-0xd0(%rbp)
  movq   $0xfffffffffff551a0,-0xc8(%rbp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %rax,-0x110(%rbp)
  mov    -0x110(%rbp),%rax
  mov    %rax,-0x108(%rbp)
  mov    -0x108(%rbp),%rax
  mov    %rax,%rdi
  call   <init_genrand@plt>
  movq   $0x0,-0x148(%rbp)
  jmp    L38
L180:
  movq   $0x0,-0x140(%rbp)
  jmp    L32
L171:
  cmpq   $0x0,-0x140(%rbp)
  jne    L145
  fldt   0xcca(%rip)        # 2160 <_fini+0x980>
  fstpt  -0x100(%rbp)
  jmp    L50
L145:
  fldt   0xccc(%rip)        # 2170 <_fini+0x990>
  fstpt  -0x100(%rbp)
L50:
  cmpq   $0x3,-0x140(%rbp)
  jg     L86
  movq   $0xffffffffffffffff,-0x138(%rbp)
  jmp    L70
L86:
  movq   $0xbebc200,-0x138(%rbp)
L70:
  fldt   -0x100(%rbp)
  fstps  -0x154(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x154(%rbp),%xmm0
  mov    -0x138(%rbp),%rsi
  mov    -0x108(%rbp),%rcx
  mov    -0x148(%rbp),%rdx
  mov    D23(%rip),%rax
  mov    %rsi,%r9
  movapd %xmm0,%xmm1
  mov    %rcx,%r8
  mov    %rdx,%rcx
  movq   %rax,%xmm0
  mov    $0x186a0,%edx
  mov    $0x42c1d80,%esi
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  fldt   -0x100(%rbp)
  fstps  -0x154(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x154(%rbp),%xmm0
  mov    -0x108(%rbp),%rsi
  mov    -0x148(%rbp),%rcx
  mov    D23(%rip),%rdx
  mov    -0x118(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x138(%rbp)
  movapd %xmm0,%xmm1
  mov    %rsi,%r9
  mov    %rcx,%r8
  movq   %rdx,%xmm0
  mov    $0x186a0,%ecx
  mov    $0x42c1d80,%edx
  lea    D87(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <fprintf@plt>
  add    $0x10,%rsp
  fldt   -0x100(%rbp)
  fstps  -0x154(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x154(%rbp),%xmm0
  mov    -0x108(%rbp),%rsi
  mov    -0x148(%rbp),%rcx
  mov    D23(%rip),%rdx
  mov    -0x120(%rbp),%rax
  sub    $0x8,%rsp
  push   -0x138(%rbp)
  movapd %xmm0,%xmm1
  mov    %rsi,%r9
  mov    %rcx,%r8
  movq   %rdx,%xmm0
  mov    $0x186a0,%ecx
  mov    $0x42c1d80,%edx
  lea    D131(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <fprintf@plt>
  add    $0x10,%rsp
  mov    -0x138(%rbp),%r9
  mov    -0x108(%rbp),%r8
  mov    -0x128(%rbp),%rcx
  mov    -0x130(%rbp),%rdx
  mov    -0x120(%rbp),%rsi
  mov    -0x118(%rbp),%rax
  lea    -0x40(%rbp),%rdi
  push   %rdi
  lea    -0x80(%rbp),%rdi
  push   %rdi
  lea    -0xc0(%rbp),%rdi
  push   %rdi
  lea    -0xf0(%rbp),%rdi
  push   %rdi
  push   -0xf8(%rbp)
  push   -0x100(%rbp)
  mov    %rax,%rdi
  call   <LocusHistory@plt>
  add    $0x30,%rsp
  mov    -0x50(%rbp),%r8
  mov    -0x58(%rbp),%rdi
  mov    -0x60(%rbp),%rsi
  mov    -0x68(%rbp),%r9
  mov    -0x70(%rbp),%r10
  mov    -0x78(%rbp),%rcx
  mov    -0x80(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  sub    $0x8,%rsp
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r10,%r8
  lea    D147(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x20,%rsp
  mov    -0x90(%rbp),%r8
  mov    -0x98(%rbp),%rdi
  mov    -0xa0(%rbp),%rsi
  mov    -0xa8(%rbp),%r9
  mov    -0xb0(%rbp),%r10
  mov    -0xb8(%rbp),%rcx
  mov    -0xc0(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  sub    $0x8,%rsp
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r10,%r8
  lea    D106(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x20,%rsp
  mov    -0x10(%rbp),%r8
  mov    -0x18(%rbp),%rdi
  mov    -0x20(%rbp),%rsi
  mov    -0x28(%rbp),%r9
  mov    -0x30(%rbp),%r10
  mov    -0x38(%rbp),%rcx
  mov    -0x40(%rbp),%rdx
  mov    -0x120(%rbp),%rax
  sub    $0x8,%rsp
  push   %r8
  push   %rdi
  push   %rsi
  mov    %r10,%r8
  lea    D10(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x20,%rsp
  addq   $0x1,-0x140(%rbp)
L32:
  cmpq   $0x1,-0x140(%rbp)
  jne    L171
  addq   $0x1,-0x148(%rbp)
L38:
  cmpq   $0x64,-0x148(%rbp)
  jne    L180
  jmp    L181
L67:
  nop
  jmp    L181
L119:
  nop
  jmp    L181
L130:
  nop
L181:
  mov    -0x118(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x120(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x130(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x128(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L4
  call   <__stack_chk_fail@plt>
L4:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D142
type_infered: string
name: parse_data
arguments: label: D62
type_infered: string
name: parse_data
arguments: label: D9
type_infered: string
name: parse_data
arguments: label: D102
type_infered: string
name: parse_data
arguments: label: D34
type_infered: string
name: parse_data
arguments: label: D153
type_infered: string
name: parse_data
arguments: label: D115
type_infered: string
name: parse_data
arguments: label: D23
type_infered: f64
name: parse_data
arguments: label: D87
type_infered: string
name: parse_data
arguments: label: D131
type_infered: string
name: parse_data
arguments: label: D147
type_infered: string
name: parse_data
arguments: label: D106
type_infered: string
name: parse_data
arguments: label: D10
type_infered: string

tool: D142: w

tool: D62: /dev/null

tool: D9: PositiveSelectionSimulationF07.out

tool: D102:  No memory-1! 

tool: D34:  No memory-2! 

tool: D153:  zapolnyayu figushki!

tool: D115:  zapolnila figushki!

tool: D23: 1e-07

tool: D87:  %12ld %10ld %11.9f %5ld %10ld %10.8f %10ld


tool: D131: %12ld	%10ld	%11.9f	%5ld	%10ld	%10.8f	%10ld	

tool: D147: 	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld	

tool: D106: %7ld	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld	

tool: D10: %7ld	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld


assistant: ```c
int main(void) {
  long i, k, seed, switches, node[6], alleles[7], AllNum[7], a162[7];
  long double s, R, (*poissonTrans)[300L + 1], (*gaussTrans)[1500L + 1];
  FILE *fout;
  if ((fout = fopen("/dev/null", "w")) == NULL)
    goto quit;
  FILE *fout1;
  if ((fout1 = fopen("PositiveSelectionSimulationF07.out", "w")) == NULL)
    goto quit;
  if ((poissonTrans = calloc((100L + 1) * (300L + 1), sizeof(long double))) == NULL) {
    fprintf(fout, " No memory-1! ");
    goto quit;
  }
  if ((gaussTrans = calloc((100000L - 100L + 1) * (1500L + 1), sizeof(long double))) == NULL) {
    fprintf(fout, " No memory-2! ");
    goto quit;
  }
  printf(" zapolnyayu figushki!\n");
  i = LocusHistoryInit(fout, poissonTrans, gaussTrans);
  if (i == -1)
    goto quit;
  printf(" zapolnila figushki!\n");
  node[0] = -53800000;
  node[1] = -12100000;
  node[2] = -10700000;
  node[3] = -7200000;
  node[4] = -1400000;
  node[5] = -700000;
  time_t seconds;
  seconds = time(NULL);
  seed = seconds;
  init_genrand(seed);
  for (i = 0; i != 100; i++) {
    for (k = 0; k != 1; k++) {
      if (k == 0)
        s = -0.01;
      else
        s = -0.1;
      if (k <= 3)
        switches = -1;
      else
        switches = 200000000;
      printf(" %12ld %10ld %11.9f %5ld %10ld %10.8f %10ld\n", 70000000L, 100000L, 0.0000001, i, seed, (float)s, switches);
      fprintf(fout, " %12ld %10ld %11.9f %5ld %10ld %10.8f %10ld\n", 70000000L, 100000L, 0.0000001, i, seed, (float)s, switches);
      fprintf(fout1, "%12ld\t%10ld\t%11.9f\t%5ld\t%10ld\t%10.8f\t%10ld\t", 70000000L, 100000L, 0.0000001, i, seed, (float)s, switches);
      LocusHistory(fout, fout1, poissonTrans, gaussTrans, seed, s, switches, node, alleles, AllNum, a162);
      fprintf(fout1, "\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t", AllNum[0], AllNum[1], AllNum[2], AllNum[3], AllNum[4], AllNum[5], AllNum[6]);
      fprintf(fout1, "%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t", alleles[0], alleles[1], alleles[2], alleles[3], alleles[4], alleles[5], alleles[6]);
      fprintf(fout1, "%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\t%7ld\n", a162[0], a162[1], a162[2], a162[3], a162[4], a162[5], a162[6]);
    }
  }
quit:
  fclose(fout);
  fclose(fout1);
  free(poissonTrans);
  free(gaussTrans);
  return 0;
}
```