// File: /workspace/github_cpp_makefile_star2_O3/metopa[P]HTTP_Server/src/content/CFileContent.cpp
// Function: CFileContent::load()
void CFileContent::load() {
	ifstream is( realPath_m, ifstream::binary );
	if ( !is )
		throw FileNotFoundException( userPath_m.c_str(), "" );

	is.seekg( 0, is.end );
	size_m = (size_t) is.tellg();
	is.seekg( 0, is.beg );

	char * buf = new char[size_m];
	is.read( buf, size_m );

	size_m = (size_t) is.tellg();

	data_m.insert( data_m.begin(), buf, buf + size_m );
	delete[] buf;

	if ( !is.good() )
		throw FileErrorException( userPath_m.c_str() );

	is.close();

	modificationTime();
	creationTime();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %rbx
leaq 0x40(%rdi), %rsi
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movl $0x4, %edx
callq 0x5680
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
jne 0xe8de
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x5560
leaq 0x50(%rsp), %rdi
callq 0x5710
movq %rax, 0x60(%rbx)
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5560
movq 0x60(%rbx), %r15
movq %r15, %rdi
callq 0x5030
movq %rax, %r14
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x54f0
leaq 0x50(%rsp), %rdi
callq 0x5710
movq %rax, 0x60(%rbx)
leaq 0x8(%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r14, %rcx
addq %rax, %rcx
movq %r14, %rdx
callq 0xeaba
movq %r14, %rdi
callq 0x5500
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x70(%rsp,%rax)
jne 0xe957
leaq 0x50(%rsp), %rdi
callq 0x50e0
movq %rbx, %rdi
callq 0xea6a
movq %rbx, %rdi
callq 0xb3b8
leaq 0x50(%rsp), %rdi
callq 0x5110
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x48, %edi
callq 0x5200
movq %rax, %r14
movq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7ae4
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa5be(%rip), %rdx      # 0x18ecc
leaq 0x30(%rsp), %rdi
movq %rdx, %rsi
callq 0x8e2c
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x8492
leaq 0x12b11(%rip), %rax     # 0x21448
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x12a95(%rip), %rsi     # 0x213d8
leaq -0x6e28(%rip), %rdx     # 0x7b22
movq %r14, %rdi
callq 0x56f0
jmp 0xe9dc
movl $0x48, %edi
callq 0x5200
movq %rax, %r14
movq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x7ae4
leaq 0x12af2(%rip), %rax     # 0x21470
movq %rax, (%r14)
leaq 0x8(%r14), %rdi
leaq 0x18(%r14), %rax
movq %rax, 0x8(%r14)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movb $0x1, %bpl
callq 0x8d96
movq %r14, %rax
addq $0x38, %rax
movq %rax, 0x28(%r14)
movq $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
leaq 0x12c7f(%rip), %rax     # 0x21640
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x12c23(%rip), %rsi     # 0x215f0
leaq -0x6eb2(%rip), %rdx     # 0x7b22
movq %r14, %rdi
callq 0x56f0
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xea1b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53f0
jmp 0xea1b
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xea42
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53f0
jmp 0xea42
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xea36
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53f0
testb %bpl, %bpl
jne 0xea42
jmp 0xea57
jmp 0xea3f
movq %rax, %rbx
movq %r14, %rdi
callq 0x52e0
jmp 0xea57
jmp 0xea54
jmp 0xea54
jmp 0xea54
jmp 0xea54
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x5110
movq %rbx, %rdi
callq 0x5720
nop