// File: ashlall[P]StreamStats/ChiSquareExperiments/VarySizeTwoSampleBoth.cpp
// Function: main
int main(int argc, char* argv[])
{
  if (argc < 12)
    {
      cout << "usage: VarySizeTwoSample lower-size upper-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]);
  int data_repeats = atoi (argv[3]);
  char distribution_type = argv[4][0];
  double location1 = atof (argv[5]);
  double scale1 = atof (argv[6]);
  double location2 = atof (argv[7]);
  double scale2 = atof (argv[8]);
  int all_quantiles = atoi (argv[9]);
  double memory_percent = atof (argv[10]);
  int num_buckets = atoi (argv[11]);
  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 stream_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 intializes 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;
      stream_size = lower;
      data_file << "Pass " << i+1 << ":" << endl;
      while (stream_size <= upper)  // runs tests for every stream size
	{ 
	  int sample_size = memory_percent * stream_size;
	  if (!i)
	    sizes[j] = stream_size;
	  data_file << "stream_size = " << stream_size << endl;

	  // generates the data based on parameters
	  DataGenerator data1(distribution_type, stream_size, seed1, location1, scale1);
	  double *stream1 = data1.get_stream();
	  DataGenerator data2(distribution_type, stream_size, seed2, location2, scale2);
	  double *stream2 = data2.get_stream();

	  // computes GK estimate
	  ChiSquareContinuous GK_sketch1(sample_size, 1);
	  for (int k = 0; k < stream_size; k++)
	    GK_sketch1.insert(stream1[k]);
	  ChiSquareContinuous GK_sketch2(sample_size, 1);
	  for (int k = 0; k < stream_size; k++)
	    GK_sketch2.insert(stream2[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(sample_size, 2);
	      for (int k = 0; k < stream_size; k++)
		QD_sketch1.insert(stream1[k]);
	      ChiSquareContinuous QD_sketch2(sample_size, 2);
	      for (int k = 0; k < stream_size; k++)
		QD_sketch2.insert(stream2[k]);
	      double QD_stat = QD_sketch1.two_sample_statistic(QD_sketch2, num_buckets);
	      QD_values[i][j] = QD_stat;
	      data_file << "QD = " << QD_stat << endl;

	      // computes Reservoir Sampling estimate
	      ChiSquareContinuous RS_sketch1(sample_size, 3);
	      for (int k = 0; k < stream_size; k++)
		RS_sketch1.insert(stream1[k]);
	      ChiSquareContinuous RS_sketch2(sample_size, 3);
	      for (int k = 0; k < stream_size; k++)
		RS_sketch2.insert(stream2[k]);
	      double RS_stat = RS_sketch1.two_sample_statistic(RS_sketch2, num_buckets);
	      RS_values[i][j]= RS_stat;
	      data_file << "RS = " << RS_stat<< endl;
	    }
       
	  // computes actual statistic
	  double *upper_interval = GK_sketch1.get_upper();
	  double *lower_interval = GK_sketch1.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;

	  stream_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 = num_buckets;
  for (int i = 0; i < num_sizes; i++)
  {
    data_file << sizes[i] << "\t";
    double error = 0;

    // adds pvalue error from the GK sketch to the table file
    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 Samplig 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 << "stream_size = " << sizes[i] << 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 statistics 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
subq $0xa20, %rsp            # imm = 0xA20
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0xc, -0x8(%rbp)
jge 0x6b3e
movq 0x134ca(%rip), %rdi     # 0x19fd0
leaq 0xb744(%rip), %rsi      # 0x12251
callq 0x21b0
movq %rax, %rdi
movq 0x134a4(%rip), %rsi     # 0x19fc0
callq 0x21d0
movl $0x1, %edi
callq 0x20c0
movq %rax, %rdi
leaq 0x1311b(%rip), %rsi     # 0x19c50
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x2270
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movb (%rax), %al
movb %al, -0x25(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x2270
movl %eax, -0x4c(%rbp)
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rdi
callq 0x2200
movsd %xmm0, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x2270
movl %eax, -0x5c(%rbp)
movl $0x1, -0x60(%rbp)
movl $0x2, -0x64(%rbp)
cmpl $0x0, -0x24(%rbp)
jg 0x6c3d
movq 0x133bc(%rip), %rdi     # 0x19fd0
leaq 0xb6c1(%rip), %rsi      # 0x122dc
callq 0x21b0
movl $0x1, %edi
callq 0x20c0
movq %rax, %rdi
leaq 0x1301c(%rip), %rsi     # 0x19c50
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
movsbl -0x25(%rbp), %eax
cmpl $0x4e, %eax
je 0x6c91
movsbl -0x25(%rbp), %eax
cmpl $0x55, %eax
je 0x6c91
movsbl -0x25(%rbp), %eax
cmpl $0x50, %eax
je 0x6c91
movsbl -0x25(%rbp), %eax
cmpl $0x45, %eax
je 0x6c91
movq 0x13368(%rip), %rdi     # 0x19fd0
leaq 0xb69f(%rip), %rsi      # 0x1230e
callq 0x21b0
movl $0x1, %edi
callq 0x20c0
movq %rax, %rdi
leaq 0x12fc8(%rip), %rsi     # 0x19c50
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
xorps %xmm0, %xmm0
ucomisd -0x18(%rbp), %xmm0
jb 0x6ccb
movq 0x1332e(%rip), %rdi     # 0x19fd0
leaq 0xb690(%rip), %rsi      # 0x12339
callq 0x21b0
movl $0x1, %edi
callq 0x20c0
movq %rax, %rdi
leaq 0x12f8e(%rip), %rsi     # 0x19c50
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
xorps %xmm0, %xmm0
ucomisd -0x58(%rbp), %xmm0
jb 0x6d05
movq 0x132f4(%rip), %rdi     # 0x19fd0
leaq 0xb685(%rip), %rsi      # 0x12368
callq 0x21b0
movl $0x1, %edi
callq 0x20c0
movq %rax, %rdi
leaq 0x12f54(%rip), %rsi     # 0x19c50
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
cmpl $0x0, -0x5c(%rbp)
jg 0x6d3b
movq 0x132be(%rip), %rdi     # 0x19fd0
leaq 0xb67b(%rip), %rsi      # 0x12394
callq 0x21b0
movl $0x1, %edi
callq 0x20c0
movq %rax, %rdi
leaq 0x12f1e(%rip), %rsi     # 0x19c50
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
movl $0x0, -0x6c(%rbp)
cvttsd2si -0x18(%rbp), %eax
movl %eax, -0x70(%rbp)
cvtsi2sdl -0x70(%rbp), %xmm1
movsd -0x20(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jb 0x6d6c
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
imull $0xa, -0x70(%rbp), %eax
movl %eax, -0x70(%rbp)
jmp 0x6d4a
movl -0x24(%rbp), %eax
movl %eax, %ecx
movl -0x6c(%rbp), %eax
movq %rax, -0x818(%rbp)
movq %rsp, %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, %rdx
imulq %rax, %rdx
leaq 0xf(,%rdx,8), %rsi
andq $-0x10, %rsi
movq %rsp, %rdx
subq %rsi, %rdx
movq %rdx, -0x810(%rbp)
movq %rdx, %rsp
movq %rcx, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movl -0x24(%rbp), %eax
movl %eax, %ecx
movl -0x6c(%rbp), %eax
movq %rax, -0x808(%rbp)
movq %rcx, %rdx
imulq %rax, %rdx
leaq 0xf(,%rdx,8), %rsi
andq $-0x10, %rsi
movq %rsp, %rdx
subq %rsi, %rdx
movq %rdx, -0x800(%rbp)
movq %rdx, %rsp
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movl -0x24(%rbp), %eax
movl %eax, %ecx
movl -0x6c(%rbp), %eax
movq %rax, -0x7f8(%rbp)
movq %rcx, %rdx
imulq %rax, %rdx
leaq 0xf(,%rdx,8), %rsi
andq $-0x10, %rsi
movq %rsp, %rdx
subq %rsi, %rdx
movq %rdx, -0x7f0(%rbp)
movq %rdx, %rsp
movq %rcx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movl -0x24(%rbp), %eax
movl %eax, %ecx
movl -0x6c(%rbp), %eax
movq %rax, -0x7e8(%rbp)
movq %rcx, %rdx
imulq %rax, %rdx
leaq 0xf(,%rdx,8), %rsi
andq $-0x10, %rsi
movq %rsp, %rdx
subq %rsi, %rdx
movq %rdx, -0x7e0(%rbp)
movq %rdx, %rsp
movq %rcx, -0xb0(%rbp)
movq %rax, -0xb8(%rbp)
movl -0x6c(%rbp), %eax
leaq 0xf(,%rax,4), %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x7d8(%rbp)
movq %rcx, %rsp
movq %rax, -0xc0(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x22c0
movq -0x10(%rbp), %rsi
leaq -0x360(%rbp), %rdi
xorl %edx, %edx
callq 0x84c0
jmp 0x6eb6
leaq -0x2c0(%rbp), %rdi
leaq -0x360(%rbp), %rsi
movl $0x10, %edx
callq 0x2050
jmp 0x6ed0
leaq 0xb4e9(%rip), %rsi      # 0x123c0
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x820(%rbp)
jmp 0x6eec
movq -0x820(%rbp), %rdi
movsbl -0x25(%rbp), %esi
callq 0x21e0
movq %rax, -0x828(%rbp)
jmp 0x6f05
movq -0x828(%rbp), %rdi
movq 0x130ad(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x6f1a
leaq 0xb4ae(%rip), %rsi      # 0x123cf
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x830(%rbp)
jmp 0x6f36
movq -0x830(%rbp), %rdi
movsd -0x30(%rbp), %xmm0
callq 0x2330
movq %rax, -0x838(%rbp)
jmp 0x6f50
movq -0x838(%rbp), %rdi
leaq 0xb47f(%rip), %rsi      # 0x123dd
callq 0x21b0
movq %rax, -0x840(%rbp)
jmp 0x6f6c
movq -0x840(%rbp), %rdi
movsd -0x38(%rbp), %xmm0
callq 0x2330
movq %rax, -0x848(%rbp)
jmp 0x6f86
movq -0x848(%rbp), %rdi
movq 0x1302c(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x6f9b
leaq 0xb447(%rip), %rsi      # 0x123e9
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x850(%rbp)
jmp 0x6fb7
movq -0x850(%rbp), %rdi
movsd -0x40(%rbp), %xmm0
callq 0x2330
movq %rax, -0x858(%rbp)
jmp 0x6fd1
movq -0x858(%rbp), %rdi
leaq 0xb418(%rip), %rsi      # 0x123f7
callq 0x21b0
movq %rax, -0x860(%rbp)
jmp 0x6fed
movq -0x860(%rbp), %rdi
movsd -0x48(%rbp), %xmm0
callq 0x2330
movq %rax, -0x868(%rbp)
jmp 0x7007
movq -0x868(%rbp), %rdi
movq 0x12fab(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x701c
leaq 0xb3e0(%rip), %rsi      # 0x12403
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x870(%rbp)
jmp 0x7038
movq -0x870(%rbp), %rdi
movl -0x5c(%rbp), %esi
callq 0x22e0
movq %rax, -0x878(%rbp)
jmp 0x7050
movq -0x878(%rbp), %rdi
movq 0x12f62(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x7065
leaq 0xb3a9(%rip), %rsi      # 0x12415
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x880(%rbp)
jmp 0x7081
movq -0x880(%rbp), %rdi
movsd -0x58(%rbp), %xmm0
callq 0x2330
movq %rax, -0x888(%rbp)
jmp 0x709b
movq -0x888(%rbp), %rdi
movq 0x12f17(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x70b0
movl $0x0, -0x370(%rbp)
movl -0x370(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x799a
movl $0x0, -0x374(%rbp)
cvttsd2si -0x18(%rbp), %eax
movl %eax, -0x68(%rbp)
leaq 0xb345(%rip), %rsi      # 0x12427
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x890(%rbp)
jmp 0x70f7
movq -0x890(%rbp), %rdi
movl -0x370(%rbp), %esi
incl %esi
callq 0x22e0
movq %rax, -0x898(%rbp)
jmp 0x7114
movq -0x898(%rbp), %rdi
leaq 0xb30b(%rip), %rsi      # 0x1242d
callq 0x21b0
movq %rax, -0x8a0(%rbp)
jmp 0x7130
movq -0x8a0(%rbp), %rdi
movq 0x12e82(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x7145
jmp 0x7147
cvtsi2sdl -0x68(%rbp), %xmm1
movsd -0x20(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jb 0x7974
movsd -0x58(%rbp), %xmm0
cvtsi2sdl -0x68(%rbp), %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x378(%rbp)
cmpl $0x0, -0x370(%rbp)
jne 0x71a9
movq -0x7d8(%rbp), %rax
movl -0x68(%rbp), %edx
movslq -0x374(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x71a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x8499
leaq 0xb27f(%rip), %rsi      # 0x1242f
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x8a8(%rbp)
jmp 0x71c5
movq -0x8a8(%rbp), %rdi
movl -0x68(%rbp), %esi
callq 0x22e0
movq %rax, -0x8b0(%rbp)
jmp 0x71dd
movq -0x8b0(%rbp), %rdi
movq 0x12dd5(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x71f2
movsbl -0x25(%rbp), %esi
movl -0x68(%rbp), %edx
movl -0x60(%rbp), %ecx
movsd -0x30(%rbp), %xmm0
movsd -0x38(%rbp), %xmm1
leaq -0x388(%rbp), %rdi
callq 0x24e0
jmp 0x7214
leaq -0x388(%rbp), %rdi
callq 0x9530
movq %rax, -0x8b8(%rbp)
jmp 0x7229
movq -0x8b8(%rbp), %rax
movq %rax, -0x390(%rbp)
movsbl -0x25(%rbp), %esi
movl -0x68(%rbp), %edx
movl -0x64(%rbp), %ecx
movsd -0x40(%rbp), %xmm0
movsd -0x48(%rbp), %xmm1
leaq -0x3a0(%rbp), %rdi
callq 0x24e0
jmp 0x7259
leaq -0x3a0(%rbp), %rdi
callq 0x9530
movq %rax, -0x8c0(%rbp)
jmp 0x726e
movq -0x8c0(%rbp), %rax
movq %rax, -0x3a8(%rbp)
cvtsi2sdl -0x378(%rbp), %xmm0
leaq -0x3d0(%rbp), %rdi
movl $0x1, %esi
callq 0x5890
jmp 0x7297
movl $0x0, -0x3d4(%rbp)
movl -0x3d4(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x7325
movq -0x390(%rbp), %rax
movslq -0x3d4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x3d0(%rbp), %rdi
callq 0x5ab0
jmp 0x72cd
jmp 0x72cf
movl -0x3d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3d4(%rbp)
jmp 0x72a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x7963
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x7957
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x794b
cvtsi2sdl -0x378(%rbp), %xmm0
leaq -0x400(%rbp), %rdi
movl $0x1, %esi
callq 0x5890
jmp 0x7340
movl $0x0, -0x404(%rbp)
movl -0x404(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x73a0
movq -0x3a8(%rbp), %rax
movslq -0x404(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x400(%rbp), %rdi
callq 0x5ab0
jmp 0x7376
jmp 0x7378
movl -0x404(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x404(%rbp)
jmp 0x734a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x793f
movl -0x5c(%rbp), %edx
leaq -0x3d0(%rbp), %rdi
leaq -0x400(%rbp), %rsi
callq 0x6670
movsd %xmm0, -0x8c8(%rbp)
jmp 0x73c0
movq -0x800(%rbp), %rax
movq -0x808(%rbp), %rdx
movsd -0x8c8(%rbp), %xmm0
movsd %xmm0, -0x410(%rbp)
movsd -0x410(%rbp), %xmm0
movslq -0x370(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x374(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
leaq 0xb036(%rip), %rsi      # 0x1243e
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x8d0(%rbp)
jmp 0x741d
movq -0x8d0(%rbp), %rdi
movsd -0x410(%rbp), %xmm0
callq 0x2330
movq %rax, -0x8d8(%rbp)
jmp 0x743a
movq -0x8d8(%rbp), %rdi
movq 0x12b78(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x744f
cmpl $0x0, -0x4c(%rbp)
je 0x780a
cvtsi2sdl -0x378(%rbp), %xmm0
leaq -0x438(%rbp), %rdi
movl $0x2, %esi
callq 0x5890
jmp 0x7474
movl $0x0, -0x43c(%rbp)
movl -0x43c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x74d4
movq -0x390(%rbp), %rax
movslq -0x43c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x438(%rbp), %rdi
callq 0x5ab0
jmp 0x74aa
jmp 0x74ac
movl -0x43c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x43c(%rbp)
jmp 0x747e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x77f9
cvtsi2sdl -0x378(%rbp), %xmm0
leaq -0x468(%rbp), %rdi
movl $0x2, %esi
callq 0x5890
jmp 0x74ef
movl $0x0, -0x46c(%rbp)
movl -0x46c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x754f
movq -0x3a8(%rbp), %rax
movslq -0x46c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x468(%rbp), %rdi
callq 0x5ab0
jmp 0x7525
jmp 0x7527
movl -0x46c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x46c(%rbp)
jmp 0x74f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x77ed
movl -0x5c(%rbp), %edx
leaq -0x438(%rbp), %rdi
leaq -0x468(%rbp), %rsi
callq 0x6670
movsd %xmm0, -0x8e0(%rbp)
jmp 0x756f
movq -0x7f0(%rbp), %rax
movq -0x7f8(%rbp), %rdx
movsd -0x8e0(%rbp), %xmm0
movsd %xmm0, -0x478(%rbp)
movsd -0x478(%rbp), %xmm0
movslq -0x370(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x374(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
leaq 0xae8d(%rip), %rsi      # 0x12444
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x8e8(%rbp)
jmp 0x75cc
movq -0x8e8(%rbp), %rdi
movsd -0x478(%rbp), %xmm0
callq 0x2330
movq %rax, -0x8f0(%rbp)
jmp 0x75e9
movq -0x8f0(%rbp), %rdi
movq 0x129c9(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x75fe
cvtsi2sdl -0x378(%rbp), %xmm0
leaq -0x4a0(%rbp), %rdi
movl $0x3, %esi
callq 0x5890
jmp 0x7619
movl $0x0, -0x4a4(%rbp)
movl -0x4a4(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x7679
movq -0x390(%rbp), %rax
movslq -0x4a4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x4a0(%rbp), %rdi
callq 0x5ab0
jmp 0x764f
jmp 0x7651
movl -0x4a4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4a4(%rbp)
jmp 0x7623
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
jmp 0x77e1
cvtsi2sdl -0x378(%rbp), %xmm0
leaq -0x4d0(%rbp), %rdi
movl $0x3, %esi
callq 0x5890
jmp 0x7694
movl $0x0, -0x4d4(%rbp)
movl -0x4d4(%rbp), %eax
cmpl -0x68(%rbp), %eax
jge 0x7700
movq -0x3a8(%rbp), %rax
movslq -0x4d4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x4d0(%rbp), %rdi
callq 0x5ab0
jmp 0x76ca
jmp 0x76cc
movl -0x4d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4d4(%rbp)
jmp 0x769e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
leaq -0x4d0(%rbp), %rdi
callq 0x5a40
jmp 0x77e1
movl -0x5c(%rbp), %edx
leaq -0x4a0(%rbp), %rdi
leaq -0x4d0(%rbp), %rsi
callq 0x6670
movsd %xmm0, -0x8f8(%rbp)
jmp 0x7720
movq -0x7e0(%rbp), %rax
movq -0x7e8(%rbp), %rdx
movsd -0x8f8(%rbp), %xmm0
movsd %xmm0, -0x4e0(%rbp)
movsd -0x4e0(%rbp), %xmm0
movslq -0x370(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x374(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
leaq 0xace2(%rip), %rsi      # 0x1244a
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x900(%rbp)
jmp 0x777d
movq -0x900(%rbp), %rdi
movsd -0x4e0(%rbp), %xmm0
callq 0x2330
movq %rax, -0x908(%rbp)
jmp 0x779a
movq -0x908(%rbp), %rdi
movq 0x12818(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x77af
leaq -0x4d0(%rbp), %rdi
callq 0x5a40
leaq -0x4a0(%rbp), %rdi
callq 0x5a40
leaq -0x468(%rbp), %rdi
callq 0x5a40
leaq -0x438(%rbp), %rdi
callq 0x5a40
jmp 0x780a
leaq -0x4a0(%rbp), %rdi
callq 0x5a40
leaq -0x468(%rbp), %rdi
callq 0x5a40
leaq -0x438(%rbp), %rdi
callq 0x5a40
jmp 0x793f
leaq -0x3d0(%rbp), %rdi
movq %rdi, -0x918(%rbp)
callq 0x69f0
movq -0x918(%rbp), %rdi
movq %rax, -0x4e8(%rbp)
callq 0x69d0
movq %rax, -0x4f0(%rbp)
movl -0x5c(%rbp), %edx
movq -0x4e8(%rbp), %rcx
movq -0x4f0(%rbp), %r8
leaq -0x3a0(%rbp), %rdi
leaq -0x388(%rbp), %rsi
callq 0x2910
movsd %xmm0, -0x910(%rbp)
jmp 0x7865
movq -0x810(%rbp), %rax
movq -0x818(%rbp), %rdx
movsd -0x910(%rbp), %xmm0
movsd %xmm0, -0x4f8(%rbp)
movsd -0x4f8(%rbp), %xmm0
movslq -0x370(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x374(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
leaq 0xaba3(%rip), %rsi      # 0x12450
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x920(%rbp)
jmp 0x78c2
movq -0x920(%rbp), %rdi
movsd -0x4f8(%rbp), %xmm0
callq 0x2330
movq %rax, -0x928(%rbp)
jmp 0x78df
movq -0x928(%rbp), %rdi
movq 0x126d3(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x78f4
imull $0xa, -0x68(%rbp), %eax
movl %eax, -0x68(%rbp)
movl -0x374(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x374(%rbp)
leaq -0x400(%rbp), %rdi
callq 0x5a40
leaq -0x3d0(%rbp), %rdi
callq 0x5a40
leaq -0x3a0(%rbp), %rdi
callq 0x9550
leaq -0x388(%rbp), %rdi
callq 0x9550
jmp 0x7147
leaq -0x400(%rbp), %rdi
callq 0x5a40
leaq -0x3d0(%rbp), %rdi
callq 0x5a40
leaq -0x3a0(%rbp), %rdi
callq 0x9550
leaq -0x388(%rbp), %rdi
callq 0x9550
jmp 0x8499
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movl -0x370(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x370(%rbp)
jmp 0x70ba
leaq -0x2c0(%rbp), %rdi
callq 0x2230
jmp 0x79a8
leaq -0x6f8(%rbp), %rdi
callq 0x22c0
jmp 0x79b6
movq -0x10(%rbp), %rsi
leaq -0x790(%rbp), %rdi
movl $0x3, %edx
callq 0x84c0
jmp 0x79cd
leaq -0x6f8(%rbp), %rdi
leaq -0x790(%rbp), %rsi
movl $0x10, %edx
callq 0x2050
jmp 0x79e7
movq -0x10(%rbp), %rsi
leaq -0x360(%rbp), %rdi
movl $0x1, %edx
callq 0x84c0
jmp 0x79fe
leaq -0x2c0(%rbp), %rdi
leaq -0x360(%rbp), %rsi
movl $0x10, %edx
callq 0x2050
jmp 0x7a18
movl -0x5c(%rbp), %eax
movl %eax, -0x794(%rbp)
movl $0x0, -0x798(%rbp)
movl -0x798(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0x80f3
movq -0x7d8(%rbp), %rax
movslq -0x798(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq -0x2c0(%rbp), %rdi
callq 0x22e0
movq %rax, -0x930(%rbp)
jmp 0x7a60
movq -0x930(%rbp), %rdi
leaq 0xa9ea(%rip), %rsi      # 0x12458
callq 0x21b0
jmp 0x7a75
xorps %xmm0, %xmm0
movsd %xmm0, -0x7a0(%rbp)
movl $0x0, -0x7a4(%rbp)
movl -0x7a4(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x7b87
movq -0x800(%rbp), %rax
movq -0x808(%rbp), %rdx
movslq -0x7a4(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x938(%rbp)
jmp 0x7ad7
movq -0x810(%rbp), %rax
movq -0x818(%rbp), %rdx
movslq -0x7a4(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x940(%rbp)
jmp 0x7b15
movsd -0x940(%rbp), %xmm1
movsd -0x938(%rbp), %xmm0
subsd %xmm1, %xmm0
callq 0x94a0
movsd %xmm0, -0x948(%rbp)
jmp 0x7b38
movsd -0x948(%rbp), %xmm0
addsd -0x7a0(%rbp), %xmm0
movsd %xmm0, -0x7a0(%rbp)
movl -0x7a4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a4(%rbp)
jmp 0x7a8a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x368(%rbp)
movl %eax, -0x36c(%rbp)
leaq -0x6f8(%rbp), %rdi
callq 0x2250
jmp 0x8499
movsd -0x7a0(%rbp), %xmm0
cvtsi2sdl -0x24(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq -0x2c0(%rbp), %rdi
callq 0x2330
jmp 0x7ba6
cmpl $0x0, -0x4c(%rbp)
je 0x7e06
xorps %xmm0, %xmm0
movsd %xmm0, -0x7a0(%rbp)
movl $0x0, -0x7a8(%rbp)
movl -0x7a8(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x7c9f
movq -0x7f0(%rbp), %rax
movq -0x7f8(%rbp), %rdx
movslq -0x7a8(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x950(%rbp)
jmp 0x7c12
movq -0x810(%rbp), %rax
movq -0x818(%rbp), %rdx
movslq -0x7a8(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x958(%rbp)
jmp 0x7c50
movsd -0x958(%rbp), %xmm1
movsd -0x950(%rbp), %xmm0
subsd %xmm1, %xmm0
callq 0x94a0
movsd %xmm0, -0x960(%rbp)
jmp 0x7c73
movsd -0x960(%rbp), %xmm0
addsd -0x7a0(%rbp), %xmm0
movsd %xmm0, -0x7a0(%rbp)
movl -0x7a8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a8(%rbp)
jmp 0x7bc5
leaq 0xa7b2(%rip), %rsi      # 0x12458
leaq -0x2c0(%rbp), %rdi
callq 0x21b0
movq %rax, -0x968(%rbp)
jmp 0x7cbb
movq -0x968(%rbp), %rdi
movsd -0x7a0(%rbp), %xmm0
cvtsi2sdl -0x24(%rbp), %xmm1
divsd %xmm1, %xmm0
callq 0x2330
movq %rax, -0x970(%rbp)
jmp 0x7ce1
movq -0x970(%rbp), %rdi
leaq 0xa769(%rip), %rsi      # 0x12458
callq 0x21b0
jmp 0x7cf6
xorps %xmm0, %xmm0
movsd %xmm0, -0x7a0(%rbp)
movl $0x0, -0x7ac(%rbp)
movl -0x7ac(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x7de5
movq -0x7e0(%rbp), %rax
movq -0x7e8(%rbp), %rdx
movslq -0x7ac(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x978(%rbp)
jmp 0x7d58
movq -0x810(%rbp), %rax
movq -0x818(%rbp), %rdx
movslq -0x7ac(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x980(%rbp)
jmp 0x7d96
movsd -0x980(%rbp), %xmm1
movsd -0x978(%rbp), %xmm0
subsd %xmm1, %xmm0
callq 0x94a0
movsd %xmm0, -0x988(%rbp)
jmp 0x7db9
movsd -0x988(%rbp), %xmm0
addsd -0x7a0(%rbp), %xmm0
movsd %xmm0, -0x7a0(%rbp)
movl -0x7ac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7ac(%rbp)
jmp 0x7d0b
movsd -0x7a0(%rbp), %xmm0
cvtsi2sdl -0x24(%rbp), %xmm1
divsd %xmm1, %xmm0
leaq -0x2c0(%rbp), %rdi
callq 0x2330
jmp 0x7e04
jmp 0x7e06
movq 0x121b3(%rip), %rsi     # 0x19fc0
leaq -0x2c0(%rbp), %rdi
callq 0x21d0
jmp 0x7e1b
leaq 0xa60d(%rip), %rsi      # 0x1242f
leaq -0x6f8(%rbp), %rdi
callq 0x21b0
movq %rax, -0x990(%rbp)
jmp 0x7e37
movq -0x990(%rbp), %rdi
movq -0x7d8(%rbp), %rax
movslq -0x798(%rbp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x22e0
movq %rax, -0x998(%rbp)
jmp 0x7e5d
movq -0x998(%rbp), %rdi
movq 0x12155(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x7e72
movl $0x0, -0x7b0(%rbp)
movl -0x7b0(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x80dd
movq -0x810(%rbp), %rax
movq -0x818(%rbp), %rdx
movslq -0x7b0(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x9a0(%rbp)
jmp 0x7ec9
movsd -0x9a0(%rbp), %xmm0
leaq -0x6f8(%rbp), %rdi
callq 0x2330
movq %rax, -0x9a8(%rbp)
jmp 0x7ee6
movq -0x9a8(%rbp), %rdi
leaq 0xa566(%rip), %rsi      # 0x1245a
callq 0x21b0
movq %rax, -0x9b0(%rbp)
jmp 0x7f02
movq -0x9b0(%rbp), %rdi
movq 0x120b0(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x7f17
movq -0x800(%rbp), %rax
movq -0x808(%rbp), %rdx
movslq -0x7b0(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x9b8(%rbp)
jmp 0x7f55
movsd -0x9b8(%rbp), %xmm0
leaq -0x6f8(%rbp), %rdi
callq 0x2330
movq %rax, -0x9c0(%rbp)
jmp 0x7f72
movq -0x9c0(%rbp), %rdi
leaq 0xa4e2(%rip), %rsi      # 0x12462
callq 0x21b0
movq %rax, -0x9c8(%rbp)
jmp 0x7f8e
movq -0x9c8(%rbp), %rdi
movq 0x12024(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x7fa3
cmpl $0x0, -0x4c(%rbp)
je 0x80c7
movq -0x7f0(%rbp), %rax
movq -0x7f8(%rbp), %rdx
movslq -0x7b0(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x9d0(%rbp)
jmp 0x7feb
movsd -0x9d0(%rbp), %xmm0
leaq -0x6f8(%rbp), %rdi
callq 0x2330
movq %rax, -0x9d8(%rbp)
jmp 0x8008
movq -0x9d8(%rbp), %rdi
leaq 0xa450(%rip), %rsi      # 0x12466
callq 0x21b0
movq %rax, -0x9e0(%rbp)
jmp 0x8024
movq -0x9e0(%rbp), %rdi
movq 0x11f8e(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x8039
movq -0x7e0(%rbp), %rax
movq -0x7e8(%rbp), %rdx
movslq -0x7b0(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x798(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movl -0x794(%rbp), %edi
callq 0x5240
movsd %xmm0, -0x9e8(%rbp)
jmp 0x8077
movsd -0x9e8(%rbp), %xmm0
leaq -0x6f8(%rbp), %rdi
callq 0x2330
movq %rax, -0x9f0(%rbp)
jmp 0x8094
movq -0x9f0(%rbp), %rdi
leaq 0xa3c8(%rip), %rsi      # 0x1246a
callq 0x21b0
movq %rax, -0x9f8(%rbp)
jmp 0x80b0
movq -0x9f8(%rbp), %rdi
movq 0x11f02(%rip), %rsi     # 0x19fc0
callq 0x21d0
jmp 0x80c5
jmp 0x80c7
jmp 0x80c9
movl -0x7b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b0(%rbp)
jmp 0x7e7c
jmp 0x80df
movl -0x798(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x798(%rbp)
jmp 0x7a2b
leaq -0x6f8(%rbp), %rdi
callq 0x2230
jmp 0x8101
leaq -0x2c0(%rbp), %rdi
callq 0x2230
jmp 0x810f
movq -0x10(%rbp), %rsi
leaq -0x360(%rbp), %rdi
movl $0x2, %edx
callq 0x84c0
jmp 0x8126
leaq -0x2c0(%rbp), %rdi
leaq -0x360(%rbp), %rsi
movl $0x10, %edx
callq 0x2050
jmp 0x8140
movl $0x0, -0x7b4(%rbp)
movl -0x7b4(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0x81ea
movl $0x0, -0x7b8(%rbp)
movl -0x7b8(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x81d4
movq -0x810(%rbp), %rax
movq -0x818(%rbp), %rdx
movslq -0x7b8(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x7b4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x2c0(%rbp), %rdi
callq 0x2330
movq %rax, -0xa00(%rbp)
jmp 0x81ac
movq -0xa00(%rbp), %rdi
leaq 0xa29e(%rip), %rsi      # 0x12458
callq 0x21b0
jmp 0x81c1
jmp 0x81c3
movl -0x7b8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b8(%rbp)
jmp 0x8163
jmp 0x81d6
movl -0x7b4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7b4(%rbp)
jmp 0x814a
movq 0x11dcf(%rip), %rsi     # 0x19fc0
leaq -0x2c0(%rbp), %rdi
callq 0x21d0
jmp 0x81ff
movl $0x0, -0x7bc(%rbp)
movl -0x7bc(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0x82a9
movl $0x0, -0x7c0(%rbp)
movl -0x7c0(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x8293
movq -0x800(%rbp), %rax
movq -0x808(%rbp), %rdx
movslq -0x7c0(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x7bc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x2c0(%rbp), %rdi
callq 0x2330
movq %rax, -0xa08(%rbp)
jmp 0x826b
movq -0xa08(%rbp), %rdi
leaq 0xa1df(%rip), %rsi      # 0x12458
callq 0x21b0
jmp 0x8280
jmp 0x8282
movl -0x7c0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c0(%rbp)
jmp 0x8222
jmp 0x8295
movl -0x7bc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7bc(%rbp)
jmp 0x8209
movq 0x11d10(%rip), %rsi     # 0x19fc0
leaq -0x2c0(%rbp), %rdi
callq 0x21d0
jmp 0x82be
cmpl $0x0, -0x4c(%rbp)
je 0x8448
movl $0x0, -0x7c4(%rbp)
movl -0x7c4(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0x8372
movl $0x0, -0x7c8(%rbp)
movl -0x7c8(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x835c
movq -0x7f0(%rbp), %rax
movq -0x7f8(%rbp), %rdx
movslq -0x7c8(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x7c4(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x2c0(%rbp), %rdi
callq 0x2330
movq %rax, -0xa10(%rbp)
jmp 0x8334
movq -0xa10(%rbp), %rdi
leaq 0xa116(%rip), %rsi      # 0x12458
callq 0x21b0
jmp 0x8349
jmp 0x834b
movl -0x7c8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c8(%rbp)
jmp 0x82eb
jmp 0x835e
movl -0x7c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c4(%rbp)
jmp 0x82d2
movq 0x11c47(%rip), %rsi     # 0x19fc0
leaq -0x2c0(%rbp), %rdi
callq 0x21d0
jmp 0x8387
movl $0x0, -0x7cc(%rbp)
movl -0x7cc(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0x8431
movl $0x0, -0x7d0(%rbp)
movl -0x7d0(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x841b
movq -0x7e0(%rbp), %rax
movq -0x7e8(%rbp), %rdx
movslq -0x7d0(%rbp), %rcx
imulq %rdx, %rcx
leaq (%rax,%rcx,8), %rax
movslq -0x7cc(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq -0x2c0(%rbp), %rdi
callq 0x2330
movq %rax, -0xa18(%rbp)
jmp 0x83f3
movq -0xa18(%rbp), %rdi
leaq 0xa057(%rip), %rsi      # 0x12458
callq 0x21b0
jmp 0x8408
jmp 0x840a
movl -0x7d0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7d0(%rbp)
jmp 0x83aa
jmp 0x841d
movl -0x7cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7cc(%rbp)
jmp 0x8391
movq 0x11b88(%rip), %rsi     # 0x19fc0
leaq -0x2c0(%rbp), %rdi
callq 0x21d0
jmp 0x8446
jmp 0x8448
movq 0x11b71(%rip), %rsi     # 0x19fc0
leaq -0x2c0(%rbp), %rdi
callq 0x21d0
jmp 0x845d
leaq -0x2c0(%rbp), %rdi
callq 0x2230
jmp 0x846b
movl $0x0, -0x4(%rbp)
leaq -0x6f8(%rbp), %rdi
callq 0x2250
leaq -0x2c0(%rbp), %rdi
callq 0x2250
movq -0x78(%rbp), %rax
movq %rax, %rsp
movl -0x4(%rbp), %eax
movq %rbp, %rsp
popq %rbp
retq
leaq -0x2c0(%rbp), %rdi
callq 0x2250
movq -0x368(%rbp), %rdi
callq 0x2300
nopw %cs:(%rax,%rax)