// File: /workspace/github_cpp_makefile_star2_O1/luooofan[P]hblzbd_compiler/src/main.cpp
// Function: main
int main(int argc, char **argv) {
  // MyAssert(0);
  bool opt = false, print_usage = false;
  char *src = nullptr, *output = nullptr, *log_file = nullptr;
  // parse command line options and check
  for (int ch; (ch = getopt(argc, argv, "Sl:o:O:h")) != -1;) {
    switch (ch) {
      case 'S':
        // do nothing
        break;
      case 'l':
        log_file = strdup(optarg);
        break;
      case 'o':
        output = strdup(optarg);
        break;
      case 'O':
        opt = atoi(optarg) > 0;
        break;
      case 'h':
        print_usage = true;
        break;
      default:
        break;
    }
  }

  if (optind <= argc) {
    src = argv[optind];
  }

  if (src == nullptr || print_usage) {
    std::cerr << "Usage: " << argv[0] << " [-S] [-l log_file] [-o output_file] [-O level] input_file" << std::endl;
    return 1;
  }

  if (nullptr != src) {
    freopen(src, "r", stdin);
  }
  std::ofstream logfile;
  if (nullptr != log_file) {
    logfile.open(log_file);
  }

#ifdef DEBUG_PROCESS
  std::cout << "Parser Start:" << std::endl;
#endif
  yyset_lineno(1);
  yyparse();  // if success, ast_root is valid
  // MyAssert(0);
#ifdef DEBUG_PROCESS
  std::cout << "Parser End." << std::endl;
#endif
  yylex_destroy();

  MyAssert(nullptr != ast_root);
  if (logfile.is_open() && AST_LOG) {
    logfile << "AST:" << std::endl;
    ast_root->PrintNode(0, logfile);
  }

#ifdef DEBUG_PROCESS
  std::cout << "Generate IR Start:" << std::endl;
#endif
  std::vector<IR *> *ir_list_ptr = new std::vector<IR *>();
  {
    ir::ContextInfo ctx;
    ast_root->GenerateIR(ctx, *ir_list_ptr);
  }
#ifdef DEBUG_PROCESS
  std::cout << "Generate IR End." << std::endl;
#endif
  // MyAssert(0);
  delete ast_root;

  if (logfile.is_open() && IRLIST_LOG) {
    ir::PrintFuncTable(logfile);
    ir::PrintScopes(logfile);
    logfile << "IRList:" << std::endl;
    for (auto ir : *ir_list_ptr) {
      ir->PrintIR(logfile);
    }
  }

  // it represents IRModule before GenerateArm Pass and ArmModule after GenerateArm Pass.
  // the source space will be released when running GenerateArm Pass.
  Module *module_ptr = static_cast<Module *>(ConstructModule(std::string(src), *ir_list_ptr));
  delete ir_list_ptr;
  // module_ptr->EmitCode(std::cout);
  Module **const module_ptr_addr = &module_ptr;

#ifdef DEBUG_PROCESS
  std::cout << "Passes Start:" << std::endl;
#endif
  PassManager pm(module_ptr_addr);

  // ==================Add Quad-Pass Below==================
  pm.AddPass<SimplifyCFG>(true);
  pm.AddPass<DeadFunctionEliminate>(true);
  // pm.AddPass<ReachDefine>(false);
  pm.AddPass<ConstantPropagation>(true);
  pm.AddPass<Instruction_Combining>(true);
  pm.AddPass<LoopUnroll>(true);
  pm.AddPass<InvariantExtrapolation>(true);
  // ==================Add Quad-Pass Above==================
  pm.AddPass<SimplifyCFG>(true);  // necessary
  pm.AddPass<ComputeDominance>(false);
  pm.AddPass<ConvertSSA>(true);
  // ==================Add SSA-Pass Below==================
  pm.AddPass<DeadCodeEliminate>(false);
  pm.AddPass<SimpleOptimize>(true);
  pm.AddPass<DeadCodeEliminate>(false);
  pm.AddPass<GlobalValueNumbering>(true);  // actually redundant common expression eliminate
  pm.AddPass<SimpleOptimize>(true);
  pm.AddPass<DeadCodeEliminate>(false);
  // ==================Add SSA-Pass Above==================
  pm.AddPass<GenerateArmFromSSA>(true);  // define macro control MUL_TO_SHIFT DIV_TO_SHIFT MOD_TO_AND optimize
  // ==================Add Arm(vreg)-Pass Below==================
  pm.AddPass<SimplifyArm>(true);
  pm.AddPass<CondBrToInsts>(true);
  // ==================Add Arm(vreg)-Pass Above==================
  pm.AddPass<RegAlloc>(true);
  pm.AddPass<SPOffsetFixup>(true);
  // ==================Add Arm-Pass Below==================
  pm.AddPass<SimplifyArm>(false);
  pm.AddPass<CondBrToInsts>(true);
  // ==================Add Arm-Pass Above==================
  if (logfile.is_open()) {
    pm.Run(PASS_LOG, logfile);
  } else {
    pm.Run();
  }

  // exit(0);
#ifdef DEBUG_PROCESS
  std::cout << "Passes End." << std::endl;
#endif
  MyAssert(typeid(*module_ptr) == typeid(ArmModule));

#ifdef DEBUG_PROCESS
  std::cout << "Emit Start:" << std::endl;
#endif
  {
    std::ofstream outfile;
    std::string file_name = "";
    if (nullptr == output) {
      file_name = std::string(src, src + strlen(src) - 1);
    } else {
      file_name = std::string(output);
    }
    outfile.open(file_name);
    if (logfile.is_open()) {
      logfile << "Emitting code to file: " << file_name << std::endl;
    }
    module_ptr->EmitCode(outfile);
    MyAssert(outfile.is_open());
    outfile << std::endl;
    if (logfile.is_open()) {
      logfile << "EmitCode finish." << std::endl;
    }
    outfile.close();
  }
#ifdef DEBUG_PROCESS
  std::cout << "Emit End." << std::endl;
#endif

  if (logfile.is_open()) {
    logfile.close();
  }

  // release the arm module space.
  delete module_ptr;
  module_ptr = nullptr;

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x488, %rsp            # imm = 0x488
movq %rsi, %r12
movl %edi, %ebp
xorl %ebx, %ebx
leaq 0x446a3(%rip), %r15     # 0x7034a
movq 0x642ea(%rip), %r14     # 0x8ff98
movq $0x0, 0x30(%rsp)
xorl %r13d, %r13d
movl %ebp, %edi
movq %r12, %rsi
movq %r15, %rdx
callq 0x80d0
cmpl $0x6b, %eax
jg 0x2bcdb
cmpl $-0x1, %eax
je 0x2bd01
cmpl $0x68, %eax
jne 0x2bcba
movb $0x1, %r13b
jmp 0x2bcba
cmpl $0x6c, %eax
je 0x2bcf4
cmpl $0x6f, %eax
jne 0x2bcba
movq (%r14), %rdi
callq 0x8560
movq %rax, 0x30(%rsp)
jmp 0x2bcba
movq (%r14), %rdi
callq 0x8560
movq %rax, %rbx
jmp 0x2bcba
movq 0x642c8(%rip), %rax     # 0x8ffd0
movslq (%rax), %rax
cmpl %ebp, %eax
jle 0x2bd14
xorl %r15d, %r15d
jmp 0x2bd18
movq (%r12,%rax,8), %r15
testq %r15, %r15
je 0x2bd23
testb $0x1, %r13b
je 0x2bd6a
movq 0x642c6(%rip), %rbx     # 0x8fff0
leaq 0x44622(%rip), %rsi     # 0x70353
movl $0x7, %edx
movq %rbx, %rdi
callq 0x8330
movq (%r12), %r14
testq %r14, %r14
je 0x2c3c2
movq %r14, %rdi
callq 0x8160
movq 0x64296(%rip), %rdi     # 0x8fff0
movq %r14, %rsi
movq %rax, %rdx
callq 0x8330
jmp 0x2c3d9
movq 0x6423f(%rip), %rax     # 0x8ffb0
movq (%rax), %rdx
leaq 0x43458(%rip), %rsi     # 0x6f1d3
movq %r15, %rdi
callq 0x82f0
leaq 0x78(%rsp), %r12
movq %r12, %rdi
callq 0x8510
testq %rbx, %rbx
je 0x2bda7
leaq 0x78(%rsp), %rdi
movq %rbx, %rsi
movl $0x10, %edx
callq 0x8070
movq 0x64212(%rip), %rbx     # 0x8ffc0
leaq 0x445e1(%rip), %rsi     # 0x70396
movl $0xd, %edx
movq %rbx, %rdi
callq 0x8330
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x641e0(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movl $0x1, %edi
callq 0x330c8
callq 0x2ec52
movq 0x641bd(%rip), %rbx     # 0x8ffc0
leaq 0x4459a(%rip), %rsi     # 0x703a4
movl $0xb, %edx
movq %rbx, %rdi
callq 0x8330
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x6418b(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
callq 0x330ed
cmpq $0x0, 0x647d1(%rip)     # 0x90620
je 0x2c71d
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
callq 0x80e0
testb %al, %al
je 0x2beca
cmpb $0x1, 0x647b8(%rip)     # 0x90628
jne 0x2beca
leaq 0x44544(%rip), %rsi     # 0x703bd
leaq 0x78(%rsp), %r13
movl $0x4, %edx
movq %r13, %rdi
callq 0x8330
movq 0x78(%rsp), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
leaq 0x78(%rsp), %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq 0x64763(%rip), %rdi     # 0x90620
movq (%rdi), %rax
leaq 0x78(%rsp), %rdx
xorl %esi, %esi
callq *0x18(%rax)
movq 0x640ef(%rip), %r13     # 0x8ffc0
leaq 0x444ea(%rip), %rsi     # 0x703c2
movl $0x12, %edx
movq %r13, %rdi
callq 0x8330
movq (%r13), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x640bc(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movl $0x18, %edi
callq 0x8290
movq %rax, %r13
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x278(%rsp), %rdi
callq 0x2c88e
movq 0x646e0(%rip), %rdi     # 0x90620
movq (%rdi), %rax
leaq 0x278(%rsp), %rsi
movq %r13, %rdx
callq *0x10(%rax)
leaq 0x278(%rsp), %rdi
callq 0x2caf8
movq 0x6405b(%rip), %rbp     # 0x8ffc0
leaq 0x44469(%rip), %rsi     # 0x703d5
movl $0x10, %edx
movq %rbp, %rdi
callq 0x8330
movq (%rbp), %rax
addq -0x18(%rax), %rbp
movq %rbp, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x64028(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq 0x64674(%rip), %rdi     # 0x90620
testq %rdi, %rdi
je 0x2bfb7
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x80e0
testb %al, %al
je 0x2c04e
cmpb $0x1, 0x6432a(%rip)     # 0x902f8
jne 0x2c04e
leaq 0x78(%rsp), %rdi
callq 0x27ae8
leaq 0x78(%rsp), %rdi
callq 0x27924
leaq 0x443fb(%rip), %rsi     # 0x703e6
leaq 0x78(%rsp), %rbp
movl $0x7, %edx
movq %rbp, %rdi
callq 0x8330
movq 0x78(%rsp), %rax
addq -0x18(%rax), %rbp
movq %rbp, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
leaq 0x78(%rsp), %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq (%r13), %r14
movq 0x8(%r13), %rbx
cmpq %rbx, %r14
je 0x2c04e
leaq 0x78(%rsp), %rbp
movq (%r14), %rdi
movq %rbp, %rsi
callq 0x29616
addq $0x8, %r14
cmpq %rbx, %r14
jne 0x2c03a
leaq 0x288(%rsp), %r14
movq %r14, -0x10(%r14)
movq %r15, %rdi
callq 0x8160
leaq (%rax,%r15), %rdx
leaq 0x278(%rsp), %rdi
movq %r15, %rsi
callq 0xcaa0
leaq 0x278(%rsp), %rdi
movq %r13, %rsi
callq 0xfdd8
movq %rax, %rbp
movq 0x278(%rsp), %rdi
cmpq %r14, %rdi
je 0x2c0a6
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x82a0
movq %rbp, 0x28(%rsp)
movq (%r13), %rdi
testq %rdi, %rdi
leaq 0xe8(%rsp), %rbx
movq 0x30(%rsp), %r14
je 0x2c0cd
movq 0x10(%r13), %rsi
subq %rdi, %rsi
callq 0x82a0
movl $0x18, %esi
movq %r13, %rdi
callq 0x82a0
movq 0x63edf(%rip), %r13     # 0x8ffc0
leaq 0x44306(%rip), %rsi     # 0x703ee
movl $0xd, %edx
movq %r13, %rdi
callq 0x8330
movq (%r13), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x63eac(%rip), %r13     # 0x8ffc0
movq %r13, %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rdi)
movl $0x1, %esi
callq 0x2cbec
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2cd6a
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2cee8
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2d066
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2d1e4
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2d362
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2cbec
movq %rsp, %rdi
xorl %esi, %esi
callq 0x2d4e0
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2d646
movq %rsp, %rdi
xorl %esi, %esi
callq 0x2d7ac
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2d94e
movq %rsp, %rdi
xorl %esi, %esi
callq 0x2d7ac
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2dacc
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2d94e
movq %rsp, %rdi
xorl %esi, %esi
callq 0x2d7ac
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2dca2
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2de08
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2df86
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2e104
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2e282
movq %rsp, %rdi
xorl %esi, %esi
callq 0x2de08
movq %rsp, %rdi
movl $0x1, %esi
callq 0x2df86
movq %rbx, %rdi
callq 0x80e0
movb 0x643d1(%rip), %cl      # 0x90629
andb %al, %cl
testb %al, %al
jne 0x2c261
movq %r13, %r12
movzbl %cl, %esi
movq %rsp, %rdi
movq %r12, %rdx
callq 0x2e400
movq 0x63d4a(%rip), %r12     # 0x8ffc0
leaq 0x4417f(%rip), %rsi     # 0x703fc
movl $0xb, %edx
movq %r12, %rdi
callq 0x8330
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x63d17(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x2c780
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x6232a(%rip), %rax     # 0x8e600
movq 0x8(%rax), %rsi
cmpq %rsi, %rdi
je 0x2c2f5
cmpb $0x2a, (%rdi)
je 0x2c6b7
callq 0x83f0
testl %eax, %eax
jne 0x2c6b7
movq 0x63cc4(%rip), %r12     # 0x8ffc0
leaq 0x44105(%rip), %rsi     # 0x70408
movl $0xb, %edx
movq %r12, %rdi
callq 0x8330
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x63c91(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
leaq 0x278(%rsp), %rdi
callq 0x8510
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x42e6f(%rip), %rdx     # 0x6f1c9
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
callq 0xcaa0
testq %r14, %r14
je 0x2c41e
leaq 0x68(%rsp), %r15
movq %r15, -0x10(%r15)
movq %r14, %rdi
callq 0x8160
leaq (%rax,%r14), %rdx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0xcaa0
leaq 0x38(%rsp), %rdi
leaq 0x58(%rsp), %r14
movq %r14, %rsi
callq 0x83a0
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x2c472
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x2c472
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x8500
leaq 0x43f7b(%rip), %rsi     # 0x7035b
movl $0x3a, %edx
movq %rbx, %rdi
callq 0x8330
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movl $0x1, %eax
jmp 0x2c6a5
movq %r15, %rdi
callq 0x8160
leaq (%r15,%rax), %rdx
decq %rdx
leaq 0x68(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x58(%rsp), %rdi
movq %r15, %rsi
callq 0xca10
leaq 0x38(%rsp), %rdi
leaq 0x58(%rsp), %r14
movq %r14, %rsi
callq 0x83a0
movq (%r14), %rdi
cmpq %rbx, %rdi
je 0x2c46a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0xe8(%rsp), %rbx
leaq 0x278(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movl $0x10, %edx
callq 0x8170
movq %rbx, %rdi
callq 0x80e0
testb %al, %al
je 0x2c4e9
leaq 0x43f78(%rip), %rsi     # 0x70414
leaq 0x78(%rsp), %rdi
movl $0x17, %edx
callq 0x8330
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x78(%rsp), %rdi
callq 0x8330
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq %r14, %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq 0x28(%rsp), %rdi
movq (%rdi), %rax
leaq 0x278(%rsp), %r14
movq %r14, %rsi
callq *0x10(%rax)
leaq 0x2e8(%rsp), %rdi
callq 0x80e0
testb %al, %al
je 0x2c785
movq 0x278(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
leaq 0x278(%rsp), %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq %rbx, %rdi
callq 0x80e0
testb %al, %al
je 0x2c595
leaq 0x43ed4(%rip), %rsi     # 0x7042c
leaq 0x78(%rsp), %r14
movl $0x10, %edx
movq %r14, %rdi
callq 0x8330
movq 0x78(%rsp), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
leaq 0x78(%rsp), %rdi
callq 0x8030
movq %rax, %rdi
callq 0x81f0
leaq 0x278(%rsp), %rdi
callq 0x8410
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x2c5b9
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x639e8(%rip), %rax     # 0x8ffa8
movq (%rax), %r15
movq 0x18(%rax), %r12
leaq 0x280(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x278(%rsp,%rax)
callq 0x8240
leaq 0x370(%rsp), %rdi
callq 0x8130
movq 0x639c8(%rip), %r14     # 0x8ffc0
leaq 0x43e3e(%rip), %rsi     # 0x7043d
movl $0x9, %edx
movq %r14, %rdi
callq 0x8330
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x8270
movsbl %al, %esi
movq 0x63996(%rip), %rdi     # 0x8ffc0
callq 0x8030
movq %rax, %rdi
callq 0x81f0
movq %rbx, %rdi
callq 0x80e0
testb %al, %al
je 0x2c64d
leaq 0x78(%rsp), %rdi
callq 0x8410
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x2c65d
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%rsp)
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2c67c
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
leaq 0x80(%rsp), %rdi
movq %r15, -0x8(%rdi)
movq -0x18(%r15), %rax
movq %r12, 0x78(%rsp,%rax)
callq 0x8240
leaq 0x170(%rsp), %rdi
callq 0x8130
xorl %eax, %eax
addq $0x488, %rsp            # imm = 0x488
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x63932(%rip), %rdi     # 0x8fff0
leaq 0x42aa3(%rip), %rsi     # 0x6f168
movl $0x8, %edx
callq 0x8330
movq 0x6391a(%rip), %rdi     # 0x8fff0
leaq 0x43cd3(%rip), %rsi     # 0x703b0
movl $0xc, %edx
callq 0x8330
movq 0x63902(%rip), %rdi     # 0x8fff0
leaq 0x43ccb(%rip), %rsi     # 0x703c0
movl $0x1, %edx
callq 0x8330
movq 0x638ea(%rip), %rdi     # 0x8fff0
movl $0xba, %esi
callq 0x8520
movq %rax, %rdi
callq 0x8180
jmp 0x2c7e6
movq 0x638cc(%rip), %rdi     # 0x8fff0
leaq 0x42a3d(%rip), %rsi     # 0x6f168
movl $0x8, %edx
callq 0x8330
movq 0x638b4(%rip), %rdi     # 0x8fff0
leaq 0x43c6d(%rip), %rsi     # 0x703b0
movl $0xc, %edx
callq 0x8330
movq 0x6389c(%rip), %rdi     # 0x8fff0
leaq 0x43c65(%rip), %rsi     # 0x703c0
movl $0x1, %edx
callq 0x8330
movq 0x63884(%rip), %rdi     # 0x8fff0
movl $0x68, %esi
callq 0x8520
movq %rax, %rdi
callq 0x8180
jmp 0x2c7e6
callq 0x8300
movq 0x63864(%rip), %rdi     # 0x8fff0
leaq 0x429d5(%rip), %rsi     # 0x6f168
movl $0x8, %edx
callq 0x8330
movq 0x6384c(%rip), %rdi     # 0x8fff0
leaq 0x43c05(%rip), %rsi     # 0x703b0
movl $0xc, %edx
callq 0x8330
movq 0x63834(%rip), %rdi     # 0x8fff0
leaq 0x43bfd(%rip), %rsi     # 0x703c0
movl $0x1, %edx
callq 0x8330
movq 0x6381c(%rip), %rdi     # 0x8fff0
movl $0xcc, %esi
callq 0x8520
movq %rax, %rdi
callq 0x8180
movl $0xff, %edi
callq 0x8380
jmp 0x2c834
jmp 0x2c834
movq %rax, %rbx
jmp 0x2c84e
jmp 0x2c862
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r14, %rdi
je 0x2c87b
movq 0x288(%rsp), %rsi
incq %rsi
jmp 0x2c876
jmp 0x2c85d
movq %rax, %rbx
leaq 0x278(%rsp), %rdi
callq 0x2caf8
jmp 0x2c87b
jmp 0x2c85d
jmp 0x2c85d
jmp 0x2c85d
jmp 0x2c85d
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x2c84e
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x278(%rsp), %rdi
callq 0x8450
jmp 0x2c865
movq %rax, %rbx
jmp 0x2c87b
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2c87b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
leaq 0x78(%rsp), %rdi
callq 0x8450
movq %rbx, %rdi
callq 0x8540
nop