// File: /workspace/github_cpp_makefile_star2_O3/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 0x14b3(%rip), %rsi      # 0x45e8
movl $0x5, %edi
xorl %eax, %eax
callq 0x2050
leaq 0x10(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %rax, (%rbx)
leaq 0x14ae(%rip), %rsi      # 0x4602
leaq 0x14c4(%rip), %rdx      # 0x461f
movq %rbx, %rdi
callq 0x2a9c
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 0x31af
leaq 0x14bf(%rip), %rsi      # 0x4664
movl $0x3, %ebp
jmp 0x332c
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 0x33c9
leaq 0x1444(%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 0x320d
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x3214
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 0x3248
callq 0x21c0
leaq 0x20(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x325c
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 0x33c9
leaq 0x139b(%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 0x32b6
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x32bd
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 0x32f1
callq 0x21c0
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x3300
callq 0x21c0
leaq 0x70(%rsp), %rdi
callq 0x2060
movq (%rbx), %rdx
movl $0x5, %ebp
leaq 0x130f(%rip), %rsi      # 0x4628
movl $0x5, %edi
xorl %eax, %eax
callq 0x2050
leaq 0x1311(%rip), %rsi      # 0x463d
movq (%r14), %rdx
movl %ebp, %edi
xorl %eax, %eax
callq 0x2050
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x3347
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 0x3388
jmp 0x3399
jmp 0x3396
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3399
callq 0x21c0
jmp 0x3399
jmp 0x3396
movq %rax, %r14
jmp 0x33b2
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x33a8
callq 0x21c0
leaq 0x70(%rsp), %rdi
callq 0x2070
movq (%rbx), %rdi
cmpq 0x8(%rsp), %rdi
je 0x33c1
callq 0x21c0
movq %r14, %rdi
callq 0x22e0