// File: /workspace/github_cpp_makefile_star2_O1/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 0x5486
leaq 0xa19e(%rip), %rdi      # 0xe0c8
movq %rbx, -0x30(%rbp)
movq %rbx, %rsi
callq 0x60fc
movq 0xa18b(%rip), %rdi      # 0xe0c8
movq 0xa18c(%rip), %rsi      # 0xe0d0
callq 0x6137
cvtsi2sdl 0xa0ff(%rip), %xmm0 # 0xe050
movq -0x30(%rbp), %rax
addsd 0x60(%rax), %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xa0ec(%rip)      # 0xe050
leaq 0x3198(%rip), %rdi      # 0x7103
callq 0x2120
leaq 0x81d9(%rip), %rdi      # 0xc150
movq -0x40(%rbp), %rsi
callq 0x20a0
leaq 0x8589(%rip), %rdi      # 0xc510
movq -0x38(%rbp), %rsi
callq 0x20a0
callq 0x39bf
movq $-0x1e0, %r13           # imm = 0xFE20
xorl %r14d, %r14d
leaq 0x668a(%rip), %r15      # 0xa630
leaq 0x3199(%rip), %r12      # 0x7146
movq 0x601c(%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 0x4068
leaq 0x30d5(%rip), %rdi      # 0x7103
callq 0x2120
callq 0x39bf
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 0x3fb4
leaq 0x3094(%rip), %rdi      # 0x7103
callq 0x2120
leaq 0x82b5(%rip), %rdi      # 0xc330
leaq -0x80(%rbp), %rsi
callq 0x20a0
callq 0x39bf
movq 0x82a8(%rip), %rdx      # 0xc338
leaq 0x8299(%rip), %rdi      # 0xc330
leaq 0x30a8(%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 0x5486
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
movq 0x5ef6(%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 0x4117
callq 0x2140
movq 0x5eb2(%rip), %rdi      # 0x9fd0
leaq 0x3023(%rip), %rsi      # 0x7148
movl $0x17, %edx
callq 0x2180
movl 0x9f1b(%rip), %esi      # 0xe050
movq 0x5e94(%rip), %rdi      # 0x9fd0
callq 0x2220
movq %rax, %rbx
leaq 0x3015(%rip), %rsi      # 0x7160
movl $0x9, %edx
movq %rax, %rdi
callq 0x2180
movq 0x9f69(%rip), %rax      # 0xe0c8
leaq -0x60(%rbp), %rdi
movq %r14, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x5486
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 0x41bd
callq 0x2140
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x41cf
callq 0x2140
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x41fb
jmp 0x41fb
jmp 0x41fb
jmp 0x41e6
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x41fe
callq 0x2140
jmp 0x41fe
jmp 0x41fb
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4210
callq 0x2140
movq %rbx, %rdi
callq 0x2230