// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rdi, %rbx
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
cmpb $0x1, 0x62(%rdi)
jne 0x2e5a3
movq %rbx, %rdi
callq 0x303c2
movb $0x0, 0x62(%rbx)
movl 0x8(%rbx), %r13d
movl 0xc(%rbx), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
callq 0x30904
movl %eax, %r14d
leaq 0x1330d(%rip), %r15     # 0x418d0
leaq -0x50(%rbp), %r12
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
je 0x2e5eb
movq %rbx, %rdi
callq 0x30904
movsbl %al, %esi
movq %r12, %rdi
callq 0x5290
jmp 0x2e5c7
cmpq $0x0, -0x48(%rbp)
je 0x2e6c3
movq %rbx, %rdi
callq 0x308de
cmpb $-0x1, %al
je 0x2e619
leaq 0x134d7(%rip), %rdi     # 0x41ae0
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
je 0x2e6f6
xorl %eax, %eax
cmpb $0x2a, %r14b
sete %al
orl $0xe, %eax
leaq -0x88(%rbp), %rdi
movl $0x0, -0x10(%rdi)
movl %eax, -0xc(%rdi)
movl %r13d, -0x8(%rdi)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rdi)
leaq -0x78(%rbp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb $0x0, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq %rax, 0x20(%r14)
leaq -0x50(%rbp), %rsi
callq 0x5160
addq $0x10, %rbx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
callq 0x2f83e
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x27ca8
movq -0x20(%rbx), %rdi
cmpq %r14, %rdi
je 0x2e69b
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x52e0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2e6b4
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x52e0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x5140
movq %rax, %r15
cmpb $0x2a, %r14b
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x12fdf(%rip), %rax     # 0x416c0
leaq 0x12ff8(%rip), %rcx     # 0x416e0
cmoveq %rax, %rcx
movq %r15, %rdi
callq 0x1a648
jmp 0x2e727
movl $0x30, %edi
callq 0x5140
movq %rax, %r15
cmpb $0x2a, %r14b
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x12fec(%rip), %rax     # 0x41700
leaq 0x13005(%rip), %rcx     # 0x41720
cmoveq %rax, %rcx
movq %r15, %rdi
callq 0x1a648
leaq 0xd192(%rip), %rax      # 0x3b8c0
movq %rax, (%r15)
leaq 0xcf20(%rip), %rsi      # 0x3b658
leaq -0x13f0b(%rip), %rdx    # 0x1a834
movq %r15, %rdi
callq 0x5520
jmp 0x2e749
movq %rax, %rbx
movq %r15, %rdi
callq 0x5230
jmp 0x2e76e
jmp 0x2e76b
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x27a7c
jmp 0x2e76e
jmp 0x2e76b
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2e787
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x52e0
movq %rbx, %rdi
callq 0x5560
nop