// File: /workspace/github_cpp_makefile_star2_O1/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 0x62f57
movl $0x0, (%rax)
movq %r12, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
jne 0x62ff6
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 0x2c652
leaq 0x2a54c(%rip), %rsi     # 0x8d2e6
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 0x62ddd
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x62de5
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 0x62e14
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 0x2c652
leaq 0x28dfe(%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 0x62e79
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x62e80
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 0x3fd63
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x62ebb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x62ed2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x42b16
movq 0x10(%rsp), %rax
subq 0x8(%rsp), %rax
cmpq $0x20, %rax
jne 0x6309f
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x2e3d8
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2c652
leaq 0x8(%rsp), %rdi
callq 0x32c12
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x62f42
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 0x63095
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x299bf(%rip), %rsi     # 0x8c936
leaq 0x299cb(%rip), %rdx     # 0x8c949
leaq 0xa8(%rsp), %rdi
callq 0x2fdd8
leaq 0xc8(%rsp), %rdi
movl $0x1128, %esi           # imm = 0x1128
callq 0x2d60a
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2d562
leaq 0x27c24(%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 0x630e8
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x630f5
callq 0xa6b0
testl %eax, %eax
jne 0x63095
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x29920(%rip), %rsi     # 0x8c936
leaq 0x2992c(%rip), %rdx     # 0x8c949
leaq 0xa8(%rsp), %rdi
callq 0x2fdd8
leaq 0xc8(%rsp), %rdi
movl $0x1129, %esi           # imm = 0x1129
callq 0x2d60a
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2d562
leaq 0x27b85(%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 0x63172
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6317f
movl $0x1, %edi
callq 0xa6c0
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r15
leaq 0x2bc73(%rip), %rdx     # 0x8ed26
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x2d3ba
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x4cf0f(%rip), %rsi     # 0xaffe8
movq 0x4ce80(%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 0x2bb78(%rip), %rsi     # 0x8ec99
leaq 0x2bbd3(%rip), %rdx     # 0x8ecfb
leaq 0x88(%rsp), %rdi
callq 0x2fdd8
leaq 0x297f7(%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 0x631f5
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x63202
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 0x2baee(%rip), %rsi     # 0x8ec99
leaq 0x2bb49(%rip), %rdx     # 0x8ecfb
leaq 0x88(%rsp), %rdi
callq 0x2fdd8
leaq 0x2976d(%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 0x6325f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6326c
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 0x2d562
leaq 0x2bac8(%rip), %rsi     # 0x8ecfc
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 0x632c9
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x632d6
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 0x2d562
leaq 0x2ba6e(%rip), %rsi     # 0x8ed0c
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 0x632f7
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x63304
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 0x3523b
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 0x3523b
jmp 0x63329
jmp 0x63345
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x63348
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x63348
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6336a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x6336a
jmp 0x63367
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x63388
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x63388
jmp 0x63385
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x633ac
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x633ac
jmp 0x633a9
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x633ca
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x633ca
jmp 0x633c7
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x633f2
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x633f2
jmp 0x633ef
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6341a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x6341a
jmp 0x63417
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x634ee
movq 0xb8(%rsp), %rsi
jmp 0x634e6
jmp 0x6343a
movq %rax, %rbx
jmp 0x634ee
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x63464
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x63464
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x634cd
movq %r15, %rdi
callq 0xa440
jmp 0x634cd
jmp 0x634af
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x63496
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x63496
jmp 0x63493
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x634d7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x634d7
movq %rax, %rbx
jmp 0x634d7
jmp 0x634b6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x634ee
movq 0x18(%rsp), %rsi
jmp 0x634e6
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x32c12
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x634ee
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10