// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/common.cpp
// Function: Common_sp::Token::readInput(Common_sp::CharInput&, bool, bool)
void Token::readInput (CharInput &in,
                       bool dashInName_arg,
                       bool consecutiveQuotesInText)
{
	ASSERT (empty ());


  // Skip spaces
	char c = '\0';
	do { c = in. get (); }
	  while (! in. eof && isSpace (c));
	if (in. eof)
		return;  
		
	tp = in. tp;

	if (   c == '\'' 
	    || c == '\"'
	   )
	{
		type = eText;
		quote = c;
		bool prevQuote = false;  // Valid if consecutiveQuotesInText
		for (;;)
		{ 
			c = in. get (); 
			if (in. eof && (! consecutiveQuotesInText || ! prevQuote))
		    in. error ("Text is not finished: end of file", false);
			if (in. tp. eol ())
		    continue;
			if (c == quote)
			{
			  if (consecutiveQuotesInText)
  			{
  		    if (prevQuote)
  		      prevQuote = false;
  		    else
  		    {
  		      prevQuote = true;
  		      continue;
  		    }
  		  }
  		  else 
  		    break;
  		}
		  else
		    if (consecutiveQuotesInText && prevQuote)
		    {
		      in. unget ();
		      break;
		    }
			name += c;
		}
	}
	else if (isDigit (c) || c == '-')
	{
	  bool minusPossible = true;
		while (   ! in. eof 
		       && (   isDigit (c)
		           || c == '.'
		           || toUpper (c) == 'E'
		           || (c == '-' && minusPossible)
		           || c == 'x'
		           || isHex (c)
		          )
		      )
		{ 
			name += c;
			c = in. get (); 
			minusPossible = (toUpper (c) == 'E');
		}
		if (! in. eof)
			in. unget ();
	  if (name == "-")
	    type = eDelimiter;
	  else 
	  {
	    type = eText;
	    toNumberDate ();
	  /*QC_ASSERT (   type == eInteger
	               || type == eDouble
	              );*/
	  }
	}
	else if (isLetter (c))
	{
		type = eName;
		dashInName = dashInName_arg;
		while (! in. eof && (isLetter (c) || (dashInName && c == '-')))
		{ 
			name += c;
			c = in. get (); 
		}
		if (! in. eof)
			in. unget ();
	}
	else if (Common_sp::isDelimiter (c))
	{
	  type = eDelimiter;
		name = c;
	}	
	else
	  in. error ("Unknown token starting with ASCII " + to_string ((int) c), false);
	  	    
	ASSERT (! empty ());
  qc ();

  if (verbose ())
  	cout << tp. str () << type2str (type) << ' ' << *this << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %ecx, %ebp
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %rbx
callq 0xa070
movq %rax, 0xc0(%rsp)
movl $0x0, (%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
testb %al, %al
je 0x45d33
movq %r15, %rdi
callq 0x44bbc
cmpb $0x0, 0x218(%r15)
jne 0x45cdc
movl %eax, %r12d
leal -0x1(%r12), %eax
movzbl %r12b, %r14d
cmpb $0x1f, %al
ja 0x4590a
movl %r14d, %edi
callq 0xa0a0
testl %eax, %eax
jne 0x458d8
movq 0x260(%r15), %rax
movq %rax, 0x54(%rbx)
cmpb $0x27, %r12b
je 0x45921
cmpl $0x22, %r14d
jne 0x45993
movl $0x2, 0x8(%rbx)
movb %r12b, 0x30(%rbx)
leaq 0x10(%rbx), %r14
xorl %r12d, %r12d
movl %ebp, %r13d
andb %r12b, %r13b
movq %r15, %rdi
callq 0x44bbc
movb 0x218(%r15), %cl
notb %cl
orb %r13b, %cl
testb $0x1, %cl
je 0x45d07
cmpl $-0x1, 0x264(%r15)
je 0x45939
cmpb 0x30(%rbx), %al
jne 0x4597c
testb %bpl, %bpl
je 0x45bbf
testb $0x1, %r12b
movb $0x1, %r12b
je 0x45933
xorl %r12d, %r12d
jmp 0x45986
cmpb $0x1, %r13b
je 0x45bb7
movsbl %al, %esi
movq %r14, %rdi
callq 0xa4d0
jmp 0x45933
movsbl %r12b, %ebp
leaq 0x494f8(%rip), %rdi     # 0x8ee96
movl $0xb, %edx
movl %ebp, %esi
callq 0xa610
cmpb $0x2d, %r12b
je 0x45a5c
testq %rax, %rax
jne 0x45a5c
movl %ebp, %edi
callq 0xa810
leaq 0x494d6(%rip), %rdi     # 0x8eea1
movl $0x1b, %edx
movl %eax, %esi
callq 0xa610
cmpb $0x5f, %r12b
je 0x45b2d
testq %rax, %rax
jne 0x45b2d
addb $-0x21, %r12b
cmpb $0x5d, %r12b
ja 0x45e7b
movl %r14d, %edi
callq 0xa810
leaq 0x4949a(%rip), %rdi     # 0x8eea1
movl $0x1b, %edx
movl %eax, %esi
callq 0xa610
testq %rax, %rax
jne 0x45e7b
leaq 0x49473(%rip), %rdi     # 0x8ee96
movl $0xb, %edx
movl %r14d, %esi
callq 0xa610
testq %rax, %rax
jne 0x45e7b
movl $0x1, 0x8(%rbx)
leaq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rdx
movl $0x1, %ecx
xorl %esi, %esi
movl %ebp, %r8d
callq 0xaa80
jmp 0x45bbf
cmpb $0x0, 0x218(%r15)
jne 0x45b01
leaq 0x10(%rbx), %r14
movb $0x1, %r13b
movsbl %r12b, %ebp
movl $0xb, %edx
leaq 0x49415(%rip), %rdi     # 0x8ee96
movl %ebp, %esi
callq 0xa610
cmpb $0x2e, %bpl
je 0x45ad0
testq %rax, %rax
jne 0x45ad0
movl %ebp, %edi
callq 0xaa60
cmpb $0x45, %al
je 0x45ad0
cmpb $0x78, %r12b
je 0x45ad0
movzbl %r12b, %ecx
cmpl $0x2d, %ecx
jne 0x45ab3
testb $0x1, %r13b
jne 0x45ad0
movsbl %al, %esi
movl $0x7, %edx
leaq 0x493fa(%rip), %rdi     # 0x8eebc
callq 0xa610
testq %rax, %rax
je 0x45cfa
movq %r14, %rdi
movl %ebp, %esi
callq 0xa4d0
movq %r15, %rdi
callq 0x44bbc
movl %eax, %r12d
movsbl %al, %edi
callq 0xaa60
cmpb $0x45, %al
sete %r13b
cmpb $0x0, 0x218(%r15)
je 0x45a71
leaq 0x10(%rbx), %rdi
leaq 0x46438(%rip), %rsi     # 0x8bf44
callq 0xa160
testl %eax, %eax
je 0x45cee
movl $0x2, 0x8(%rbx)
movq %rbx, %rdi
callq 0x46282
jmp 0x45bbf
movl $0x0, 0x8(%rbx)
movb %r13b, 0xc(%rbx)
cmpb $0x0, 0x218(%r15)
jne 0x45bbf
leaq 0x10(%rbx), %r14
leaq 0x49354(%rip), %r13     # 0x8eea1
movsbl %r12b, %ebp
movl %ebp, %edi
callq 0xa810
movl $0x1b, %edx
movq %r13, %rdi
movl %eax, %esi
callq 0xa610
testq %rax, %rax
jne 0x45b96
movl $0xb, %edx
leaq 0x4931e(%rip), %rdi     # 0x8ee96
movl %ebp, %esi
callq 0xa610
cmpb $0x5f, %bpl
je 0x45b96
testq %rax, %rax
jne 0x45b96
cmpb $0x2d, %r12b
jne 0x45bb7
cmpb $0x0, 0xc(%rbx)
je 0x45bb7
movq %r14, %rdi
movl %ebp, %esi
callq 0xa4d0
movq %r15, %rdi
callq 0x44bbc
movl %eax, %r12d
cmpb $0x0, 0x218(%r15)
je 0x45b4d
jmp 0x45bbf
movq %r15, %rdi
callq 0x4512a
movq 0xc0(%rsp), %rax
movl $0x0, (%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
testb %al, %al
jne 0x45dd2
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movb $0x1, %al
cmpq $0x1, 0x6a9c7(%rip)     # 0xb05b8
je 0x45c02
callq 0xa500
cmpq 0x6aec9(%rip), %rax     # 0xb0ac8
sete %al
testb %al, %al
je 0x45cdc
cmpl $0x0, 0x6aefb(%rip)     # 0xb0b0c
jle 0x45cdc
leaq 0x54(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x4376e
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x6a364(%rip), %rdi     # 0xaff98
callq 0xa640
movq %rax, %r14
movl 0x8(%rbx), %esi
leaq 0x20(%rsp), %rdi
callq 0x64cbe
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r14, %rdi
callq 0xa640
leaq 0x40(%rsp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0xa640
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *0x20(%rax)
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xa570
movsbl %al, %esi
movq %r14, %rdi
callq 0xa040
movq %rax, %rdi
callq 0xa3f0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45cc1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45cdc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, 0x8(%rbx)
jmp 0x45bbf
movq %r15, %rdi
callq 0x4512a
jmp 0x45b01
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x479cc(%rip), %rsi     # 0x8d6e3
leaq 0x479e6(%rip), %rdx     # 0x8d704
movq %rsp, %rdi
callq 0x2fa1a
movq %rsp, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x64c64
callq 0xa6b0
testl %eax, %eax
jne 0x45e71
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x46be3(%rip), %rsi     # 0x8c936
leaq 0x46bef(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fa1a
leaq 0xc8(%rsp), %rdi
movl $0x92d, %esi            # imm = 0x92D
callq 0x2d1fa
leaq 0xe8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2d152
leaq 0x44e48(%rip), %rsi     # 0x8abe5
leaq 0xe8(%rsp), %rdi
callq 0xaac0
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x45ea9
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x45eb6
callq 0xa6b0
testl %eax, %eax
jne 0x45e71
leaq 0xb0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x46b44(%rip), %rsi     # 0x8c936
leaq 0x46b50(%rip), %rdx     # 0x8c949
leaq 0xa0(%rsp), %rdi
callq 0x2fa1a
leaq 0xc8(%rsp), %rdi
movl $0x991, %esi            # imm = 0x991
callq 0x2d1fa
leaq 0xe8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x2d152
leaq 0x44da9(%rip), %rsi     # 0x8abe5
leaq 0xe8(%rsp), %rdi
callq 0xaac0
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x45f33
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x45f40
movl $0x1, %edi
callq 0xa6c0
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2d1fa
leaq 0x47874(%rip), %rsi     # 0x8d705
movq %rsp, %rdi
movq %rbx, %rdx
callq 0x2bbf7
movq %rsp, %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x64c64
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x477c7(%rip), %rsi     # 0x8d6a9
leaq 0x477f9(%rip), %rdx     # 0x8d6e2
leaq 0x80(%rsp), %rdi
callq 0x2fa1a
leaq 0x46a36(%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 0x45fb6
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x45fc3
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x4773d(%rip), %rsi     # 0x8d6a9
leaq 0x4776f(%rip), %rdx     # 0x8d6e2
leaq 0x80(%rsp), %rdi
callq 0x2fa1a
leaq 0x469ac(%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 0x46020
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x4602d
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 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x2d152
leaq 0x47735(%rip), %rsi     # 0x8d72a
leaq 0x20(%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 0x4608a
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x46096
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 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x2d152
leaq 0x476c9(%rip), %rsi     # 0x8d728
leaq 0x20(%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 0x460b5
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x460c1
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 0x460e4
jmp 0x460ff
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x46102
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46102
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46124
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46124
jmp 0x46121
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x46142
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46142
jmp 0x4613f
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r12, %rdi
je 0x46166
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46166
jmp 0x46163
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x46184
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46184
jmp 0x46181
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x461ac
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x461ac
jmp 0x461a9
movq %rax, %rbx
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4620c
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4620c
jmp 0x46209
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x461f4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x461f4
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4627a
movq 0x30(%rsp), %rsi
jmp 0x4626d
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0x4627a
movq 0xb0(%rsp), %rsi
jmp 0x4626d
jmp 0x46277
jmp 0x46277
jmp 0x46229
movq %rax, %rbx
jmp 0x4624c
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4624c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x46268
jmp 0x4627a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x4627a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4627a
movq %rax, %rbx
movq %rbx, %rdi
callq 0xaa10