// File: 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
subq $0x100, %rsp            # imm = 0x100
movq %rsi, -0xc8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x3a960
movq -0xc8(%rbp), %rsi
leaq -0x48(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x92d0
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
callq 0x3aab0
movq %rax, -0xb0(%rbp)
jmp 0x396d4
movq -0xb0(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x9480
movq -0xc0(%rbp), %rdi
callq 0x3a9e0
movq %rax, -0x60(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x3a9b0
testb $0x1, %al
jne 0x39713
jmp 0x39763
movq 0xbd8a6(%rip), %rdi     # 0xf6fc0
leaq 0x83d0f(%rip), %rsi     # 0xbd430
callq 0x9760
movq -0xc8(%rbp), %rsi
movq %rax, %rdi
callq 0x9690
movq %rax, %rdi
movq 0xbd861(%rip), %rsi     # 0xf6fa0
callq 0x97c0
jmp 0x3991c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x9480
jmp 0x3993d
movl $0x200, %edi            # imm = 0x200
callq 0x9780
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xd0(%rbp)
callq 0x9cb0
jmp 0x39781
movq -0xd0(%rbp), %rax
movq %rax, -0x68(%rbp)
movl $0x18, %edi
callq 0x9780
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xd8(%rbp)
movl -0x14(%rbp), %esi
callq 0x3abc0
jmp 0x397ad
movq -0xc8(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl $0x1, 0x14(%rax)
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rax
movq %rcx, (%rax)
movq -0x68(%rbp), %rax
movq %rax, -0xe0(%rbp)
callq 0x92b0
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
movl $0x10, %edx
callq 0x90a0
movq -0x68(%rbp), %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq 0x9320
testb $0x1, %al
jne 0x39812
jmp 0x39896
movq 0xbd7a7(%rip), %rdi     # 0xf6fc0
leaq 0x83c78(%rip), %rsi     # 0xbd498
callq 0x9760
movq -0xc8(%rbp), %rsi
movq %rax, %rdi
callq 0x9690
movq %rax, %rdi
leaq 0x83c74(%rip), %rsi     # 0xbd4b2
callq 0x9760
movq %rax, %rdi
movq 0xbd753(%rip), %rsi     # 0xf6fa0
callq 0x97c0
movl $0x1, %edi
callq 0x9910
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x9700
jmp 0x3993d
movq -0xd8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
callq 0x9700
jmp 0x3993d
movq -0xc0(%rbp), %rdi
addq $0x60, %rdi
callq 0x9ad0
movq -0xc8(%rbp), %rsi
leaq -0x98(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
leaq -0x70(%rbp), %rdx
callq 0x3ab60
movq -0xc0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x3ab20
movb %dl, -0xe9(%rbp)
movq %rax, -0xe8(%rbp)
jmp 0x398e6
movb -0xe9(%rbp), %al
movq -0xe8(%rbp), %rcx
movq %rcx, -0xa8(%rbp)
movb %al, -0xa0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3aba0
movq -0xc0(%rbp), %rdi
addq $0x60, %rdi
callq 0x95a0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x3aba0
movq -0x50(%rbp), %rdi
callq 0x9d20
nopw %cs:(%rax,%rax)