// File: /workspace/github_cpp_makefile_star2_O1/ncbi[P]amr/common.cpp
// Function: Common_sp::getScientific(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool&, long&)
bool getScientific (string numberS,
                    bool &hasPoint,
                    streamsize &decimals)
{
  strUpper (numberS);
  const size_t ePos     = numberS. find ('E');
  const size_t pointPos = numberS. find ('.');
  
  hasPoint = (pointPos != string::npos);  
  decimals = 0;
  if (ePos == string::npos)
  {
    if (hasPoint)
      decimals = (streamoff) (numberS. size () - (pointPos + 1));
  }
  else
  {
    ASSERT (ePos != pointPos);
    if (hasPoint && ePos < pointPos)
      hasPoint = false;
    if (hasPoint)
      decimals = (streamoff) (ePos - (pointPos + 1));
  }
  
  return ePos != string::npos;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x3825f
movq (%r12), %r13
xorl %ebp, %ebp
movsbl (%r13,%rbp), %edi
callq 0xaa60
movb %al, (%r13,%rbp)
incq %rbp
cmpq %rbp, %r15
jne 0x38247
movq %r12, %rdi
movl $0x45, %esi
xorl %edx, %edx
callq 0xa740
movq %rax, %r15
movq %r12, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0xa740
movq %rax, %r13
cmpq $-0x1, %rax
setne (%r14)
movq $0x0, (%rbx)
cmpq $-0x1, %r15
je 0x382c8
callq 0xa070
movl $0x0, (%rax)
cmpq %r13, %r15
je 0x382f5
cmpq $-0x1, %r13
sete %al
cmpq %r13, %r15
setae %cl
orb %al, %cl
jne 0x382bd
movb $0x0, (%r14)
cmpb $0x1, (%r14)
movq %r15, %rax
je 0x382d3
jmp 0x382dc
cmpq $-0x1, %r13
je 0x382dc
movq 0x8(%r12), %rax
notq %r13
addq %rax, %r13
movq %r13, (%rbx)
cmpq $-0x1, %r15
setne %al
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xa6b0
testl %eax, %eax
jne 0x3838d
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x54621(%rip), %rsi     # 0x8c936
leaq 0x5462d(%rip), %rdx     # 0x8c949
leaq 0x88(%rsp), %rdi
callq 0x2fdd8
leaq 0xa8(%rsp), %rdi
movl $0x2fb, %esi            # imm = 0x2FB
callq 0x2d60a
leaq 0xc8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x2d562
leaq 0x52886(%rip), %rsi     # 0x8abe5
leaq 0xc8(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x38397
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x383a4
movl $0x1, %edi
callq 0xa6c0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x546f2(%rip), %rsi     # 0x8cabf
leaq 0x54726(%rip), %rdx     # 0x8cafa
leaq 0x68(%rsp), %rdi
callq 0x2fdd8
leaq 0x5454e(%rip), %rsi     # 0x8c933
leaq 0x68(%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 0x38411
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x3841e
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rsi
leaq 0x28(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2d562
leaq 0x546a8(%rip), %rsi     # 0x8cafb
leaq 0xe8(%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 0x38481
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x3848e
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 %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x384ce
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x384ce
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x384f4
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x384f4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x38510
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x38510
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x3852c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3852c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x38548
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x38548
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3856e
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x3856e
movq %rax, %rbx
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x38594
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x38594
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r14, %rdi
je 0x385b1
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10