// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/common.cpp
// Function: Common_sp::Token::toNumberDate()
void Token::toNumberDate ()
{
  if (empty ())
    return;
	if (   type != eName
	    && type != eText
	   )
	  return;	 
	if (contains (name, ' '))
	  return;
	
	{  
  	static const regex date_time_re {R"(\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\d)"};   // Example: 2018-08-13T16:12:54.487
  	smatch sm;
  	if (regex_match (name, sm, date_time_re))
  	{
  	  type = eDateTime;
  	  return;
  	}
  }	
	  
  try
  {
    if (isLeft (name, "0x"))
	  {
 		  n = (long long) std::stoull (name. substr (2), nullptr, 16); 
   		type = eInteger;
    }
    else if (   contains (name, '.') 
    	       || contains (name, 'e') 
    	       || contains (name, 'E') 
    	      )
	  {
		  d = str2<double> (name);
  		type = eDouble;
      decimals = 0;
      size_t pos = name. find ('.');
      if (pos != string::npos)
      {
        pos++;
        while (   pos < name. size () 
               && isDigit (name [pos])
              )
        {
          pos++;
          decimals++;
        }
      }
      scientific = contains (name, 'e');
	  }
	  else
	  {
	    n = str2<long long> (name);
  		type = eInteger;
		}
  }
  catch (...) {}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x38(%rax)
testb %al, %al
jne 0x46533
testl $0xfffffffd, 0x8(%rbx)  # imm = 0xFFFFFFFD
jne 0x46533
leaq 0x10(%rbx), %r14
movq %r14, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
jne 0x46533
movb 0x6a86f(%rip), %al      # 0xb0b40
testb %al, %al
je 0x46550
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rsi
addq %rdi, %rsi
leaq 0x6a828(%rip), %rcx     # 0xb0b20
xorl %r8d, %r8d
callq 0x724af
movl %eax, %ebp
testb %al, %al
je 0x4630d
movl $0x5, 0x8(%rbx)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x46323
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0xa5a0
testb %bpl, %bpl
jne 0x46533
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x4757e(%rip), %rsi     # 0x8d8bb
leaq 0x47579(%rip), %rdx     # 0x8d8bd
leaq 0x28(%rsp), %rdi
callq 0x2fa1a
movq 0x30(%rsp), %rcx
movq %rsp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa5d0
movq 0x8(%rsp), %rdx
cmpq 0x30(%rsp), %rdx
jne 0x4638a
movq (%rsp), %r15
testq %rdx, %rdx
je 0x46392
movq 0x28(%rsp), %rsi
movq %r15, %rdi
callq 0xa5c0
testl %eax, %eax
sete %bpl
jmp 0x46395
movq (%rsp), %r15
xorl %ebp, %ebp
jmp 0x46395
movb $0x1, %bpl
leaq 0x10(%rsp), %r13
cmpq %r13, %r15
je 0x463af
movq 0x10(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0xa5a0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x463c6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
testb %bpl, %bpl
je 0x46435
movq %rsp, %rdi
movl $0x2, %edx
movq %r14, %rsi
movq $-0x1, %rcx
callq 0xa5d0
movq (%rsp), %r15
callq 0xa070
movq %rax, %r14
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x28(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0x10, %edx
callq 0xa770
cmpq %r15, (%r12)
je 0x465a7
movl (%r14), %ecx
testl %ecx, %ecx
je 0x4650f
cmpl $0x22, %ecx
jne 0x46512
leaq 0x48abd(%rip), %rdi     # 0x8eeed
callq 0xa800
movq %r14, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
jne 0x46478
movq %r14, %rdi
movl $0x65, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
jne 0x46478
movq %r14, %rdi
movl $0x45, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
je 0x46542
movq %r14, %rdi
callq 0x2eb4f
movsd %xmm0, 0x40(%rbx)
movl $0x4, 0x8(%rbx)
movq $0x0, 0x48(%rbx)
movq %r14, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
je 0x464f6
movq 0x18(%rbx), %r12
leaq 0x1(%rax), %rcx
cmpq %r12, %rcx
jae 0x464f6
movq 0x48(%rbx), %r13
subq %rax, %r12
movq 0x10(%rbx), %rbp
addq %rax, %rbp
movl $0x1, %r15d
movsbl (%rbp,%r15), %esi
movl $0xb, %edx
leaq 0x489ba(%rip), %rdi     # 0x8ee96
callq 0xa610
testq %rax, %rax
je 0x464f6
leaq (%r15,%r13), %rax
movq %rax, 0x48(%rbx)
incq %r15
cmpq %r15, %r12
jne 0x464ca
movq %r14, %rdi
movl $0x65, %esi
xorl %edx, %edx
callq 0xa740
cmpq $-0x1, %rax
setne 0x50(%rbx)
jmp 0x46533
movl %ebp, (%r14)
movq %rax, 0x38(%rbx)
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x4652c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
movl $0x3, 0x8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0x64e53
movq %rax, 0x38(%rbx)
jmp 0x4652c
leaq 0x6a5e9(%rip), %rdi     # 0xb0b40
callq 0xaa40
testl %eax, %eax
je 0x462d9
leaq 0x6a5b5(%rip), %rdi     # 0xb0b20
leaq 0x4731f(%rip), %rsi     # 0x8d891
movl $0x10, %edx
callq 0x64dcc
leaq 0x1e8b1(%rip), %rdi     # 0x64e34
leaq 0x6a596(%rip), %rsi     # 0xb0b20
leaq 0x6a007(%rip), %rdx     # 0xb0598
callq 0xa4f0
leaq 0x6a5a3(%rip), %rdi     # 0xb0b40
callq 0xa3b0
jmp 0x462d9
leaq 0x4893f(%rip), %rdi     # 0x8eeed
callq 0xa360
movq %rax, %rbx
leaq 0x6a583(%rip), %rdi     # 0xb0b40
callq 0xa3a0
jmp 0x4662e
jmp 0x46600
jmp 0x46600
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x465d4
movl %ebp, (%r14)
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x46603
movq 0x10(%rsp), %rsi
jmp 0x465f6
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x46603
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46603
movq %rax, %rbx
movq %rbx, %rdi
callq 0xa240
callq 0xa960
jmp 0x46533
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4662e
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0xa5a0
movq %rbx, %rdi
callq 0xaa10