// File: mhe[P]raytracerframework_cpp/yaml/scantoken.cpp
// Function: YAML::Scanner::ScanPlainScalar()
void Scanner::ScanPlainScalar()
	{
		std::string scalar;

		// set up the scanning parameters
		ScanScalarParams params;
		params.end = (m_flowLevel > 0 ? Exp::EndScalarInFlow : Exp::EndScalar) || (Exp::BlankOrBreak + Exp::Comment);
		params.eatEnd = false;
		params.indent = (m_flowLevel > 0 ? 0 : m_indents.top() + 1);
		params.fold = true;
		params.eatLeadingWhitespace = true;
		params.trimTrailingSpaces = true;
		params.chomp = CLIP;
		params.onDocIndicator = BREAK;
		params.onTabInIndentation = THROW;

		// insert a potential simple key
		if(m_simpleKeyAllowed)
			InsertSimpleKey();

		int line = INPUT.line, column = INPUT.column;
		scalar = ScanScalar(INPUT, params);

		// can have a simple key only if we ended the scalar by starting a new line
		m_simpleKeyAllowed = params.leadingSpaces;

		// finally, check and see if we ended on an illegal character
		//if(Exp::IllegalCharInScalar.Matches(INPUT))
		//	throw ParserException(INPUT.line, INPUT.column, ErrorMsg::CHAR_IN_SCALAR);

		Token token(TT_SCALAR, line, column);
		token.value = scalar;
		m_tokens.push(token);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x160(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x55b0
leaq -0x78(%rbp), %rdi
callq 0x47280
jmp 0x464ce
movq -0x160(%rbp), %rax
cmpl $0x0, 0x64(%rax)
jle 0x464eb
leaq 0x2777e(%rip), %rax     # 0x6dc60
movq %rax, -0x168(%rbp)
jmp 0x464fb
leaq 0x2773e(%rip), %rax     # 0x6dc30
movq %rax, -0x168(%rbp)
jmp 0x464fb
movq -0x168(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq 0x273f0(%rip), %rsi     # 0x6d900
leaq 0x27659(%rip), %rdx     # 0x6db70
leaq -0xe8(%rbp), %rdi
callq 0x3c780
jmp 0x46525
movq -0x170(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
leaq -0xe8(%rbp), %rdx
callq 0x3c640
jmp 0x46541
leaq -0x78(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x3c2f0
jmp 0x46553
leaq -0xb8(%rbp), %rdi
callq 0x3c2b0
leaq -0xe8(%rbp), %rdi
callq 0x3c2b0
movq -0x160(%rbp), %rax
movb $0x0, -0x48(%rbp)
cmpl $0x0, 0x64(%rax)
jle 0x46586
xorl %eax, %eax
movl %eax, -0x174(%rbp)
jmp 0x465b4
movq -0x160(%rbp), %rdi
addq $0xc0, %rdi
callq 0x40f80
movq %rax, -0x180(%rbp)
jmp 0x465a2
movq -0x180(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movl %eax, -0x174(%rbp)
movq -0x160(%rbp), %rax
movl -0x174(%rbp), %ecx
movl %ecx, -0x44(%rbp)
movb $0x1, -0x3d(%rbp)
movb $0x1, -0x3f(%rbp)
movb $0x1, -0x3c(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x1, -0x34(%rbp)
movl $0x2, -0x30(%rbp)
testb $0x1, 0x62(%rax)
je 0x46660
movq -0x160(%rbp), %rdi
callq 0x49a90
jmp 0x465f9
jmp 0x46660
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x46753
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x4674a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x4664f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x3c2b0
leaq -0xe8(%rbp), %rdi
callq 0x3c2b0
jmp 0x4674a
movq -0x160(%rbp), %rsi
movl 0x8(%rsi), %eax
movl %eax, -0xec(%rbp)
movl 0xc(%rsi), %eax
movl %eax, -0xf0(%rbp)
leaq -0x110(%rbp), %rdi
leaq -0x78(%rbp), %rdx
callq 0x44ad0
jmp 0x4668b
leaq -0x28(%rbp), %rdi
leaq -0x110(%rbp), %rsi
movq %rsi, -0x188(%rbp)
callq 0x54e0
movq -0x188(%rbp), %rdi
callq 0x5788
movq -0x160(%rbp), %rax
movb -0x2c(%rbp), %cl
andb $0x1, %cl
movb %cl, 0x62(%rax)
movl -0xec(%rbp), %edx
movl -0xf0(%rbp), %ecx
leaq -0x158(%rbp), %rdi
movl $0x11, %esi
callq 0x41000
jmp 0x466dd
leaq -0x148(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x5080
jmp 0x466ef
movq -0x160(%rbp), %rdi
addq $0x10, %rdi
leaq -0x158(%rbp), %rsi
callq 0x47250
jmp 0x46708
leaq -0x158(%rbp), %rdi
callq 0x35c00
leaq -0x78(%rbp), %rdi
callq 0x472e0
leaq -0x28(%rbp), %rdi
callq 0x5788
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x35c00
leaq -0x78(%rbp), %rdi
callq 0x472e0
leaq -0x28(%rbp), %rdi
callq 0x5788
movq -0x80(%rbp), %rdi
callq 0x56c0
nopw %cs:(%rax,%rax)