// File: /workspace/github_cpp_makefile_star2_O3/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 0xe3b4
movl 0x528(%rbx), %edx
leal 0x1(%rdx), %eax
movl %eax, 0x528(%rbx)
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xe3b4
leaq -0xb8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0xe564
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 0xd610
movq -0x88(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0xa8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd62f
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 0xde57(%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 0x6328
movl %eax, %r13d
leaq 0xdf68(%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 0xdda4
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %r14
leaq 0xdf5f(%rip), %rsi      # 0x1b632
movl $0x4, %edx
movq %rax, %rdi
callq 0x3280
leaq 0xdf0f(%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 0xddd8(%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 0xd73e
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3230
movslq %r13d, %rax
leal 0x3f(%r13), %ecx
testl %r13d, %r13d
cmovnsl %r13d, %ecx
sarl $0x6, %ecx
movslq %ecx, %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 0xaefc
leaq 0xdd6c(%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 0xdd13(%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 0xdcb0(%rip), %rsi      # 0x1b4a4
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd81a
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd833
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 0xd877
jmp 0xd877
movq %rax, %rbx
jmp 0xd893
jmp 0xd877
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0xd87a
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x3230
jmp 0xd87a
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd893
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd8ac
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
movq %rbx, %rdi
callq 0x33f0