// File: /workspace/github_cpp_makefile_star2_O1/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 0x4d3e3
movl $0x0, (%rax)
leaq 0x70(%rbx), %rdi
callq 0xa110
testb %al, %al
jne 0x4d479
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
cmpq $0x0, 0x8(%r12)
je 0x4d31f
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movw $0x2f, (%r13)
movq $0x1, -0x8(%r13)
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x37303
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d2c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
leaq 0x58(%rsp), %rbp
jne 0x4d31f
leaq 0x8(%rsp), %rdi
movq %r13, (%rdi)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
callq 0x2c652
leaq 0x3fff9(%rip), %rsi     # 0x8d2e6
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 0x4d31f
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 0x4d37a
leaq 0x3ced2(%rip), %rsi     # 0x8a210
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x2bfaf
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 0x4d37a
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 0x4d519
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4d3d1
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 0x4d50f
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3f536(%rip), %rsi     # 0x8c936
leaq 0x3f542(%rip), %rdx     # 0x8c949
leaq 0x68(%rsp), %rdi
callq 0x2fdd8
leaq 0xe8(%rsp), %rdi
movl $0xb7b, %esi            # imm = 0xB7B
callq 0x2d60a
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0x2d562
leaq 0x3d7a1(%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 0x4d5a1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x4d5ae
callq 0xa6b0
testl %eax, %eax
jne 0x4d50f
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x3f4a0(%rip), %rsi     # 0x8c936
leaq 0x3f4ac(%rip), %rdx     # 0x8c949
leaq 0x68(%rsp), %rdi
callq 0x2fdd8
leaq 0xe8(%rsp), %rdi
movl $0xb7c, %esi            # imm = 0xB7C
callq 0x2d60a
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0x2d562
leaq 0x3d70b(%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 0x4d62e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x4d63b
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 0x2c652
leaq 0x28(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x2cefd
leaq 0x406a9(%rip), %rsi     # 0x8dc0e
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x2c037
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x62a5b(%rip), %rsi     # 0xaffe8
movq 0x629cc(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
jmp 0x4db3c
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 0x405c3(%rip), %rsi     # 0x8db9d
leaq 0x4060a(%rip), %rdx     # 0x8dbeb
leaq 0xc8(%rsp), %rdi
callq 0x2fdd8
leaq 0x3f33e(%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 0x4d6bb
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4d6ce
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 0x40536(%rip), %rsi     # 0x8db9d
leaq 0x4057d(%rip), %rdx     # 0x8dbeb
leaq 0xc8(%rsp), %rdi
callq 0x2fdd8
leaq 0x3f2b1(%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 0x4d731
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4d744
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 0x2d562
leaq 0x404e9(%rip), %rsi     # 0x8dbec
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 0x4d7a4
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x4d7b1
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 0x2d562
leaq 0x40488(%rip), %rsi     # 0x8dc01
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 0x4d7d2
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x4d7df
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 0x3523b
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 0x3523b
jmp 0x4d804
jmp 0x4d820
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4d823
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d823
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d845
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d845
jmp 0x4d842
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d869
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d869
jmp 0x4d866
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d88d
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d88d
jmp 0x4d88a
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d8ab
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d8ab
jmp 0x4d8a8
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d8d3
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d8d3
jmp 0x4d8d0
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d93e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d93e
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d91c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d91c
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d95c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d95c
jmp 0x4d93b
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x4dc29
movq 0x78(%rsp), %rsi
jmp 0x4dc21
movq %rax, %rbx
movb $0x1, %bpl
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x4d992
movq 0x118(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4d992
jmp 0x4d97d
movq %rax, %rbx
jmp 0x4dc29
jmp 0x4d9c3
jmp 0x4dc0a
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x4dc0d
movq %r14, %rdi
callq 0xa440
jmp 0x4dc0d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x4d9d4
jmp 0x4dc0d
jmp 0x4dc0a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x4dc0d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4dc0d
movq %rax, %rbx
cmpl $0x1, %edx
jne 0x4dc0d
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 0x2c652
leaq 0x68(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x2cefd
leaq 0x401c4(%rip), %rsi     # 0x8dc0e
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x2c037
leaq 0x40e9c(%rip), %rsi     # 0x8e8ff
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 0x4da92
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4da9f
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 0x4daf0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x4dafd
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 0x624bb(%rip), %rsi     # 0xaffe8
movq 0x6242c(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4db5e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4db5e
movq %rax, %rbx
movb $0x1, %bpl
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4db7d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4db7d
movq %rax, %rbx
movb $0x1, %bpl
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4dba6
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4dba6
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4dbc9
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4dbc9
movq %rax, %rbx
movb $0x1, %bpl
movq 0x128(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbee
movq 0x138(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4dbee
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x4dbfb
movq %r14, %rdi
callq 0xa440
callq 0xa960
jmp 0x4dc0d
movq %rax, %rdi
callq 0x2c6e2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4dc29
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10
nop