// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/common.cpp
// Function: Common_sp::OFStream::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void OFStream::open (const string &dirName,
	                   const string &fileName,
	                   const string &extension)
{ 
	QC_ASSERT (! fileName. empty ());
	QC_ASSERT (! is_open ());
	
#if 0
  if (! dirName. empty () && contains (fileName, '/'))
    throw runtime_error ("Slash in file name: " + strQuote (fileName));
#endif

	string pathName;
	if (! dirName. empty () && ! isDirName (dirName))
	  pathName = dirName + "/";
	pathName += fileName;
	if (! extension. empty ())
		pathName += "." + extension;
	
  exceptions (std::ios::failbit | std::ios::badbit);  // In ifstream these flags collide with eofbit
	try {	ofstream::open (pathName); }
    catch (const exception &e)
    {
      throw runtime_error ("Cannot create file " + shellQuote (pathName) + "\n" + e. what ());
    }

	if (! good ())
	  throw runtime_error ("Cannot create file " + shellQuote (pathName));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0xa070
movl $0x0, (%rax)
cmpq $0x0, 0x8(%r15)
je 0x4ceb7
leaq 0x70(%rbx), %rdi
callq 0xa110
testb %al, %al
jne 0x4cf4d
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
cmpq $0x0, 0x8(%r12)
je 0x4cdf3
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movw $0x2f, (%r13)
movq $0x1, -0x8(%r13)
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x37087
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4cd97
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
leaq 0x58(%rsp), %rbp
jne 0x4cdf3
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
callq 0x2c212
leaq 0x4050f(%rip), %rsi     # 0x8d2d0
leaq 0x8(%rsp), %rdi
callq 0xaac0
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0xa6e0
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x4cdf3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x48(%rsp), %rdi
callq 0xa190
cmpq $0x0, 0x8(%r14)
je 0x4ce4e
leaq 0x3d3fe(%rip), %rsi     # 0x8a210
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x2bb6f
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x48(%rsp), %rdi
callq 0xa190
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ce4e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl $0x5, 0x1c(%rbx,%rax)
movl 0x20(%rbx,%rax), %esi
callq 0xa990
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
movl $0x10, %edx
callq 0xa2a0
movq (%rbx), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x20(%rbx,%rax)
jne 0x4cfed
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4cea5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa6b0
testl %eax, %eax
jne 0x4cfe3
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3fa62(%rip), %rsi     # 0x8c936
leaq 0x3fa6e(%rip), %rdx     # 0x8c949
leaq 0x68(%rsp), %rdi
callq 0x2fa1a
leaq 0xe8(%rsp), %rdi
movl $0xb7b, %esi            # imm = 0xB7B
callq 0x2d1fa
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0x2d152
leaq 0x3dccd(%rip), %rsi     # 0x8abe5
leaq 0xa8(%rsp), %rdi
callq 0xaac0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d075
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x4d082
callq 0xa6b0
testl %eax, %eax
jne 0x4cfe3
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3f9cc(%rip), %rsi     # 0x8c936
leaq 0x3f9d8(%rip), %rdx     # 0x8c949
leaq 0x68(%rsp), %rdi
callq 0x2fa1a
leaq 0xe8(%rsp), %rdi
movl $0xb7c, %esi            # imm = 0xB7C
callq 0x2d1fa
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0x2d152
leaq 0x3dc37(%rip), %rsi     # 0x8abe5
leaq 0xa8(%rsp), %rdi
callq 0xaac0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d102
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x4d10f
movl $0x1, %edi
callq 0xa6c0
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x2c212
leaq 0x28(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x2cac1
leaq 0x40bbf(%rip), %rsi     # 0x8dbf8
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x2bbf7
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x62f87(%rip), %rsi     # 0xaffe8
movq 0x62ef8(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
jmp 0x4d626
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x40ad9(%rip), %rsi     # 0x8db87
leaq 0x40b20(%rip), %rdx     # 0x8dbd5
leaq 0xc8(%rsp), %rdi
callq 0x2fa1a
leaq 0x3f86a(%rip), %rsi     # 0x8c933
leaq 0xc8(%rsp), %rdi
callq 0xaac0
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d18f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4d1a2
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x40a4c(%rip), %rsi     # 0x8db87
leaq 0x40a93(%rip), %rdx     # 0x8dbd5
leaq 0xc8(%rsp), %rdi
callq 0x2fa1a
leaq 0x3f7dd(%rip), %rsi     # 0x8c933
leaq 0xc8(%rsp), %rdi
callq 0xaac0
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d205
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4d218
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
movq 0x8(%rax), %rsi
leaq 0x88(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2d152
leaq 0x409ff(%rip), %rsi     # 0x8dbd6
leaq 0x48(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d278
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x4d285
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
movq 0x8(%rax), %rsi
leaq 0x88(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2d152
leaq 0x4099e(%rip), %rsi     # 0x8dbeb
leaq 0x48(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d2a6
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x4d2b3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
jmp 0x4d2d8
jmp 0x4d2f4
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4d2f7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d2f7
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d319
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d319
jmp 0x4d316
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d33d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d33d
jmp 0x4d33a
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d361
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d361
jmp 0x4d35e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d37f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d37f
jmp 0x4d37c
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d3a7
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d3a7
jmp 0x4d3a4
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d437
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d437
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d3f0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d3f0
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d40b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d428
movq 0x118(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x4d485
jmp 0x4d70e
jmp 0x4d434
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x4d72a
movq 0x78(%rsp), %rsi
jmp 0x4d722
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d485
movq 0x118(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d485
jmp 0x4d473
movq %rax, %rbx
jmp 0x4d72a
jmp 0x4d4ad
jmp 0x4d70b
movq %rax, %rbx
movq %r14, %rdi
callq 0xa440
jmp 0x4d70e
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x4d4be
jmp 0x4d70e
jmp 0x4d70b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d70e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d70e
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4d70e
movq %rbx, %rdi
callq 0xa240
movq %rax, %rbx
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x138(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0x2c212
leaq 0x68(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x2cac1
leaq 0x406c4(%rip), %rsi     # 0x8dbf8
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x2bbf7
leaq 0x4139c(%rip), %rsi     # 0x8e8e9
leaq 0xa8(%rsp), %rdi
callq 0xaac0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d57c
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4d589
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %r15, %rdi
movq %rax, %rsi
callq 0xaac0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x4d5da
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x4d5e7
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x629d1(%rip), %rsi     # 0xaffe8
movq 0x62942(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d648
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d648
movq %rax, %rbx
movb $0x1, %bpl
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d667
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d667
movq %rax, %rbx
movb $0x1, %bpl
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d690
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d690
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d6ab
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d6c8
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x4d6f4
jmp 0x4d6fc
movq %rax, %rbx
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d6f4
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d6f4
movq %rax, %rbx
movq %r14, %rdi
callq 0xa440
callq 0xa960
jmp 0x4d70e
movq %rax, %rdi
callq 0x2c2a7
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4d72a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10