// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseMapNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseMapNode(std::vector<node_scope_t> *scopes)
{
	nextToken();
	std::vector<std::pair<std::string, ptr_node_t>> args;
	int i = 0;
	while (currentToken.type != NULL_TOK && currentToken.type != '}')
	{
		if (i > 0)
		{
			if (currentToken.type != ',')
				return logErrorN(util::format(_EXPECTED_ERROR_, {","}), currentToken);
			nextToken();
		}
		i++;
		if (currentToken.type != TOK_STR_LIT)
			return logErrorN(_VALUE_KEY_PAIR_ERROR_, currentToken);
		auto key = currentToken.valueString;
		nextToken();
		if (currentToken.type != ':')
			return logErrorN(util::format(_EXPECTED_ERROR_, {":"}), currentToken);
		nextToken();
		if (auto b = parseEquNode(scopes))
		{
			std::pair<std::string, ptr_node_t> p = {key, b};
			args.push_back(p);
		}
		else
			return nullptr;
		if (currentToken.type == NULL_TOK)
			return logErrorN(util::format(_EXPECTED_ERROR_, {"}"}), currentToken);
	}
	nextToken();
	return std::make_shared<MapNode>(*scopes, args, currentToken);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, 0x60(%rsp)
movq %rsi, %rdi
callq 0x2565a
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x20(%rsp), %r12
xorl %r14d, %r14d
leaq 0x68(%rsp), %rbp
movl 0xd0(%rbx), %eax
testl %eax, %eax
je 0x30190
cmpl $0x7d, %eax
je 0x30190
subl $0x1, %r14d
jb 0x30087
cmpl $0x2c, %eax
jne 0x30381
movq %rbx, %rdi
callq 0x2565a
cmpl $-0x12, 0xd0(%rbx)
jne 0x3022c
movq %r12, 0x10(%rsp)
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x1e014
movq %rbx, %rdi
callq 0x2565a
cmpl $0x3a, 0xd0(%rbx)
jne 0x3025d
movq %rbx, %rdi
callq 0x2565a
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x296b0
movq 0x68(%rsp), %r12
testq %r12, %r12
je 0x3013b
leaq 0x30(%rsp), %r13
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x3751e
leaq 0xc0(%rsp), %rdi
movq %r13, %rsi
callq 0x37572
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x3011d
callq 0x1e6ee
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x30146
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x30146
movq 0x60(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x30155
callq 0x1e6ee
testq %r12, %r12
je 0x301e9
cmpl $0x0, 0xd0(%rbx)
leaq 0x20(%rsp), %r12
je 0x302ef
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x30059
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x30059
movq %rbx, %rdi
callq 0x2565a
addq $0x58, %rbx
leaq 0x38(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc0(%rsp), %r8
movq %r15, %rcx
movq %rbx, %r9
callq 0x3af68
movq 0x30(%rsp), %rax
movq 0x60(%rsp), %rbx
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x38(%rsp), %rcx
movq %rax, 0x38(%rsp)
movq %rcx, 0x8(%rbx)
jmp 0x3020a
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x30205
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x60(%rsp), %rbx
leaq 0xc0(%rsp), %rdi
callq 0x375ca
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
movq %rax, (%rdi)
leaq 0x5477e(%rip), %rsi     # 0x849be
leaq 0x547a6(%rip), %rdx     # 0x849ed
callq 0x1e7ca
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29894
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, (%r14)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x6(%r14)
movq $0xe, -0x8(%r14)
movb $0x0, 0xe(%r14)
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x3a, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x30(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x48694
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29894
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, (%r14)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x6(%r14)
movq $0xe, -0x8(%r14)
movb $0x0, 0xe(%r14)
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movw $0x7d, (%r15)
movq $0x1, -0x8(%r15)
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x30(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x48694
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29894
movq %r12, 0x10(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x20(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x26(%rsp)
movq $0xe, 0x18(%rsp)
movb $0x0, 0x2e(%rsp)
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movw $0x2c, (%r14)
movq $0x1, -0x8(%r14)
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xa8(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x48694
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29894
jmp 0x30504
jmp 0x30504
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x3043e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x3043e
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x1dca2
jmp 0x304ab
jmp 0x30451
jmp 0x30472
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x30475
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x30475
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x1dca2
jmp 0x3048e
movq %rax, %rbx
jmp 0x304ab
jmp 0x3048b
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x304ab
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x3050e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x3050e
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x3052a
movq 0x40(%rsp), %rsi
jmp 0x30522
jmp 0x30504
jmp 0x30504
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3759e
jmp 0x304f3
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x3050e
callq 0x1e6ee
jmp 0x3050e
movq %rax, %rbx
jmp 0x3052a
jmp 0x3050b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3052a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xc0(%rsp), %rdi
callq 0x375ca
movq %rbx, %rdi
callq 0x106f0
nop