// File: /workspace/github_cpp_makefile_star2_O3/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 0x2549e
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 0x2fc8e
cmpl $0x7d, %eax
je 0x2fc8e
subl $0x1, %r14d
jb 0x2fb8d
cmpl $0x2c, %eax
jne 0x2fe6b
movq %rbx, %rdi
callq 0x2549e
movl 0xd0(%rbx), %eax
cmpl $-0x12, %eax
jne 0x2fd16
movq %r12, 0x10(%rsp)
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x1ded4
movq %rbx, %rdi
callq 0x2549e
cmpl $0x3a, 0xd0(%rbx)
jne 0x2fd47
movq %rbx, %rdi
callq 0x2549e
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2946a
movq 0x68(%rsp), %r12
testq %r12, %r12
je 0x2fc3d
leaq 0x30(%rsp), %r13
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0x3700e
leaq 0xc0(%rsp), %rdi
movq %r13, %rsi
callq 0x37062
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x2fc1f
callq 0x1e5bc
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x2fc48
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2fc48
movq 0x60(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2fc57
callq 0x1e5bc
testq %r12, %r12
je 0x2fcd3
cmpl $0x0, 0xd0(%rbx)
leaq 0x20(%rsp), %r12
je 0x2fdd9
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x2fb59
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2fb59
movq %rbx, %rdi
callq 0x2549e
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 0x3a9ae
movaps 0x30(%rsp), %xmm0
movq 0x60(%rsp), %rbx
movups %xmm0, (%rbx)
jmp 0x2fcf4
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x2fcef
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x60(%rsp), %rbx
leaq 0xc0(%rsp), %rdi
callq 0x370ba
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 0x53cb4(%rip), %rsi     # 0x839de
leaq 0x53cdc(%rip), %rdx     # 0x83a0d
callq 0x1e698
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29658
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 0x20b38
leaq 0x30(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x47db4
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29658
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 0x20b38
leaq 0x30(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x47db4
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29658
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 0x20b38
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x88(%rsp), %rdx
callq 0x47db4
leaq 0x58(%rbx), %rcx
leaq 0x30(%rsp), %rdx
movq %rbx, %rsi
callq 0x29658
jmp 0x2ffee
jmp 0x2ffee
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x2ff28
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2ff28
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x1db60
jmp 0x2ff95
jmp 0x2ff3b
jmp 0x2ff5c
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x2ff5f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2ff5f
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x1db60
jmp 0x2ff78
movq %rax, %rbx
jmp 0x2ff95
jmp 0x2ff75
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ff95
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x2fff8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x2fff8
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x30014
movq 0x40(%rsp), %rsi
jmp 0x3000c
jmp 0x2ffee
jmp 0x2ffee
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3708e
jmp 0x2ffdd
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2fff8
callq 0x1e5bc
jmp 0x2fff8
movq %rax, %rbx
jmp 0x30014
jmp 0x2fff5
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x30014
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xc0(%rsp), %rdi
callq 0x370ba
movq %rbx, %rdi
callq 0x106f0
nop