// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c56c
movq %rbx, %rdi
callq 0x3061e
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 0x3099c
leaq 0x13c46(%rip), %r14     # 0x41840
leaq -0x50(%rbp), %r15
movq %rbx, %rdi
callq 0x308de
cmpb $-0x1, %al
je 0x2dc2e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
jne 0x2dc2e
movq %rbx, %rdi
callq 0x30904
movsbl %al, %esi
movq %r15, %rdi
callq 0x5290
jmp 0x2dbfe
leaq -0xa8(%rbp), %r15
leaq 0x13ba4(%rip), %r14     # 0x417e0
leaq -0xb8(%rbp), %r13
leaq 0x13bf6(%rip), %r12     # 0x41840
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
je 0x2dc68
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3099c
jmp 0x2dc4a
movq %rbx, %rdi
callq 0x308de
cmpb $-0x1, %al
je 0x2dd1b
leaq 0x13b91(%rip), %rdi     # 0x41810
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
jne 0x2dd1b
leaq 0x13e1a(%rip), %rdi     # 0x41ab0
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
jne 0x2dd1b
movq %r15, -0xb8(%rbp)
movq $0x0, -0xb0(%rbp)
movb $0x0, -0xa8(%rbp)
movq %rbx, %rdi
callq 0x308de
cmpb $-0x1, %al
je 0x2dceb
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2a482
testb %al, %al
jne 0x2dceb
movq %rbx, %rdi
callq 0x30904
movsbl %al, %esi
movq %r13, %rdi
callq 0x5290
jmp 0x2dcbb
leaq -0x70(%rbp), %rdi
movq %r13, %rsi
callq 0x2f330
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2dc4a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x52e0
jmp 0x2dc4a
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 0x5160
leaq -0x88(%rbp), %r14
leaq -0x70(%rbp), %rsi
movq %r14, %rdi
callq 0x2f37c
addq $0x10, %rbx
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdi
callq 0x2f83e
movq %r14, %rdi
callq 0x27ca8
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2dda5
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x52e0
leaq -0x70(%rbp), %rdi
callq 0x27ca8
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2ddc7
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x52e0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2ddf7
movq %rax, %rbx
jmp 0x2de1e
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x27a7c
jmp 0x2de1a
jmp 0x2ddfc
jmp 0x2ddf7
jmp 0x2ddf7
movq %rax, %rbx
jmp 0x2de1a
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0x2de1a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x52e0
leaq -0x40(%rbp), %r14
leaq -0x70(%rbp), %rdi
callq 0x27ca8
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x2de3c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x52e0
movq %rbx, %rdi
callq 0x5560