// File: /workspace/github_cpp_makefile_star2_O3/DoubleString[P]RtConverter/src/Rnxobs/Log.cpp
// Function: bamboo::Log::m_openLog(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
void Log::m_openLog(string filName,int interval){
	map<string, LogItem*>::iterator itr;
	itr = mapOut.find(string(filName));
	if (itr != mapOut.end()) {
		cout << "***WARINING(m_openLog):existing the same file " << filName
				<< endl;
		return;
	}
	ofstream* out = new ofstream;
	LogItem* item = new LogItem(interval);
	item->lupd = true;
	item->of = out;
	out->open(filName.c_str(), ios::out);
	if (!(*out)) {
		cout << "can't create logger file " << filName << ",please check the directory is exist!" << endl;
		exit(1);
	}
	def_lock(&_lock);
	this->mapOut.insert(pair<string, LogItem*>(filName, item));
	def_unlock(&_lock);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x40(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %r12
movq %r12, %rdi
callq 0x111e0
movq %r14, %rdi
movq %r12, %rsi
callq 0x2204a
movq %rax, %r12
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x2107c
callq 0x85d0
leaq 0x8(%r14), %rax
cmpq %rax, %r12
je 0x210de
movq 0x6cf44(%rip), %r14     # 0x8dfd0
leaq 0x4a3ed(%rip), %rsi     # 0x6b480
movl $0x2e, %edx
movq %r14, %rdi
callq 0x8720
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x8720
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8600
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8050
movq %rax, %rdi
callq 0x8450
jmp 0x211b3
movl $0x200, %edi            # imm = 0x200
callq 0x8640
movq %rax, %r13
movq %rax, %rdi
callq 0x8ae0
movl $0x18, %edi
callq 0x8640
movq %rax, %r12
movq $0x0, (%rax)
movl %r15d, 0x10(%rax)
movl $0x0, 0x14(%rax)
leaq 0x8(%rax), %rdi
callq 0x85b0
movq 0x8(%r12), %rcx
movslq %r15d, %rsi
movq %rcx, %rax
cqto
idivq %rsi
subq %rdx, %rcx
movq %rcx, 0x8(%r12)
movl $0x1, 0x14(%r12)
movq %r13, (%r12)
movq (%rbx), %rsi
movq %r13, %rdi
movl $0x10, %edx
callq 0x8090
movq (%r13), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r13,%rax)
jne 0x211c2
leaq 0x60(%r14), %r15
movq %r15, %rdi
callq 0x8900
leaq -0x50(%rbp), %r13
leaq -0x40(%rbp), %rax
movq %rax, (%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x111e0
movq %r12, 0x20(%r13)
movq %r14, %rdi
movq %r13, %rsi
callq 0x220e8
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x211ab
callq 0x85d0
movq %r15, %rdi
callq 0x84b0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6ce07(%rip), %rdi     # 0x8dfd0
leaq 0x4a318(%rip), %rsi     # 0x6b4e8
callq 0x8620
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8560
leaq 0x4a31b(%rip), %rsi     # 0x6b502
movq %rax, %rdi
callq 0x8620
movq %rax, %rdi
callq 0x8300
movl $0x1, %edi
callq 0x87b0
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
jne 0x21227
jmp 0x2122c
movq %rax, %rbx
movq %r13, %rdi
jmp 0x21227
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x2122c
callq 0x85d0
movq %rbx, %rdi
callq 0x8b30