// File: /workspace/github_cpp_makefile_star2_O3/Mespyr[P]bop-lisp/src/util.cpp
// Function: read_ascii_file[abi:cxx11](char const*)
std::string read_ascii_file(const char* path) 
{
    // file
	std::fstream file;
	file.open(path, std::ios::in);
    std::string code;

	if (!file) 
	{
		std::cout << "Error: No such file or directory '" << path << "'" << std::endl;
        exit(1);
	}
	else 
	{
		std::string ch;
		
		while (getline(file, ch))
		{  
			code += ch + '\n';  
		}
	}
	file.close();
	return code+"\0";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x2a0(%rbp), %r14
movq %r14, %rdi
callq 0x22b0
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x21f0
movq %rbx, -0x90(%rbp)
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq -0x2a0(%rbp), %rax
movq -0x18(%rax), %rcx
testb $0x5, -0x280(%rbp,%rcx)
jne 0x12139
leaq -0x58(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
leaq -0x38(%rbp), %rbx
leaq -0x68(%rbp), %r15
leaq -0x48(%rbp), %r12
leaq -0x88(%rbp), %r13
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x23c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x120a4
movq %rbx, -0x48(%rbp)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3688
movq -0x40(%rbp), %rsi
movl $0x1, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl $0xa, %r8d
callq 0x23d0
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r13, %rdi
callq 0x20f0
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x12098
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x2a0(%rbp), %rax
jmp 0x12016
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x120bd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x2a0(%rbp), %rdi
callq 0x2060
movq -0x90(%rbp), %r15
leaq 0x10(%r15), %rbx
movq %rbx, (%r15)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3688
leaq 0x1e61(%rip), %rsi      # 0x13f55
movq %r15, %rdi
callq 0x23e0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x12118
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x2a0(%rbp), %rdi
callq 0x20b0
movq %r15, %rax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6e88(%rip), %rdi      # 0x18fc8
leaq 0x1deb(%rip), %rsi      # 0x13f32
movl $0x22, %edx
callq 0x2290
movq 0x6e70(%rip), %rdi      # 0x18fc8
movq %r15, %rsi
callq 0x2220
movq %rax, %rbx
leaq 0x1dba(%rip), %rsi      # 0x13f24
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x2130
movl $0x1, %edi
callq 0x22c0
movq %rax, %r14
movq (%r15), %rdi
cmpq %rbx, %rdi
je 0x121dd
movq (%rbx), %rsi
jmp 0x121d5
movq %rax, %r14
jmp 0x121f9
movq %rax, %r14
jmp 0x121dd
jmp 0x121a5
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x121c4
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0x121c4
jmp 0x121c1
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x121dd
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x121f9
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x2a0(%rbp), %rdi
callq 0x20b0
movq %r14, %rdi
callq 0x23a0