// File: 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
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x55b0
movq -0x98(%rbp), %rax
testb $0x1, 0x62(%rax)
je 0x45e91
movq -0x98(%rbp), %rdi
callq 0x49a90
jmp 0x45e7e
jmp 0x45e91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4615a
movq -0x98(%rbp), %rdi
movb $0x0, 0x62(%rdi)
movl 0x8(%rdi), %eax
movl %eax, -0x40(%rbp)
movl 0xc(%rdi), %eax
movl %eax, -0x44(%rbp)
callq 0x4a890
movb %al, -0x99(%rbp)
jmp 0x45eb5
movb -0x99(%rbp), %al
movb %al, -0x45(%rbp)
movsbl -0x45(%rbp), %eax
cmpl $0x2a, %eax
sete %al
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x98(%rbp), %rsi
leaq 0x27ab5(%rip), %rdi     # 0x6d990
callq 0x3c550
movb %al, -0x9a(%rbp)
jmp 0x45ee8
movb -0x9a(%rbp), %al
testb $0x1, %al
jne 0x45ef4
jmp 0x45f1e
movq -0x98(%rbp), %rdi
callq 0x4a890
movb %al, -0x9b(%rbp)
jmp 0x45f08
movb -0x9b(%rbp), %al
movsbl %al, %esi
leaq -0x30(%rbp), %rdi
callq 0x5220
jmp 0x45f1c
jmp 0x45ecd
leaq -0x30(%rbp), %rdi
callq 0x5660
testb $0x1, %al
jne 0x45f30
jmp 0x45fe0
movl $0x30, %edi
callq 0x51b0
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0xb0(%rbp)
movl 0x8(%rax), %ecx
movl %ecx, -0xa4(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0xa0(%rbp)
testb $0x1, -0x9(%rbp)
je 0x45f73
leaq 0x27816(%rip), %rax     # 0x6d780
movq %rax, -0xb8(%rbp)
jmp 0x45f83
leaq 0x27826(%rip), %rax     # 0x6d7a0
movq %rax, -0xb8(%rbp)
jmp 0x45f83
movl -0xa0(%rbp), %edx
movl -0xa4(%rbp), %esi
movq -0xb0(%rbp), %rdi
movq -0xb8(%rbp), %rcx
callq 0x340e0
jmp 0x45fa4
movq -0xb0(%rbp), %rdi
leaq 0x2164e(%rip), %rsi     # 0x67600
leaq -0x11e89(%rip), %rdx    # 0x34130
callq 0x5690
jmp 0x4616c
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x52c0
jmp 0x4615a
movq -0x98(%rbp), %rdi
callq 0x4a840
movb %al, -0xb9(%rbp)
jmp 0x45ff4
movb -0xb9(%rbp), %al
movsbl %al, %eax
cmpl $-0x1, %eax
je 0x460de
movq -0x98(%rbp), %rsi
leaq 0x27b8c(%rip), %rdi     # 0x6dba0
callq 0x3c550
movb %al, -0xba(%rbp)
jmp 0x46021
movb -0xba(%rbp), %al
testb $0x1, %al
jne 0x460de
jmp 0x46031
movl $0x30, %edi
callq 0x51b0
movq %rax, %rcx
movq -0x98(%rbp), %rax
movq %rcx, -0xd0(%rbp)
movl 0x8(%rax), %ecx
movl %ecx, -0xc4(%rbp)
movl 0xc(%rax), %eax
movl %eax, -0xc0(%rbp)
testb $0x1, -0x9(%rbp)
je 0x46074
leaq 0x27755(%rip), %rax     # 0x6d7c0
movq %rax, -0xd8(%rbp)
jmp 0x46084
leaq 0x27765(%rip), %rax     # 0x6d7e0
movq %rax, -0xd8(%rbp)
jmp 0x46084
movl -0xc0(%rbp), %edx
movl -0xc4(%rbp), %esi
movq -0xd0(%rbp), %rdi
movq -0xd8(%rbp), %rcx
callq 0x340e0
jmp 0x460a5
movq -0xd0(%rbp), %rdi
leaq 0x2154d(%rip), %rsi     # 0x67600
leaq -0x11f8a(%rip), %rdx    # 0x34130
callq 0x5690
jmp 0x4616c
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x52c0
jmp 0x4615a
movzbl -0x9(%rbp), %esi
andl $0x1, %esi
orl $0xe, %esi
movl -0x40(%rbp), %edx
movl -0x44(%rbp), %ecx
leaq -0x90(%rbp), %rdi
callq 0x41000
jmp 0x460fc
leaq -0x80(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x5080
jmp 0x4610b
movq -0x98(%rbp), %rdi
addq $0x10, %rdi
leaq -0x90(%rbp), %rsi
callq 0x47250
jmp 0x46124
leaq -0x90(%rbp), %rdi
callq 0x35c00
leaq -0x30(%rbp), %rdi
callq 0x5788
addq $0xe0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x35c00
leaq -0x30(%rbp), %rdi
callq 0x5788
movq -0x38(%rbp), %rdi
callq 0x56c0
nopl (%rax)