// File: /workspace/github_cpp_makefile_star2_O3/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 0x2cfc9
movq %rbx, %rdi
callq 0x2ed96
movb $0x0, 0x62(%rbx)
movl 0x8(%rbx), %r13d
movl 0xc(%rbx), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
callq 0x2f2dc
movl %eax, %r14d
leaq 0x138d7(%rip), %r15     # 0x408c0
leaq -0x50(%rbp), %r12
movq %r15, %rdi
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
je 0x2d011
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
movq %r12, %rdi
callq 0x4280
jmp 0x2cfed
cmpq $0x0, -0x48(%rbp)
je 0x2d0e9
movq %rbx, %rdi
callq 0x2f2b6
cmpb $-0x1, %al
je 0x2d03f
leaq 0x13aa1(%rip), %rdi     # 0x40ad0
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
je 0x2d11c
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 0x4160
addq $0x10, %rbx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
callq 0x2e22e
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x2670a
movq -0x20(%rbx), %rdi
cmpq %r14, %rdi
je 0x2d0c1
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2d0da
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x42d0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x4140
movq %rax, %r15
cmpb $0x2a, %r14b
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x135a9(%rip), %rax     # 0x406b0
leaq 0x135c2(%rip), %rcx     # 0x406d0
cmoveq %rax, %rcx
movq %r15, %rdi
callq 0x1960e
jmp 0x2d14d
movl $0x30, %edi
callq 0x4140
movq %rax, %r15
cmpb $0x2a, %r14b
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x135b6(%rip), %rax     # 0x406f0
leaq 0x135cf(%rip), %rcx     # 0x40710
cmoveq %rax, %rcx
movq %r15, %rdi
callq 0x1960e
leaq 0xd76c(%rip), %rax      # 0x3a8c0
movq %rax, (%r15)
leaq 0xd4fa(%rip), %rsi      # 0x3a658
leaq -0x13963(%rip), %rdx    # 0x19802
movq %r15, %rdi
callq 0x4510
jmp 0x2d16f
movq %rax, %rbx
movq %r15, %rdi
callq 0x4230
jmp 0x2d194
jmp 0x2d191
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x264de
jmp 0x2d194
jmp 0x2d191
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2d1ad
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4550
nop