// File: /workspace/github_cpp_makefile_star2_O1/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 0x2c100
movq %rbx, %rdi
callq 0x2c084
testb %al, %al
jne 0x276c1
addq $0x8, %r15
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x2c132
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0xc, %eax
jne 0x276e9
movq %rbx, %rdi
callq 0x2c100
movl $0x58, %edi
callq 0x52d0
movq %rax, %r13
movq %rax, %rdi
callq 0x280a8
movq %r13, -0x38(%rbp)
movl $0x58, %edi
callq 0x52d0
movq %rax, %r13
movq %rax, %rdi
callq 0x280a8
movq %r13, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x28164
movq %rbx, %rdi
callq 0x2c084
testb %al, %al
jne 0x27658
movq %rbx, %rdi
callq 0x2c132
cmpl $0xd, 0x4(%rax)
jne 0x27658
movq %rbx, %rdi
callq 0x2c100
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x28164
movq %rbx, %rdi
callq 0x2c132
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0xa, %eax
je 0x2767c
cmpl $0xb, %eax
jne 0x2773f
movq %rbx, %rdi
callq 0x2c100
movq -0x30(%rbp), %r13
movq %r12, -0x30(%rbp)
movq -0x38(%rbp), %rax
movq %r12, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq %r15, %rdi
leaq -0x40(%rbp), %rsi
callq 0x279e2
movq %r13, (%rax)
leaq -0x30(%rbp), %rdi
callq 0x27a4c
leaq -0x38(%rbp), %rdi
callq 0x27a4c
movq %rbx, %rdi
callq 0x2c084
testb %al, %al
je 0x275c7
movl $0x30, %edi
callq 0x5140
movq %rax, %r14
leaq 0x16a7b(%rip), %rcx     # 0x3e150
movq %rax, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x26d60
jmp 0x27729
cmpl $0xa, %eax
jne 0x27705
movq %rbx, %rdi
callq 0x2c100
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x5140
movq %rax, %r14
movl 0x8(%r13), %esi
movl 0xc(%r13), %edx
leaq 0x16a2f(%rip), %rcx     # 0x3e150
movq %rax, %rdi
callq 0x26d60
leaq 0x13f28(%rip), %rsi     # 0x3b658
leaq -0xcf03(%rip), %rdx     # 0x1a834
movq %r14, %rdi
callq 0x5520
movl $0x30, %edi
callq 0x5140
movq %rax, %r14
movl 0x8(%r13), %esi
movl 0xc(%r13), %edx
leaq 0x169f5(%rip), %rcx     # 0x3e150
movq %rax, %rdi
callq 0x1a648
leaq 0x14156(%rip), %rax     # 0x3b8c0
movq %rax, (%r14)
leaq 0x13ee4(%rip), %rsi     # 0x3b658
leaq -0xcf47(%rip), %rdx     # 0x1a834
movq %r14, %rdi
callq 0x5520
jmp 0x277ce
movq %rax, %rbx
movq %r14, %rdi
callq 0x5230
jmp 0x277d1
jmp 0x27794
movq %rax, %rbx
movq %r14, %rdi
callq 0x5230
jmp 0x277e3
movq %rax, %rbx
jmp 0x277da
jmp 0x277ce
movq %rax, %rbx
movl $0x58, %esi
movq %r13, %rdi
callq 0x52e0
jmp 0x277da
movq %rax, %rbx
movl $0x58, %esi
movq %r13, %rdi
callq 0x52e0
jmp 0x277e3
jmp 0x277ce
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x27a4c
leaq -0x38(%rbp), %rdi
callq 0x27a4c
movq %rbx, %rdi
callq 0x5560
nop