// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseWhileNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseWhileNode(std::vector<node_scope_t> *scopes)
{
	scopes->push_back({ROSSA_HASH("<WHI@" + std::to_string(scope_i++) + ">")});
	nextToken();
	auto ifs = parseEquNode(scopes);
	if (!ifs)
		return nullptr;
	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<WhileNode>(*scopes, ifs, body, marker);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, 0x88(%rsp)
movq (%rsi), %r12
leaq 0x1(%r12), %rax
movq %rax, (%rsi)
movl $0x1, %esi
cmpq $0xa, %r12
jb 0x34922
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x3491b
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x34920
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x34922
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x348e5
addl $-0x3, %esi
jmp 0x34922
addl $-0x2, %esi
jmp 0x34922
decl %esi
movl %esi, %esi
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x60(%rsp), %r13
movq %r13, %rdi
xorl %edx, %edx
callq 0x104c0
movq (%r13), %rdi
movl 0x8(%r13), %esi
movq %r12, %rdx
callq 0x376dd
leaq 0x4f10f(%rip), %rcx     # 0x83a62
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10460
leaq 0x48(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3498c
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
jmp 0x34993
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x38(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4e972(%rip), %rsi     # 0x83328
callq 0x10770
leaq 0x20(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x349e2
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x349e8
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rsi
leaq 0x10(%rsp), %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x80eed(%rip), %r14     # 0xb58f8
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq 0x20d1b
movq 0x8(%r14), %rsi
cmpq %rsi, %rax
je 0x34a39
movq (%r14), %r12
leaq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x20d1b
subq %r12, %rax
sarq $0x5, %rax
jmp 0x34a5d
leaq 0x80eb8(%rip), %r12     # 0xb58f8
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x20cde
movq 0x8(%r12), %rax
subq (%r12), %rax
sarq $0x5, %rax
decq %rax
leaq 0xc0(%rsp), %rsi
movq %rax, (%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi)
movq $0x0, 0x18(%rsi)
movq %r15, %rdi
leaq 0x20(%rsp), %r14
callq 0x216b8
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x34aa1
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x34ab8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x34acf
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x34aeb
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rdi
callq 0x2549e
leaq 0xb0(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2946a
cmpq $0x0, (%r12)
je 0x34cf8
leaq 0x58(%rbx), %r12
cmpl $-0xa, 0xd0(%rbx)
jne 0x34df6
leaq 0xc0(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x1e566
leaq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x1ded4
movups 0xa0(%rbx), %xmm0
leaq 0x118(%rsp), %rdi
movups %xmm0, -0x10(%rdi)
leaq 0x128(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0xb0(%rbx), %rsi
movq 0xb8(%rbx), %rdx
addq %rsi, %rdx
callq 0x1ded4
movl 0xd0(%rbx), %eax
movl %eax, 0x138(%rsp)
movq %rbx, %rdi
callq 0x2549e
cmpl $0x7b, 0xd0(%rbx)
jne 0x34e85
movq %rbx, %rdi
callq 0x2549e
movq %r12, 0x80(%rsp)
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rbp
movaps %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
leaq 0x38(%rsp), %r12
movl 0xd0(%rbx), %eax
cmpl $0x7d, %eax
je 0x34c2e
testl %eax, %eax
je 0x34d2d
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x25dc8
cmpq $0x0, 0x38(%rsp)
je 0x34dc1
movq %rbp, %rdi
movq %r12, %rsi
callq 0x36d3e
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x34be5
callq 0x1e5bc
jmp 0x34be5
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 0x34c57
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x103d0
leaq 0x18(%rsp), %rdi
movq $0x0, -0x8(%rdi)
movq %r13, (%rsp)
leaq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xb0(%rsp), %r8
leaq 0x90(%rsp), %r9
movq %r15, %rcx
callq 0x3b614
movaps 0x10(%rsp), %xmm0
movq 0x88(%rsp), %rbx
movups %xmm0, (%rbx)
leaq 0x90(%rsp), %rdi
callq 0x36cf0
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x34cc4
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x34ce9
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xc0(%rsp), %rdi
callq 0x1d5ee
jmp 0x34d06
xorps %xmm0, %xmm0
movq 0x88(%rsp), %rbx
movups %xmm0, (%rbx)
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x34d18
callq 0x1e5bc
movq %rbx, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x48(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x4e(%rsp)
movq $0xe, 0x40(%rsp)
movb $0x0, 0x56(%rsp)
leaq 0x60(%rsp), %rsi
leaq 0x70(%rsp), %rax
movq %rax, (%rsi)
movw $0x7d, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x140(%rsp), %rdi
leaq 0x5f(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x140(%rsp), %rdx
callq 0x47db4
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq 0x80(%rsp), %rcx
callq 0x29658
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
movq %rax, (%rdi)
leaq 0x4eb44(%rip), %rsi     # 0x83919
leaq 0x4eb52(%rip), %rdx     # 0x8392e
callq 0x1e698
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq 0x80(%rsp), %rcx
callq 0x29658
movq %r14, 0x10(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x20(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x26(%rsp)
movq $0xe, 0x18(%rsp)
xorl %eax, %eax
movb %al, 0x2e(%rsp)
leaq 0x38(%rsp), %rsi
movq %rbp, %r14
movq %rbp, (%rsi)
movw $0x6f64, 0x10(%rsi)     # imm = 0x6F64
movq $0x2, 0x8(%rsi)
movb %al, 0x12(%rsi)
leaq 0x60(%rsp), %rdi
leaq 0x90(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0xc0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x60(%rsp), %rdx
callq 0x47db4
leaq 0xc0(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29658
movq %rbp, %r14
movq %rbp, 0x38(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x48(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x4e(%rsp)
movq $0xe, 0x40(%rsp)
movb $0x0, 0x56(%rsp)
leaq 0x60(%rsp), %rsi
leaq 0x70(%rsp), %rax
movq %rax, (%rsi)
movw $0x7b, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x90(%rsp), %rdi
leaq 0x140(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x90(%rsp), %rdx
callq 0x47db4
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29658
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x34f39
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x34f39
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x1db60
jmp 0x34f80
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x34f71
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x34f71
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x1db60
jmp 0x34fbf
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x34f9c
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x35192
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35192
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x34fd6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3519f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x3519f
jmp 0x35182
jmp 0x35182
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x35032
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35032
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x1d5ee
jmp 0x3519f
movq %rax, %rbx
jmp 0x3519f
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x35083
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
jmp 0x35083
movq %rax, %rbx
jmp 0x3509f
movq %rax, %rbx
jmp 0x350b6
movq %rax, %rbx
jmp 0x35192
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3509f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x350b6
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x351b1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x351b1
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x350ff
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x350ff
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x1db60
jmp 0x35134
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x35171
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35171
jmp 0x3516e
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x35150
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x35185
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35185
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x35185
callq 0x1e5bc
jmp 0x35185
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x36cf0
leaq 0xc0(%rsp), %rdi
callq 0x2108a
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x351b1
callq 0x1e5bc
movq %rbx, %rdi
callq 0x106f0
nop