// File: /workspace/github_cpp_makefile_star2_O2/mhe[P]raytracerframework_cpp/yaml/scantoken.cpp
// Function: YAML::Scanner::ScanDirective()
void Scanner::ScanDirective()
	{
		std::string name;
		std::vector <std::string> params;

		// pop indents and simple keys
		PopIndentTo(-1);
		VerifyAllSimpleKeys();

		m_simpleKeyAllowed = false;

		// store pos and eat indicator
		int line = INPUT.line, column = INPUT.column;
		INPUT.eat(1);

		// read name
		while(INPUT.peek() != EOF && !Exp::BlankOrBreak.Matches(INPUT))
			name += INPUT.get();

		// read parameters
		while(1) {
			// first get rid of whitespace
			while(Exp::Blank.Matches(INPUT))
				INPUT.eat(1);

			// break on newline or comment
			if(INPUT.peek() == EOF || Exp::Break.Matches(INPUT) || Exp::Comment.Matches(INPUT))
				break;

			// now read parameter
			std::string param;
			while(INPUT.peek() != EOF && !Exp::BlankOrBreak.Matches(INPUT))
				param += INPUT.get();

			params.push_back(param);
		}
		
		Token token(TT_DIRECTIVE, line, column);
		token.value = name;
		token.params = params;
		m_tokens.push(token);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rdi, %rbx
movb $0x0, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
andq $0x0, -0x40(%rbp)
pushq $-0x1
popq %rsi
callq 0x1d91c
movq %rbx, %rdi
callq 0x21406
movb $0x0, 0x62(%rbx)
movl 0x8(%rbx), %eax
movl %eax, -0x30(%rbp)
movl 0xc(%rbx), %eax
movl %eax, -0x2c(%rbp)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x217c8
leaq 0x147dc(%rip), %r14     # 0x33830
leaq -0xb8(%rbp), %r15
movq %rbx, %rdi
callq 0x21716
cmpb $-0x1, %al
je 0x1f08b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
jne 0x1f08b
movq %rbx, %rdi
callq 0x2173c
movsbl %al, %esi
movq %r15, %rdi
callq 0x4250
jmp 0x1f05b
leaq 0x1473e(%rip), %r14     # 0x337d0
pushq $0x1
popq %r15
leaq -0x98(%rbp), %r13
leaq 0x1478c(%rip), %r12     # 0x33830
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
je 0x1f0c0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x217c8
jmp 0x1f0a4
movq %rbx, %rdi
callq 0x21716
cmpb $-0x1, %al
je 0x1f15c
leaq 0x14729(%rip), %rdi     # 0x33800
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
jne 0x1f15c
leaq 0x149b6(%rip), %rdi     # 0x33aa0
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
jne 0x1f15c
leaq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
andq $0x0, -0x90(%rbp)
movb $0x0, -0x88(%rbp)
movq %rbx, %rdi
callq 0x21716
cmpb $-0x1, %al
je 0x1f143
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1beee
testb %al, %al
jne 0x1f143
movq %rbx, %rdi
callq 0x2173c
movsbl %al, %esi
movq %r13, %rdi
callq 0x4250
jmp 0x1f113
leaq -0x50(%rbp), %rdi
movq %r13, %rsi
callq 0x203be
movq %r13, %rdi
callq 0x45d8
jmp 0x1f0a4
leaq -0x88(%rbp), %rdi
andq $0x0, -0x10(%rdi)
movl -0x30(%rbp), %eax
movl %eax, -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 -0xb8(%rbp), %rsi
callq 0x4150
leaq -0x68(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x203fa
addq $0x10, %rbx
leaq -0x98(%rbp), %rsi
movq %rbx, %rdi
callq 0x20848
leaq -0x98(%rbp), %rdi
callq 0x19892
leaq -0x50(%rbp), %rdi
callq 0x19acc
leaq -0xb8(%rbp), %rdi
callq 0x45d8
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1f20a
jmp 0x1f20a
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x19892
jmp 0x1f21e
jmp 0x1f20f
jmp 0x1f20a
jmp 0x1f20a
movq %rax, %rbx
jmp 0x1f21e
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x45d8
leaq -0x50(%rbp), %rdi
callq 0x19acc
leaq -0xb8(%rbp), %rdi
callq 0x45d8
movq %rbx, %rdi
callq 0x4530
nop