// File: /workspace/github_cpp_makefile_star2_O1/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 0x5690
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x70(%rsp,%rax)
jne 0xe95e
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x5560
leaq 0x50(%rsp), %rdi
callq 0x5720
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 0x5720
movq %rax, 0x60(%rbx)
leaq 0x8(%rbx), %rdi
movq 0x8(%rbx), %rsi
movq %r14, %rcx
addq %rax, %rcx
movq %r14, %rdx
callq 0xeb24
movq %r14, %rdi
callq 0x5500
movq 0x50(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x70(%rsp,%rax)
jne 0xe9d7
leaq 0x50(%rsp), %rdi
callq 0x50e0
movq %rbx, %rdi
callq 0xead4
movq %rbx, %rdi
callq 0xb498
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 0x7bea
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa53e(%rip), %rdx      # 0x18ecc
leaq 0x30(%rsp), %rdi
movq %rdx, %rsi
callq 0x8f0e
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x857a
leaq 0x12a59(%rip), %rax     # 0x21410
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x129dd(%rip), %rsi     # 0x213a0
leaq -0x6da2(%rip), %rdx     # 0x7c28
movq %r14, %rdi
callq 0x5700
jmp 0xea5c
movl $0x48, %edi
callq 0x5200
movq %rax, %r14
movq 0x20(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x7bea
leaq 0x12a3a(%rip), %rax     # 0x21438
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 0x8e7e
movq %r14, %rax
addq $0x38, %rax
movq %rax, 0x28(%r14)
movq $0x0, 0x30(%r14)
movb $0x0, 0x38(%r14)
leaq 0x12bc7(%rip), %rax     # 0x21608
movq %rax, (%r14)
xorl %ebp, %ebp
leaq 0x12b6b(%rip), %rsi     # 0x215b8
leaq -0x6e2c(%rip), %rdx     # 0x7c28
movq %r14, %rdi
callq 0x5700
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xea83
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53f0
jmp 0xea83
movq %rax, %rbx
movb $0x1, %bpl
jmp 0xea83
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xeaa8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x53f0
jmp 0xeaa8
jmp 0xeaa2
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xeac2
movq %r14, %rdi
callq 0x52e0
jmp 0xeac2
jmp 0xeabf
jmp 0xeabf
jmp 0xeabf
jmp 0xeabf
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x5110
movq %rbx, %rdi
callq 0x5730