// File: /workspace/github_cpp_makefile_star2_O2/chrissimpkins[P]octopus/src/io.cpp
// Function: IO::read_file[abi:cxx11]()
string& IO::read_file(){
	//if the path variable is assigned in constructor
	if (!path.empty()){
		try{
			ifstream infile(path);
			if (infile.good()){
				// define the input string from the calling function with the reference that was passed in
				ifstream& inr = infile;
				get_string(inr);
				string& isr = inputstring;
				infile.close();
				return isr;
			}
			else{
				throw runtime_error("Unable to open the input file " + path);
			}
		}
		catch(...){
			print_error("Unable to open the input file " + path);
		}
	}
	//otherwise use the ipath from constructor
	else if (!ipath.empty()) {
		try{
			ifstream infile(ipath);
			if (infile.good()){
				// define the input string from the calling function with the reference that was passed in
				ifstream& inr = infile;
				get_string(inr);
				string& isr = inputstring;
				infile.close();
				return isr;
			}
			else{
				throw runtime_error("Unable to open the input file " + path);
			}
		}
		catch (...){
			print_error("Unable to open the input file " + path);
		}
	}
	else{
		throw runtime_error("Missing a file path for the input file.");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x997f
leaq 0x60(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x3370
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x80(%rsp,%rax)
jne 0x99e8
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x9bb8
leaq 0x60(%rsp), %rdi
callq 0x3050
jmp 0x99c9
cmpq $0x0, 0x28(%rbx)
je 0x9a2d
leaq 0x20(%rbx), %rsi
leaq 0x60(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x3370
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x80(%rsp,%rax)
jne 0x9a5d
leaq 0x60(%rsp), %rsi
movq %rbx, %rdi
callq 0x9bb8
leaq 0x60(%rsp), %rdi
callq 0x3050
leaq 0x60(%rsp), %rdi
callq 0x3070
addq $0x60, %rbx
movq %rbx, %rax
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x3130
movq %rax, %r14
leaq 0x2d88(%rip), %rsi      # 0xc782
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x81b2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x3380
xorl %ebp, %ebp
movq 0x65d4(%rip), %rsi      # 0xfff0
movq 0x659d(%rip), %rdx      # 0xffc0
movq %r14, %rdi
callq 0x33a0
jmp 0x9aa0
pushq $0x10
popq %rdi
callq 0x3130
movq %rax, %r14
leaq 0x2d62(%rip), %rsi      # 0xc7a1
movq %rax, %rdi
callq 0x30c0
movq 0x65a2(%rip), %rsi      # 0xfff0
movq 0x656b(%rip), %rdx      # 0xffc0
movq %r14, %rdi
callq 0x33a0
pushq $0x10
popq %rdi
callq 0x3130
movq %rax, %r14
leaq 0x2d13(%rip), %rsi      # 0xc782
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x81b2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x3380
xorl %ebp, %ebp
movq 0x655f(%rip), %rsi      # 0xfff0
movq 0x6528(%rip), %rdx      # 0xffc0
movq %r14, %rdi
callq 0x33a0
movq %rax, %r15
movq %rsp, %rdi
callq 0x3100
testb %bpl, %bpl
jne 0x9ab5
jmp 0x9af3
movq %rax, %r15
movq %r14, %rdi
callq 0x3180
jmp 0x9af3
movq %rax, %rbx
movq %r14, %rdi
callq 0x3180
jmp 0x9ba8
movq %rax, %r15
movq %rsp, %rdi
callq 0x3100
testb %bpl, %bpl
jne 0x9ae4
jmp 0x9b34
movq %rax, %r15
movq %r14, %rdi
callq 0x3180
jmp 0x9b34
jmp 0x9af0
movq %rax, %r15
leaq 0x60(%rsp), %rdi
callq 0x3070
jmp 0x9b02
movq %rax, %r15
movq %r15, %rdi
callq 0x30d0
leaq 0x2c71(%rip), %rsi      # 0xc782
leaq 0x20(%rsp), %rdi
movq %rbx, %rdx
callq 0x81b2
leaq 0x20(%rsp), %rdi
callq 0x817a
leaq 0x20(%rsp), %rdi
jmp 0x9b6e
jmp 0x9b31
movq %rax, %r15
leaq 0x60(%rsp), %rdi
callq 0x3070
jmp 0x9b43
movq %rax, %r15
movq %r15, %rdi
callq 0x30d0
leaq 0x2c30(%rip), %rsi      # 0xc782
leaq 0x40(%rsp), %rdi
movq %rbx, %rdx
callq 0x81b2
leaq 0x40(%rsp), %rdi
callq 0x817a
leaq 0x40(%rsp), %rdi
callq 0x3100
callq 0x3390
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3100
jmp 0x9b8a
movq %rax, %rbx
callq 0x3390
jmp 0x9ba8
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x3100
jmp 0x9ba3
movq %rax, %rbx
callq 0x3390
movq %rbx, %rdi
callq 0x33b0
movq %rax, %rdi
callq 0x8d11