// File: /workspace/github_cpp_makefile_star2_O3/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 0x3523e
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x35237
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x3523c
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x3523e
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x35201
addl $-0x3, %esi
jmp 0x3523e
addl $-0x2, %esi
jmp 0x3523e
decl %esi
movl %esi, %esi
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x48(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x104c0
movq (%r14), %rdi
movl 0x8(%r14), %esi
movq %r12, %rdx
callq 0x376dd
leaq 0x4e7fa(%rip), %rcx     # 0x83a68
movl $0x5, %r8d
movq %r14, %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 0x352a7
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x352ae
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 0x4e057(%rip), %rsi     # 0x83328
callq 0x10770
leaq 0x10(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x352fc
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x35302
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rsi
movq %rsp, %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x805d5(%rip), %r12     # 0xb58f8
movq (%r12), %rdi
movq 0x8(%r12), %rsi
callq 0x20d1b
movq 0x8(%r12), %rsi
cmpq %rsi, %rax
je 0x35353
movq (%r12), %r14
movq %rsp, %rdx
movq %r14, %rdi
callq 0x20d1b
subq %r14, %rax
sarq $0x5, %rax
jmp 0x35373
leaq 0x8059e(%rip), %r14     # 0xb58f8
movq %rsp, %rsi
movq %r14, %rdi
callq 0x20cde
movq 0x8(%r14), %rax
subq (%r14), %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 0x216b8
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x353b2
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x353cd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x353e4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x35400
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rdi
callq 0x2549e
leaq 0xb0(%rbx), %r14
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq %r14, %rdx
callq 0x20d1b
movq 0x8(%r12), %rsi
cmpq %rsi, %rax
je 0x35442
movq (%r12), %r12
movq %r12, %rdi
movq %r14, %rdx
callq 0x20d1b
subq %r12, %rax
sarq $0x5, %rax
jmp 0x3545d
movq %r12, %rdi
movq %r14, %rsi
callq 0x20cde
movq 0x8(%r12), %rax
subq (%r12), %rax
sarq $0x5, %rax
decq %rax
leaq 0x58(%rbx), %r14
movq %rax, 0xa8(%rsp)
movq %rbx, %rdi
callq 0x2549e
cmpl $-0x8, 0xd0(%rbx)
jne 0x35751
movq %rbx, %rdi
callq 0x2549e
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2946a
cmpl $-0xa, 0xd0(%rbx)
jne 0x357e2
leaq 0xb0(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x1e566
leaq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x1ded4
movups 0xa0(%rbx), %xmm0
leaq 0x108(%rsp), %rdi
movups %xmm0, -0x10(%rdi)
leaq 0x118(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rdx
addq %rsi, %rdx
callq 0x1ded4
movl 0xd0(%rbx), %eax
movl %eax, 0x128(%rsp)
movq %rbx, %rdi
callq 0x2549e
cmpl $0x7b, 0xd0(%rbx)
jne 0x35873
movq %rbx, %rdi
callq 0x2549e
movq %r14, 0x68(%rsp)
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %rbp
movaps %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
leaq 0x20(%rsp), %r14
movl 0xd0(%rbx), %eax
cmpl $0x7d, %eax
je 0x355aa
testl %eax, %eax
je 0x35696
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x25dc8
cmpq $0x0, 0x20(%rsp)
je 0x35723
movq %rbp, %rdi
movq %r14, %rsi
callq 0x36d3e
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x35561
callq 0x1e5bc
jmp 0x35561
movq %rbx, %rdi
callq 0x2549e
movq 0x8(%r15), %rax
leaq -0x20(%rax), %rcx
movq %rcx, 0x8(%r15)
movq -0x18(%rax), %rdi
testq %rdi, %rdi
je 0x355d3
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 0x3b78c
addq $0x10, %rsp
movaps (%rsp), %xmm0
movq 0x90(%rsp), %rbx
movups %xmm0, (%rbx)
leaq 0x70(%rsp), %rdi
callq 0x36cf0
movq 0x108(%rsp), %rdi
cmpq %r12, %rdi
je 0x3563d
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x35662
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xb0(%rsp), %rdi
callq 0x1d5ee
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x35681
callq 0x1e5bc
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 0x20b38
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0x47db4
movq %rsp, %rdx
movq %rbx, %rsi
movq 0x68(%rsp), %rcx
callq 0x29658
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x4e1e4(%rip), %rsi     # 0x83919
leaq 0x4e1f2(%rip), %rdx     # 0x8392e
callq 0x1e698
movq %rsp, %rdx
movq %rbx, %rsi
movq 0x68(%rsp), %rcx
callq 0x29658
movq %r14, %r15
leaq 0x10(%rsp), %rax
movq %rax, (%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 0x20b38
leaq 0xb0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x48(%rsp), %rdx
callq 0x47db4
leaq 0xb0(%rsp), %rdx
movq %rbx, %rsi
movq %r15, %rcx
callq 0x29658
movq %r14, %r15
leaq 0x10(%rsp), %rax
movq %rax, (%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 0x20b38
leaq 0xb0(%rsp), %rdi
movq %rsp, %rsi
leaq 0x48(%rsp), %rdx
callq 0x47db4
leaq 0xb0(%rsp), %rdx
movq %rbx, %rsi
movq %r15, %rcx
callq 0x29658
movq %r14, %r15
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 0x20b38
movq %rsp, %rdi
leaq 0x20(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x47db4
movq %rsp, %rdx
movq %rbx, %rsi
movq %r15, %rcx
callq 0x29658
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3591f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x3591f
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x1db60
jmp 0x3599b
movq %rax, %rbx
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35954
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35954
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1db60
jmp 0x359da
movq %rax, %rbx
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35989
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35989
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x1db60
jmp 0x35a18
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x359b7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x35bdc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35bdc
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x359f1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35be9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35be9
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x35a2f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35bfb
movq 0x10(%rsp), %rsi
jmp 0x35b1d
jmp 0x35bcf
jmp 0x35bcf
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x35a82
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35a82
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x1d5ee
jmp 0x35be9
movq %rax, %rbx
jmp 0x35be9
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x35ad3
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
jmp 0x35ad3
movq %rax, %rbx
jmp 0x35aee
movq %rax, %rbx
jmp 0x35b05
movq %rax, %rbx
jmp 0x35bdc
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35aee
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x35b05
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x35bfb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35bfb
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35b4d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35b4d
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x1db60
jmp 0x35b81
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35bbe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35bbe
jmp 0x35bbb
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x35b9d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x35bd2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35bd2
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x35bd2
callq 0x1e5bc
jmp 0x35bd2
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x36cf0
leaq 0xb0(%rsp), %rdi
callq 0x2108a
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x35bfb
callq 0x1e5bc
movq %rbx, %rdi
callq 0x106f0
nop