// File: /workspace/github_cpp_makefile_star2_O2/mhe[P]raytracerframework_cpp/yaml/map.cpp
// Function: YAML::Map::ParseFlow(YAML::Scanner*, YAML::ParserState const&)
void Map::ParseFlow(Scanner *pScanner, const ParserState& state)
	{
		// eat start token
		pScanner->pop();

		while(1) {
			if(pScanner->empty())
				throw ParserException(-1, -1, ErrorMsg::END_OF_MAP_FLOW);

			Token& token = pScanner->peek();
			// first check for end
			if(token.type == TT_FLOW_MAP_END) {
				pScanner->pop();
				break;
			}

			// now it better be a key
			if(token.type != TT_KEY)
				throw ParserException(token.line, token.column, ErrorMsg::END_OF_MAP_FLOW);

			pScanner->pop();

			std::auto_ptr <Node> pKey(new Node), pValue(new Node);

			// grab key
			pKey->Parse(pScanner, state);

			// now grab value (optional)
			if(!pScanner->empty() && pScanner->peek().type == TT_VALUE) {
				pScanner->pop();
				pValue->Parse(pScanner, state);
			}

			// now eat the separator (or could be a map end, which we ignore - but if it's neither, then it's a bad node)
			Token& nextToken = pScanner->peek();
			if(nextToken.type == TT_FLOW_ENTRY)
				pScanner->pop();
			else if(nextToken.type != TT_FLOW_MAP_END)
				throw ParserException(nextToken.line, nextToken.column, ErrorMsg::END_OF_MAP_FLOW);

			// assign the map with the actual pointers
			m_data[pKey.release()] = pValue.release();
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
callq 0x1d516
addq $0x8, %r15
pushq $0x58
popq %r12
movq %rbx, %rdi
callq 0x1d4b4
testb %al, %al
jne 0x194fb
movq %rbx, %rdi
callq 0x1d548
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0xc, %eax
jne 0x194df
movq %rbx, %rdi
callq 0x1d516
movq %r12, %rdi
callq 0x42a0
movq %rax, %r13
movq %rax, %rdi
callq 0x19ec2
movq %r13, -0x38(%rbp)
movq %r12, %rdi
callq 0x42a0
movq %rax, %r13
movq %rax, %rdi
callq 0x19ec2
movq %r13, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x19f44
movq %rbx, %rdi
callq 0x1d4b4
testb %al, %al
jne 0x1947f
movq %rbx, %rdi
callq 0x1d548
cmpl $0xd, 0x4(%rax)
jne 0x1947f
movq %rbx, %rdi
callq 0x1d516
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x19f44
movq %rbx, %rdi
callq 0x1d548
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0xa, %eax
je 0x194a3
cmpl $0xb, %eax
jne 0x19554
movq %rbx, %rdi
callq 0x1d516
movq -0x30(%rbp), %r13
andq $0x0, -0x30(%rbp)
movq -0x38(%rbp), %rax
andq $0x0, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq %r15, %rdi
leaq -0x40(%rbp), %rsi
callq 0x19800
movq %r13, (%rax)
leaq -0x30(%rbp), %rdi
callq 0x1986a
leaq -0x38(%rbp), %rdi
callq 0x1986a
jmp 0x193e2
cmpl $0xa, %eax
jne 0x1951c
movq %rbx, %rdi
callq 0x1d516
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r14
leaq 0x16c33(%rip), %rcx     # 0x30140
pushq $-0x1
popq %rdx
movq %rax, %rdi
movl %edx, %esi
callq 0x18be0
jmp 0x1953e
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r14
movl 0x8(%r13), %esi
movl 0xc(%r13), %edx
leaq 0x16c0a(%rip), %rcx     # 0x30140
movq %rax, %rdi
callq 0x18be0
leaq 0x140fb(%rip), %rsi     # 0x2d640
leaq -0x997a(%rip), %rdx     # 0xfbd2
movq %r14, %rdi
callq 0x44f0
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r14
movl 0x8(%r13), %esi
movl 0xc(%r13), %edx
leaq 0x16bd2(%rip), %rcx     # 0x30140
movq %rax, %rdi
callq 0x18be0
leaq 0x140c3(%rip), %rsi     # 0x2d640
leaq -0x99b2(%rip), %rdx     # 0xfbd2
movq %r14, %rdi
callq 0x44f0
jmp 0x195d3
movq %rax, %rbx
movq %r14, %rdi
callq 0x4210
jmp 0x195d6
jmp 0x1959d
movq %rax, %rbx
movq %r14, %rdi
callq 0x4210
jmp 0x195e8
movq %rax, %rbx
jmp 0x195df
jmp 0x195d3
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r13, %rdi
callq 0x42b0
jmp 0x195e8
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r13, %rdi
callq 0x42b0
jmp 0x195df
jmp 0x195d3
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x1986a
leaq -0x38(%rbp), %rdi
callq 0x1986a
movq %rbx, %rdi
callq 0x4530