// File: /workspace/github_cpp_makefile_star2_O1/RuiDGPires[P]CrimLang/src/generator.cpp
// Function: gc_Tracker::while_(crl::Node*)
void _gc_Tracker::while_(crl::Node *node){
	std::string	loop_label = label_tracker.name(label_tracker.create());
	std::string end_label	= label_tracker.name(label_tracker.create());
	this->breakable_labels = std::pair(loop_label, end_label);

	stream_funcs <<	loop_label << ":\n";

	u32 reg = this->expression_reg(node->get_child(0), stream_funcs);

	stream_funcs <<
		"CMP " << reg_tracker.reg_name(reg) << " R0\n" <<
		"JMP.Z " << end_label << "\n";
		
	reg_tracker.free(reg);

	this->parse_node(node->get_child(1));

	stream_funcs << "JMP " << loop_label << "\n" <<
		end_label << ":\n";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x528(%rdi), %r14
movl 0x528(%rdi), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x528(%rdi)
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0xe412
movl 0x528(%rbx), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x528(%rbx)
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xe412
leaq -0xb8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0xe5c4
leaq 0x4c0(%rbx), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x32b0
leaq -0x98(%rbp), %r14
leaq 0x4e0(%rbx), %rdi
movq %r14, %rsi
callq 0x32b0
movq (%r14), %rdi
leaq -0x88(%rbp), %rax
cmpq %rax, %rdi
je 0xd624
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd643
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3230
leaq 0x328(%rbx), %r15
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
leaq 0xde43(%rip), %rsi      # 0x1b4a4
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
movq (%r12), %rax
movq %r12, -0x78(%rbp)
movq %r12, %rdi
xorl %esi, %esi
callq *0x18(%rax)
leaq 0x318(%rbx), %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x6344
movl %eax, %r13d
leaq 0xdf54(%rip), %rsi      # 0x1b5f1
movl $0x4, %edx
movq %r15, %rdi
callq 0x3280
movq %r14, -0x70(%rbp)
leaq 0x500(%rbx), %r12
leaq -0xb8(%rbp), %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0xdde4
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %r14
leaq 0xdf4b(%rip), %rsi      # 0x1b632
movl $0x4, %edx
movq %rax, %rdi
callq 0x3280
leaq 0xdefb(%rip), %rsi      # 0x1b5f6
movl $0x6, %edx
movq %r14, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x3280
leaq 0xddc4(%rip), %rsi      # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
movq -0x70(%rbp), %r14
je 0xd752
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3230
movslq %r13d, %rax
leaq 0x3f(%rax), %rdx
testq %rax, %rax
cmovnsq %rax, %rdx
sarq $0x6, %rdx
shlq $0x3, %rdx
addq (%r12), %rdx
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
leaq 0x3f(%rcx), %rsi
andq %rax, %rsi
xorl %eax, %eax
cmpq %rcx, %rsi
setbe %al
movq $-0x2, %rsi
movl %r13d, %ecx
rolq %cl, %rsi
andq %rsi, -0x8(%rdx,%rax,8)
movq -0x78(%rbp), %rdi
movq (%rdi), %rax
movl $0x1, %esi
callq *0x18(%rax)
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xaf60
leaq 0xdd5a(%rip), %rsi      # 0x1b515
movl $0x4, %edx
movq %r15, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %rbx
leaq 0xdd01(%rip), %rsi      # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %rbx, %rdi
callq 0x3280
leaq 0xdc9e(%rip), %rsi      # 0x1b4a4
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd82c
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd845
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd889
jmp 0xd889
movq %rax, %rbx
jmp 0xd8a5
jmp 0xd889
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xd88c
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3230
jmp 0xd88c
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd8a5
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd8be
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x33f0