// File: /workspace/github_cpp_makefile_star2_O2/acliusBackHome[P]kamaya/dist/x86.cpp
// Function: x86::Assembler::handleQuas()
void Assembler::handleQuas() {
  const string beginning = "global _start";
  const string block_prefix = "block";
  const string text_label = "[section .text]";
  const string data_label = "[section .data]";
  // 若 bbla(BaseBlockListAndMap)已经赋值，可以直接调用接口打印
  // 否则指令为空
  of << beginning << N;
  of << text_label << N;
  of << "_start:\n"
        "call main\n"
        "mov ebx, eax\n"
        "mov eax, 1\n"
        "int 0x80\n";
  // 打印汇编指令
  map<size_t, size_t> &lineNumToBlockID = get<1>(bbla);
  vector<BaseBlock> &baseblock = get<0>(bbla);
  for (size_t i = 0; i < quas.size(); ++i) {
    auto &qua = quas[i];
    size_t blockid = lineNumToBlockID[i];
    size_t begin_index = baseblock[blockid].get_begin_index();
    if (i == begin_index) {
      of << block_prefix << blockid << ":" << N;
    }
    string sign = get<0>(qua);
    if (quaMap.find(sign) == quaMap.end()) {
      log("cannot find this sign in quaMap" + sign);
      continue;
    }
    QuaType quaType = quaMap[sign];
    if (quaEmit.find(quaType) == quaEmit.end()) {
      log("cannot find this QuaType in quaMap");
      continue;
    }
    quaEmit[quaType](qua);
  }
  of << data_label << N;
  for (int i = 0; i < sectionData.size(); i++) {
    of << sectionData[i].symbol << ":" << T << sectionData[i].wide << T
       << sectionData[i].init << N;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
leaq 0xbf46(%rip), %rsi      # 0x3c790
leaq -0xe0(%rbp), %rdi
leaq -0xc0(%rbp), %rdx
callq 0x4130
leaq 0xbf3a(%rip), %rsi      # 0x3c79e
leaq -0xc0(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0x4130
leaq 0xbf26(%rip), %rsi      # 0x3c7a4
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x4130
leaq 0xbf1f(%rip), %rsi      # 0x3c7b4
leaq -0x80(%rbp), %rdi
leaq -0x120(%rbp), %rdx
callq 0x4130
movq (%rbx), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x4250
leaq 0x23b4d(%rip), %rsi     # 0x54408
movq %rax, %rdi
callq 0x4250
movq (%rbx), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x4250
leaq 0x23b2f(%rip), %rsi     # 0x54408
movq %rax, %rdi
callq 0x4250
movq (%rbx), %rdi
leaq 0xbed9(%rip), %rsi      # 0x3c7c4
callq 0x4280
leaq 0xf0(%rbx), %rax
movq %rax, -0x60(%rbp)
leaq 0x10(%rbx), %rax
movq %rax, -0x48(%rbp)
leaq 0x18(%rbx), %rax
movq %rax, -0x58(%rbp)
leaq 0x70(%rbx), %rax
movq %rax, -0x40(%rbp)
leaq 0x78(%rbx), %rax
movq %rax, -0x50(%rbp)
xorl %r15d, %r15d
leaq -0x100(%rbp), %r13
movq %r15, -0x38(%rbp)
movq 0xa0(%rbx), %rax
movq (%rax), %r14
movq 0x8(%rax), %rax
subq %r14, %rax
sarq $0x7, %rax
cmpq %rax, %r15
jae 0x30a68
movq -0x60(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2d95e
movq (%rax), %r12
imulq $0x48, %r12, %rdi
addq 0x120(%rbx), %rdi
callq 0x2d578
cmpq %rax, -0x38(%rbp)
jne 0x309a5
movq (%rbx), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x4250
movq %rax, %rdi
movq %r12, %rsi
callq 0x4200
movq %rax, %rdi
leaq 0xae09(%rip), %rsi      # 0x3b79a
callq 0x4280
movq %rax, %rdi
leaq 0x23a68(%rip), %rsi     # 0x54408
callq 0x4250
shlq $0x7, %r15
addq %r15, %r14
leaq 0x60(%r14), %rsi
leaq -0x120(%rbp), %r15
movq %r15, %rdi
callq 0x43a0
movq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x3234c
cmpq -0x58(%rbp), %rax
je 0x30a0f
movq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x31d80
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x40(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x325a4
cmpq -0x50(%rbp), %rax
je 0x30a2e
movq -0x40(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x31dea
movq %rax, %rdi
movq %r14, %rsi
callq 0x31e3c
jmp 0x30a54
movq %r13, %rdi
leaq 0xbddf(%rip), %rsi      # 0x3c7f8
movq %r15, %rdx
callq 0xcad6
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2e70c
jmp 0x30a4c
movq %r13, %rdi
leaq 0xbde0(%rip), %rsi      # 0x3c818
leaq -0x29(%rbp), %rdx
callq 0x4130
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2e70c
movq %r13, %rdi
callq 0x4598
movq %r15, %rdi
callq 0x4598
movq -0x38(%rbp), %r15
incq %r15
jmp 0x30925
movq (%rbx), %rdi
leaq -0x80(%rbp), %rsi
callq 0x4250
leaq 0x2398d(%rip), %rsi     # 0x54408
movq %rax, %rdi
callq 0x4250
xorl %r13d, %r13d
leaq 0x2395b(%rip), %r15     # 0x543e8
leaq 0x23974(%rip), %r12     # 0x54408
xorl %r14d, %r14d
movq 0xa8(%rbx), %rsi
movq 0xb0(%rbx), %rax
subq %rsi, %rax
cqto
pushq $0x60
popq %rcx
idivq %rcx
cmpq %r14, %rax
jbe 0x30b2a
movq (%rbx), %rdi
addq %r13, %rsi
callq 0x4250
movq %rax, %rdi
leaq 0xacd0(%rip), %rsi      # 0x3b79a
callq 0x4280
movq %rax, %rdi
movq %r15, %rsi
callq 0x4250
movq 0xa8(%rbx), %rcx
leaq (%rcx,%r13), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x4250
movq %rax, %rdi
movq %r15, %rsi
callq 0x4250
movq 0xa8(%rbx), %rcx
leaq (%rcx,%r13), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x4250
movq %rax, %rdi
movq %r12, %rsi
callq 0x4250
incq %r14
addq $0x60, %r13
jmp 0x30a97
leaq -0x80(%rbp), %rdi
callq 0x4598
leaq -0xa0(%rbp), %rdi
callq 0x4598
leaq -0xc0(%rbp), %rdi
callq 0x4598
leaq -0xe0(%rbp), %rdi
callq 0x4598
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x30bba
movq %rax, %rbx
jmp 0x30bc6
movq %rax, %rbx
jmp 0x30bd2
jmp 0x30bae
jmp 0x30bae
jmp 0x30b80
jmp 0x30b9b
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
callq 0x4598
jmp 0x30b9e
jmp 0x30b9b
jmp 0x30b9b
jmp 0x30bae
jmp 0x30bae
jmp 0x30b9b
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
callq 0x4598
jmp 0x30bb1
jmp 0x30bae
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x4598
leaq -0xa0(%rbp), %rdi
callq 0x4598
leaq -0xc0(%rbp), %rdi
callq 0x4598
leaq -0xe0(%rbp), %rdi
callq 0x4598
movq %rbx, %rdi
callq 0x4500