// File: /workspace/github_cpp_makefile_star2_O3/xelia-it[P]mustache/src/mustache-light.cpp
// Function: mustache::Mustache::fileRead(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string Mustache::fileRead(const string& fileName, const string& fileExtension) {
        const string realFileName = basePath_ + fileName + "." + fileExtension;
        std::ifstream in(realFileName.c_str(), std::ios::in | std::ios::binary);
        if (in) {
                string contents;
                in.seekg(0, std::ios::end);
                contents.resize(in.tellg());
                in.seekg(0, std::ios::beg);
                in.read(&contents[0], contents.size());
                in.close();
                return (contents);
        }
        error("Cannot open file: " + realFileName);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x250, %rsp            # imm = 0x250
movq %rcx, %r14
movq %rdi, %rbx
leaq -0x60(%rbp), %r15
movq %r15, %rdi
callq 0x186c0
leaq 0x16342(%rip), %rsi     # 0x2fccb
movq %r15, %rdi
callq 0x18660
leaq -0x258(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x199bf
movq %rdx, -0x268(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x258(%rbp)
jmp 0x199c7
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq -0x268(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x172b0
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x19a15
movq %rdx, -0x40(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x30(%rbp)
jmp 0x19a1c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x38(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x268(%rbp), %rdi
cmpq %r12, %rdi
je 0x19a44
callq 0x17ae0
leaq -0x50(%rbp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x19a57
callq 0x17ae0
movq -0x40(%rbp), %rsi
leaq -0x268(%rbp), %rdi
movl $0xc, %edx
callq 0x18560
movq -0x268(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x5, -0x248(%rbp,%rax)
jne 0x19b20
leaq 0x10(%rbx), %r12
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
leaq -0x268(%rbp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x17ec0
leaq -0x268(%rbp), %rdi
callq 0x18430
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x17290
leaq -0x268(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x17ec0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
leaq -0x268(%rbp), %rdi
callq 0x17de0
leaq -0x268(%rbp), %rdi
callq 0x17190
leaq -0x268(%rbp), %rdi
callq 0x171d0
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x19b0d
callq 0x17ae0
movq %rbx, %rax
addq $0x250, %rsp            # imm = 0x250
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1615e(%rip), %rsi     # 0x2fc85
leaq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x17a50
leaq -0x60(%rbp), %rsi
callq 0x17e50
movq %rax, %r14
movq -0x60(%rbp), %rdi
jmp 0x19b80
movq %rax, %r14
jmp 0x19b8a
movq %rax, %r14
jmp 0x19b96
movq %rax, %r14
movq -0x268(%rbp), %rdi
cmpq %r12, %rdi
je 0x19b69
callq 0x17ae0
jmp 0x19b69
movq %rax, %r14
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x19b9f
jmp 0x19ba4
jmp 0x19b7a
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x19b8a
callq 0x17ae0
leaq -0x268(%rbp), %rdi
callq 0x171d0
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x19ba4
callq 0x17ae0
movq %r14, %rdi
callq 0x18490