// File: /workspace/github_cpp_makefile_star2_O3/bauerj4[P]Riemann1D/src/main.cpp
// Function: main
int main(int argc, char * argv[])
{
  
  char * PATH = argv[1];
  vector<double> testVector(3,2.0);
  // Primative should invert conservative
  testVector = primativeTo1DConservative(testVector);
  printf("The conserved test components are: [%10.10f, %10.10f, %10.10f]\n", testVector[0],testVector[1], testVector[2]);
  //
  testVector = conservativeTo1DPrimative(testVector);
  printf("The primative components are: [%10.10f, %10.10f, %10.10f]\n", testVector[0],testVector[1], testVector[2]);
  
  
  // Get context.
  
  context_t RiemannContext;
  readContext(PATH, RiemannContext);
  printContext(RiemannContext);
  
  // Initialize simulation
  mesh_t mesh;
  printf("Constructing mesh...\n");
  ConstructMesh(mesh, RiemannContext);
  printf("Mesh constructed.\n");
  
  // Add more ghost cells for higher order
  /*
    if (RiemannContext.SOLUTION_METHOD == "HLLC_FLUX_SUPERBEE" || RiemannContext.SOLUTION_METHOD == "HLLC_FLUX_SUPERBEE")
    {
    double positions[mesh.NCells + 2];
    double pressures[mesh.NCells + 2];
    double velocities[mesh.NCells + 2];
    double denisities[mesh.NCells + 2];
    mesh.NCells = mesh.NCells + 2;
    for (int i = 0; i < mesh.NCells; i++)/ 	
    {
    if i == mesh.NCells - 1)
    {
    positions[i] = positions[i - 1];
    pressures[i] = pressures[i - 1];
    velocities[i] = velocities[i - 1];
    }
    }
    
    }
   */
  
  int snapshot_number = 0;
  PrintDataToFile(mesh, RiemannContext, snapshot_number);
  //return 1;
  // Declare flux vector
  vector<vector<double> > fluxes(mesh.NCells - 3, vector<double>(3,0.));
  
  if(RiemannContext.SOLUTION_METHOD == "HLLC")
    {
      fluxes.push_back(vector<double>(3,0.));
      fluxes.push_back(vector<double>(3,0.));
    }
  
  vector<vector<double> > primatives(mesh.NCells,vector<double> (3,0.));
  vector<vector<double> > conserved(mesh.NCells,vector<double> (3,0.));
  
  for (int i = 0; i < mesh.NCells; i++)
    {
      primatives[i][0] = mesh.FirstDensityElement[i];
      primatives[i][1] = mesh.FirstVelocityElement[i];
      primatives[i][2] = mesh.FirstPressureElement[i];
      //printf("%10.10f, %10.10f, %10.10f", primatives[i][0], primatives[i][1], primatives[i][2]);
    }
  
  for (int i = 0; i < mesh.NCells; i++)
    {
      conserved[i] = primativeTo1DConservative(primatives[i]);
    }
  
  double currentTime = 0;
  double SMAX;
  int iteration;
  // For time, do:
  while (currentTime < RiemannContext.EVOLVE_TIME)
    {
      // Compute fluxes with TRANSMISSIVE BCs
      if (RiemannContext.SOLUTION_METHOD == "HLLC")
 	{
 	  HLLC_FLUX(mesh, fluxes, SMAX);
 	}
      
      if (RiemannContext.SOLUTION_METHOD=="HLLC_FLUX_SUPERBEE")
 	{
 	  int success = 1;
 	  success = HLLC_FLUX_SUPERBEE(mesh, fluxes, RiemannContext, SMAX);
 	  printf("Flux calculation finished.\n");
 	  if (success != 0)
 	    {
 	      printf("RIEMANN SOLVER RETURNED WITH ERROR.\n");	      
PrintDataToFile(mesh, RiemannContext, snapshot_number);
 	      break;
 	    }
 	  printf("FLUX RETURN CODE %d\n",success);
 	}

      if (RiemannContext.SOLUTION_METHOD=="HLLC_FLUX_MINBEE")
        {
          int success = 1;
          success = HLLC_FLUX_MINBEE(mesh, fluxes, RiemannContext, SMAX);
          printf("Flux calculation finished.\n");
          if (success != 0)
            {
              printf("RIEMANN SOLVER RETURNED WITH ERROR.\n");
	      PrintDataToFile(mesh, RiemannContext, snapshot_number);
              break;
            }
          printf("FLUX RETURN CODE %d\n",success);
	}

       // Update mesh
      //vector<vector<double> > test(mesh.NCells - 1, vector<double>(3,0.));
       printf("Updating Mesh.\n");
      
      int success = FVUpdate(conserved, fluxes, mesh, RiemannContext, currentTime, SMAX, iteration);
      if (success != 0)
	{
	  printf("RIEMANN SOLVER RETURNED WITH ERROR.\n");
	  PrintDataToFile(mesh, RiemannContext, snapshot_number);
	  break;
	}


      for (int i = 0; i < mesh.NCells; i++)
	{
	  primatives[i] = conservativeTo1DPrimative(conserved[i]);
	  //printf("%10.10f, %10.10f, %10.10f", primatives[i][0], primatives[i][1], primatives[i][2]);
	  mesh.FirstDensityElement[i] = primatives[i][0];
	  mesh.FirstVelocityElement[i] = primatives[i][1];
	  mesh.FirstPressureElement[i] = primatives[i][2];
	}
      SMAX=0;

    }

  // Convert back to primatives
  /*
  for (int i = 0; i < mesh.NCells; i++)
    {
      primatives[i] = conservativeTo1DPrimative(conserved[i]);
      mesh.FirstDensityElement[i] = primatives[i][0];
      mesh.FirstVelocityElement[i] = primatives[i][1];
      mesh.FirstPressureElement[i] = primatives[i][2];
    }
  */


  // Write output.

  
  PrintDataToFile(mesh, RiemannContext, snapshot_number);

  return 0;
  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq 0x8(%rsi), %rbx
movl $0x18, %edi
callq 0x21c0
movq %rax, 0x40(%rsp)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x50(%rsp)
xorl %edx, %edx
movdqa 0x152e(%rip), %xmm0     # 0xb310
movdqa 0x1536(%rip), %xmm1     # 0xb320
movdqa 0x187e(%rip), %xmm2     # 0xb670
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movabsq $0x4000000000000000, %rsi # imm = 0x4000000000000000
movq %rdx, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm0, %xmm4
pxor %xmm1, %xmm4
movdqa %xmm2, %xmm5
pcmpgtd %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
pcmpeqd %xmm3, %xmm4
pand %xmm5, %xmm4
movd %xmm4, %edi
testb $0x1, %dil
je 0x9e36
movq %rsi, (%rax,%rdx,8)
pextrw $0x4, %xmm4, %edi
testb $0x1, %dil
je 0x9e46
movq %rsi, 0x8(%rax,%rdx,8)
addq $0x2, %rdx
cmpq $0x4, %rdx
jne 0x9e01
leaq 0x40(%rsp), %rsi
movq %rcx, 0x8(%rsi)
leaq 0xe0(%rsp), %rdi
callq 0x92b0
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x3469
movq 0x40(%rsp), %rdi
movq 0x50(%rsp), %rsi
movaps 0x100(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x50(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
testq %rdi, %rdi
je 0x9ee0
subq %rdi, %rsi
callq 0x21d0
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x9ee0
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x9efd
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
leaq 0x40(%rsp), %r14
movq (%r14), %rax
movq (%rax), %xmm0
movq 0x8(%rax), %xmm1
movq 0x10(%rax), %xmm2
leaq 0x1766(%rip), %rdi      # 0xb680
movb $0x3, %al
callq 0x2030
leaq 0xc8(%rsp), %rdi
movq %r14, %rsi
callq 0x92b0
leaq 0x100(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x354d
movq 0x40(%rsp), %rdi
movq 0x50(%rsp), %rsi
movaps 0x100(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x50(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
testq %rdi, %rdi
je 0x9fab
subq %rdi, %rsi
callq 0x21d0
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x9fab
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x9fc8
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0x40(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movq 0x10(%rax), %xmm2
leaq 0x16de(%rip), %rdi      # 0xb6c0
movb $0x3, %al
callq 0x2030
leaq 0x170(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x190(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x100(%rsp), %rsi
movq %rbx, %rdi
callq 0x263f
leaq 0x100(%rsp), %rdi
callq 0x2aa4
leaq 0x16e2(%rip), %rdi      # 0xb715
callq 0x2290
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x9820
leaq 0x16d6(%rip), %rdi      # 0xb72a
callq 0x2290
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c73
movslq 0x88(%rsp), %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rsp, %rdx
movq %rax, (%rdx)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rdx)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rdx)
addq $-0x3, %rbx
leaq 0xb0(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movq %rbx, %rsi
callq 0x9414
leaq 0x160(%rsp), %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa0f0
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
leaq 0x1604(%rip), %rsi      # 0xb6fb
movq %rbx, %rdi
callq 0x2090
testl %eax, %eax
jne 0xa1cf
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rsi)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rsi)
leaq 0xb0(%rsp), %rdi
callq 0xa932
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa16b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
xorpd %xmm0, %xmm0
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rsi)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rsi)
leaq 0xb0(%rsp), %rdi
callq 0xa932
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa1cf
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movslq 0x88(%rsp), %r14
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
movl $0x18, %edi
callq 0x21c0
leaq 0x60(%rsp), %rdx
movq %rax, (%rdx)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rdx)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rdx)
movq %rsp, %rdi
leaq 0x20(%rsp), %rcx
movq %r14, %rsi
callq 0x9414
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xa242
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movslq 0x88(%rsp), %r14
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movl $0x18, %edi
callq 0x21c0
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rdx)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rdx)
leaq 0x60(%rsp), %rdi
leaq 0x80(%rsp), %rcx
movq %r14, %rsi
callq 0x9414
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa2ba
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movslq 0x88(%rsp), %rax
testq %rax, %rax
jle 0xa3df
movq 0x98(%rsp), %rcx
movq 0xa0(%rsp), %rdx
movq (%rsp), %rsi
movq 0xa8(%rsp), %rdi
xorl %r8d, %r8d
movsd (%rcx,%r8,8), %xmm0
movq (%rsi), %r9
movsd %xmm0, (%r9)
movsd (%rdi,%r8,8), %xmm0
movsd %xmm0, 0x8(%r9)
movsd (%rdx,%r8,8), %xmm0
movsd %xmm0, 0x10(%r9)
incq %r8
addq $0x18, %rsi
cmpq %r8, %rax
jne 0xa2ea
testl %eax, %eax
jle 0xa3df
xorl %ebx, %ebx
leaq 0x1c0(%rsp), %r14
leaq 0x20(%rsp), %r15
xorl %r12d, %r12d
movq (%rsp), %rsi
addq %rbx, %rsi
movq %r14, %rdi
callq 0x92b0
movq %r15, %rdi
movq %r14, %rsi
callq 0x3469
movq 0x60(%rsp), %rax
movq (%rax,%rbx), %rdi
movq 0x10(%rax,%rbx), %rsi
movapd 0x20(%rsp), %xmm0
movupd %xmm0, (%rax,%rbx)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rax,%rbx)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0xa3aa
subq %rdi, %rsi
callq 0x21d0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa3aa
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0x1c0(%rsp), %rdi
testq %rdi, %rdi
je 0xa3c7
movq 0x1d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
incq %r12
movslq 0x88(%rsp), %rax
addq $0x18, %rbx
cmpq %rax, %r12
jl 0xa336
movq $0x0, 0x80(%rsp)
movsd 0x158(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xa6b6
leaq 0x88(%rsp), %r15
leaq 0xb0(%rsp), %r12
leaq 0x1a8(%rsp), %rbp
leaq 0x20(%rsp), %r13
leaq 0x160(%rsp), %r14
movq %r14, %rdi
leaq 0x12ca(%rip), %rsi      # 0xb6fb
callq 0x2090
testl %eax, %eax
jne 0xa44a
movq %r15, %rdi
movq %r12, %rsi
leaq 0x58(%rsp), %rdx
callq 0x3628
movq %r14, %rdi
leaq 0xdee(%rip), %rsi       # 0xb242
callq 0x2090
testl %eax, %eax
jne 0xa49b
movq %r15, %rdi
movq %r12, %rsi
leaq 0x100(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x4501
movl %eax, %ebx
leaq 0x12be(%rip), %rdi      # 0xb73c
callq 0x2290
testl %ebx, %ebx
jne 0xa66e
leaq 0x126e(%rip), %rdi      # 0xb700
xorl %esi, %esi
xorl %eax, %eax
callq 0x2030
movq %r14, %rdi
leaq 0xdb0(%rip), %rsi       # 0xb255
callq 0x2090
testl %eax, %eax
jne 0xa4ec
movq %r15, %rdi
movq %r12, %rsi
leaq 0x100(%rsp), %rdx
leaq 0x58(%rsp), %rcx
callq 0x6ce6
movl %eax, %ebx
leaq 0x126d(%rip), %rdi      # 0xb73c
callq 0x2290
testl %ebx, %ebx
jne 0xa693
leaq 0x121d(%rip), %rdi      # 0xb700
xorl %esi, %esi
xorl %eax, %eax
callq 0x2030
leaq 0x1264(%rip), %rdi      # 0xb757
callq 0x2290
movsd 0x58(%rsp), %xmm0
leaq 0x60(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
leaq 0x100(%rsp), %rcx
leaq 0x80(%rsp), %r8
leaq 0xfc(%rsp), %r9
callq 0x2fd8
testl %eax, %eax
jne 0xa649
cmpl $0x0, 0x88(%rsp)
jle 0xa626
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x60(%rsp), %rsi
addq %rbx, %rsi
movq %rbp, %rdi
callq 0x92b0
movq %r13, %rdi
movq %rbp, %rsi
callq 0x354d
movq (%rsp), %rax
movq (%rax,%rbx), %rdi
movq 0x10(%rax,%rbx), %rsi
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rax,%rbx)
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rax,%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0xa5b1
subq %rdi, %rsi
callq 0x21d0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa5b1
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0x1a8(%rsp), %rdi
testq %rdi, %rdi
je 0xa5ce
movq 0x1b8(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq (%rsp), %rax
movq (%rax,%rbx), %rax
movsd (%rax), %xmm0
movq 0x98(%rsp), %rcx
movsd %xmm0, (%rcx,%r14,8)
movsd 0x8(%rax), %xmm0
movq 0xa8(%rsp), %rcx
movsd %xmm0, (%rcx,%r14,8)
movsd 0x10(%rax), %xmm0
movq 0xa0(%rsp), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
movslq 0x88(%rsp), %rax
addq $0x18, %rbx
cmpq %rax, %r14
jl 0xa541
movq $0x0, 0x58(%rsp)
movsd 0x158(%rsp), %xmm0
ucomisd 0x80(%rsp), %xmm0
ja 0xa41f
jmp 0xa6b6
leaq 0x1116(%rip), %rdi      # 0xb766
callq 0x2290
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c73
jmp 0xa6b6
leaq 0x10f1(%rip), %rdi      # 0xb766
callq 0x2290
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c73
jmp 0xa6b6
leaq 0x10cc(%rip), %rdi      # 0xb766
callq 0x2290
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c73
leaq 0x88(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c73
leaq 0x60(%rsp), %rdi
callq 0x9514
movq %rsp, %rdi
callq 0x9514
leaq 0xb0(%rsp), %rdi
callq 0x9514
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
leaq 0x170(%rsp), %rbx
je 0xa719
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x160(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa736
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa74d
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
xorl %eax, %eax
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa8a6
jmp 0xa8a6
jmp 0xa8a6
jmp 0xa774
jmp 0xa7e0
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa8bb
movq 0x10(%rsp), %rsi
jmp 0xa7d3
jmp 0xa7e0
jmp 0xa8a6
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa8b3
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8b3
movq %rax, %rbx
jmp 0xa8b3
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0xa8bb
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8bb
movq %rax, %rbx
jmp 0xa8bb
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa8c8
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8c8
jmp 0xa85b
jmp 0xa85b
jmp 0xa85b
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0xa8d5
movq 0xd8(%rsp), %rsi
jmp 0xa84c
jmp 0xa856
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xa8d5
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8d5
movq %rax, %rbx
jmp 0xa8d5
movq %rax, %rbx
jmp 0xa8c8
jmp 0xa8a6
jmp 0xa8a6
jmp 0xa8a6
jmp 0xa8a6
jmp 0xa8a6
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
testq %rdi, %rdi
je 0xa8a9
movq 0x1d0(%rsp), %rsi
jmp 0xa89c
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
testq %rdi, %rdi
je 0xa8a9
movq 0x1b8(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8a9
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x9514
movq %rsp, %rdi
callq 0x9514
leaq 0xb0(%rsp), %rdi
callq 0x9514
leaq 0x100(%rsp), %rdi
callq 0xa8f4
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xa8ec
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300