// File: /workspace/github_cpp_makefile_star2_O1/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), %rax
testb $0x5, -0x280(%rbp,%rax)
jne 0x1213d
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x38(%rbp), %rbx
leaq -0x68(%rbp), %r15
leaq -0x48(%rbp), %r12
leaq -0x88(%rbp), %r13
movq -0x2a0(%rbp), %rax
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 0x120a8
movq %rbx, -0x48(%rbp)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x367e
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 0x1201a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0x1201a
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x120c1
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 0x367e
leaq 0x1e5d(%rip), %rsi      # 0x13f55
movq %r15, %rdi
callq 0x23e0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x1211c
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 0x6e84(%rip), %rdi      # 0x18fc8
leaq 0x1de7(%rip), %rsi      # 0x13f32
movl $0x22, %edx
callq 0x2290
movq 0x6e6c(%rip), %rdi      # 0x18fc8
movq %r15, %rsi
callq 0x2220
movq %rax, %rbx
leaq 0x1db6(%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 0x121e1
movq (%rbx), %rsi
jmp 0x121d9
movq %rax, %r14
jmp 0x121fd
movq %rax, %r14
jmp 0x121e1
jmp 0x121a9
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x121c8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0x121c8
jmp 0x121c5
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x121e1
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x121fd
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x2a0(%rbp), %rdi
callq 0x20b0
movq %r14, %rdi
callq 0x23a0