// File: 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
subq $0x330, %rsp            # imm = 0x330
movq %rdi, -0x2f0(%rbp)
movq %rdi, %rax
movq %rax, -0x2e8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0x2e0(%rbp)
movq -0x18(%rbp), %rdx
leaq -0x80(%rbp), %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x6e180
movq -0x2d8(%rbp), %rsi
leaq 0x39e5f(%rip), %rdx     # 0xa96c8
leaq -0x60(%rbp), %rdi
callq 0x678d0
jmp 0x6f874
movq -0x20(%rbp), %rdx
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x6c540
jmp 0x6f887
leaq -0x60(%rbp), %rdi
callq 0x6e458
leaq -0x80(%rbp), %rdi
callq 0x6e458
leaq -0x40(%rbp), %rdi
callq 0x683f0
movq %rax, -0x300(%rbp)
movl $0x8, %edi
movl $0x4, %esi
callq 0x6d9d0
movl %eax, -0x2f4(%rbp)
jmp 0x6f8c0
movl -0x2f4(%rbp), %edx
movq -0x300(%rbp), %rsi
leaq -0x298(%rbp), %rdi
callq 0x6db50
jmp 0x6f8db
movq -0x298(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x298(%rbp,%rax), %rdi
callq 0x6b840
movb %al, -0x301(%rbp)
jmp 0x6f8fb
movb -0x301(%rbp), %al
testb $0x1, %al
jne 0x6f90a
jmp 0x6fac8
movq -0x2f0(%rbp), %rdi
movb $0x0, -0x299(%rbp)
callq 0x6bf40
xorl %eax, %eax
movl %eax, %esi
leaq -0x298(%rbp), %rdi
movl $0x2, %edx
callq 0x6bc60
jmp 0x6f934
leaq -0x298(%rbp), %rdi
callq 0x6d530
movq %rdx, -0x318(%rbp)
movq %rax, -0x310(%rbp)
jmp 0x6f950
movq -0x318(%rbp), %rax
movq -0x310(%rbp), %rcx
movq %rcx, -0x2b0(%rbp)
movq %rax, -0x2a8(%rbp)
leaq -0x2b0(%rbp), %rdi
callq 0x68fb0
movq %rax, -0x320(%rbp)
jmp 0x6f981
movq -0x320(%rbp), %rsi
movq -0x2f0(%rbp), %rdi
callq 0x6bef0
jmp 0x6f996
xorl %edx, %edx
movl %edx, %esi
leaq -0x298(%rbp), %rdi
callq 0x6bc60
jmp 0x6f9a8
movq -0x2f0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x6e320
movq %rax, -0x328(%rbp)
jmp 0x6f9c1
movq -0x2f0(%rbp), %rdi
callq 0x69740
movq -0x328(%rbp), %rsi
movq %rax, %rdx
leaq -0x298(%rbp), %rdi
callq 0x6b8b0
jmp 0x6f9e5
leaq -0x298(%rbp), %rdi
callq 0x677e0
jmp 0x6f9f3
movb $0x1, -0x299(%rbp)
testb $0x1, -0x299(%rbp)
jne 0x6faa3
jmp 0x6fa97
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x6fa3b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x6e458
leaq -0x80(%rbp), %rdi
callq 0x6e458
jmp 0x6fb29
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x6fb20
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x6fb14
movq -0x2f0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
callq 0x6e458
jmp 0x6fb14
movq -0x2f0(%rbp), %rdi
callq 0x6e458
leaq -0x298(%rbp), %rdi
callq 0x67aa0
leaq -0x40(%rbp), %rdi
callq 0x6e458
movq -0x2e8(%rbp), %rax
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq
leaq 0x39bb3(%rip), %rsi     # 0xa9682
leaq -0x2d0(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x6a3b0
jmp 0x6fae1
movq -0x2e0(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x6ba10
jmp 0x6faf6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x2d0(%rbp), %rdi
callq 0x6e458
leaq -0x298(%rbp), %rdi
callq 0x67aa0
leaq -0x40(%rbp), %rdi
callq 0x6e458
movq -0x88(%rbp), %rdi
callq 0x6d7b0
nopw %cs:(%rax,%rax)