// File: /workspace/github_cpp_makefile_star2_O3/JoshCplusplus[P]Chemistry-Atom-Simulator-/main.cc
// Function: sim_board(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, molecule)
void sim_board(string obj1, string obj2, molecule molec){
	string mol = molec.get_name();
	avmol.push(molec);
	tot_energy += molec.get_energy();
	system("clear");
	int pos1 = 217;
	int pos2 = 247;
	board[pos1] = obj1;
	board[pos2] = obj2;
	print_board();
	while(pos1 != pos2){
		board[pos1] = "*";
		board[pos2] = "*";
		board[++pos1] = obj1;
		board[--pos2] = obj2;
		if(pos1 == pos2) break;
		system("clear");
		print_board();
		cout << endl;
	}
	system("clear");
	board[pos1] = mol;
	print_board();
	board[pos1] = "*";
	cout << molec.get_message() << endl;
	cout << "\nTotal Energy(Kj/mol): " << tot_energy << "  H.E.M: " << avmol.top().get_name() << endl;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rsi, -0x38(%rbp)
movq %rdi, -0x40(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x54a8
leaq 0xa1a2(%rip), %rdi      # 0xe0c8
movq %rbx, -0x30(%rbp)
movq %rbx, %rsi
callq 0x6122
movq 0xa18f(%rip), %rdi      # 0xe0c8
movq 0xa190(%rip), %rsi      # 0xe0d0
callq 0x615d
cvtsi2sdl 0xa103(%rip), %xmm0 # 0xe050
movq -0x30(%rbp), %rax
addsd 0x60(%rax), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xa0f0(%rip)      # 0xe050
leaq 0x319c(%rip), %rdi      # 0x7103
callq 0x2120
leaq 0x81dd(%rip), %rdi      # 0xc150
movq -0x40(%rbp), %rsi
callq 0x20a0
leaq 0x858d(%rip), %rdi      # 0xc510
movq -0x38(%rbp), %rsi
callq 0x20a0
callq 0x39bb
movq $-0x1e0, %r13           # imm = 0xFE20
xorl %r14d, %r14d
leaq 0x668e(%rip), %r15      # 0xa630
leaq 0x319d(%rip), %r12      # 0x7146
movq 0x6020(%rip), %rbx      # 0x9fd0
leaq (%r15,%r13), %rdi
addq $0x1d00, %rdi           # imm = 0x1D00
movq 0x8(%rdi), %rdx
movl $0x1, %r8d
xorl %esi, %esi
movq %r12, %rcx
callq 0x2200
leaq (%r14,%r15), %rdi
addq $0x1ee0, %rdi           # imm = 0x1EE0
movq 0x8(%rdi), %rdx
movl $0x1, %r8d
xorl %esi, %esi
movq %r12, %rcx
callq 0x2200
leaq (%r15,%r13), %rdi
addq $0x1d20, %rdi           # imm = 0x1D20
movq -0x40(%rbp), %rsi
callq 0x20a0
leaq (%r14,%r15), %rdi
addq $0x1ec0, %rdi           # imm = 0x1EC0
movq -0x38(%rbp), %rsi
callq 0x20a0
addq $-0x20, %r14
cmpq $-0x1e0, %r14           # imm = 0xFE20
je 0x4064
leaq 0x30d9(%rip), %rdi      # 0x7103
callq 0x2120
callq 0x39bb
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
addq $0x20, %r13
movq %rax, %rdi
callq 0x20d0
jmp 0x3fb0
leaq 0x3098(%rip), %rdi      # 0x7103
callq 0x2120
leaq 0x82b9(%rip), %rdi      # 0xc330
leaq -0x80(%rbp), %rsi
callq 0x20a0
callq 0x39bb
movq 0x82ac(%rip), %rdx      # 0xc338
leaq 0x829d(%rip), %rdi      # 0xc330
leaq 0x30ac(%rip), %rcx      # 0x7146
movl $0x1, %r8d
xorl %esi, %esi
callq 0x2200
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
movq -0x30(%rbp), %rax
movq 0x68(%rax), %rsi
movq 0x70(%rax), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x54a8
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq 0x5efa(%rip), %rdi      # 0x9fd0
callq 0x2180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x4113
callq 0x2140
movq 0x5eb6(%rip), %rdi      # 0x9fd0
leaq 0x3027(%rip), %rsi      # 0x7148
movl $0x17, %edx
callq 0x2180
movl 0x9f1f(%rip), %esi      # 0xe050
movq 0x5e98(%rip), %rdi      # 0x9fd0
callq 0x2220
movq %rax, %rbx
leaq 0x3019(%rip), %rsi      # 0x7160
movl $0x9, %edx
movq %rax, %rdi
callq 0x2180
movq 0x9f6d(%rip), %rax      # 0xe0c8
leaq -0x60(%rbp), %rdi
movq %r14, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x54a8
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq %rbx, %rdi
callq 0x2180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x41b9
callq 0x2140
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x41cb
callq 0x2140
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x41f7
jmp 0x41f7
jmp 0x41f7
jmp 0x41e2
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x41fa
callq 0x2140
jmp 0x41fa
jmp 0x41f7
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x420c
callq 0x2140
movq %rbx, %rdi
callq 0x2230