// File: /workspace/github_cpp_makefile_star2_O1/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
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x30(%rsp)
xorl %edx, %edx
movdqa 0x1504(%rip), %xmm0     # 0xb320
movdqa 0x150c(%rip), %xmm1     # 0xb330
movdqa 0x1844(%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 0x9e70
movq %rsi, (%rax,%rdx,8)
pextrw $0x4, %xmm4, %edi
testb $0x1, %dil
je 0x9e80
movq %rsi, 0x8(%rax,%rdx,8)
addq $0x2, %rdx
cmpq $0x4, %rdx
jne 0x9e3b
leaq 0x20(%rsp), %rsi
movq %rcx, 0x8(%rsi)
leaq 0xe0(%rsp), %rdi
callq 0x9302
leaq 0x100(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x34a9
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
movaps 0x100(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
testq %rdi, %rdi
je 0x9efd
subq %rdi, %rsi
callq 0x21d0
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x9f1a
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x9f37
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
leaq 0x20(%rsp), %r14
movq (%r14), %rax
movq (%rax), %xmm0
movq 0x8(%rax), %xmm1
movq 0x10(%rax), %xmm2
leaq 0x172c(%rip), %rdi      # 0xb680
movb $0x3, %al
callq 0x2030
leaq 0xc8(%rsp), %rdi
movq %r14, %rsi
callq 0x9302
leaq 0x100(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x35a8
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
movaps 0x100(%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x30(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
testq %rdi, %rdi
je 0x9fc8
subq %rdi, %rsi
callq 0x21d0
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x9fe5
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0xa002
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0x20(%rsp), %rax
movq (%rax), %xmm0
movq 0x8(%rax), %xmm1
movq 0x10(%rax), %xmm2
leaq 0x16a4(%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 0x2ab3
leaq 0x16a8(%rip), %rdi      # 0xb715
callq 0x2290
leaq 0x48(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x9854
leaq 0x169f(%rip), %rdi      # 0xb72a
callq 0x2290
leaq 0x48(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c98
movslq 0x48(%rsp), %rbx
pxor %xmm0, %xmm0
movdqa %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rsp, %rdx
movq %rax, (%rdx)
movq %rax, 0x8(%rdx)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rdx)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rdx)
addq $-0x3, %rbx
leaq 0xb0(%rsp), %rdi
leaq 0x90(%rsp), %rcx
movq %rbx, %rsi
callq 0x9458
leaq 0x160(%rsp), %r13
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa128
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
leaq 0x15cc(%rip), %rsi      # 0xb6fb
movq %r13, %rdi
callq 0x2090
testl %eax, %eax
jne 0xa20f
pxor %xmm0, %xmm0
movdqa %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rsi)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rsi)
leaq 0xb0(%rsp), %rdi
callq 0xa95c
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa1a7
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
pxor %xmm0, %xmm0
movdqa %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x18, %edi
callq 0x21c0
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rsi)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rsi)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rsi)
leaq 0xb0(%rsp), %rdi
callq 0xa95c
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa20f
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movslq 0x48(%rsp), %rbx
pxor %xmm0, %xmm0
movdqa %xmm0, 0x90(%rsp)
movq $0x0, 0xa0(%rsp)
movl $0x18, %edi
callq 0x21c0
leaq 0x90(%rsp), %rdx
movq %rax, (%rdx)
movq %rax, 0x8(%rdx)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rdx)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rdx)
movq %rsp, %rdi
leaq 0x70(%rsp), %rcx
movq %rbx, %rsi
callq 0x9458
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xa292
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movslq 0x48(%rsp), %rbx
pxor %xmm0, %xmm0
movdqa %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
movl $0x18, %edi
callq 0x21c0
leaq 0x70(%rsp), %rdx
movq %rax, (%rdx)
movq %rax, 0x8(%rdx)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x10(%rdx)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rcx, 0x8(%rdx)
leaq 0x90(%rsp), %rdi
leaq 0xa8(%rsp), %rcx
movq %rbx, %rsi
callq 0x9458
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa314
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movslq 0x48(%rsp), %rax
testq %rax, %rax
jle 0xa366
movq 0x58(%rsp), %rcx
movq 0x60(%rsp), %rdx
movq (%rsp), %rsi
movq 0x68(%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)
movq (%rdx,%r8,8), %xmm0
movq %xmm0, 0x10(%r9)
incq %r8
addq $0x18, %rsi
cmpq %r8, %rax
jne 0xa334
cmpl $0x0, 0x48(%rsp)
jle 0xa3f9
xorl %r15d, %r15d
leaq 0x1c0(%rsp), %rbx
leaq 0x70(%rsp), %r14
xorl %r12d, %r12d
movq (%rsp), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x9302
movq %r14, %rdi
movq %rbx, %rsi
callq 0x34a9
movq 0x90(%rsp), %rdi
addq %r15, %rdi
movq %r14, %rsi
callq 0xa924
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa3cb
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0x1c0(%rsp), %rdi
testq %rdi, %rdi
je 0xa3e8
movq 0x1d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
incq %r12
movslq 0x48(%rsp), %rax
addq $0x18, %r15
cmpq %rax, %r12
jl 0xa384
leaq 0xa8(%rsp), %r15
movq $0x0, (%r15)
leaq 0x12ec(%rip), %r12      # 0xb6fb
leaq 0x1a8(%rsp), %r14
leaq 0x70(%rsp), %rbp
movsd 0x158(%rsp), %xmm0
ucomisd 0xa8(%rsp), %xmm0
jbe 0xa6a7
movq %r13, %rdi
movq %r12, %rsi
callq 0x2090
testl %eax, %eax
jne 0xa45a
leaq 0x48(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x369e
movq %r13, %rdi
leaq 0xdde(%rip), %rsi       # 0xb242
callq 0x2090
testl %eax, %eax
jne 0xa4d8
leaq 0x48(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x100(%rsp), %rdx
leaq 0x40(%rsp), %rcx
callq 0x45b6
movl %eax, %ebx
leaq 0x12a7(%rip), %rdi      # 0xb73c
callq 0x2290
testl %ebx, %ebx
je 0xa4c0
leaq 0x12c1(%rip), %rdi      # 0xb766
callq 0x2290
leaq 0x48(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c98
jmp 0xa4d0
leaq 0x1239(%rip), %rdi      # 0xb700
xorl %esi, %esi
xorl %eax, %eax
callq 0x2030
testl %ebx, %ebx
jne 0xa6a7
movq %r13, %rdi
leaq 0xd73(%rip), %rsi       # 0xb255
callq 0x2090
testl %eax, %eax
jne 0xa556
leaq 0x48(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x100(%rsp), %rdx
leaq 0x40(%rsp), %rcx
callq 0x6bde
movl %eax, %ebx
leaq 0x1229(%rip), %rdi      # 0xb73c
callq 0x2290
testl %ebx, %ebx
je 0xa53e
leaq 0x1243(%rip), %rdi      # 0xb766
callq 0x2290
leaq 0x48(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c98
jmp 0xa54e
leaq 0x11bb(%rip), %rdi      # 0xb700
xorl %esi, %esi
xorl %eax, %eax
callq 0x2030
testl %ebx, %ebx
jne 0xa6a7
leaq 0x11fa(%rip), %rdi      # 0xb757
callq 0x2290
movq 0x40(%rsp), %xmm0
leaq 0x90(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0x48(%rsp), %rdx
leaq 0x100(%rsp), %rcx
movq %r15, %r8
leaq 0xfc(%rsp), %r9
callq 0x300c
movl %eax, %ebx
testl %eax, %eax
je 0xa5c0
leaq 0x11c4(%rip), %rdi      # 0xb766
callq 0x2290
leaq 0x48(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c98
jmp 0xa69f
movq %r13, %r12
cmpl $0x0, 0x48(%rsp)
jle 0xa684
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x90(%rsp), %rsi
addq %r13, %rsi
movq %r14, %rdi
callq 0x9302
movq %rbp, %rdi
movq %r14, %rsi
callq 0x35a8
movq (%rsp), %rdi
addq %r13, %rdi
movq %rbp, %rsi
callq 0xa924
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa61b
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq 0x1a8(%rsp), %rdi
testq %rdi, %rdi
je 0xa638
movq 0x1b8(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq (%rsp), %rax
movq (%rax,%r13), %rax
movsd (%rax), %xmm0
movq 0x58(%rsp), %rcx
movsd %xmm0, (%rcx,%r15,8)
movsd 0x8(%rax), %xmm0
movq 0x68(%rsp), %rcx
movsd %xmm0, (%rcx,%r15,8)
movq 0x10(%rax), %xmm0
movq 0x60(%rsp), %rax
movq %xmm0, (%rax,%r15,8)
incq %r15
movslq 0x48(%rsp), %rax
addq $0x18, %r13
cmpq %rax, %r15
jl 0xa5d4
movq $0x0, 0x40(%rsp)
movq %r12, %r13
leaq 0xa8(%rsp), %r15
leaq 0x105c(%rip), %r12      # 0xb6fb
testl %ebx, %ebx
je 0xa41c
leaq 0x48(%rsp), %rdi
leaq 0x100(%rsp), %rsi
xorl %edx, %edx
callq 0x9c98
leaq 0x90(%rsp), %rdi
callq 0x9558
movq %rsp, %rdi
callq 0x9558
leaq 0xb0(%rsp), %rdi
callq 0x9558
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0xa702
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0xa727
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa73e
movq 0x30(%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 0xa756
jmp 0xa7cb
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa8ac
movq 0x10(%rsp), %rsi
jmp 0xa7be
jmp 0xa7cb
jmp 0xa894
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0xa8a4
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8a4
movq %rax, %rbx
jmp 0xa8a4
movq %rax, %rbx
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0xa8ac
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8ac
movq %rax, %rbx
jmp 0xa8ac
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa8b9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8b9
jmp 0xa849
jmp 0xa849
jmp 0xa849
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0xa8c6
movq 0xd8(%rsp), %rsi
jmp 0xa837
jmp 0xa844
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xa8c6
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa8c6
movq %rax, %rbx
jmp 0xa8c6
movq %rax, %rbx
jmp 0xa8b9
jmp 0xa894
jmp 0xa894
jmp 0xa894
jmp 0xa894
jmp 0xa894
movq %rax, %rbx
movq 0x1c0(%rsp), %rdi
testq %rdi, %rdi
je 0xa897
movq 0x1d0(%rsp), %rsi
jmp 0xa88a
movq %rax, %rbx
movq 0x1a8(%rsp), %rdi
testq %rdi, %rdi
je 0xa897
movq 0x1b8(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0xa897
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x9558
movq %rsp, %rdi
callq 0x9558
leaq 0xb0(%rsp), %rdi
callq 0x9558
leaq 0x100(%rsp), %rdi
callq 0xa8e6
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xa8dd
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop