// File: luooofan[P]hblzbd_compiler/src/arm.cpp
// Function: arm::PushPop::EmitCode(std::ostream&)
void PushPop::EmitCode(std::ostream& outfile) {
  MyAssert(!this->reg_list_.empty());
  std::string opcode = this->opkind_ == OpKind::PUSH ? "push" : "pop";
  opcode += CondToString(this->cond_);
  outfile << "\t" << opcode << " { " << std::string(*(this->reg_list_[0]));
  for (auto iter = this->reg_list_.begin() + 1; iter != this->reg_list_.end(); ++iter) {
    outfile << ", " << std::string(**iter);
  }
  outfile << " }" << std::endl;
}

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movq %rdi, 0x100(%rsp)
movq %rsi, 0xf8(%rsp)
movq 0x100(%rsp), %rdi
movq %rdi, 0x40(%rsp)
addq $0x18, %rdi
callq 0xcd40
testb $0x1, %al
jne 0xc233
jmp 0xc28a
movq 0x13fdae(%rip), %rdi    # 0x14bfe8
leaq 0xedeb7(%rip), %rsi     # 0xfa0f8
callq 0x8330
movq %rax, %rdi
leaq 0xedeb1(%rip), %rsi     # 0xfa101
callq 0x8330
movq %rax, %rdi
leaq 0xef18b(%rip), %rsi     # 0xfb3ea
callq 0x8330
movq %rax, %rdi
movl $0xf7, %esi
callq 0x8650
movq %rax, %rdi
movq 0x13fd05(%rip), %rsi    # 0x14bf80
callq 0x8380
movl $0xff, %edi
callq 0x8460
movq 0x40(%rsp), %rax
movl 0x14(%rax), %eax
testl %eax, %eax
leaq 0xedee9(%rip), %rcx     # 0xfa184
leaq 0xedee7(%rip), %rax     # 0xfa189
cmoveq %rcx, %rax
movq %rax, 0x30(%rsp)
leaq 0xd7(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x8680
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0xc570
jmp 0xc2d6
leaq 0xd7(%rsp), %rdi
callq 0x83c0
movq 0x40(%rsp), %rax
movl 0x10(%rax), %esi
leaq 0xa0(%rsp), %rdi
callq 0x9ab0
jmp 0xc2fa
leaq 0xd8(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x84b0
jmp 0xc311
leaq 0xa0(%rsp), %rdi
callq 0x8728
movq 0xf8(%rsp), %rdi
leaq 0xede2b(%rip), %rsi     # 0xfa158
callq 0x8330
movq %rax, 0x28(%rsp)
jmp 0xc339
movq 0x28(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x8310
movq %rax, 0x20(%rsp)
jmp 0xc352
movq 0x20(%rsp), %rdi
leaq 0xede2f(%rip), %rsi     # 0xfa18d
callq 0x8330
movq %rax, 0x18(%rsp)
jmp 0xc36a
movq 0x40(%rsp), %rdi
addq $0x18, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xcd90
movq (%rax), %rsi
leaq 0x80(%rsp), %rdi
callq 0xc8f0
jmp 0xc38e
movq 0x18(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x8310
jmp 0xc3a2
leaq 0x80(%rsp), %rdi
callq 0x8728
movq 0x40(%rsp), %rdi
addq $0x18, %rdi
callq 0xcdb0
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %rdi
movl $0x1, %esi
callq 0xcde0
movq %rax, 0x78(%rsp)
movq 0x40(%rsp), %rdi
addq $0x18, %rdi
callq 0xce60
movq %rax, 0x68(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xce20
testb $0x1, %al
jne 0xc401
jmp 0xc507
movq 0xf8(%rsp), %rdi
leaq 0xedd5f(%rip), %rsi     # 0xfa16f
callq 0x8330
movq %rax, 0x10(%rsp)
jmp 0xc41c
leaq 0x78(%rsp), %rdi
callq 0xce90
movq (%rax), %rsi
leaq 0x48(%rsp), %rdi
callq 0xc8f0
jmp 0xc435
movq 0x10(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x8310
jmp 0xc446
leaq 0x48(%rsp), %rdi
callq 0x8728
leaq 0x78(%rsp), %rdi
callq 0xcea0
jmp 0xc3d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xd7(%rsp), %rdi
callq 0x83c0
jmp 0xc557
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
jmp 0xc54a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x8728
jmp 0xc54a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x8728
jmp 0xc54a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc8(%rsp)
movl %eax, 0xc4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x8728
jmp 0xc54a
movq 0xf8(%rsp), %rdi
leaq 0xedc7b(%rip), %rsi     # 0xfa191
callq 0x8330
movq %rax, 0x8(%rsp)
jmp 0xc522
movq 0x8(%rsp), %rdi
movq 0x13fa52(%rip), %rsi    # 0x14bf80
callq 0x8380
jmp 0xc535
leaq 0xd8(%rsp), %rdi
callq 0x8728
addq $0x108, %rsp            # imm = 0x108
retq
leaq 0xd8(%rsp), %rdi
callq 0x8728
movq 0xc8(%rsp), %rdi
callq 0x8670
nopw %cs:(%rax,%rax)
nop