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

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

			Token token = pScanner->peek();
			if(token.type != TT_KEY && token.type != TT_BLOCK_END)
				throw ParserException(token.line, token.column, ErrorMsg::END_OF_MAP);

			pScanner->pop();
			if(token.type == TT_BLOCK_END)
				break;

			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);
			}

			// 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 $0x68, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x1d516
addq $0x8, %r15
leaq -0x88(%rbp), %r12
movq %r14, %rdi
callq 0x1d4b4
testb %al, %al
jne 0x192da
movq %r14, %rdi
callq 0x1d548
movq %r12, %rdi
movq %rax, %rsi
callq 0x197a8
movl -0x84(%rbp), %eax
cmpl $0x5, %eax
je 0x191f8
cmpl $0xc, %eax
jne 0x1930f
movq %r14, %rdi
callq 0x1d516
cmpl $0x5, -0x84(%rbp)
je 0x192bf
pushq $0x58
popq %rdi
callq 0x42a0
movq %rax, %r13
movq %rax, %rdi
callq 0x19ec2
movq %r13, -0x38(%rbp)
pushq $0x58
popq %rdi
callq 0x42a0
movq %rax, %r13
movq %rax, %rdi
callq 0x19ec2
movq %r13, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x19f44
movq %r14, %rdi
callq 0x1d4b4
testb %al, %al
jne 0x1927b
movq %r14, %rdi
callq 0x1d548
cmpl $0xd, 0x4(%rax)
jne 0x1927b
movq %r14, %rdi
callq 0x1d516
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x19f44
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
movq %r12, %rdi
callq 0x19892
jmp 0x191c1
leaq -0x88(%rbp), %rdi
callq 0x19892
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r14
leaq 0x16e34(%rip), %rcx     # 0x30120
pushq $-0x1
popq %rdx
movq %rax, %rdi
movl %edx, %esi
callq 0x18be0
leaq 0x14340(%rip), %rsi     # 0x2d640
leaq -0x9735(%rip), %rdx     # 0xfbd2
movq %r14, %rdi
callq 0x44f0
pushq $0x30
popq %rdi
callq 0x4130
movq %rax, %r14
movl -0x80(%rbp), %esi
movl -0x7c(%rbp), %edx
leaq 0x16df9(%rip), %rcx     # 0x30120
movq %rax, %rdi
callq 0x18be0
leaq 0x1430a(%rip), %rsi     # 0x2d640
leaq -0x976b(%rip), %rdx     # 0xfbd2
movq %r14, %rdi
callq 0x44f0
jmp 0x1938a
movq %rax, %rbx
movq %r14, %rdi
callq 0x4210
jmp 0x193a4
movq %rax, %rbx
movq %r14, %rdi
callq 0x4210
jmp 0x193b0
jmp 0x1938f
jmp 0x1938a
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r13, %rdi
callq 0x42b0
jmp 0x193a4
movq %rax, %rbx
jmp 0x1939b
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r13, %rdi
callq 0x42b0
jmp 0x1939b
movq %rax, %rbx
jmp 0x193a4
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x1986a
leaq -0x38(%rbp), %rdi
callq 0x1986a
leaq -0x88(%rbp), %rdi
callq 0x19892
movq %rbx, %rdi
callq 0x4530