// File: /workspace/github_cpp_makefile_star2_O2/mhe[P]raytracerframework_cpp/yaml/scantoken.cpp
// Function: YAML::Scanner::ScanAnchorOrAlias()
void Scanner::ScanAnchorOrAlias()
	{
		bool alias;
		std::string name;

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

		// eat the indicator
		int line = INPUT.line, column = INPUT.column;
		char indicator = INPUT.get();
		alias = (indicator == Keys::Alias);

		// now eat the content
		while(Exp::AlphaNumeric.Matches(INPUT))
			name += INPUT.get();

		// we need to have read SOMETHING!
		if(name.empty())
			throw ParserException(INPUT.line, INPUT.column, alias ? ErrorMsg::ALIAS_NOT_FOUND : ErrorMsg::ANCHOR_NOT_FOUND);

		// and needs to end correctly
		if(INPUT.peek() != EOF && !Exp::AnchorEnd.Matches(INPUT))
			throw ParserException(INPUT.line, INPUT.column, alias ? ErrorMsg::CHAR_IN_ALIAS : ErrorMsg::CHAR_IN_ANCHOR);

		// and we're done
		Token token(alias ? TT_ALIAS : TT_ANCHOR, line, column);
		token.value = name;
		m_tokens.push(token);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
movb $0x0, (%rax)
cmpb $0x1, 0x62(%rdi)
jne 0x1f88a
movq %rbx, %rdi
callq 0x21204
movb $0x0, 0x62(%rbx)
movl 0x8(%rbx), %r13d
movl 0xc(%rbx), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
callq 0x2173c
movl %eax, %r14d
leaq 0x14016(%rip), %r15     # 0x338c0
leaq -0x50(%rbp), %r12
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
je 0x1f8d2
movq %rbx, %rdi
callq 0x2173c
movsbl %al, %esi
movq %r12, %rdi
callq 0x4250
jmp 0x1f8ae
cmpq $0x0, -0x48(%rbp)
je 0x1f980
movq %rbx, %rdi
callq 0x21716
cmpb $-0x1, %al
je 0x1f900
leaq 0x141e0(%rip), %rdi     # 0x33ad0
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
je 0x1f9b1
xorl %eax, %eax
cmpb $0x2a, %r14b
sete %al
orl $0xe, %eax
leaq -0x88(%rbp), %rdi
andl $0x0, -0x10(%rdi)
movl %eax, -0xc(%rdi)
movl %r13d, -0x8(%rdi)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rdi)
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
leaq -0x50(%rbp), %rsi
callq 0x4150
addq $0x10, %rbx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
callq 0x20848
leaq -0x98(%rbp), %rdi
callq 0x19892
leaq -0x50(%rbp), %rdi
callq 0x45d8
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r15
cmpb $0x2a, %r14b
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x13d14(%rip), %rax     # 0x336b0
leaq 0x13d2d(%rip), %rcx     # 0x336d0
cmoveq %rax, %rcx
movq %r15, %rdi
callq 0x18be0
jmp 0x1f9e0
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r15
cmpb $0x2a, %r14b
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x13d23(%rip), %rax     # 0x336f0
leaq 0x13d3c(%rip), %rcx     # 0x33710
cmoveq %rax, %rcx
movq %r15, %rdi
callq 0x18be0
leaq 0xdc59(%rip), %rsi      # 0x2d640
leaq -0xfe1c(%rip), %rdx     # 0xfbd2
movq %r15, %rdi
callq 0x44f0
jmp 0x1f9f8
movq %rax, %rbx
movq %r15, %rdi
callq 0x4210
jmp 0x1fa1d
jmp 0x1fa1a
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x19892
jmp 0x1fa1d
jmp 0x1fa1a
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x45d8
movq %rbx, %rdi
callq 0x4530