// File: /workspace/github_cpp_makefile_star2_O3/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 0xbd58
leaq 0x14f6c(%rip), %rsi     # 0x35f0c
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 0x20fce
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x20fd6
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 0xa73a
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21013
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2102a
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 0xbd58
leaq 0x14ec9(%rip), %rsi     # 0x35f1c
leaq 0x48(%rsp), %rdi
callq 0x7560
movq %r13, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2107e
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x21086
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 0xa73a
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x210c3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x210da
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 0xbd58
leaq 0x16577(%rip), %rsi     # 0x37670
movq %rsp, %rdi
callq 0x7560
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xaff2
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21122
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 0x14986(%rip), %rsi     # 0x35ad8
leaq 0x14980(%rip), %rdx     # 0x35ad9
callq 0xbdee
movq %rsp, %rdi
movq %r13, (%rdi)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
callq 0xbd58
movq %rsp, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x153ca
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2119a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x211b1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x14d22(%rip), %rsi     # 0x35ee0
leaq 0x14d22(%rip), %rdx     # 0x35ee7
leaq 0x38(%rsp), %r14
callq 0xbdee
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x211f0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x14579(%rip), %rsi     # 0x35770
movq %rsp, %rdi
leaq 0x28(%rsp), %rdx
callq 0xb692
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xab5a
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21225
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 0xbd58
leaq 0x1642c(%rip), %rsi     # 0x37670
movq %rsp, %rdi
callq 0x7560
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xaff2
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2126d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x21284
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2129f
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 0x212f4
jmp 0x212f4
jmp 0x2130f
jmp 0x212f4
jmp 0x2130f
jmp 0x212f4
jmp 0x2130f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x212dd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x212dd
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21312
movq 0x58(%rsp), %rsi
jmp 0x21305
jmp 0x2130f
jmp 0x2130f
jmp 0x212f4
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x21312
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x21312
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2132e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x72c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21349
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x72c0
movq %rbx, %rdi
callq 0x74f0
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x2136f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x2136f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2132e
movq 0x58(%rsp), %rsi
jmp 0x21326
movq %rax, %rbx
jmp 0x2132e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x213a3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x72c0
jmp 0x213a3
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21349
movq 0x38(%rsp), %rsi
jmp 0x21341