// File: /workspace/github_cpp_makefile_star2_O1/rfotino[P]consolite-compiler/src/syntax.cpp
// Function: DoWhileStatement::output(Parser*, std::shared_ptr<FunctionToken> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void DoWhileStatement::output(Parser *parser,
                              const std::shared_ptr<FunctionToken>& function,
                              const std::string& returnLabel,
                              const std::string&,
                              const std::string&) {
  // Create the break and continue labels.
  std::string breakLabel =
    parser->getUnusedLabel(function->name() + "_do_while_break");
  std::string continueLabel =
    parser->getUnusedLabel(function->name() + "_do_while_continue");
  // Output the continue label.
  parser->writeln(continueLabel + ":");
  // Output the loop body.
  _body->output(parser, function, returnLabel, breakLabel, continueLabel);
  // Test the condition.
  _condExpr->output(parser, VarLocation("L"));
  parser->writeInst("TST L L");
  parser->writeInst("JNE " + continueLabel);
  // Output the break label.
  parser->writeln(breakLabel + ":");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdx), %rax
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x58(%rax), %rsi
movq 0x60(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
callq 0xc014
leaq 0x15830(%rip), %rsi     # 0x36f0c
movq %r13, %rdi
callq 0x7560
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2170a
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x21712
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rsi
movq %rsp, %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x68(%rsp), %rdi
movq %rbx, %rsi
callq 0xa992
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2174f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21766
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
movq (%r12), %rax
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x58(%rax), %rsi
movq 0x60(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0xc014
leaq 0x1578d(%rip), %rsi     # 0x36f1c
leaq 0x48(%rsp), %rdi
callq 0x7560
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x217ba
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x217c2
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rsi
movq %rsp, %rdx
movq %rsi, 0x8(%rdx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0xa992
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x217ff
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21816
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r13, (%rdi)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
leaq 0x16dc3(%rip), %rsi     # 0x385f8
movq %rsp, %rdi
callq 0x7560
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xb2c4
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2185e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x20(%r14), %rdi
movq (%rdi), %rax
leaq 0x68(%rsp), %r8
leaq 0x28(%rsp), %r9
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq *0x8(%rax)
movq 0x10(%r14), %r14
leaq 0x48(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x1524a(%rip), %rsi     # 0x36ad8
leaq 0x15244(%rip), %rdx     # 0x36ad9
callq 0xc0a4
movq %rsp, %rdi
movq %r13, (%rdi)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
movq %rsp, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1592e
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x218d6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x218ed
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x155e6(%rip), %rsi     # 0x36ee0
leaq 0x155e6(%rip), %rdx     # 0x36ee7
leaq 0x38(%rsp), %r14
callq 0xc0a4
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xadb2
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2192c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x14e3d(%rip), %rsi     # 0x36770
movq %rsp, %rdi
leaq 0x28(%rsp), %rdx
callq 0xb963
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xadb2
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21961
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r13, (%rdi)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
callq 0xc014
leaq 0x16c78(%rip), %rsi     # 0x385f8
movq %rsp, %rdi
callq 0x7560
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xb2c4
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x219a9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x219c0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x219db
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x72c0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x21a30
jmp 0x21a30
jmp 0x21a4b
jmp 0x21a30
jmp 0x21a4b
jmp 0x21a30
jmp 0x21a4b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21a19
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x21a19
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21a4e
movq 0x58(%rsp), %rsi
jmp 0x21a41
jmp 0x21a4b
jmp 0x21a4b
jmp 0x21a30
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21a4e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x21a4e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x21a6a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21a85
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21aab
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x21aab
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21a6a
movq 0x58(%rsp), %rsi
jmp 0x21a62
movq %rax, %rbx
jmp 0x21a6a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21adf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x21adf
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21a85
movq 0x38(%rsp), %rsi
jmp 0x21a7d