// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/common.cpp
// Function: Common_sp::getFileSize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
streamsize getFileSize (const string &fName)
{
  ifstream f (fName, ifstream::binary);
  if (! f. good ())
    throw runtime_error ("Cannot open file " + shellQuote (fName) + " to get file size");

  const streampos start = f. tellg ();
  QC_ASSERT (start >= 0); 

  f. seekg (0, ios_base::end);
  if (! f. good ())
    throw runtime_error ("Cannot go to the beginning of the file " + shellQuote (fName));

  const streampos end = f. tellg ();
  QC_ASSERT (end >= 0); 

  if (end < start)
    throw runtime_error ("Bad file " + shellQuote (fName));    
  const streampos len = end - start;
  ASSERT (len >= 0);
  QC_ASSERT (len <= (streampos) numeric_limits<streamsize>::max());
  
  return (streamsize) len; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x368, %rsp            # imm = 0x368
movq %rdi, %rbx
leaq 0x160(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movl $0x4, %edx
callq 0xa920
movq (%r14), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x180(%rsp,%rax)
jne 0x3a64f
leaq 0x160(%rsp), %rdi
callq 0xa9d0
movq %rax, %r15
callq 0xa070
movl $0x0, (%rax)
testq %r15, %r15
js 0x3a6e2
movq %rax, %r14
leaq 0x160(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xa790
movq 0x160(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x180(%rsp,%rax)
jne 0x3a781
leaq 0x160(%rsp), %rdi
callq 0xa9d0
movq %rax, %r12
movl $0x0, (%r14)
testq %rax, %rax
js 0x3a802
subq %r15, %r12
jl 0x3a8a1
movl $0x0, (%r14)
js 0x3a922
movl $0x0, (%r14)
leaq 0x160(%rsp), %rdi
callq 0xa120
movq %r12, %rax
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x150(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x140(%rsp), %rdi
callq 0x2c652
leaq 0x20(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x2cefd
leaq 0x525a4(%rip), %rsi     # 0x8cc3c
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x2c037
leaq 0x525a0(%rip), %rsi     # 0x8cc4e
leaq 0x40(%rsp), %rdi
callq 0xaac0
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3a9cb
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x3a9d7
callq 0xa6b0
testl %eax, %eax
jne 0x3a9c1
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x52234(%rip), %rsi     # 0x8c936
leaq 0x52240(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fdd8
leaq 0xc0(%rsp), %rdi
movl $0x4cb, %esi            # imm = 0x4CB
callq 0x2d60a
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x2d562
leaq 0x50499(%rip), %rsi     # 0x8abe5
leaq 0xe0(%rsp), %rdi
callq 0xaac0
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3aa14
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3aa21
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x130(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %rdi
callq 0x2c652
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x2cefd
leaq 0x524d3(%rip), %rsi     # 0x8cc9d
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
callq 0x2c037
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x757fa(%rip), %rsi     # 0xaffe8
movq 0x7576b(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
jmp 0x3aa14
callq 0xa6b0
testl %eax, %eax
jne 0x3a9c1
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x52114(%rip), %rsi     # 0x8c936
leaq 0x52120(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fdd8
leaq 0xc0(%rsp), %rdi
movl $0x4d2, %esi            # imm = 0x4D2
callq 0x2d60a
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x2d562
leaq 0x50379(%rip), %rsi     # 0x8abe5
leaq 0xe0(%rsp), %rdi
callq 0xaac0
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3aa9e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3aaab
movl $0x10, %edi
callq 0xa2c0
movq %rax, %r14
leaq 0x110(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rdi
callq 0x2c652
leaq 0x40(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x2cefd
leaq 0x523e4(%rip), %rsi     # 0x8ccce
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
callq 0x2c037
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x756da(%rip), %rsi     # 0xaffe8
movq 0x7564b(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
jmp 0x3aa14
callq 0xa6b0
testl %eax, %eax
jne 0x3a9c1
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x51ff4(%rip), %rsi     # 0x8c936
leaq 0x52000(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fdd8
leaq 0xc0(%rsp), %rdi
movl $0x4d7, %esi            # imm = 0x4D7
callq 0x2d60a
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x2d562
leaq 0x50259(%rip), %rsi     # 0x8abe5
leaq 0xe0(%rsp), %rdi
callq 0xaac0
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3ab28
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3ab35
movl $0x1, %edi
callq 0xa6c0
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %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 0x755e3(%rip), %rsi     # 0xaffe8
movq 0x75554(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x52213(%rip), %rsi     # 0x8cc60
leaq 0x5223d(%rip), %rdx     # 0x8cc91
leaq 0x80(%rsp), %rdi
callq 0x2fdd8
leaq 0x51ecb(%rip), %rsi     # 0x8c933
leaq 0x80(%rsp), %rdi
callq 0xaac0
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3abb2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3abbf
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x52189(%rip), %rsi     # 0x8cc60
leaq 0x521b3(%rip), %rdx     # 0x8cc91
leaq 0x80(%rsp), %rdi
callq 0x2fdd8
leaq 0x51e41(%rip), %rsi     # 0x8c933
leaq 0x80(%rsp), %rdi
callq 0xaac0
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3ac23
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3ac30
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x520ff(%rip), %rsi     # 0x8cc60
leaq 0x52129(%rip), %rdx     # 0x8cc91
leaq 0x80(%rsp), %rdi
callq 0x2fdd8
leaq 0x51db7(%rip), %rsi     # 0x8c933
leaq 0x80(%rsp), %rdi
callq 0xaac0
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3ac94
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3aca1
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x8(%rax), %rsi
leaq 0x60(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2d562
leaq 0x520a1(%rip), %rsi     # 0x8cc92
leaq 0x40(%rsp), %rdi
callq 0xaac0
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3acfe
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3ad0a
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x8(%rax), %rsi
leaq 0x60(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2d562
leaq 0x52063(%rip), %rsi     # 0x8ccc5
leaq 0x40(%rsp), %rdi
callq 0xaac0
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3ad29
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3ad35
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x8(%rax), %rsi
leaq 0x60(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2d562
leaq 0x52005(%rip), %rsi     # 0x8ccd8
leaq 0x40(%rsp), %rdi
callq 0xaac0
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x3ad54
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3ad60
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x3523b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x3523b
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x3523b
jmp 0x3ad87
jmp 0x3ada2
jmp 0x3ad87
jmp 0x3ada2
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x3ada5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ada5
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3adc9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3adc9
jmp 0x3adc6
jmp 0x3adc6
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x3ade9
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ade9
jmp 0x3ade6
jmp 0x3ade6
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x3ae0f
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ae0f
jmp 0x3ae0c
jmp 0x3ae0c
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ae2f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ae2f
jmp 0x3ae2c
jmp 0x3ae2c
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ae59
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ae59
jmp 0x3ae56
jmp 0x3ae56
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3af63
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3af63
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x3aea4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3aea4
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3af8f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3af8f
jmp 0x3af60
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aef3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3aef3
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3afb4
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3afb4
jmp 0x3af60
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3af3f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3af3f
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3afd3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3afd3
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b02f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3b02f
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aff2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3aff2
jmp 0x3b02c
movq %rax, %rbx
movb $0x1, %bpl
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b01b
movq 0x110(%rsp), %rsi
jmp 0x3b007
jmp 0x3b02c
movq %rax, %rbx
movb $0x1, %bpl
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b01b
movq 0x130(%rsp), %rsi
jmp 0x3b007
jmp 0x3b02c
movq %rax, %rbx
movb $0x1, %bpl
movq 0x140(%rsp), %rdi
cmpq %r15, %rdi
je 0x3b01b
movq 0x150(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3b01b
jmp 0x3b015
jmp 0x3b015
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x3b02f
movq %r14, %rdi
callq 0xa440
jmp 0x3b02f
jmp 0x3b02c
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0xa120
movq %rbx, %rdi
callq 0xaa10