// File: /workspace/github_cpp_makefile_star2_O3/joraso[P]Glassius/Protocol.cpp
// Function: Protocol::LennardJonesTest(double, double, Stopwatch*)
void Protocol::LennardJonesTest(double Temp, double relax, Stopwatch* timer){

    std::cout <<"\n"<< "Testing Lennard-Jones Fluid" <<"\n"<< std::endl;
    std::cout << "Using Parameters:" << std::endl;
    std::cout << "Temperature = " << Temp << std::endl;
    std::cout << "RelaxationTime =  " << relax << std::endl;
    
    double rho = 1000 / (9.4*9.4*9.4);
    
    std::cout << "\n" << "Setting up System..." << std::endl;
    Fluid System(rho, Temp, 10);
    timer->StampComplete();
    
    std::cout << "\n" << "Setting up Simulation..." << std::endl;
    Verlet Simulation(&System, Temp, 0.01, 1);
    timer->StampComplete();
    
    std::cout << "\n" << "Equilibrating at T = " << Temp << std::endl;
    std::cout << "Thermostating every 100 timesteps" << std::endl;
    Simulation.Equilibrate(relax, 100);
    timer->StampComplete();
    
    std::cout << "\n" << "Begining Production Run" << std::endl;
    std::cout << "Using Parameters:" << std::endl;
    double dt = Simulation.Getdt();
    std::cout << "Timestep = " << dt << std::endl;
    int Npoints = 100;
    std::cout << "Total Data Points = " << Npoints << std::endl;
    int Nrec = int( relax / (dt*Npoints) );
    Simulation.SetRecord(Nrec);
    std::cout << "Recording every = " << Simulation.GetRecord() << std::endl;
    Simulation.Run(relax);
    timer->StampComplete();
    
    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq 0x4c94(%rip), %r14      # 0xafd8
leaq 0x1f95(%rip), %r15      # 0x82e0
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21e0
leaq 0x219f(%rip), %rsi      # 0x8501
movl $0x1b, %edx
movq %r14, %rdi
callq 0x21e0
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x1f57(%rip), %rsi      # 0x8304
movl $0x11, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x1f2e(%rip), %rsi      # 0x8316
movl $0xe, %edx
movq %r14, %rdi
callq 0x21e0
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x2260
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x1ef1(%rip), %rsi      # 0x8325
movl $0x12, %edx
movq %r14, %rdi
callq 0x21e0
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
callq 0x2260
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x21e0
leaq 0x1ec3(%rip), %rsi      # 0x8353
movl $0x14, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x70(%rsp), %rdi
movsd 0x1daf(%rip), %xmm0     # 0x8280
movsd 0x1db7(%rip), %xmm2     # 0x8290
movsd 0x8(%rsp), %xmm1
callq 0x6fb8
movq %rbx, %rdi
callq 0x2b8a
movq 0x4ae5(%rip), %rdi      # 0xafd8
leaq 0x1de6(%rip), %rsi      # 0x82e0
movl $0x1, %edx
callq 0x21e0
movq 0x4acd(%rip), %r14      # 0xafd8
leaq 0x1e56(%rip), %rsi      # 0x8368
movl $0x18, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x4a9b(%rip), %rdi      # 0xafd8
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x18(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movsd 0x1d3c(%rip), %xmm1     # 0x8298
movsd 0x8(%rsp), %xmm0
movl $0x1, %edx
callq 0x6d7a
movq %rbx, %rdi
callq 0x2b8a
movq 0x4a5d(%rip), %rdi      # 0xafd8
leaq 0x1d5e(%rip), %rsi      # 0x82e0
movl $0x1, %edx
callq 0x21e0
movq 0x4a45(%rip), %rdi      # 0xafd8
leaq 0x1e48(%rip), %rsi      # 0x83e2
movl $0x15, %edx
callq 0x21e0
movq 0x4a2d(%rip), %rdi      # 0xafd8
movsd 0x8(%rsp), %xmm0
callq 0x2260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq 0x49f1(%rip), %r14      # 0xafd8
leaq 0x1f2f(%rip), %rsi      # 0x851d
movl $0x21, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x49bf(%rip), %rdi      # 0xafd8
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x18(%rsp), %rdi
movsd 0x10(%rsp), %xmm0
movl $0x64, %esi
callq 0x3d98
movq %rbx, %rdi
callq 0x2b8a
movq 0x498e(%rip), %rdi      # 0xafd8
leaq 0x1c8f(%rip), %rsi      # 0x82e0
movl $0x1, %edx
callq 0x21e0
movq 0x4976(%rip), %r14      # 0xafd8
leaq 0x1da0(%rip), %rsi      # 0x8409
movl $0x17, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x4944(%rip), %rdi      # 0xafd8
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq 0x4930(%rip), %r14      # 0xafd8
leaq 0x1c55(%rip), %rsi      # 0x8304
movl $0x11, %edx
movq %r14, %rdi
callq 0x21e0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq 0x48fe(%rip), %rdi      # 0xafd8
callq 0x2040
movq %rax, %rdi
callq 0x2120
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x48de(%rip), %rdi      # 0xafd8
leaq 0x1d20(%rip), %rsi      # 0x8421
movl $0xb, %edx
callq 0x21e0
movq 0x48c6(%rip), %rdi      # 0xafd8
movsd 0x8(%rsp), %xmm0
callq 0x2260
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq 0x488a(%rip), %rdi      # 0xafd8
leaq 0x1cd8(%rip), %rsi      # 0x842d
movl $0x14, %edx
callq 0x21e0
movq 0x4872(%rip), %rdi      # 0xafd8
movl $0x64, %esi
callq 0x2290
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movsd 0x8(%rsp), %xmm1
mulsd 0x1b30(%rip), %xmm1     # 0x82d8
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x40(%rsp)
movq 0x4817(%rip), %rdi      # 0xafd8
leaq 0x1be6(%rip), %rsi      # 0x83ae
movl $0x12, %edx
callq 0x21e0
movl 0x40(%rsp), %esi
movq 0x47fb(%rip), %rdi      # 0xafd8
callq 0x2290
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
leaq 0x18(%rsp), %rdi
movsd 0x10(%rsp), %xmm0
callq 0x3fc6
movq %rbx, %rdi
callq 0x2b8a
leaq 0x4575(%rip), %rax      # 0xada0
leaq 0x58(%rsp), %rcx
movq %rax, -0x40(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x6842
callq 0x21b0
leaq 0x453f(%rip), %rax      # 0xad88
leaq 0xb0(%rsp), %rdi
movq %rax, -0x40(%rdi)
callq 0x300a
leaq 0xa0(%rsp), %rdi
callq 0x300a
leaq 0x90(%rsp), %rdi
callq 0x300a
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x6889
jmp 0x6890
jmp 0x6890
movq %rax, %rbx
jmp 0x68b1
jmp 0x6890
movq %rax, %rbx
leaq 0x4506(%rip), %rax      # 0xada0
leaq 0x58(%rsp), %rcx
movq %rax, -0x40(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x68b1
callq 0x21b0
leaq 0x70(%rsp), %rdi
callq 0x7060
movq %rbx, %rdi
callq 0x22b0