// File: /workspace/github_cpp_makefile_star2_O3/ashlall[P]StreamStats/ChiSquareExperiments/VarySizeTwoSampleConstant.cpp
// Function: main
int main(int argc, char* argv[])
{
  if (argc < 13)
  {
    cout << "usage: VarySizeTwoSample lower-size upper-size stream2-size num-stream(>0) [N|U|P|E] location1 scale1 location2 scale2 [0|1] memory-percent num-buckets" << endl;
    throw ParameterError();
  }

  double lower = atof (argv[1]);
  double upper = atof (argv[2]);
  double stream2_size = atof (argv[3]);
  int data_repeats = atoi (argv[4]);
  char distribution_type = argv[5][0];
  double location1 = atof (argv[6]);
  double scale1 = atof (argv[7]);
  double location2 = atof (argv[8]);
  double scale2 = atof (argv[9]);
  int all_quantiles = atoi (argv[10]);
  double memory_percent = atof (argv[11]);
  int num_buckets = atoi (argv[12]);
  int seed1 = 1;
  int seed2 = 2;

  // ensures that the parameters will not create error
  if (data_repeats <= 0)
  {
    cout << "The number of streams must be greater than zero.\n";
    throw ParameterError();
  }
  if (distribution_type != 'N' && distribution_type != 'U' && distribution_type != 'P' && distribution_type != 'E')
    {
      cout << "The distribution is either N, U, P, or E.\n";
      throw ParameterError();
    }
  if (lower <= 0)
    {
      cout << "The lower stream size must be greater than 0.\n";
      throw ParameterError();
    }
  if (memory_percent <= 0)
    {
      cout << "The memory percent must be greater than 0.\n";
      throw ParameterError();
    }
  if (num_buckets <= 0)
    {
      cout << "The number of bins must be greater than 0.\n";
      throw ParameterError();
    }

  // finds the number of different sizes the experiment will run on
  int stream1_size;
  int num_sizes = 0, size = lower;
  while (size <= upper)
  {
    num_sizes++;
    size *= 10;
  }

  // creates the arrays that will hold the calculated statistics
  double actual_values[data_repeats][num_sizes];
  double GK_values[data_repeats][num_sizes];
  double QD_values[data_repeats][num_sizes];
  double RS_values[data_repeats][num_sizes];
  int sizes[num_sizes];
  
  // creates and initializes the log file
  ofstream data_file;
  char str[150];
  name_file(str, argv, 0);
  data_file.open(str);
  data_file << "Distribution: " << distribution_type << endl;
  data_file << "location_1 = " << location1 << " scale_1 = " << scale1 << endl;
  data_file << "location_2 = " << location2 << " scale_2 = " << scale2 << endl;
  data_file << "number of bins = " << num_buckets << endl;
  data_file << "memory percent = " << memory_percent << endl;

  for (int i = 0; i < data_repeats; i++)  // runs all test data_repeats times
  {
    int j = 0;
    int sample2_size = memory_percent * stream2_size;

    // generates the data and the sketches of the stream held at a constant
    // size just once for each stream size of the first stream
    DataGenerator data2(distribution_type, stream2_size, seed2, location2, scale2);
    double *stream2 = data2.get_stream();
    ChiSquareContinuous GK_sketch2(sample2_size, 1);
    for (int k = 0; k < stream2_size; k++)
      GK_sketch2.insert(stream2[k]);
    
    
      ChiSquareContinuous QD_sketch2(sample2_size, 2);
      for (int k = 0; k < stream2_size; k++)
	QD_sketch2.insert(stream2[k]);
      ChiSquareContinuous RS_sketch2(sample2_size, 3);
      for (int k = 0; k < stream2_size; k++)
	RS_sketch2.insert(stream2[k]);
    
    stream1_size = lower;
    data_file << "Pass " << i+1 << ":" << endl;
    while (stream1_size <= upper)  // runs tests for every stream size
    {
      int sample1_size = memory_percent * stream1_size;
      if (!i)
	sizes[j] = stream1_size;
      data_file << "stream 1 size = " << stream1_size << endl;
      data_file << "stream 2 size = " << stream2_size << endl;

      // generates the data based on inputed parameters
      DataGenerator data1(distribution_type, stream1_size, seed1, location1, scale1);
      double *stream1 = data1.get_stream();

      // computes GK estimate
      ChiSquareContinuous GK_sketch1(sample1_size, 1);
      for (int k = 0; k < stream1_size; k++)
	GK_sketch1.insert(stream1[k]);
      //double GK_stat = GK_sketch1.two_sample_statistic(GK_sketch2, num_buckets);
      double GK_stat = GK_sketch2.two_sample_statistic(GK_sketch1, num_buckets);
      GK_values[i][j] = GK_stat;
      data_file << "GK = " << GK_stat << endl;

      if (all_quantiles)
      {
	// computes QDigest estimate
	ChiSquareContinuous QD_sketch1(sample1_size, 2);
	for (int k = 0; k < stream1_size; k++)
	  QD_sketch1.insert(stream1[k]);
	double QD_stat = QD_sketch2.two_sample_statistic(QD_sketch1, num_buckets);
	QD_values[i][j] = QD_stat;
	data_file << "QD = " << QD_stat << endl;

	// computes Reservoir Sampling estimate
	ChiSquareContinuous RS_sketch1(sample1_size, 3);
        for (int k = 0; k < stream1_size; k++)
          RS_sketch1.insert(stream1[k]);
        double RS_stat = RS_sketch2.two_sample_statistic(RS_sketch1, num_buckets);
	RS_values[i][j]= RS_stat;
	data_file << "RS = " << RS_stat<< endl;
      }
       
      // computes actual statistic
      double *upper_interval = GK_sketch2.get_upper();
      double *lower_interval = GK_sketch2.get_lower();
      double actual = data2.get_stat_two_sample(data1, num_buckets, upper_interval, lower_interval);
      actual_values[i][j] = actual;
      data_file << "Real = " << actual << endl;

      stream1_size *= 10;
      j++;
      seed1++;
    }     
    seed2++;
  }
  data_file.close();

  // creates pvalue file
  ofstream data2_file;
  char st[150];
  name_file(st, argv, 3);
  data2_file.open(st);

  // creates table file
  name_file(str, argv, 1);
  data_file.open(str);

  int deg_freedom;
  for (int i = 0; i < num_sizes; i++)
  {
    data_file << sizes[i] << "\t";
    if (sizes[i] == stream2_size)
      deg_freedom = num_buckets - 1;
    else
      deg_freedom = num_buckets;

    // adds pvalue error from the GK sketch to the table file
    double error = 0;
    for (int j = 0; j < data_repeats; j++)
      error += abs(pochisq(GK_values[j][i], deg_freedom) - pochisq(actual_values[j][i], deg_freedom));
    data_file << error / data_repeats;

    if (all_quantiles)
    {
      // adds pvalue error from the QDigest sketch to the table file
      error = 0;
      for (int j = 0; j < data_repeats; j++)
        error += abs(pochisq(QD_values[j][i], deg_freedom) - pochisq(actual_values[j][i], deg_freedom));
      data_file << "\t" << error / data_repeats << "\t";

      // adds pvalue error from the Reservoir Sampling sketch to the table file
      error = 0;
      for (int j = 0; j < data_repeats; j++)
        error += abs(pochisq(RS_values[j][i], deg_freedom) - pochisq(actual_values[j][i], deg_freedom));
      data_file << error / data_repeats;
    }
    data_file << endl;

    // adds all pvalues to the pvalue file
    data2_file << "stream1_size = " << sizes[i] << " stream2_size = " << stream2_size << endl;
    for (int j = 0; j < data_repeats; j++)
    {
      data2_file << pochisq(actual_values[j][i], deg_freedom) << " actual" << endl;
      data2_file << pochisq(GK_values[j][i], deg_freedom) << " GK" << endl;
      if (all_quantiles)
      {
	data2_file << pochisq(QD_values[j][i], deg_freedom) << " QD" << endl;
	data2_file << pochisq(RS_values[j][i], deg_freedom) << " RS" << endl;
      }
    }
  }
  data2_file.close();
  data_file.close();

  // Creates extra file
  name_file(str, argv, 2);
  data_file.open(str);

  // adds actual statistics to the extra file
  for (int i = 0; i < num_sizes; i++)
  {
    for (int j = 0; j < data_repeats; j++)
      data_file << actual_values[j][i] << "\t";
  }
  data_file << endl;

  // adds GK statistics to the extra file
  for (int i = 0; i < num_sizes; i++)
  {
    for(int j = 0; j <data_repeats; j++)
      data_file << GK_values[j][i] << "\t";
  }
  data_file << endl;
  if (all_quantiles)
  {
    // adds QDigest statistics to the extra file
    for (int i = 0; i < num_sizes; i++)
    {
      for(int j = 0; j <data_repeats; j++)
        data_file << QD_values[j][i] << "\t";
    }
    data_file << endl;

    // adds Reservoir Sampling statistic to the extra file
    for (int i = 0; i < num_sizes; i++)
    {
      for(int j = 0; j <data_repeats; j++)
        data_file << RS_values[j][i] << "\t";
    }
    data_file << endl;
  }

  data_file << endl;
  data_file.close();
  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x748, %rsp            # imm = 0x748
cmpl $0xc, %edi
jle 0x6537
movq %rsi, %rbx
movq 0x8(%rsi), %rdi
callq 0x2240
movapd %xmm0, -0x50(%rbp)
movq 0x10(%rbx), %rdi
callq 0x2240
movsd %xmm0, -0x80(%rbp)
movq 0x18(%rbx), %rdi
callq 0x2240
movsd %xmm0, -0x58(%rbp)
movq 0x20(%rbx), %rdi
callq 0x22a0
movl %eax, %r14d
movq 0x28(%rbx), %rax
movq 0x30(%rbx), %rdi
movb (%rax), %r15b
callq 0x2240
movsd %xmm0, -0x128(%rbp)
movq 0x38(%rbx), %rdi
callq 0x2240
movsd %xmm0, -0x120(%rbp)
movq 0x40(%rbx), %rdi
callq 0x2240
movsd %xmm0, -0x110(%rbp)
movq 0x48(%rbx), %rdi
callq 0x2240
movsd %xmm0, -0x108(%rbp)
movq 0x50(%rbx), %rdi
callq 0x22a0
movl %eax, -0x64(%rbp)
movq 0x58(%rbx), %rdi
callq 0x2240
movsd %xmm0, -0x88(%rbp)
movq 0x60(%rbx), %rdi
callq 0x22a0
movl %eax, -0x34(%rbp)
testl %r14d, %r14d
jle 0x6554
movzbl %r15b, %eax
addl $-0x45, %eax
cmpl $0x10, %eax
ja 0x6594
movl $0x10a01, %ecx          # imm = 0x10A01
btl %eax, %ecx
jae 0x6594
xorpd %xmm0, %xmm0
movapd -0x50(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jae 0x6564
ucomisd -0x88(%rbp), %xmm0
jae 0x6574
cmpl $0x0, -0x34(%rbp)
jle 0x6584
movq %rbx, -0xe8(%rbp)
cvttsd2si %xmm1, %eax
movl %eax, -0xbc(%rbp)
cvttpd2dq %xmm1, %xmm0
cvtdq2pd %xmm0, %xmm0
xorl %eax, %eax
movsd -0x80(%rbp), %xmm1
movapd %xmm0, -0x230(%rbp)
ucomisd %xmm0, %xmm1
jb 0x51e2
xorl %eax, %eax
movl -0xbc(%rbp), %ecx
incl %eax
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
ucomisd %xmm0, %xmm1
jae 0x51ce
movl %r14d, -0xf4(%rbp)
movl %r14d, %ecx
movl %eax, %edx
movq %rdx, %rax
movq %rcx, -0x60(%rbp)
imulq %rcx, %rax
leaq 0xf(,%rax,8), %rax
andq $-0x10, %rax
movq %rsp, %r13
subq %rax, %r13
movq %r13, %rsp
movq %rsp, %r12
subq %rax, %r12
movq %r12, %rsp
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0xa0(%rbp)
movq %rcx, %rsp
movq %rsp, %rcx
subq %rax, %rcx
movq %rcx, -0x98(%rbp)
movq %rcx, %rsp
movq %rsp, %rcx
movq %rdx, -0x30(%rbp)
leaq 0xf(,%rdx,4), %rax
andq $-0x10, %rax
subq %rax, %rcx
movq %rcx, -0x118(%rbp)
movq %rcx, %rsp
leaq -0x430(%rbp), %rbx
movq %rbx, %rdi
callq 0x2300
leaq -0x770(%rbp), %r14
movq %r14, %rdi
movq -0xe8(%rbp), %rsi
xorl %edx, %edx
callq 0x67aa
movq %rbx, %rdi
movq %r14, %rsi
movl $0x10, %edx
callq 0x2060
leaq 0x41d8(%rip), %rsi      # 0x946d
leaq -0x430(%rbp), %rdi
movl $0xe, %edx
callq 0x2220
leaq -0x6d0(%rbp), %rsi
movb %r15b, (%rsi)
leaq -0x430(%rbp), %rdi
movl $0x1, %edx
callq 0x2220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq 0x418a(%rip), %rsi      # 0x947c
leaq -0x430(%rbp), %rdi
movl $0xd, %edx
callq 0x2220
leaq -0x430(%rbp), %rdi
movsd -0x128(%rbp), %xmm0
callq 0x22b0
movq %rax, %rbx
leaq 0x4169(%rip), %rsi      # 0x948a
movl $0xb, %edx
movq %rax, %rdi
callq 0x2220
movq %rbx, %rdi
movsd -0x120(%rbp), %xmm0
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq 0x4127(%rip), %rsi      # 0x9496
leaq -0x430(%rbp), %rdi
movl $0xd, %edx
callq 0x2220
leaq -0x430(%rbp), %rdi
movsd -0x110(%rbp), %xmm0
callq 0x22b0
movq %rax, %rbx
leaq 0x4106(%rip), %rsi      # 0x94a4
movl $0xb, %edx
movq %rax, %rdi
callq 0x2220
movq %rbx, %rdi
movsd -0x108(%rbp), %xmm0
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq 0x40c4(%rip), %rsi      # 0x94b0
leaq -0x430(%rbp), %rdi
movl $0x11, %edx
callq 0x2220
leaq -0x430(%rbp), %rdi
movl -0x34(%rbp), %esi
callq 0x2320
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq 0x4085(%rip), %rsi      # 0x94c2
leaq -0x430(%rbp), %rdi
movl $0x11, %edx
callq 0x2220
leaq -0x430(%rbp), %rdi
movsd -0x88(%rbp), %xmm0
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movsd -0x58(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0xf8(%rbp)
mulsd -0x88(%rbp), %xmm0
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
movapd %xmm0, -0x140(%rbp)
movl $0x2, %ebx
movl $0x1, -0xd0(%rbp)
movq $0x0, -0x70(%rbp)
movsbl %r15b, %eax
movl %eax, -0x78(%rbp)
movq %r12, -0xa8(%rbp)
movq %r13, -0xb0(%rbp)
leaq -0x1f0(%rbp), %rdi
movl -0x78(%rbp), %esi
movl -0xf8(%rbp), %edx
movl %ebx, %ecx
movsd -0x110(%rbp), %xmm0
movsd -0x108(%rbp), %xmm1
callq 0x24fc
movl %ebx, -0xfc(%rbp)
movq -0x1f0(%rbp), %r15
leaq -0x6d0(%rbp), %rdi
movapd -0x140(%rbp), %xmm0
movl $0x1, %esi
callq 0x44e6
movsd -0x58(%rbp), %xmm0
ucomisd 0x3ad7(%rip), %xmm0     # 0x9010
jbe 0x5567
movq -0x6b0(%rbp), %r14
xorl %ebx, %ebx
movsd (%r15,%rbx,8), %xmm0
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
incq %rbx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movsd -0x58(%rbp), %xmm1
ucomisd %xmm0, %xmm1
ja 0x5544
leaq -0x4d0(%rbp), %rdi
movapd -0x140(%rbp), %xmm0
movl $0x2, %esi
callq 0x44e6
movsd -0x58(%rbp), %xmm0
ucomisd 0x3a83(%rip), %xmm0     # 0x9010
jbe 0x55bb
movq -0x4b0(%rbp), %r14
xorl %ebx, %ebx
movsd (%r15,%rbx,8), %xmm0
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
incq %rbx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movsd -0x58(%rbp), %xmm1
ucomisd %xmm0, %xmm1
ja 0x5598
leaq -0x1d0(%rbp), %rdi
movapd -0x140(%rbp), %xmm0
movl $0x3, %esi
callq 0x44e6
movsd -0x58(%rbp), %xmm0
ucomisd 0x3a2f(%rip), %xmm0     # 0x9010
jbe 0x5611
movq -0x1b0(%rbp), %rbx
xorl %r14d, %r14d
movsd (%r15,%r14,8), %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
incq %r14
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd -0x58(%rbp), %xmm1
ucomisd %xmm0, %xmm1
ja 0x55ed
movl $0x5, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3eb0(%rip), %rsi      # 0x94d4
callq 0x2220
movq -0x70(%rbp), %rax
leaq 0x1(%rax), %r14
leaq -0x430(%rbp), %rdi
movl %r14d, %esi
callq 0x2320
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x3e88(%rip), %rsi      # 0x94da
callq 0x2220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq %r14, -0x148(%rbp)
movsd -0x80(%rbp), %xmm0
movapd -0x230(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jae 0x56ab
movq -0x6c0(%rbp), %rbx
movq -0x6b8(%rbp), %r13
jmp 0x5b8d
movq -0x70(%rbp), %rax
imulq -0x30(%rbp), %rax
leaq (%r12,%rax,8), %rcx
movq %rcx, -0xb8(%rbp)
movq -0xa0(%rbp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, -0x158(%rbp)
movq -0x98(%rbp), %rcx
leaq (%rcx,%rax,8), %rcx
movq %rcx, -0x150(%rbp)
leaq (%r13,%rax,8), %rax
movq %rax, -0xf0(%rbp)
movq $0x0, -0x50(%rbp)
movsd %xmm1, -0x40(%rbp)
movl -0xbc(%rbp), %eax
movl %eax, %r14d
movq %r15, -0x90(%rbp)
cmpq $0x0, -0x70(%rbp)
jne 0x5722
movq -0x118(%rbp), %rax
movq -0x50(%rbp), %rcx
movl %r14d, (%rax,%rcx,4)
movl $0x10, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3da7(%rip), %rsi      # 0x94dc
callq 0x2220
leaq -0x430(%rbp), %rdi
movl %r14d, %esi
callq 0x2320
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0x10, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3d67(%rip), %rsi      # 0x94ed
callq 0x2220
leaq -0x430(%rbp), %rdi
movsd -0x58(%rbp), %xmm0
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq -0x1e0(%rbp), %rdi
movl -0x78(%rbp), %esi
movl %r14d, %edx
movl -0xd0(%rbp), %ecx
movsd -0x128(%rbp), %xmm0
movsd -0x120(%rbp), %xmm1
callq 0x24fc
movsd -0x40(%rbp), %xmm0
mulsd -0x88(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movq -0x1e0(%rbp), %r15
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq -0x1a8(%rbp), %rdi
movsd %xmm0, -0x40(%rbp)
movl $0x1, %esi
callq 0x44e6
movl %r14d, %r12d
testl %r14d, %r14d
jle 0x584b
movq -0x188(%rbp), %rbx
xorl %r13d, %r13d
movsd (%r15,%r13,8), %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
incq %r13
cmpq %r13, %r12
jne 0x5835
leaq -0x6d0(%rbp), %rdi
leaq -0x1a8(%rbp), %rsi
movl -0x34(%rbp), %edx
callq 0x4da8
movq -0xb8(%rbp), %rax
movq -0x50(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x5, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3c7a(%rip), %rsi      # 0x94fe
movsd %xmm0, -0xe0(%rbp)
callq 0x2220
movsd -0xe0(%rbp), %xmm0
leaq -0x430(%rbp), %rdi
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x64(%rbp)
je 0x5a99
leaq -0x180(%rbp), %rdi
movsd -0x40(%rbp), %xmm0
movl $0x2, %esi
callq 0x44e6
testl %r14d, %r14d
jle 0x5914
movq -0x160(%rbp), %rbx
xorl %r13d, %r13d
movsd (%r15,%r13,8), %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
incq %r13
cmpq %r13, %r12
jne 0x58fe
leaq -0x4d0(%rbp), %rdi
leaq -0x180(%rbp), %rsi
movl -0x34(%rbp), %edx
callq 0x4da8
movq -0x158(%rbp), %rax
movq -0x50(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x5, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3bb7(%rip), %rsi      # 0x9504
movsd %xmm0, -0xe0(%rbp)
callq 0x2220
movsd -0xe0(%rbp), %xmm0
leaq -0x430(%rbp), %rdi
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq -0x218(%rbp), %rdi
movsd -0x40(%rbp), %xmm0
movl $0x3, %esi
callq 0x44e6
testl %r14d, %r14d
jle 0x59d3
movq -0x1f8(%rbp), %rbx
xorl %r13d, %r13d
movsd (%r15,%r13,8), %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *(%rax)
incq %r13
cmpq %r13, %r12
jne 0x59bd
leaq -0x1d0(%rbp), %rdi
leaq -0x218(%rbp), %rsi
movl -0x34(%rbp), %edx
callq 0x4da8
movq -0x150(%rbp), %rax
movq -0x50(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x5, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3afe(%rip), %rsi      # 0x950a
movsd %xmm0, -0x40(%rbp)
callq 0x2220
movsd -0x40(%rbp), %xmm0
leaq -0x430(%rbp), %rdi
callq 0x22b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x1f8(%rbp), %rdi
callq 0x21e0
movq -0x208(%rbp), %rdi
callq 0x21e0
movq -0x200(%rbp), %rdi
callq 0x21e0
movq -0x160(%rbp), %rdi
callq 0x21e0
movq -0x170(%rbp), %rdi
callq 0x21e0
movq -0x168(%rbp), %rdi
callq 0x21e0
movq -0x6c0(%rbp), %rbx
movq -0x6b8(%rbp), %r13
leaq -0x1f0(%rbp), %rdi
leaq -0x1e0(%rbp), %rsi
movl -0x34(%rbp), %edx
movq %rbx, %rcx
movq %r13, %r8
callq 0x27ac
movq -0xf0(%rbp), %rax
movq -0x50(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movl $0x7, %edx
leaq -0x430(%rbp), %rdi
leaq 0x3a2a(%rip), %rsi      # 0x9510
movsd %xmm0, -0x40(%rbp)
callq 0x2220
movsd -0x40(%rbp), %xmm0
leaq -0x430(%rbp), %rdi
callq 0x22b0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x188(%rbp), %rdi
callq 0x21e0
movq -0x198(%rbp), %rdi
callq 0x21e0
movq -0x190(%rbp), %rdi
callq 0x21e0
testq %r15, %r15
je 0x5b5c
movq %r15, %rdi
callq 0x2250
addl %r14d, %r14d
leal (%r14,%r14,4), %r14d
incq -0x50(%rbp)
incl -0xd0(%rbp)
cvtsi2sd %r14d, %xmm1
movsd -0x80(%rbp), %xmm0
movsd %xmm1, -0x40(%rbp)
ucomisd %xmm1, %xmm0
movq -0x90(%rbp), %r15
jae 0x570c
movq -0x1b0(%rbp), %rdi
callq 0x21e0
movq -0x1c0(%rbp), %rdi
callq 0x21e0
movq -0x1b8(%rbp), %rdi
callq 0x21e0
movq -0x4b0(%rbp), %rdi
callq 0x21e0
movq -0x4c0(%rbp), %rdi
callq 0x21e0
movq -0x4b8(%rbp), %rdi
callq 0x21e0
movq -0x6b0(%rbp), %rdi
callq 0x21e0
movq %rbx, %rdi
callq 0x21e0
movq %r13, %rdi
callq 0x21e0
testq %r15, %r15
je 0x5bfe
movq %r15, %rdi
callq 0x2250
movl -0xfc(%rbp), %ebx
incl %ebx
movq -0x148(%rbp), %rcx
movq %rcx, -0x70(%rbp)
cmpq -0x60(%rbp), %rcx
movq -0xa8(%rbp), %r12
movq -0xb0(%rbp), %r13
jne 0x54df
leaq -0x430(%rbp), %rdi
callq 0x2270
leaq -0x6d0(%rbp), %rdi
callq 0x2300
leaq -0x4d0(%rbp), %rbx
movq %rbx, %rdi
movq -0xe8(%rbp), %r14
movq %r14, %rsi
movl $0x3, %edx
callq 0x67aa
leaq -0x6d0(%rbp), %rdi
movq %rbx, %rsi
movl $0x10, %edx
callq 0x2060
leaq -0x770(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x67aa
leaq -0x430(%rbp), %rdi
movq %rbx, %rsi
movl $0x10, %edx
callq 0x2060
cmpq $0x0, -0x30(%rbp)
je 0x6184
cvtsi2sdl -0xf4(%rbp), %xmm0
movsd %xmm0, -0xb8(%rbp)
movq -0x30(%rbp), %rax
leaq (,%rax,8), %rax
movq %rax, -0x40(%rbp)
xorl %ecx, %ecx
movq -0x98(%rbp), %rax
movq -0xa0(%rbp), %rbx
movq -0xa8(%rbp), %rdx
movq -0xb0(%rbp), %r13
movq %rbx, -0x90(%rbp)
movq %r13, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq %rax, -0x80(%rbp)
movq -0x118(%rbp), %rax
movq %rcx, -0x88(%rbp)
movl (%rax,%rcx,4), %ebx
leaq -0x430(%rbp), %rdi
movl %ebx, %esi
callq 0x2320
movl $0x1, %edx
movq %rax, %rdi
leaq 0x37f0(%rip), %rsi      # 0x9518
callq 0x2220
movl %ebx, -0xf0(%rbp)
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
cmpeqsd -0x58(%rbp), %xmm0
movq %xmm0, %r15
addl -0x34(%rbp), %r15d
xorpd %xmm1, %xmm1
movq -0x60(%rbp), %r14
xorl %r12d, %r12d
movq -0x70(%rbp), %r13
movq -0x78(%rbp), %rbx
movsd %xmm1, -0x50(%rbp)
movsd (%r13,%r12), %xmm0
movl %r15d, %edi
callq 0x405f
movaps %xmm0, -0xd0(%rbp)
movsd (%rbx,%r12), %xmm0
movl %r15d, %edi
callq 0x405f
movsd -0x50(%rbp), %xmm1
movapd -0xd0(%rbp), %xmm2
subsd %xmm0, %xmm2
andpd 0x3402(%rip), %xmm2     # 0x91a0
addsd %xmm2, %xmm1
addq -0x40(%rbp), %r12
decq %r14
jne 0x5d5c
movq %r15, -0x50(%rbp)
divsd -0xb8(%rbp), %xmm1
leaq -0x430(%rbp), %rdi
movapd %xmm1, %xmm0
callq 0x22b0
cmpl $0x0, -0x64(%rbp)
je 0x5f14
xorpd %xmm1, %xmm1
movq -0x60(%rbp), %r14
xorl %r12d, %r12d
movq -0x78(%rbp), %rbx
movq -0x90(%rbp), %r13
movq -0x50(%rbp), %r15
movsd %xmm1, -0xd0(%rbp)
movsd (%r13,%r12), %xmm0
movl %r15d, %edi
callq 0x405f
movaps %xmm0, -0xe0(%rbp)
movsd (%rbx,%r12), %xmm0
movl %r15d, %edi
callq 0x405f
movsd -0xd0(%rbp), %xmm1
movapd -0xe0(%rbp), %xmm2
subsd %xmm0, %xmm2
andpd 0x336d(%rip), %xmm2     # 0x91a0
addsd %xmm2, %xmm1
addq -0x40(%rbp), %r12
decq %r14
jne 0x5deb
movsd %xmm1, -0xd0(%rbp)
movl $0x1, %edx
leaq -0x430(%rbp), %rdi
leaq 0x36bd(%rip), %rsi      # 0x9518
callq 0x2220
movsd -0xd0(%rbp), %xmm0
divsd -0xb8(%rbp), %xmm0
leaq -0x430(%rbp), %rdi
callq 0x22b0
movl $0x1, %edx
movq %rax, %rdi
leaq 0x368d(%rip), %rsi      # 0x9518
callq 0x2220
xorpd %xmm1, %xmm1
movq -0x60(%rbp), %r14
xorl %r12d, %r12d
movq -0x80(%rbp), %r13
movq -0x78(%rbp), %rbx
movq -0x50(%rbp), %r15
movsd %xmm1, -0xd0(%rbp)
movsd (%r13,%r12), %xmm0
movl %r15d, %edi
callq 0x405f
movaps %xmm0, -0xe0(%rbp)
movsd (%rbx,%r12), %xmm0
movl %r15d, %edi
callq 0x405f
movsd -0xd0(%rbp), %xmm1
movapd -0xe0(%rbp), %xmm2
subsd %xmm0, %xmm2
andpd 0x32b1(%rip), %xmm2     # 0x91a0
addsd %xmm2, %xmm1
addq -0x40(%rbp), %r12
decq %r14
jne 0x5ea7
divsd -0xb8(%rbp), %xmm1
leaq -0x430(%rbp), %rdi
movapd %xmm1, %xmm0
callq 0x22b0
movq -0x430(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x430(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
leaq -0x430(%rbp), %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movl $0xf, %edx
leaq -0x6d0(%rbp), %rdi
leaq 0x35bd(%rip), %rsi      # 0x951a
callq 0x2220
leaq -0x6d0(%rbp), %rdi
movl -0xf0(%rbp), %esi
callq 0x2320
movq %rax, %r15
movl $0x10, %edx
movq %rax, %rdi
leaq 0x35a4(%rip), %rsi      # 0x952a
callq 0x2220
movq %r15, %rdi
movsd -0x58(%rbp), %xmm0
callq 0x22b0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x60(%rbp), %r14
xorl %r12d, %r12d
movq -0x78(%rbp), %r13
movq -0x90(%rbp), %rbx
movsd (%r13,%r12), %xmm0
movq -0x50(%rbp), %rdi
callq 0x405f
leaq -0x6d0(%rbp), %rdi
callq 0x22b0
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x3539(%rip), %rsi      # 0x953b
callq 0x2220
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x70(%rbp), %rax
movsd (%rax,%r12), %xmm0
movq -0x50(%rbp), %rdi
callq 0x405f
leaq -0x6d0(%rbp), %rdi
callq 0x22b0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x34e4(%rip), %rsi      # 0x9543
callq 0x2220
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x64(%rbp)
je 0x614b
movsd (%rbx,%r12), %xmm0
movq -0x50(%rbp), %rdi
callq 0x405f
leaq -0x6d0(%rbp), %rdi
callq 0x22b0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x3485(%rip), %rsi      # 0x9547
callq 0x2220
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x80(%rbp), %rax
movsd (%rax,%r12), %xmm0
movq -0x50(%rbp), %rdi
callq 0x405f
leaq -0x6d0(%rbp), %rdi
callq 0x22b0
movq %rax, %r15
movl $0x3, %edx
movq %rax, %rdi
leaq 0x342c(%rip), %rsi      # 0x954b
callq 0x2220
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
addq -0x40(%rbp), %r12
decq %r14
jne 0x5fd4
movq -0x88(%rbp), %rcx
incq %rcx
addq $0x8, %r13
movq -0x70(%rbp), %rdx
addq $0x8, %rdx
addq $0x8, %rbx
movq -0x80(%rbp), %rax
addq $0x8, %rax
cmpq -0x30(%rbp), %rcx
jne 0x5ce7
leaq -0x6d0(%rbp), %rdi
callq 0x2270
leaq -0x430(%rbp), %rdi
callq 0x2270
leaq -0x770(%rbp), %r15
movq %r15, %rdi
movq -0xe8(%rbp), %rsi
movl $0x2, %edx
callq 0x67aa
leaq -0x430(%rbp), %rdi
movq %r15, %rsi
movl $0x10, %edx
callq 0x2060
cmpl $0x0, -0x30(%rbp)
movq -0xb0(%rbp), %r13
je 0x6241
movq -0x30(%rbp), %rax
leaq (,%rax,8), %rbx
xorl %eax, %eax
leaq -0x430(%rbp), %r15
leaq 0x3324(%rip), %r12      # 0x9518
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %r14
movq %r13, -0xb0(%rbp)
movsd (%r13), %xmm0
movq %r15, %rdi
callq 0x22b0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
addq %rbx, %r13
decq %r14
jne 0x6203
movq -0x50(%rbp), %rax
incq %rax
movq -0xb0(%rbp), %r13
addq $0x8, %r13
cmpq -0x30(%rbp), %rax
jne 0x61f4
movq -0x430(%rbp), %rax
leaq -0x430(%rbp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
leaq -0x430(%rbp), %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x30(%rbp)
movq -0xa8(%rbp), %rbx
je 0x62e8
movq -0x30(%rbp), %rax
leaq (,%rax,8), %r13
xorl %eax, %eax
leaq -0x430(%rbp), %r15
leaq 0x327b(%rip), %r12      # 0x9518
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %r14
movq %rbx, -0xa8(%rbp)
movsd (%rbx), %xmm0
movq %r15, %rdi
callq 0x22b0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
addq %r13, %rbx
decq %r14
jne 0x62ac
movq -0x50(%rbp), %rax
incq %rax
movq -0xa8(%rbp), %rbx
addq $0x8, %rbx
cmpq -0x30(%rbp), %rax
jne 0x629d
movq -0x430(%rbp), %rax
leaq -0x430(%rbp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
leaq -0x430(%rbp), %rbx
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x64(%rbp)
je 0x6482
cmpl $0x0, -0x30(%rbp)
movq -0xa0(%rbp), %r14
je 0x639d
movq -0x30(%rbp), %rax
leaq (,%rax,8), %rbx
xorl %eax, %eax
leaq -0x430(%rbp), %r15
leaq 0x31c7(%rip), %r12      # 0x9518
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %r13
movq %r14, -0xa0(%rbp)
movsd (%r14), %xmm0
movq %r15, %rdi
callq 0x22b0
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
addq %rbx, %r14
decq %r13
jne 0x6360
movq -0x50(%rbp), %rax
incq %rax
movq -0xa0(%rbp), %r14
addq $0x8, %r14
cmpq -0x30(%rbp), %rax
jne 0x6351
movq -0x430(%rbp), %rax
movq -0x18(%rax), %rdi
leaq -0x430(%rbp), %rax
addq %rax, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
leaq -0x430(%rbp), %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
cmpl $0x0, -0x30(%rbp)
movq -0x98(%rbp), %r14
je 0x6448
movq -0x30(%rbp), %rax
leaq (,%rax,8), %rbx
xorl %eax, %eax
leaq -0x430(%rbp), %r12
leaq 0x311c(%rip), %r13      # 0x9518
movq %rax, -0x50(%rbp)
movq -0x60(%rbp), %r15
movq %r14, -0x98(%rbp)
movsd (%r14), %xmm0
movq %r12, %rdi
callq 0x22b0
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2220
addq %rbx, %r14
decq %r15
jne 0x640b
movq -0x50(%rbp), %rax
incq %rax
movq -0x98(%rbp), %r14
addq $0x8, %r14
cmpq -0x30(%rbp), %rax
jne 0x63fc
movq -0x430(%rbp), %rax
leaq -0x430(%rbp), %rdi
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21f0
leaq -0x430(%rbp), %rbx
movsbl %al, %esi
leaq -0x430(%rbp), %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
movq -0x430(%rbp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
leaq -0x430(%rbp), %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2140
leaq -0x430(%rbp), %r14
movq %r14, %rdi
callq 0x2270
movq 0x6b01(%rip), %rax      # 0xcfc8
movq (%rax), %rbx
movq 0x18(%rax), %r15
leaq -0x6c8(%rbp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r15, -0x6d0(%rbp,%rax)
callq 0x21b0
movl $0xf8, %r12d
leaq -0x6d0(%rbp), %rdi
addq %r12, %rdi
callq 0x20b0
leaq -0x428(%rbp), %rdi
movq %rbx, -0x8(%rdi)
movq -0x18(%rbx), %rax
movq %r15, -0x430(%rbp,%rax)
callq 0x21b0
addq %r12, %r14
movq %r14, %rdi
callq 0x20b0
xorl %eax, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6a92(%rip), %rdi      # 0xcfd0
leaq 0x2dac(%rip), %rsi      # 0x92f1
callq 0x2200
movq %rax, %rdi
callq 0x20f0
jmp 0x65a7
movq 0x6a75(%rip), %rdi      # 0xcfd0
leaq 0x2e27(%rip), %rsi      # 0x9389
jmp 0x65a2
movq 0x6a65(%rip), %rdi      # 0xcfd0
leaq 0x2e74(%rip), %rsi      # 0x93e6
jmp 0x65a2
movq 0x6a55(%rip), %rdi      # 0xcfd0
leaq 0x2e93(%rip), %rsi      # 0x9415
jmp 0x65a2
movq 0x6a45(%rip), %rdi      # 0xcfd0
leaq 0x2eaf(%rip), %rsi      # 0x9441
jmp 0x65a2
movq 0x6a35(%rip), %rdi      # 0xcfd0
leaq 0x2e19(%rip), %rsi      # 0x93bb
callq 0x2200
movl $0x1, %edi
callq 0x2100
leaq 0x66c0(%rip), %rsi      # 0xcc78
movq %rax, %rdi
xorl %edx, %edx
callq 0x2310
jmp 0x65e8
jmp 0x6733
jmp 0x6733
movq %rax, %rbx
jmp 0x66d6
movq %rax, %rbx
jmp 0x66fd
jmp 0x65e8
movq %rax, %rbx
jmp 0x6724
movq %rax, %rbx
jmp 0x676c
jmp 0x6733
jmp 0x6638
jmp 0x6733
jmp 0x6677
jmp 0x664e
jmp 0x6638
movq %rax, %rbx
jmp 0x669e
jmp 0x6638
movq %rax, %rbx
jmp 0x66dd
movq %rax, %rbx
jmp 0x6704
jmp 0x6733
jmp 0x6733
jmp 0x6733
jmp 0x6733
jmp 0x663d
jmp 0x664e
jmp 0x6677
jmp 0x6677
movq %rax, %rbx
jmp 0x66b2
movq %rax, %rbx
leaq -0x218(%rbp), %rdi
callq 0x4684
jmp 0x6651
movq %rax, %rbx
movq -0x160(%rbp), %rdi
callq 0x21e0
movq -0x170(%rbp), %rdi
callq 0x21e0
movq -0x168(%rbp), %rdi
callq 0x21e0
jmp 0x667a
movq %rax, %rbx
movq -0x188(%rbp), %rdi
callq 0x21e0
movq -0x198(%rbp), %rdi
callq 0x21e0
movq -0x190(%rbp), %rdi
callq 0x21e0
testq %r15, %r15
je 0x66ab
movq %r15, %rdi
callq 0x2250
movq -0x90(%rbp), %r15
movq -0x1b0(%rbp), %rdi
callq 0x21e0
movq -0x1c0(%rbp), %rdi
callq 0x21e0
movq -0x1b8(%rbp), %rdi
callq 0x21e0
movq -0x4b0(%rbp), %r14
movq %r14, %rdi
callq 0x21e0
movq -0x4c0(%rbp), %rdi
callq 0x21e0
movq -0x4b8(%rbp), %rdi
callq 0x21e0
movq -0x6b0(%rbp), %r14
movq %r14, %rdi
callq 0x21e0
movq -0x6c0(%rbp), %rdi
callq 0x21e0
movq -0x6b8(%rbp), %rdi
callq 0x21e0
testq %r15, %r15
je 0x676c
movq %r15, %rdi
callq 0x2250
jmp 0x676c
movq %rax, %rbx
movq 0x688b(%rip), %rax      # 0xcfc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x6c8(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x6d0(%rbp,%rcx)
callq 0x21b0
leaq -0x5d8(%rbp), %rdi
callq 0x20b0
movq 0x6855(%rip), %rax      # 0xcfc8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq -0x428(%rbp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, -0x430(%rbp,%rcx)
callq 0x21b0
leaq -0x338(%rbp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2340