// File: /workspace/github_cpp_makefile_star2_O1/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 0x1143c
movq %r14, %rdi
movq %r12, %rsi
callq 0x226ac
movq %rax, %r12
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x216e2
callq 0x85d0
leaq 0x8(%r14), %rax
cmpq %rax, %r12
je 0x21744
movq 0x6c8d6(%rip), %r14     # 0x8dfc8
leaq 0x49d87(%rip), %rsi     # 0x6b480
movl $0x2e, %edx
movq %r14, %rdi
callq 0x8730
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x8730
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 0x21819
movl $0x200, %edi            # imm = 0x200
callq 0x8640
movq %rax, %r13
movq %rax, %rdi
callq 0x8af0
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 0x21828
leaq 0x60(%r14), %r15
movq %r15, %rdi
callq 0x8910
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 0x1143c
movq %r12, 0x20(%r13)
movq %r14, %rdi
movq %r13, %rsi
callq 0x2274a
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x21811
callq 0x85d0
movq %r15, %rdi
callq 0x84b0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6c799(%rip), %rdi     # 0x8dfc8
leaq 0x49cb2(%rip), %rsi     # 0x6b4e8
callq 0x8620
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8560
leaq 0x49cb5(%rip), %rsi     # 0x6b502
movq %rax, %rdi
callq 0x8620
movq %rax, %rdi
callq 0x8300
movl $0x1, %edi
callq 0x87c0
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
jne 0x2188d
jmp 0x21892
movq %rax, %rbx
movq %r13, %rdi
jmp 0x2188d
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x21892
callq 0x85d0
movq %rbx, %rdi
callq 0x8b40