// File: /workspace/github_cpp_makefile_star2_O3/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
movq %rdi, %rbx
leaq -0x40(%rbp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb $0x0, (%r14)
movq %rax, -0x60(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x2af72
movq %rbx, %rdi
callq 0x2eff8
movb $0x0, 0x62(%rbx)
movl 0x8(%rbx), %eax
movl %eax, -0x30(%rbp)
movl 0xc(%rbx), %eax
movl %eax, -0x2c(%rbp)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2f374
leaq 0x1421e(%rip), %r14     # 0x40830
leaq -0x50(%rbp), %r15
movq %rbx, %rdi
callq 0x2f2b6
cmpb $-0x1, %al
je 0x2c646
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
jne 0x2c646
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
movq %r15, %rdi
callq 0x4280
jmp 0x2c616
leaq -0xa8(%rbp), %r15
leaq 0x1417c(%rip), %r14     # 0x407d0
leaq -0xb8(%rbp), %r13
leaq 0x141ce(%rip), %r12     # 0x40830
movq %r14, %rdi
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
je 0x2c680
movq %rbx, %rdi
movl $0x1, %esi
callq 0x2f374
jmp 0x2c662
movq %rbx, %rdi
callq 0x2f2b6
cmpb $-0x1, %al
je 0x2c733
leaq 0x14169(%rip), %rdi     # 0x40800
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
jne 0x2c733
leaq 0x143f2(%rip), %rdi     # 0x40aa0
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
jne 0x2c733
movq %r15, -0xb8(%rbp)
movq $0x0, -0xb0(%rbp)
movb $0x0, -0xa8(%rbp)
movq %rbx, %rdi
callq 0x2f2b6
cmpb $-0x1, %al
je 0x2c703
movq %r12, %rdi
movq %rbx, %rsi
callq 0x28ea8
testb %al, %al
jne 0x2c703
movq %rbx, %rdi
callq 0x2f2dc
movsbl %al, %esi
movq %r13, %rdi
callq 0x4280
jmp 0x2c6d3
leaq -0x70(%rbp), %rdi
movq %r13, %rsi
callq 0x2dd28
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c662
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x2c662
xorl %eax, %eax
leaq -0xa8(%rbp), %rdi
movq %rax, -0x10(%rdi)
movl -0x30(%rbp), %ecx
movl %ecx, -0x8(%rdi)
movl -0x2c(%rbp), %ecx
movl %ecx, -0x4(%rdi)
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb $0x0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
movq %rax, 0x20(%r15)
leaq -0x50(%rbp), %rsi
callq 0x4160
leaq -0x88(%rbp), %r14
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x2dd74
addq $0x10, %rbx
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdi
callq 0x2e22e
movq %r14, %rdi
callq 0x2670a
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c7bd
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x70(%rbp), %rdi
callq 0x2670a
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2c7df
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x42d0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2c80f
movq %rax, %rbx
jmp 0x2c836
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x264de
jmp 0x2c832
jmp 0x2c814
jmp 0x2c80f
jmp 0x2c80f
movq %rax, %rbx
jmp 0x2c832
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2c832
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x40(%rbp), %r14
leaq -0x70(%rbp), %rdi
callq 0x2670a
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x2c854
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4550