// File: /workspace/github_cpp_makefile_star2_O3/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 0x3a14d
leaq 0x160(%rsp), %rdi
callq 0xa9d0
movq %rax, %r14
callq 0xa070
movl $0x0, (%rax)
testq %r14, %r14
js 0x3a1e0
movq %rax, %r15
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 0x3a27f
leaq 0x160(%rsp), %rdi
callq 0xa9d0
movq %rax, %r12
movl $0x0, (%r15)
testq %rax, %rax
js 0x3a300
subq %r14, %r12
jb 0x3a39f
js 0x3a420
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 0x2c212
leaq 0x20(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x2cac1
leaq 0x52a90(%rip), %rsi     # 0x8cc26
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x2bbf7
leaq 0x52a8c(%rip), %rsi     # 0x8cc38
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 0x3a4c9
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x3a4d5
callq 0xa6b0
testl %eax, %eax
jne 0x3a4bf
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x52736(%rip), %rsi     # 0x8c936
leaq 0x52742(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fa1a
leaq 0xc0(%rsp), %rdi
movl $0x4cb, %esi            # imm = 0x4CB
callq 0x2d1fa
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x2d152
leaq 0x5099b(%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 0x3a512
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3a51f
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 0x2c212
leaq 0x40(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0x2cac1
leaq 0x529bf(%rip), %rsi     # 0x8cc87
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
callq 0x2bbf7
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x75cfc(%rip), %rsi     # 0xaffe8
movq 0x75c6d(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
jmp 0x3a512
callq 0xa6b0
testl %eax, %eax
jne 0x3a4bf
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x52616(%rip), %rsi     # 0x8c936
leaq 0x52622(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fa1a
leaq 0xc0(%rsp), %rdi
movl $0x4d2, %esi            # imm = 0x4D2
callq 0x2d1fa
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x2d152
leaq 0x5087b(%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 0x3a59c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3a5a9
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 0x2c212
leaq 0x40(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x2cac1
leaq 0x528d0(%rip), %rsi     # 0x8ccb8
movq %rsp, %rdi
leaq 0x40(%rsp), %rdx
callq 0x2bbf7
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0xa930
xorl %ebp, %ebp
movq 0x75bdc(%rip), %rsi     # 0xaffe8
movq 0x75b4d(%rip), %rdx     # 0xaff60
movq %r14, %rdi
callq 0xa9b0
jmp 0x3a512
callq 0xa6b0
testl %eax, %eax
jne 0x3a4bf
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x524f6(%rip), %rsi     # 0x8c936
leaq 0x52502(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fa1a
leaq 0xc0(%rsp), %rdi
movl $0x4d7, %esi            # imm = 0x4D7
callq 0x2d1fa
leaq 0xe0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x2d152
leaq 0x5075b(%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 0x3a626
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x3a633
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 0x75ae5(%rip), %rsi     # 0xaffe8
movq 0x75a56(%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 0x526ff(%rip), %rsi     # 0x8cc4a
leaq 0x52729(%rip), %rdx     # 0x8cc7b
leaq 0x80(%rsp), %rdi
callq 0x2fa1a
leaq 0x523cd(%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 0x3a6b0
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3a6bd
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 0x52675(%rip), %rsi     # 0x8cc4a
leaq 0x5269f(%rip), %rdx     # 0x8cc7b
leaq 0x80(%rsp), %rdi
callq 0x2fa1a
leaq 0x52343(%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 0x3a721
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3a72e
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 0x525eb(%rip), %rsi     # 0x8cc4a
leaq 0x52615(%rip), %rdx     # 0x8cc7b
leaq 0x80(%rsp), %rdi
callq 0x2fa1a
leaq 0x522b9(%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 0x3a792
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3a79f
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 0x2d152
leaq 0x5258d(%rip), %rsi     # 0x8cc7c
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 0x3a7fc
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3a808
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 0x2d152
leaq 0x5254f(%rip), %rsi     # 0x8ccaf
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 0x3a827
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3a833
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 0x2d152
leaq 0x524f1(%rip), %rsi     # 0x8ccc2
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 0x3a852
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3a85e
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 0x34fa2
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 0x34fa2
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 0x34fa2
jmp 0x3a885
jmp 0x3a8a0
jmp 0x3a885
jmp 0x3a8a0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x3a8a3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a8a3
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a8c7
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a8c7
jmp 0x3a8c4
jmp 0x3a8c4
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x3a8e7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a8e7
jmp 0x3a8e4
jmp 0x3a8e4
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x3a90d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a90d
jmp 0x3a90a
jmp 0x3a90a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x3a92d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a92d
jmp 0x3a92a
jmp 0x3a92a
movq %rax, %rbx
leaq 0xf0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a957
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a957
jmp 0x3a954
jmp 0x3a954
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aa87
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3aa87
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x3a9a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a9a2
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aab3
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3aab3
jmp 0x3aa84
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a9f1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3a9f1
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aa0c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x3aaeb
movq 0x110(%rsp), %rsi
jmp 0x3aae3
jmp 0x3aa84
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aa52
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3aa52
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aa6d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x3aaeb
movq 0x130(%rsp), %rsi
jmp 0x3aae3
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x3ab64
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ab64
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3aace
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq 0x140(%rsp), %rdi
cmpq %r15, %rdi
je 0x3aaeb
movq 0x150(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x3ab55
jmp 0x3ab64
jmp 0x3ab61
movq %rax, %rbx
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ab55
movq 0x110(%rsp), %rsi
jmp 0x3ab44
jmp 0x3ab61
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ab55
movq 0x130(%rsp), %rsi
jmp 0x3ab44
jmp 0x3ab61
movq %rax, %rbx
movq 0x140(%rsp), %rdi
cmpq %r15, %rdi
je 0x3ab55
movq 0x150(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3ab55
jmp 0x3ab52
jmp 0x3ab52
movq %rax, %rbx
movq %r14, %rdi
callq 0xa440
jmp 0x3ab64
jmp 0x3ab61
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0xa120
movq %rbx, %rdi
callq 0xaa10