// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/common.cpp
// Function: Common_sp::ShellApplication::exec2str(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&) const
string ShellApplication::exec2str (const string &cmd,
                                   const string &tmpName,
                                   const string &logFName) const
{
  ASSERT (! tmp. empty ());
  ASSERT (! contains (tmpName, ' '));
  const string out (tmp + "/" + tmpName);
  exec (cmd + " > " + out, logFName);
  const StringVector vec (out, (size_t) 1, false);
  if (vec. size () != 1)
    throw runtime_error (cmd + "\nOne line is expected");
  return vec [0];  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
callq 0xa070
movl $0x0, (%rax)
cmpq $0x0, 0x170(%r13)
je 0x62ad9
movq %r12, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
jne 0x62b78
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x168(%r13), %rsi
movq 0x170(%r13), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x2c212
leaq 0x2a9b4(%rip), %rsi     # 0x8d2d0
movq %r13, %rdi
callq 0xaac0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
leaq 0x8(%rsp), %rdi
callq 0xa190
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6295f
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x62967
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x62996
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x2c212
leaq 0x2927c(%rip), %rsi     # 0x8bc36
leaq 0x28(%rsp), %rdi
callq 0xaac0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0xa190
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x629fb
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x62a02
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rsi
callq 0x3f921
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x62a3d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x62a54
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x426a6
movq 0x10(%rsp), %rax
subq 0x8(%rsp), %rax
cmpq $0x20, %rax
jne 0x62c21
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x2dfb8
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2c212
leaq 0x8(%rsp), %rdi
callq 0x327d2
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x62ac4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa6b0
testl %eax, %eax
jne 0x62c17
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x29e3d(%rip), %rsi     # 0x8c936
leaq 0x29e49(%rip), %rdx     # 0x8c949
leaq 0xa8(%rsp), %rdi
callq 0x2fa1a
leaq 0xc8(%rsp), %rdi
movl $0x1128, %esi           # imm = 0x1128
callq 0x2d1fa
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2d152
leaq 0x280a2(%rip), %rsi     # 0x8abe5
leaq 0xe8(%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 0x62c6a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x62c77
callq 0xa6b0
testl %eax, %eax
jne 0x62c17
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x29d9e(%rip), %rsi     # 0x8c936
leaq 0x29daa(%rip), %rdx     # 0x8c949
leaq 0xa8(%rsp), %rdi
callq 0x2fa1a
leaq 0xc8(%rsp), %rdi
movl $0x1129, %esi           # imm = 0x1129
callq 0x2d1fa
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2d152
leaq 0x28003(%rip), %rsi     # 0x8abe5
leaq 0xe8(%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 0x62cf4
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x62d01
movl $0x1, %edi
callq 0xa6c0
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r15
leaq 0x2c0db(%rip), %rdx     # 0x8ed10
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x2cfa9
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x4d38d(%rip), %rsi     # 0xaffe8
movq 0x4d2fe(%rip), %rdx     # 0xaff60
movq %r15, %rdi
callq 0xa9b0
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 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2bfe0(%rip), %rsi     # 0x8ec83
leaq 0x2c03b(%rip), %rdx     # 0x8ece5
leaq 0x88(%rsp), %rdi
callq 0x2fa1a
leaq 0x29c75(%rip), %rsi     # 0x8c933
leaq 0x88(%rsp), %rdi
callq 0xaac0
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x62d77
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x62d84
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 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2bf56(%rip), %rsi     # 0x8ec83
leaq 0x2bfb1(%rip), %rdx     # 0x8ece5
leaq 0x88(%rsp), %rdi
callq 0x2fa1a
leaq 0x29beb(%rip), %rsi     # 0x8c933
leaq 0x88(%rsp), %rdi
callq 0xaac0
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x62de1
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x62dee
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rsi
leaq 0x68(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2d152
leaq 0x2bf30(%rip), %rsi     # 0x8ece6
leaq 0x8(%rsp), %rdi
callq 0xaac0
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x62e4b
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x62e58
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rsi
leaq 0x68(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2d152
leaq 0x2bed6(%rip), %rsi     # 0x8ecf6
leaq 0x8(%rsp), %rdi
callq 0xaac0
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x62e79
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x62e86
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x34fa2
jmp 0x62eab
jmp 0x62ec7
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x62eca
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62eca
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62eec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62eec
jmp 0x62ee9
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x62f0a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62f0a
jmp 0x62f07
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x62f2e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62f2e
jmp 0x62f2b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x62f4c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62f4c
jmp 0x62f49
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62f74
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62f74
jmp 0x62f71
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x62f9c
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x62f9c
jmp 0x62f99
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6306d
movq 0xb8(%rsp), %rsi
jmp 0x63065
jmp 0x62fbc
movq %rax, %rbx
jmp 0x6306d
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x62fde
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x62fe8
jmp 0x6304c
movq %rax, %rbx
movq %r15, %rdi
callq 0xa440
jmp 0x6304c
jmp 0x6302e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x63015
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x63015
jmp 0x63012
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x63056
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x63056
movq %rax, %rbx
jmp 0x63056
jmp 0x63035
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6306d
movq 0x18(%rsp), %rsi
jmp 0x63065
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x327d2
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x6306d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10
nop