// File: /workspace/github_cpp_makefile_star2_O3/mhe[P]raytracerframework_cpp/yaml/scantoken.cpp
// Function: YAML::Scanner::ScanTag()
void Scanner::ScanTag()
	{
		std::string handle, suffix;

		// insert a potential simple key
		if(m_simpleKeyAllowed)
			InsertSimpleKey();
		m_simpleKeyAllowed = false;

		// eat the indicator
		int line = INPUT.line, column = INPUT.column;
		handle += INPUT.get();

		// read the handle
		while(INPUT.peek() != EOF && INPUT.peek() != Keys::Tag && !Exp::BlankOrBreak.Matches(INPUT))
			handle += INPUT.get();

		// is there a suffix?
		if(INPUT.peek() == Keys::Tag) {
			// eat the indicator
			handle += INPUT.get();

			// then read it
			while(INPUT.peek() != EOF && !Exp::BlankOrBreak.Matches(INPUT))
				suffix += INPUT.get();
		} else {
			// this is a bit weird: we keep just the '!' as the handle and move the rest to the suffix
			suffix = handle.substr(1);
			handle = "!";
		}

		Token token(TT_TAG, line, column);
		token.value = handle;
		token.params.push_back(suffix);
		m_tokens.push(token);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq -0x38(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x58(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
cmpb $0x1, 0x62(%rdi)
jne 0x2d1f9
movq %rbx, %rdi
callq 0x2ed96
movb $0x0, 0x62(%rbx)
movl 0x8(%rbx), %r12d
movl 0xc(%rbx), %r13d
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
leaq -0x48(%rbp), %rdi
callq 0x4280
leaq 0x13610(%rip), %r14     # 0x40830
leaq -0x48(%rbp), %r15
movq %rbx, %rdi
callq 0x2f2b6
cmpb $-0x1, %al
je 0x2d260
movq %rbx, %rdi
callq 0x2f2b6
cmpb $0x21, %al
je 0x2d260
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
jne 0x2d260
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
movq %r15, %rdi
callq 0x4280
jmp 0x2d224
movq %rbx, %rdi
callq 0x2f2b6
cmpb $0x21, %al
jne 0x2d2bf
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
leaq -0x48(%rbp), %rdi
callq 0x4280
leaq 0x135a9(%rip), %r14     # 0x40830
leaq -0x68(%rbp), %r15
movq %rbx, %rdi
callq 0x2f2b6
cmpb $-0x1, %al
je 0x2d328
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
jne 0x2d328
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
movq %r15, %rdi
callq 0x4280
jmp 0x2d28b
leaq -0xb0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x4300
leaq -0x68(%rbp), %rdi
leaq -0xb0(%rbp), %r14
movq %r14, %rsi
callq 0x43b0
movq (%r14), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x2d30c
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x48(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x3aef(%rip), %rcx      # 0x30e0a
movl $0x1, %r8d
xorl %esi, %esi
callq 0x4490
movabsq $0x1000000000, %rax     # imm = 0x1000000000
leaq -0xa0(%rbp), %rdi
movq %rax, -0x10(%rdi)
movl %r12d, -0x8(%rdi)
movl %r13d, -0x4(%rdi)
leaq -0x90(%rbp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb $0x0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
movq %rax, 0x20(%r15)
leaq -0x48(%rbp), %rsi
callq 0x4160
leaq -0x80(%rbp), %r14
leaq -0x68(%rbp), %rsi
movq %r14, %rdi
callq 0x2dd28
addq $0x10, %rbx
leaq -0xb0(%rbp), %rsi
movq %rbx, %rdi
callq 0x2e22e
movq %r14, %rdi
callq 0x2670a
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x2d3b5
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2d3ce
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2d3e7
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d412
jmp 0x2d412
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x264de
jmp 0x2d415
jmp 0x2d412
jmp 0x2d412
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2d42e
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x2d447
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4550
nop