// File: /workspace/github_cpp_makefile_star2_O1/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 $0x148, %rsp            # imm = 0x148
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %r12
leaq 0x1(%r12), %rax
movq %rax, (%rsi)
movl $0x1, %esi
cmpq $0xa, %r12
jb 0x34e09
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r12, %rcx
cmpq $0x63, %rcx
jbe 0x34e02
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x34e07
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x34e09
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x34dcc
addl $-0x3, %esi
jmp 0x34e09
addl $-0x2, %esi
jmp 0x34e09
decl %esi
movl %esi, %esi
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x58(%rsp), %r13
movq %r13, %rdi
xorl %edx, %edx
callq 0x104c0
movq (%r13), %rdi
movl 0x8(%r13), %esi
movq %r12, %rdx
callq 0x37bed
leaq 0x4fc08(%rip), %rcx     # 0x84a42
movl $0x5, %r8d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10460
leaq 0x40(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x34e73
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x34e7a
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x4f48b(%rip), %rsi     # 0x84328
callq 0x10770
leaq 0x20(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x34ec9
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x34ecf
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 0x82a06(%rip), %r12     # 0xb78f8
movq (%r12), %rdi
movq 0x8(%r12), %rsi
callq 0x20e41
movq 0x8(%r12), %rsi
cmpq %rsi, %rax
je 0x34f24
movq (%r12), %r12
leaq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x20e41
subq %r12, %rax
sarq $0x5, %rax
jmp 0x34f48
leaq 0x829cd(%rip), %r12     # 0xb78f8
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x20e04
movq 0x8(%r12), %rax
subq (%r12), %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 0x34f87
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x34fa3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x34fba
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x34fd6
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %rbx, %rdi
callq 0x2565a
leaq 0xa0(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x296b0
cmpq $0x0, (%r12)
je 0x351f4
leaq 0x58(%rbx), %r12
cmpl $-0xa, 0xd0(%rbx)
jne 0x352e5
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), %rax
movq %rax, -0x10(%rax)
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 0x35379
movq %rbx, %rdi
callq 0x2565a
movq %r12, 0x78(%rsp)
xorps %xmm0, %xmm0
leaq 0x80(%rsp), %rbp
movaps %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
leaq 0x30(%rsp), %r12
movl 0xd0(%rbx), %eax
cmpl $0x7d, %eax
je 0x35116
testl %eax, %eax
je 0x35222
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x25fda
cmpq $0x0, 0x30(%rsp)
je 0x352b3
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3725c
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x350cd
callq 0x1e6ee
jmp 0x350cd
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 0x3513f
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 0x30(%rsp), %rdx
leaq 0xa0(%rsp), %r8
leaq 0x80(%rsp), %r9
movq %r15, %rcx
callq 0x3bc0c
movq 0x10(%rsp), %rax
movq %rax, (%r14)
xorl %eax, %eax
movq %rax, 0x8(%r14)
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rsp)
movq %rcx, 0x8(%r14)
leaq 0x80(%rsp), %rdi
callq 0x37214
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x351c0
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x351e5
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0xb0(%rsp), %rdi
callq 0x1d736
jmp 0x351fb
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x3520d
callq 0x1e6ee
movq %r14, %rax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x40(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x46(%rsp)
movq $0xe, 0x38(%rsp)
movb $0x0, 0x4e(%rsp)
leaq 0x58(%rsp), %rsi
leaq 0x68(%rsp), %rax
movq %rax, (%rsi)
movw $0x7d, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x130(%rsp), %rdi
leaq 0x57(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0x48694
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq 0x78(%rsp), %rcx
callq 0x29894
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
movq %rax, (%rdi)
leaq 0x4f632(%rip), %rsi     # 0x848f9
leaq 0x4f640(%rip), %rdx     # 0x8490e
callq 0x1e7ca
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq 0x78(%rsp), %rcx
callq 0x29894
leaq 0x20(%rsp), %rax
movq %rax, 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 0x30(%rsp), %rsi
movq %rbp, %r14
movq %rbp, (%rsi)
movw $0x6f64, 0x10(%rsi)     # imm = 0x6F64
movq $0x2, 0x8(%rsi)
movb %al, 0x12(%rsi)
leaq 0x58(%rsp), %rdi
leaq 0x80(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x48694
leaq 0xb0(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %rbp, %r14
movq %rbp, 0x30(%rsp)
movabsq $0x6465746365707845, %rax # imm = 0x6465746365707845
movq %rax, 0x40(%rsp)
movabsq $0x607d307b60206465, %rax # imm = 0x607D307B60206465
movq %rax, 0x46(%rsp)
movq $0xe, 0x38(%rsp)
movb $0x0, 0x4e(%rsp)
leaq 0x58(%rsp), %rsi
leaq 0x68(%rsp), %rax
movq %rax, (%rsi)
movw $0x7b, 0x10(%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x80(%rsp), %rdi
leaq 0x130(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x48694
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
movq %r12, %rcx
callq 0x29894
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3542d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x3542d
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1dca2
jmp 0x35474
movq %rax, %rbx
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x35465
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35465
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x1dca2
jmp 0x354b3
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x35490
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x35686
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35686
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x354ca
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x35693
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35693
jmp 0x35676
jmp 0x35676
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x35526
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35526
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x1d736
jmp 0x35693
movq %rax, %rbx
jmp 0x35693
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x35577
movq 0xc8(%rsp), %rsi
subq %rdi, %rsi
callq 0x103d0
jmp 0x35577
movq %rax, %rbx
jmp 0x35593
movq %rax, %rbx
jmp 0x355aa
movq %rax, %rbx
jmp 0x35686
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x35593
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x355aa
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x356a5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x356a5
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x355f3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x355f3
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x1dca2
jmp 0x35628
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x35665
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35665
jmp 0x35662
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x35644
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x35679
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x35679
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x35679
callq 0x1e6ee
jmp 0x35679
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x37214
leaq 0xb0(%rsp), %rdi
callq 0x211f6
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x356a5
callq 0x1e6ee
movq %rbx, %rdi
callq 0x106f0
nop