// File: /workspace/github_cpp_makefile_star2_O1/mrGoncharuk[P]foldermonitor/src/FileReader.cpp
// Function: FileReader::extractData(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string FileReader::extractData(const std::string &fname)
{
	syslog(LOG_NOTICE, "FR> Start processing <%s>", fname.c_str());
	std::string		query = "INSERT INTO filedata VALUES('";
	std::ifstream 	ifs(fname.c_str());
	std::string		data;
	if (ifs)
	{
		std::getline(ifs, data, ':');
		query = query + data + "','";
		std::getline(ifs, data, ':');
		query = query + data + "');";
		ifs.close();
		syslog(LOG_NOTICE, "FR> first query <%s>", query.c_str());
		syslog(LOG_NOTICE, "FR> File <%s>, processed successfully.", fname.c_str());
	}
	else
		syslog(LOG_ERR, "FR> Error while opening file <%s>", fname.c_str());
	return (query);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdx
leaq 0x14bb(%rip), %rsi      # 0x45e8
movl $0x5, %edi
xorl %eax, %eax
callq 0x2050
leaq 0x10(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rbx)
leaq 0x14b6(%rip), %rsi      # 0x4602
leaq 0x14cc(%rip), %rdx      # 0x461f
movq %rbx, %rdi
callq 0x2aac
movq (%r14), %rsi
leaq 0x70(%rsp), %rdi
movl $0x8, %edx
callq 0x2320
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
movq 0x70(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x90(%rsp,%rax)
je 0x31a7
leaq 0x14c7(%rip), %rsi      # 0x4664
movl $0x3, %ebp
jmp 0x3324
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x3a, %edx
callq 0x2330
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %rbx, %rsi
callq 0x33c1
leaq 0x144c(%rip), %rsi      # 0x4620
leaq 0x10(%rsp), %rdi
callq 0x2350
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3205
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x320c
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2220
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x3240
callq 0x21c0
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x3254
callq 0x21c0
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl $0x3a, %edx
callq 0x2330
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
movq %rbx, %rsi
callq 0x33c1
leaq 0x13a3(%rip), %rsi      # 0x4624
leaq 0x10(%rsp), %rdi
callq 0x2350
movq %rbp, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x32ae
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x32b5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2220
movq (%r15), %rdi
cmpq %rbp, %rdi
je 0x32e9
callq 0x21c0
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x32f8
callq 0x21c0
leaq 0x70(%rsp), %rdi
callq 0x2060
movq (%rbx), %rdx
movl $0x5, %ebp
leaq 0x1317(%rip), %rsi      # 0x4628
movl $0x5, %edi
xorl %eax, %eax
callq 0x2050
leaq 0x1319(%rip), %rsi      # 0x463d
movq (%r14), %rdx
movl %ebp, %edi
xorl %eax, %eax
callq 0x2050
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x333f
callq 0x21c0
leaq 0x70(%rsp), %rdi
callq 0x2070
movq %rbx, %rax
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
jne 0x3380
jmp 0x3391
jmp 0x338e
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3391
callq 0x21c0
jmp 0x3391
jmp 0x338e
movq %rax, %r14
jmp 0x33aa
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x33a0
callq 0x21c0
leaq 0x70(%rsp), %rdi
callq 0x2070
movq (%rbx), %rdi
cmpq 0x8(%rsp), %rdi
je 0x33b9
callq 0x21c0
movq %r14, %rdi
callq 0x22e0