// 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>>)
void Log::m_openLog(string filName) {
	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;
	item->of = out;
	out->open(filName.c_str(), ios::out);
	if (!(*out)) {
		cout << "cant create logger file " << filName << ",please 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 $0xf0, %rsp
movq %rsi, -0xc0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x3a960
movq -0xc0(%rbp), %rsi
leaq -0x40(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0x92d0
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x3aab0
movq %rax, -0xa8(%rbp)
jmp 0x39401
movq -0xa8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x9480
movq -0xb8(%rbp), %rdi
callq 0x3a9e0
movq %rax, -0x58(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x3a9b0
testb $0x1, %al
jne 0x39440
jmp 0x39490
movq 0xbdb79(%rip), %rdi     # 0xf6fc0
leaq 0x83fe2(%rip), %rsi     # 0xbd430
callq 0x9760
movq -0xc0(%rbp), %rsi
movq %rax, %rdi
callq 0x9690
movq %rax, %rdi
movq 0xbdb34(%rip), %rsi     # 0xf6fa0
callq 0x97c0
jmp 0x3963b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x9480
jmp 0x3965c
movl $0x200, %edi            # imm = 0x200
callq 0x9780
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xc8(%rbp)
callq 0x9cb0
jmp 0x394ae
movq -0xc8(%rbp), %rax
movq %rax, -0x60(%rbp)
movl $0x18, %edi
callq 0x9780
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xd0(%rbp)
callq 0x3aae0
jmp 0x394d7
movq -0xc0(%rbp), %rdi
movq -0xd0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, (%rax)
movq -0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
callq 0x92b0
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
movl $0x10, %edx
callq 0x90a0
movq -0x60(%rbp), %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq 0x9320
testb $0x1, %al
jne 0x39531
jmp 0x395b5
movq 0xbda88(%rip), %rdi     # 0xf6fc0
leaq 0x83f20(%rip), %rsi     # 0xbd45f
callq 0x9760
movq -0xc0(%rbp), %rsi
movq %rax, %rdi
callq 0x9690
movq %rax, %rdi
leaq 0x83f1b(%rip), %rsi     # 0xbd478
callq 0x9760
movq %rax, %rdi
movq 0xbda34(%rip), %rsi     # 0xf6fa0
callq 0x97c0
movl $0x1, %edi
callq 0x9910
movq -0xc8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
callq 0x9700
jmp 0x3965c
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
callq 0x9700
jmp 0x3965c
movq -0xb8(%rbp), %rdi
addq $0x60, %rdi
callq 0x9ad0
movq -0xc0(%rbp), %rsi
leaq -0x90(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
leaq -0x68(%rbp), %rdx
callq 0x3ab60
movq -0xb8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
callq 0x3ab20
movb %dl, -0xe1(%rbp)
movq %rax, -0xe0(%rbp)
jmp 0x39605
movb -0xe1(%rbp), %al
movq -0xe0(%rbp), %rcx
movq %rcx, -0xa0(%rbp)
movb %al, -0x98(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x3aba0
movq -0xb8(%rbp), %rdi
addq $0x60, %rdi
callq 0x95a0
addq $0xf0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x3aba0
movq -0x48(%rbp), %rdi
callq 0x9d20
nopw %cs:(%rax,%rax)