// File: jovermann[P]streplace/src/MiscUtils.cpp
// Function: ut1::readFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string readFile(const std::string& filename)
{
    std::ifstream is(filename, std::ios::in | std::ios::binary | std::ios::ate);
    if (!is)
    {
        throw std::runtime_error("readFile(" + filename + "): Error while opening file for reading.");
    }
    size_t size = is.tellg();
    is.seekg(0, is.beg);
    std::string r(size, '\0');
    is.read(&r[0], size);
    return r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp            # imm = 0x2E0
movq %rdi, -0x2a8(%rbp)
movq %rdi, %rax
movq %rax, -0x2a0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x298(%rbp)
movl $0x8, %edi
movl $0x4, %esi
callq 0x13e40
movl %eax, %edi
movl $0x2, %esi
callq 0x13e40
movq -0x298(%rbp), %rsi
movl %eax, %edx
leaq -0x218(%rbp), %rdi
callq 0x7940
movq -0x218(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x218(%rbp,%rax), %rdi
callq 0x72e0
movb %al, -0x28b(%rbp)
jmp 0x12f1f
movb -0x28b(%rbp), %al
testb $0x1, %al
jne 0x12f2e
jmp 0x1303b
movb $0x1, -0x269(%rbp)
movl $0x10, %edi
callq 0x7310
movq %rax, -0x2b0(%rbp)
movq -0x10(%rbp), %rdx
leaq 0x377f9(%rip), %rsi     # 0x4a74a
leaq -0x268(%rbp), %rdi
callq 0xb5b0
jmp 0x12f5f
leaq 0x377ee(%rip), %rdx     # 0x4a754
leaq -0x248(%rbp), %rdi
leaq -0x268(%rbp), %rsi
callq 0xb720
jmp 0x12f7b
movq -0x2b0(%rbp), %rdi
leaq -0x248(%rbp), %rsi
callq 0x7950
jmp 0x12f90
movq -0x2b0(%rbp), %rdi
movb $0x0, -0x269(%rbp)
movq 0x57043(%rip), %rsi     # 0x69fe8
movq 0x56fe4(%rip), %rdx     # 0x69f90
callq 0x79d0
jmp 0x131c1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
jmp 0x131a9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
jmp 0x1301f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
jmp 0x13013
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
leaq -0x248(%rbp), %rdi
callq 0x73c0
leaq -0x268(%rbp), %rdi
callq 0x73c0
testb $0x1, -0x269(%rbp)
jne 0x1302a
jmp 0x13036
movq -0x2b0(%rbp), %rdi
callq 0x74a0
jmp 0x131a9
leaq -0x218(%rbp), %rdi
callq 0x7a00
movq %rdx, -0x2c0(%rbp)
movq %rax, -0x2b8(%rbp)
jmp 0x13057
movq -0x2c0(%rbp), %rax
movq -0x2b8(%rbp), %rcx
movq %rcx, -0x288(%rbp)
movq %rax, -0x280(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x13e60
movq %rax, -0x2c8(%rbp)
jmp 0x13088
movq -0x2c8(%rbp), %rax
movq %rax, -0x278(%rbp)
xorl %edx, %edx
movl %edx, %esi
leaq -0x218(%rbp), %rdi
callq 0x7840
jmp 0x130a8
movb $0x0, -0x289(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x2d8(%rbp)
leaq -0x28a(%rbp), %rdi
movq %rdi, -0x2d0(%rbp)
callq 0x7a50
movq -0x2a8(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
movq -0x2d0(%rbp), %rcx
xorl %edx, %edx
callq 0xb7c0
jmp 0x130ee
leaq -0x28a(%rbp), %rdi
callq 0x7670
movq -0x2a8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x7b50
movq %rax, -0x2e0(%rbp)
jmp 0x13113
movq -0x2e0(%rbp), %rsi
movq -0x278(%rbp), %rdx
leaq -0x218(%rbp), %rdi
callq 0x7790
jmp 0x1312f
movb $0x1, -0x289(%rbp)
testb $0x1, -0x289(%rbp)
jne 0x1318d
jmp 0x13181
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
leaq -0x28a(%rbp), %rdi
callq 0x7670
jmp 0x131a9
movq -0x2a8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x220(%rbp)
movl %eax, -0x224(%rbp)
callq 0x73c0
jmp 0x131a9
movq -0x2a8(%rbp), %rdi
callq 0x73c0
leaq -0x218(%rbp), %rdi
callq 0x7150
movq -0x2a0(%rbp), %rax
addq $0x2e0, %rsp            # imm = 0x2E0
popq %rbp
retq
leaq -0x218(%rbp), %rdi
callq 0x7150
movq -0x220(%rbp), %rdi
callq 0x7a30
nopw %cs:(%rax,%rax)