// File: /workspace/github_cpp_makefile_star2_O1/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseForNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseForNode(std::vector<node_scope_t> *scopes)
{
	scopes->push_back({ROSSA_HASH("<FOR@" + std::to_string(scope_i++) + ">")});
	nextToken();
	auto id = ROSSA_HASH(currentToken.valueString);
	nextToken();
	if (currentToken.type != TOK_IN)
		return logErrorN(util::format(_EXPECTED_ERROR_, {KEYWORD_IN}), currentToken);
	nextToken();
	auto fors = parseEquNode(scopes);
	if (currentToken.type != TOK_DO)
		return logErrorN(util::format(_EXPECTED_ERROR_, {KEYWORD_DO}), currentToken);

	auto marker = currentToken;

	nextToken();
	if (currentToken.type != '{')
		return logErrorN(util::format(_EXPECTED_ERROR_, {"{"}), currentToken);
	nextToken();
	std::vector<ptr_node_t> body;
	while (currentToken.type != NULL_TOK)
	{
		if (currentToken.type == '}')
			break;

		if (auto e = parseExprNode(scopes))
			body.push_back(e);
		else
			return logErrorN(_FAILURE_PARSE_CODE_, currentToken);
	}
	if (currentToken.type != '}')
		return logErrorN(util::format(_EXPECTED_ERROR_, {"}"}), currentToken);
	nextToken();

	scopes->pop_back();
	return std::make_shared<ForNode>(*scopes, id, fors, body, marker);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, 0x90(%rsp)
movq (%rsi), %r12
leaq 0x1(%r12), %rax
movq %rax, (%rsi)
movl $0x1, %esi
cmpq $0xa, %r12
jb 0x35732
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x3572b
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x35730
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x35732
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x356f5
addl $-0x3, %esi
jmp 0x35732
addl $-0x2, %esi
jmp 0x35732
decl %esi
movl %esi, %esi
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
xorl %edx, %edx
callq 0x104c0
movq (%r13), %rdi
movl 0x8(%r13), %esi
movq %r12, %rdx
callq 0x37bed
leaq 0x4f2e5(%rip), %rcx     # 0x84a48
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10460
leaq 0x30(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3579c
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x357a3
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4eb62(%rip), %rsi     # 0x84328
callq 0x10770
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x357f1
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x357f8
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rsi
movq %rsp, %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x820df(%rip), %r12     # 0xb78f8
movq (%r12), %rdi
movq 0x8(%r12), %rsi
callq 0x20e41
movq 0x8(%r12), %rsi
cmpq %rsi, %rax
je 0x35849
movq (%r12), %r13
movq %rsp, %rdx
movq %r13, %rdi
callq 0x20e41
subq %r13, %rax
sarq $0x5, %rax
jmp 0x3586a
leaq 0x820a8(%rip), %r13     # 0xb78f8
movq %rsp, %rsi
movq %r13, %rdi
callq 0x20e04
movq 0x8(%r13), %rax
subq (%r13), %rax
sarq $0x5, %rax
decq %rax
leaq 0xb0(%rsp), %rsi
movq %rax, (%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
movq %r15, %rdi
callq 0x21808
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x358a9
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x358bf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x358d6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x358f2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rdi
callq 0x2565a
leaq 0xb0(%rbx), %r13
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq %r13, %rdx
callq 0x20e41
movq 0x8(%r12), %rsi
cmpq %rsi, %rax
je 0x35934
movq (%r12), %r12
movq %r12, %rdi
movq %r13, %rdx
callq 0x20e41
subq %r12, %rax
sarq $0x5, %rax
jmp 0x3594f
movq %r12, %rdi
movq %r13, %rsi
callq 0x20e04
movq 0x8(%r12), %rax
subq (%r12), %rax
sarq $0x5, %rax
decq %rax
leaq 0x58(%rbx), %r12
movq %rax, 0xa8(%rsp)
movq %rbx, %rdi
callq 0x2565a
cmpl $-0x8, 0xd0(%rbx)
jne 0x35c56
movq %rbx, %rdi
callq 0x2565a
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x296b0
cmpl $-0xa, 0xd0(%rbx)
jne 0x35ce2
leaq 0xb0(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x1e698
leaq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x1e014
movups 0xa0(%rbx), %xmm0
leaq 0x108(%rsp), %rdi
movups %xmm0, -0x10(%rdi)
leaq 0x118(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rdx
addq %rsi, %rdx
callq 0x1e014
movl 0xd0(%rbx), %eax
movl %eax, 0x128(%rsp)
movq %rbx, %rdi
callq 0x2565a
cmpl $0x7b, 0xd0(%rbx)
jne 0x35d6e
movq %rbx, %rdi
callq 0x2565a
movq %r12, 0x68(%rsp)
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rbp
movaps %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
leaq 0x20(%rsp), %r12
movl 0xd0(%rbx), %eax
cmpl $0x7d, %eax
je 0x35a9b
testl %eax, %eax
je 0x35b9b
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x25fda
cmpq $0x0, 0x20(%rsp)
je 0x35c28
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3725c
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x35a52
callq 0x1e6ee
jmp 0x35a52
movq %rbx, %rdi
callq 0x2565a
movq 0x8(%r15), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x8(%r15)
movq -0x18(%rax), %rdi
testq %rdi, %rdi
je 0x35ac4
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0x8(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
leaq 0xa8(%rsp), %r8
leaq 0x98(%rsp), %r9
movq %r15, %rcx
pushq %r13
pushq %rbp
callq 0x3bd8a
addq $0x10, %rsp
movq (%rsp), %rax
movq 0x90(%rsp), %rbx
movq %rax, (%rbx)
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rcx
movq %rax, 0x8(%rsp)
movq %rcx, 0x8(%rbx)
leaq 0x70(%rsp), %rdi
callq 0x37214
movq 0x108(%rsp), %rdi
cmpq %r14, %rdi
je 0x35b42
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x35b67
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xb0(%rsp), %rdi
callq 0x1d736
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x35b86
callq 0x1e6ee
movq %rbx, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x30(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x36(%rsp)
movq $0xe, 0x28(%rsp)
movb $0x0, 0x3e(%rsp)
leaq 0x48(%rsp), %rsi
leaq 0x58(%rsp), %rax
movq %rax, (%rsi)
movw $0x7d, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x130(%rsp), %rdi
leaq 0x47(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0x48694
movq %rsp, %rdx
movq %rbx, %rsi
movq 0x68(%rsp), %rcx
callq 0x29894
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x4ecbf(%rip), %rsi     # 0x848f9
leaq 0x4eccd(%rip), %rdx     # 0x8490e
callq 0x1e7ca
movq %rsp, %rdx
movq %rbx, %rsi
movq 0x68(%rsp), %rcx
callq 0x29894
movq %r14, %r15
movq %r14, (%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x10(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x16(%rsp)
movq $0xe, 0x8(%rsp)
xorl %eax, %eax
movb %al, 0x1e(%rsp)
leaq 0x20(%rsp), %rsi
movq %rbp, %r14
movq %rbp, (%rsi)
movw $0x6e69, 0x10(%rsi)     # imm = 0x6E69
movq $0x2, 0x8(%rsi)
movb %al, 0x12(%rsi)
leaq 0x48(%rsp), %rdi
leaq 0x70(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0xb0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x48(%rsp), %rdx
callq 0x48694
leaq 0xb0(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %r14, %r15
movq %r14, (%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x10(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x16(%rsp)
movq $0xe, 0x8(%rsp)
xorl %eax, %eax
movb %al, 0x1e(%rsp)
leaq 0x20(%rsp), %rsi
movq %rbp, %r14
movq %rbp, (%rsi)
movw $0x6f64, 0x10(%rsi)     # imm = 0x6F64
movq $0x2, 0x8(%rsi)
movb %al, 0x12(%rsi)
leaq 0x48(%rsp), %rdi
leaq 0x70(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0xb0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x48(%rsp), %rdx
callq 0x48694
leaq 0xb0(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %rbp, %r14
movq %rbp, 0x20(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x30(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x36(%rsp)
movq $0xe, 0x28(%rsp)
movb $0x0, 0x3e(%rsp)
leaq 0x48(%rsp), %rsi
leaq 0x58(%rsp), %rax
movq %rax, (%rsi)
movw $0x7b, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x70(%rsp), %rdi
leaq 0x130(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x48694
movq %rsp, %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35e17
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35e17
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1dca2
jmp 0x35e90
movq %rax, %rbx
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35e4c
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35e4c
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1dca2
jmp 0x35ecf
movq %rax, %rbx
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35e81
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35e81
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1dca2
jmp 0x35f08
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x35eac
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x360c2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x360c2
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x35ee6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x360cf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x360cf
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x35f1f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x360e1
movq 0x10(%rsp), %rsi
jmp 0x36003
jmp 0x360b5
jmp 0x360b5
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x35f6d
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35f6d
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x1d736
jmp 0x360cf
movq %rax, %rbx
jmp 0x360cf
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x35fbe
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
jmp 0x35fbe
movq %rax, %rbx
jmp 0x35fd4
movq %rax, %rbx
jmp 0x35feb
movq %rax, %rbx
jmp 0x360c2
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x35fd4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x35feb
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x360e1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x360e1
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x36033
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x36033
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x1dca2
jmp 0x36067
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x360a4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x360a4
jmp 0x360a1
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x36083
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x360b8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x360b8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x360b8
callq 0x1e6ee
jmp 0x360b8
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x37214
leaq 0xb0(%rsp), %rdi
callq 0x211f6
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x360e1
callq 0x1e6ee
movq %rbx, %rdi
callq 0x106f0
nop