// File: /workspace/github_cpp_makefile_star2_O1/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 $0x118, %rsp            # imm = 0x118
movl %ecx, %ebp
movl %edx, %r13d
movq %rsi, %r15
movq %rdi, %rbx
callq 0xa070
movq %rax, %r14
movl $0x0, (%rax)
movq (%rbx), %rax
movq %rbx, (%rsp)
movq %rbx, %rdi
callq *0x38(%rax)
testb %al, %al
je 0x46273
movq %r15, %rdi
callq 0x45058
movb 0x218(%r15), %bl
testb %bl, %bl
jne 0x4621a
movl %eax, %r12d
leal -0x1(%r12), %eax
cmpb $0x1f, %al
ja 0x45dbb
movzbl %r12b, %edi
callq 0xa0a0
testl %eax, %eax
jne 0x45d8b
testb %bl, %bl
jne 0x4621a
movq %r14, 0xc8(%rsp)
movq 0x260(%r15), %rax
movq (%rsp), %rcx
movq %rax, 0x54(%rcx)
cmpb $0x27, %r12b
je 0x45dea
movzbl %r12b, %r14d
cmpl $0x22, %r14d
jne 0x45e66
movq (%rsp), %r13
movl $0x2, 0x8(%r13)
movb %r12b, 0x30(%r13)
leaq 0x10(%r13), %r14
xorl %ebx, %ebx
movl %ebp, %r12d
andb %bl, %r12b
movq %r15, %rdi
callq 0x45058
movb 0x218(%r15), %cl
notb %cl
orb %r12b, %cl
testb $0x1, %cl
je 0x46243
cmpl $-0x1, 0x264(%r15)
je 0x45e06
cmpb 0x30(%r13), %al
jne 0x45e4b
testb %bpl, %bpl
je 0x460f3
testb $0x1, %bl
movb $0x1, %bl
movq (%rsp), %r13
je 0x45e00
xorl %ebx, %ebx
jmp 0x45e59
testb %bpl, %bpl
je 0x45e59
testb $0x1, %bl
jne 0x460eb
movsbl %al, %esi
movq %r14, %rdi
callq 0xa4d0
jmp 0x45e00
movsbl %r12b, %ebp
leaq 0x4903b(%rip), %rdi     # 0x8eeac
movl $0xb, %edx
movl %ebp, %esi
callq 0xa610
cmpb $0x2d, %r12b
je 0x45f3c
testq %rax, %rax
jne 0x45f3c
movl %ebp, %edi
callq 0xa810
leaq 0x49019(%rip), %rdi     # 0x8eeb7
movl $0x1b, %edx
movl %eax, %esi
callq 0xa610
cmpb $0x5f, %r12b
je 0x4603e
testq %rax, %rax
jne 0x4603e
leal -0x21(%r12), %eax
cmpb $0x5d, %al
ja 0x463bb
movl %r14d, %edi
callq 0xa810
leaq 0x48fde(%rip), %rdi     # 0x8eeb7
movl $0x1b, %edx
movl %eax, %esi
callq 0xa610
testq %rax, %rax
jne 0x463bb
leaq 0x48fb7(%rip), %rdi     # 0x8eeac
movl $0xb, %edx
movl %r14d, %esi
callq 0xa610
cmpb $0x5f, %r12b
je 0x463bb
testq %rax, %rax
jne 0x463bb
movq (%rsp), %rax
movl $0x1, 0x8(%rax)
leaq 0x10(%rax), %rdi
movq 0x18(%rax), %rdx
movl $0x1, %ecx
xorl %esi, %esi
movl %ebp, %r8d
callq 0xaa80
jmp 0x460f3
movb 0x218(%r15), %r13b
testb %r13b, %r13b
jne 0x4600e
movq (%rsp), %rax
addq $0x10, %rax
movq %rax, 0xd0(%rsp)
movb $0x1, %bl
movsbl %r12b, %r14d
movl $0xb, %edx
leaq 0x48f3e(%rip), %rdi     # 0x8eeac
movl %r14d, %esi
callq 0xa610
movq %rax, %rbp
testq %rax, %rax
setne %al
cmpb $0x2e, %r14b
sete %cl
orb %al, %cl
jne 0x45fd6
movl %r14d, %edi
callq 0xaa60
cmpb $0x45, %al
je 0x45fd6
cmpb $0x78, %r12b
je 0x45fd6
movzbl %r12b, %ecx
cmpl $0x2d, %ecx
jne 0x45fb4
testq %rbp, %rbp
setne %cl
orb %cl, %bl
testb $0x1, %bl
je 0x45fb9
jmp 0x45fd6
testq %rbp, %rbp
jne 0x45fd6
movsbl %al, %esi
movl $0x7, %edx
leaq 0x48f0a(%rip), %rdi     # 0x8eed2
callq 0xa610
testq %rax, %rax
je 0x4622c
movq 0xd0(%rsp), %rdi
movl %r14d, %esi
callq 0xa4d0
movq %r15, %rdi
callq 0x45058
movl %eax, %r12d
movsbl %al, %edi
callq 0xaa60
cmpb $0x45, %al
sete %bl
movb 0x218(%r15), %r13b
testb %r13b, %r13b
je 0x45f5e
movq (%rsp), %rbx
leaq 0x10(%rbx), %rdi
leaq 0x45f27(%rip), %rsi     # 0x8bf44
callq 0xa160
testl %eax, %eax
je 0x460dc
movl $0x2, 0x8(%rbx)
movq %rbx, %rdi
callq 0x467d6
jmp 0x460f3
movq (%rsp), %rax
movl $0x0, 0x8(%rax)
movb %r13b, 0xc(%rax)
movb 0x218(%r15), %r13b
testb %r13b, %r13b
jne 0x460f3
movq (%rsp), %rax
leaq 0x10(%rax), %r14
leaq 0x48e4b(%rip), %rbx     # 0x8eeb7
movsbl %r12b, %ebp
movl %ebp, %edi
callq 0xa810
movl $0x1b, %edx
movq %rbx, %rdi
movl %eax, %esi
callq 0xa610
testq %rax, %rax
jne 0x460b9
movl $0xb, %edx
leaq 0x48e15(%rip), %rdi     # 0x8eeac
movl %ebp, %esi
callq 0xa610
cmpb $0x5f, %bpl
je 0x460b9
testq %rax, %rax
jne 0x460b9
cmpb $0x2d, %r12b
jne 0x460e5
movq (%rsp), %rax
cmpb $0x0, 0xc(%rax)
je 0x460e5
movq %r14, %rdi
movl %ebp, %esi
callq 0xa4d0
movq %r15, %rdi
callq 0x45058
movl %eax, %r12d
movb 0x218(%r15), %r13b
testb %r13b, %r13b
je 0x4606c
jmp 0x460f3
movl $0x1, 0x8(%rbx)
jmp 0x460f3
testb $0x1, %r13b
jne 0x460f3
movq %r15, %rdi
callq 0x455c6
movq 0xc8(%rsp), %rax
movl $0x0, (%rax)
movq (%rsp), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
testb %al, %al
jne 0x46312
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movb $0x1, %al
cmpq $0x1, 0x6a48f(%rip)     # 0xb05b8
je 0x4613a
callq 0xa500
cmpq 0x6a991(%rip), %rax     # 0xb0ac8
sete %al
testb %al, %al
je 0x4621a
cmpl $0x0, 0x6a9c3(%rip)     # 0xb0b0c
jle 0x4621a
movq (%rsp), %rbx
leaq 0x54(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x43c0c
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x69e26(%rip), %rdi     # 0xaff98
callq 0xa640
movq %rax, %r14
movl 0x8(%rbx), %esi
leaq 0x28(%rsp), %rdi
callq 0x6511c
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0xa640
leaq 0x48(%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 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x461ff
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4621a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x1, %r13b
jne 0x4600e
movq %r15, %rdi
callq 0x455c6
jmp 0x4600e
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x474a6(%rip), %rsi     # 0x8d6f9
leaq 0x474c0(%rip), %rdx     # 0x8d71a
leaq 0x8(%rsp), %rdi
callq 0x2fdd8
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x650c2
callq 0xa6b0
testl %eax, %eax
jne 0x463b1
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x466a3(%rip), %rsi     # 0x8c936
leaq 0x466af(%rip), %rdx     # 0x8c949
leaq 0xa8(%rsp), %rdi
callq 0x2fdd8
leaq 0xd8(%rsp), %rdi
movl $0x92d, %esi            # imm = 0x92D
callq 0x2d60a
leaq 0xf8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0x2d562
leaq 0x44908(%rip), %rsi     # 0x8abe5
leaq 0xf8(%rsp), %rdi
callq 0xaac0
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x463ed
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x463fa
callq 0xa6b0
testl %eax, %eax
jne 0x463b1
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x46604(%rip), %rsi     # 0x8c936
leaq 0x46610(%rip), %rdx     # 0x8c949
leaq 0xa8(%rsp), %rdi
callq 0x2fdd8
leaq 0xd8(%rsp), %rdi
movl $0x991, %esi            # imm = 0x991
callq 0x2d60a
leaq 0xf8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
leaq 0xd8(%rsp), %rdx
callq 0x2d562
leaq 0x44869(%rip), %rsi     # 0x8abe5
leaq 0xf8(%rsp), %rdi
callq 0xaac0
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x46477
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x46484
movl $0x1, %edi
callq 0xa6c0
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2d60a
leaq 0x4734a(%rip), %rsi     # 0x8d71b
leaq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0x2c037
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x650c2
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x47299(%rip), %rsi     # 0x8d6bf
leaq 0x472cb(%rip), %rdx     # 0x8d6f8
leaq 0x88(%rsp), %rdi
callq 0x2fdd8
leaq 0x464f2(%rip), %rsi     # 0x8c933
leaq 0x88(%rsp), %rdi
callq 0xaac0
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x464fa
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x46507
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x4720f(%rip), %rsi     # 0x8d6bf
leaq 0x47241(%rip), %rdx     # 0x8d6f8
leaq 0x88(%rsp), %rdi
callq 0x2fdd8
leaq 0x46468(%rip), %rsi     # 0x8c933
leaq 0x88(%rsp), %rdi
callq 0xaac0
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x46564
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x46571
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rsi
leaq 0x68(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2d562
leaq 0x47207(%rip), %rsi     # 0x8d740
leaq 0x28(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x465ce
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x465db
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
movq 0x8(%rax), %rsi
leaq 0x68(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2d562
leaq 0x4719b(%rip), %rsi     # 0x8d73e
leaq 0x28(%rsp), %rdi
callq 0xaac0
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x465fc
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
jmp 0x46609
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x3523b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0x3523b
jmp 0x46630
jmp 0x4664c
jmp 0x4666e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4664f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4664f
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46671
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46671
jmp 0x4668c
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x4668f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x4668f
jmp 0x466b0
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0x466b3
movq 0x98(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x466b3
jmp 0x466ce
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x466d1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x466d1
jmp 0x46735
movq %rax, %rbx
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46738
movq 0x108(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46738
jmp 0x4675d
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46719
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46719
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x467cd
movq 0x38(%rsp), %rsi
jmp 0x467c0
movq %rax, %rbx
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46760
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x46760
jmp 0x467ca
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x467cd
movq 0xb8(%rsp), %rsi
jmp 0x467c0
jmp 0x46779
movq %rax, %rbx
jmp 0x4679e
jmp 0x467ca
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4679e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xa5a0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x467bb
jmp 0x467cd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x467cd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xa5a0
jmp 0x467cd
movq %rax, %rbx
movq %rbx, %rdi
callq 0xaa10
nop