// File: /workspace/github_cpp_makefile_star2_O3/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 0x2aafa
movq %rbx, %rdi
callq 0x2aa98
testb %al, %al
jne 0x26141
addq $0x8, %r15
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x2ab2c
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0xc, %eax
jne 0x26169
movq %rbx, %rdi
callq 0x2aafa
movl $0x58, %edi
callq 0x42c0
movq %rax, %r13
movq %rax, %rdi
callq 0x26b08
movq %r13, -0x38(%rbp)
movl $0x58, %edi
callq 0x42c0
movq %rax, %r13
movq %rax, %rdi
callq 0x26b08
movq %r13, -0x30(%rbp)
movq -0x38(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x26bc4
movq %rbx, %rdi
callq 0x2aa98
testb %al, %al
jne 0x260d8
movq %rbx, %rdi
callq 0x2ab2c
cmpl $0xd, 0x4(%rax)
jne 0x260d8
movq %rbx, %rdi
callq 0x2aafa
movq -0x30(%rbp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x26bc4
movq %rbx, %rdi
callq 0x2ab2c
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0xa, %eax
je 0x260fc
cmpl $0xb, %eax
jne 0x261bf
movq %rbx, %rdi
callq 0x2aafa
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 0x2644a
movq %r13, (%rax)
leaq -0x30(%rbp), %rdi
callq 0x264b4
leaq -0x38(%rbp), %rdi
callq 0x264b4
movq %rbx, %rdi
callq 0x2aa98
testb %al, %al
je 0x26047
movl $0x30, %edi
callq 0x4140
movq %rax, %r14
leaq 0x16feb(%rip), %rcx     # 0x3d140
movq %rax, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x257ee
jmp 0x261a9
cmpl $0xa, %eax
jne 0x26185
movq %rbx, %rdi
callq 0x2aafa
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x4140
movq %rax, %r14
movl 0x8(%r13), %esi
movl 0xc(%r13), %edx
leaq 0x16f9f(%rip), %rcx     # 0x3d140
movq %rax, %rdi
callq 0x257ee
leaq 0x144a8(%rip), %rsi     # 0x3a658
leaq -0xc9b5(%rip), %rdx     # 0x19802
movq %r14, %rdi
callq 0x4510
movl $0x30, %edi
callq 0x4140
movq %rax, %r14
movl 0x8(%r13), %esi
movl 0xc(%r13), %edx
leaq 0x16f65(%rip), %rcx     # 0x3d140
movq %rax, %rdi
callq 0x1960e
leaq 0x146d6(%rip), %rax     # 0x3a8c0
movq %rax, (%r14)
leaq 0x14464(%rip), %rsi     # 0x3a658
leaq -0xc9f9(%rip), %rdx     # 0x19802
movq %r14, %rdi
callq 0x4510
jmp 0x2624e
movq %rax, %rbx
movq %r14, %rdi
callq 0x4230
jmp 0x26251
jmp 0x26214
movq %rax, %rbx
movq %r14, %rdi
callq 0x4230
jmp 0x26263
movq %rax, %rbx
jmp 0x2625a
jmp 0x2624e
movq %rax, %rbx
movl $0x58, %esi
movq %r13, %rdi
callq 0x42d0
jmp 0x2625a
movq %rax, %rbx
movl $0x58, %esi
movq %r13, %rdi
callq 0x42d0
jmp 0x26263
jmp 0x2624e
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x264b4
leaq -0x38(%rbp), %rdi
callq 0x264b4
movq %rbx, %rdi
callq 0x4550
nop