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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  lea    D166(%rip),%rsi
  lea    D119(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L49
  lea    D166(%rip),%rsi
  lea    D58(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L49
  mov    $0x10,%esi
  mov    $0x76c1,%edi
  call   <calloc@plt>
  mov    %rax,%r15
  test   %rax,%rax
  je     L0
  mov    $0x10,%esi
  mov    $0x8f013a9,%edi
  call   <calloc@plt>
  mov    %rax,0x18(%rsp)
  test   %rax,%rax
  je     L60
  lea    D55(%rip),%rdi
  call   <puts@plt>
  mov    0x18(%rsp),%rdx
  mov    %r15,%rsi
  mov    %r13,%rdi
  call   <LocusHistoryInit@plt>
  cmp    $0xffffffffffffffff,%rax
  je     L49
  lea    D81(%rip),%rdi
  call   <puts@plt>
  movq   $0xfffffffffccb13c0,0x20(%rsp)
  movq   $0xffffffffff475e60,0x28(%rsp)
  movq   $0xffffffffff5cbb20,0x30(%rsp)
  movq   $0xffffffffff922300,0x38(%rsp)
  movq   $0xffffffffffeaa340,0x40(%rsp)
  movq   $0xfffffffffff551a0,0x48(%rsp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %rax,%r12
  mov    %rax,%rdi
  call   <init_genrand@plt>
  mov    $0x0,%ebx
  lea    D9(%rip),%r14
L26:
  mov    $0xffffffffffffffff,%r9
  mov    D132(%rip),%rax
  movq   %rax,%xmm1
  mov    %r12,%r8
  mov    %rbx,%rcx
  mov    D186(%rip),%rax
  movq   %rax,%xmm0
  mov    $0x186a0,%edx
  mov    $0x42c1d80,%esi
  mov    %r14,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  sub    $0x8,%rsp
  push   $0xffffffffffffffff
  mov    D132(%rip),%rax
  movq   %rax,%xmm1
  mov    %r12,%r9
  mov    %rbx,%r8
  mov    D186(%rip),%rax
  movq   %rax,%xmm0
  mov    $0x186a0,%ecx
  mov    $0x42c1d80,%edx
  mov    %r14,%rsi
  mov    %r13,%rdi
  mov    $0x2,%eax
  call   <fprintf@plt>
  movq   $0xffffffffffffffff,(%rsp)
  mov    D132(%rip),%rax
  movq   %rax,%xmm1
  mov    %r12,%r9
  mov    %rbx,%r8
  mov    D186(%rip),%rax
  movq   %rax,%xmm0
  mov    $0x186a0,%ecx
  mov    $0x42c1d80,%edx
  lea    D73(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x2,%eax
  call   <fprintf@plt>
  lea    0xe0(%rsp),%rax
  push   %rax
  lea    0xa8(%rsp),%rax
  push   %rax
  lea    0x70(%rsp),%rax
  push   %rax
  lea    0x48(%rsp),%rax
  push   %rax
  fldl   0xcc6(%rip)        # 2168 <_fini+0xb1c>
  fstpt  0x30(%rsp)
  mov    0x30(%rsp),%rax
  mov    0x38(%rsp),%edx
  push   %rdx
  push   %rax
  mov    $0xffffffffffffffff,%r9
  mov    %r12,%r8
  mov    0x58(%rsp),%rcx
  mov    %r15,%rdx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <LocusHistory@plt>
  add    $0x38,%rsp
  push   0xc8(%rsp)
  push   0xc8(%rsp)
  push   0xc8(%rsp)
  mov    0xc8(%rsp),%r9
  mov    0xc0(%rsp),%r8
  mov    0xb8(%rsp),%rcx
  mov    0xb0(%rsp),%rdx
  lea    D2(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x18,%rsp
  push   0x88(%rsp)
  push   0x88(%rsp)
  push   0x88(%rsp)
  mov    0x88(%rsp),%r9
  mov    0x80(%rsp),%r8
  mov    0x78(%rsp),%rcx
  mov    0x70(%rsp),%rdx
  lea    D79(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x18,%rsp
  push   0x108(%rsp)
  push   0x108(%rsp)
  push   0x108(%rsp)
  mov    0x108(%rsp),%r9
  mov    0x100(%rsp),%r8
  mov    0xf8(%rsp),%rcx
  mov    0xf0(%rsp),%rdx
  lea    D136(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  add    $0x1,%rbx
  add    $0x20,%rsp
  cmp    $0x64,%rbx
  jne    L26
L49:
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L29
  mov    $0x0,%eax
  add    $0x118,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  mov    %r13,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D65(%rip),%rdi
  call   <fwrite@plt>
  jmp    L49
L60:
  mov    %r13,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D25(%rip),%rdi
  call   <fwrite@plt>
  jmp    L49
L29:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D166
type_guessed: string
name: disassemble_data
arguments: data_tag: D119
type_guessed: string
name: disassemble_data
arguments: data_tag: D58
type_guessed: string
name: disassemble_data
arguments: data_tag: D55
type_guessed: string
name: disassemble_data
arguments: data_tag: D81
type_guessed: string
name: disassemble_data
arguments: data_tag: D9
type_guessed: string
name: disassemble_data
arguments: data_tag: D132
type_guessed: byte[8]
name: disassemble_data
arguments: data_tag: D186
type_guessed: f64
name: disassemble_data
arguments: data_tag: D73
type_guessed: string
name: disassemble_data
arguments: data_tag: D2
type_guessed: string
name: disassemble_data
arguments: data_tag: D79
type_guessed: string
name: disassemble_data
arguments: data_tag: D136
type_guessed: string
name: disassemble_data
arguments: data_tag: D65
type_guessed: string
name: disassemble_data
arguments: data_tag: D25
type_guessed: string

tool: D166: w

tool: D119: /dev/null

tool: D58: PositiveSelectionSimulationF07.out

tool: D55:  zapolnyayu figushki!

tool: D81:  zapolnila figushki!

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


tool: {"D132": [0x00,0x00,0x00,0x40,0xe1,0x7a,0x84,0xbf]}

tool: D186: 1e-07

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

tool: D2: 	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld	

tool: D79: %7ld	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld	

tool: D136: %7ld	%7ld	%7ld	%7ld	%7ld	%7ld	%7ld


tool: D65:  No memory-1! 

tool: D25:  No memory-2! 

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;
}
```