// File: /workspace/github_cpp_makefile_star2_O3/luooofan[P]hblzbd_compiler/src/generate_ir.cpp
// Function: ast::ArrayDefineWithInit::GenerateIR(ir::ContextInfo&, std::vector<ir::IR*, std::allocator<ir::IR*>>&)
void ArrayDefineWithInit::GenerateIR(ir::ContextInfo &ctx, std::vector<ir::IR *> &gIRList) {
  auto &name = this->name_.name_.name_;
  auto &scope = ir::gScopes[ctx.scope_id_];
  auto &symbol_table = scope.symbol_table_;
  // NOTE: 只需在当前作用域查找即可 找到则重定义
  const auto &array_iter = symbol_table.find(name);
  if (array_iter == symbol_table.end()) {
    // NOTE: 常量数组不一定能删 因为可能会有变量下标
    // if (this->is_const_) {
    // symbol_table.insert({name, ir::SymbolTableItem(true, true, -1)});
    // } else {
    symbol_table.insert({name, ir::SymbolTableItem(true, this->is_const_)});
    // }
    auto &symbol_item = symbol_table.find(name)->second;
    // 填shape
    for (const auto &shape : this->name_.shape_list_) {
      shape->Evaluate(ctx, gIRList);
      // 如果Evaluate没有执行成功会直接退出程序
      // 如果执行成功说明返回的一定是立即数
      symbol_item.shape_.push_back(ctx.opn_.imm_num_);
    }

    // 填width和dim total num
    std::stack<int> temp_width;
    int width = ir::kIntWidth;
    temp_width.push(width);
    for (auto reiter = symbol_item.shape_.rbegin(); reiter != symbol_item.shape_.rend(); ++reiter) {
      width *= *reiter;
      temp_width.push(width);
    }
    while (!temp_width.empty()) {
      symbol_item.width_.push_back(temp_width.top());
      temp_width.pop();
    }

    // 完成赋值操作 或者 填写initval(global or const)
    // prepare for arrayinitval
    ctx.dim_total_num_.clear();
    for (const auto width : symbol_item.width_) {
      ctx.dim_total_num_.push_back(width / ir::kIntWidth);
    }
    // ctx.dim_total_num_.push_back(1);
    ctx.array_name_ = name;
    ctx.array_offset_ = 0;
    ctx.brace_num_ = 1;

    if (ctx.scope_id_ == 0) {
      this->value_.Evaluate(ctx, gIRList);
    } else {
      // GenIR ALLOCA
      gIRList.push_back(new ir::IR{IROpKind::ALLOCA,
                                   ir::Opn{OpnType::Array, name, ctx.scope_id_, new ir::Opn(OpnType::Imm, 0)},
                                   ir::Opn{OpnType::Imm, symbol_item.width_[0]}});
      gIRList.push_back(new ir::IR(IROpKind::PARAM, {OpnType::Imm, symbol_item.width_[0]}));
      gIRList.push_back(new ir::IR(IROpKind::PARAM, IMM_0_OPN));
      gIRList.push_back(
          new ir::IR(IROpKind::PARAM, {OpnType::Array, name, ctx.scope_id_, new ir::Opn(OpnType::Imm, 0)}));
      ir::Opn temp = ir::Opn(OpnType::Null);
      // ctx.opn_ = temp;
      // ctx.shape_.clear();
      // TODO: 这里用name会导致段错误
      auto opn1 = ir::Opn(OpnType::Func, std::string("memset"));
      auto opn2 = ir::Opn(OpnType::Imm, 3);
      gIRList.push_back(new ir::IR(IROpKind::CALL, opn1, opn2, temp));
      if (this->is_const_) {
        ctx.array_offset_ = 0;
        ctx.brace_num_ = 1;
        this->value_.Evaluate(ctx, gIRList);
      }
      ctx.array_offset_ = 0;
      ctx.brace_num_ = 1;
      this->value_.GenerateIR(ctx, gIRList);
    }
  } else {
    ir::SemanticError(this->line_no_, this->name_.name_.name_ + ": variable redefined");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq 0x10(%rdi), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rbp
movslq (%rsi), %r13
leaq 0x77df0(%rip), %rax     # 0x8f578
shlq $0x6, %r13
addq (%rax), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x128fa
testq %rax, %rax
je 0x1780c
movl 0x8(%r12), %ebx
movq 0x10(%r12), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0xc6dc
leaq 0x5743b(%rip), %rsi     # 0x6ec13
movq %r14, %rdi
callq 0x8590
leaq 0x30(%rsp), %rsi
movl %ebx, %edi
callq 0x2b6aa
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x1815a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x1815a
movzbl 0xc(%r12), %edx
leaq 0x100(%rsp), %r15
movq %r15, %rdi
movl $0x1, %esi
callq 0x25368
leaq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x25898
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0x26bbc
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x17861
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1787b
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x17892
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x178ad
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x138(%rsp), %rdi
testq %rdi, %rdi
je 0x178ca
movq 0x148(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x178e7
movq 0x130(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq %rbx, 0x10(%rsp)
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x17909
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq %r13, %rdi
movq %rbp, 0x28(%rsp)
movq %rbp, %rsi
callq 0x128fa
movq %rax, %r13
movq %r12, 0x20(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%rax), %rbx
movq 0x20(%rax), %r12
cmpq %r12, %rbx
je 0x17979
leaq 0xc(%r14), %r15
leaq 0x30(%r13), %rbp
movq (%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq 0x10(%rsp), %rdx
callq *0x18(%rax)
movq 0x38(%r13), %rsi
cmpq 0x40(%r13), %rsi
je 0x17965
movl (%r15), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%r13)
jmp 0x17970
movq %rbp, %rdi
movq %r15, %rdx
callq 0x129f6
addq $0x10, %rbx
cmpq %r12, %rbx
jne 0x1793b
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, 0x40(%r15)
movaps %xmm0, 0x30(%r15)
movaps %xmm0, 0x20(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x275f8
leaq 0x57836(%rip), %rax     # 0x6f1e0
movl (%rax), %r12d
movl %r12d, 0xc(%rsp)
movq 0x30(%r15), %rax
movq 0x40(%r15), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x179d1
movl %r12d, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x179e0
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2776e
movq 0x38(%r13), %rbx
cmpq 0x30(%r13), %rbx
je 0x17a35
leaq 0x30(%rsp), %r15
leaq 0xc(%rsp), %rbp
movl 0xc(%rsp), %eax
imull -0x4(%rbx), %eax
movl %eax, 0xc(%rsp)
movq 0x60(%rsp), %rcx
movq 0x70(%rsp), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x17a20
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x60(%rsp)
jmp 0x17a2b
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2776e
addq $-0x4, %rbx
cmpq 0x30(%r13), %rbx
jne 0x179f4
movq 0x60(%rsp), %rdx
cmpq 0x40(%rsp), %rdx
je 0x17ae5
movq %r13, %rbp
addq $0x48, %rbp
movq 0x68(%rsp), %rdi
movl $0x200, %r15d           # imm = 0x200
cmpq %rdi, %rdx
jne 0x17a68
movq 0x78(%rsp), %rax
movq -0x8(%rax), %rdx
addq %r15, %rdx
addq $-0x4, %rdx
movq 0x50(%r13), %rsi
cmpq 0x58(%r13), %rsi
je 0x17a84
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x50(%r13)
jmp 0x17a91
movq %rbp, %rdi
callq 0x129f6
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rdx
cmpq %rdi, %rdx
je 0x17aa1
addq $-0x4, %rdx
jmp 0x17ad5
movl $0x200, %esi            # imm = 0x200
callq 0x82a0
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rdi
movq %rdi, 0x68(%rsp)
leaq 0x200(%rdi), %rax
movq %rax, 0x70(%rsp)
leaq 0x1fc(%rdi), %rdx
movq %rdx, 0x60(%rsp)
cmpq 0x40(%rsp), %rdx
jne 0x17a57
movq 0x90(%r14), %rax
cmpq %rax, 0x98(%r14)
je 0x17afc
movq %rax, 0x98(%r14)
movq 0x48(%r13), %rbx
movq 0x50(%r13), %r15
cmpq %r15, %rbx
je 0x17b55
leaq 0x90(%r14), %rbp
movl (%rbx), %eax
cltd
idivl %r12d
movl %eax, 0x100(%rsp)
movq 0x98(%r14), %rsi
cmpq 0xa0(%r14), %rsi
je 0x17b3c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x98(%r14)
jmp 0x17b4c
movq %rbp, %rdi
leaq 0x100(%rsp), %rdx
callq 0x2740e
addq $0x4, %rbx
cmpq %r15, %rbx
jne 0x17b10
leaq 0x68(%r14), %rdi
movq 0x28(%rsp), %rbx
movq %rbx, %rsi
callq 0x81b0
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0x88(%r14)
cmpl $0x0, (%r14)
movq 0x10(%rsp), %rdx
je 0x1813e
movl $0xe0, %edi
callq 0x8290
movq %rax, 0x18(%rsp)
leaq 0xf0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0xc6dc
movl (%r14), %ebx
movl $0x40, %edi
callq 0x8290
movq %rax, %rbp
movq %rax, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1279c
leaq 0x158(%rsp), %rdi
movl $0x5, -0x8(%rdi)
leaq 0x168(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
addq %rsi, %rdx
callq 0xc6dc
movl %ebx, 0x178(%rsp)
movq %rbp, 0x180(%rsp)
movl $0xffffffff, 0x188(%rsp) # imm = 0xFFFFFFFF
movq 0x48(%r13), %rax
movl (%rax), %edx
leaq 0x398(%rsp), %rdi
movl $0x1, %esi
callq 0x1279c
movb $0x1, %bpl
leaq 0x150(%rsp), %rdx
leaq 0x398(%rsp), %rcx
movq 0x18(%rsp), %r12
movq %r12, %rdi
movl $0x16, %esi
callq 0x25560
movq 0x10(%rsp), %rbx
leaq 0x100(%rsp), %rsi
movq %r12, (%rsi)
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x11182
leaq 0x3b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17c9c
movq 0x3b0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x17cc1
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x17cde
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x82a0
movl $0xe0, %edi
callq 0x8290
movq %rax, %rbp
movq 0x48(%r13), %rax
movl (%rax), %edx
leaq 0x358(%rsp), %rdi
movl $0x1, %esi
callq 0x1279c
movb $0x1, %r15b
leaq 0x358(%rsp), %rdx
movq %rbp, %rdi
movl $0x8, %esi
callq 0x2574c
leaq 0x100(%rsp), %rsi
movq %rbp, (%rsi)
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x11182
leaq 0x370(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17d52
movq 0x370(%rsp), %rsi
incq %rsi
callq 0x82a0
movl $0xe0, %edi
callq 0x8290
movq %rax, %r13
leaq 0x318(%rsp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1279c
movb $0x1, %bpl
leaq 0x318(%rsp), %rdx
movq %r13, %rdi
movl $0x8, %esi
callq 0x2574c
leaq 0x100(%rsp), %rsi
movq %r13, (%rsi)
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x11182
leaq 0x330(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17dc1
movq 0x330(%rsp), %rsi
incq %rsi
callq 0x82a0
movl $0xe0, %edi
callq 0x8290
movq %rax, %r13
movq 0x28(%rsp), %rax
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0xc6dc
movl (%r14), %ebx
movl $0x40, %edi
callq 0x8290
movq %rax, %r12
movq %rax, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x1279c
leaq 0x220(%rsp), %rdi
movl $0x5, -0x8(%rdi)
leaq 0x230(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %rsi, %rdx
callq 0xc6dc
leaq 0x218(%rsp), %rdx
movl %ebx, 0x28(%rdx)
movq %r12, 0x30(%rdx)
movl $0xffffffff, 0x38(%rdx) # imm = 0xFFFFFFFF
movb $0x1, %r15b
movq %r13, %rdi
movl $0x8, %esi
callq 0x2574c
movq 0x10(%rsp), %rbx
leaq 0x100(%rsp), %rsi
movq %r13, (%rsi)
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x11182
movq 0x220(%rsp), %rdi
cmpq %rbp, %rdi
je 0x17ea6
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x17ecb
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x118(%rsp), %r13
movl $0x4, -0x18(%r13)
movq %r13, -0x10(%r13)
movw $0x2d, (%r13)
movq $0x1, -0x8(%r13)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x10(%r13)
movq $0x0, 0x18(%r13)
movl %eax, 0x20(%r13)
leaq 0xd0(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x56a51(%rip), %rsi     # 0x6e967
leaq 0x56a50(%rip), %rdx     # 0x6e96d
leaq 0xc0(%rsp), %rdi
callq 0xc772
leaq 0x198(%rsp), %rdi
movl $0x3, -0x8(%rdi)
leaq 0x1a8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
addq %rsi, %rdx
callq 0xc6dc
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x1b8(%rsp)
movq $0x0, 0x1c0(%rsp)
movl %eax, 0x1c8(%rsp)
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x17f99
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x2d8(%rsp), %rdi
movl $0x1, %esi
movl $0x3, %edx
callq 0x1279c
movl $0xe0, %edi
callq 0x8290
movq %rax, %r12
leaq 0x1d0(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x28816
leaq 0x298(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x28816
leaq 0x258(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x28816
movb $0x1, %r15b
leaq 0x1d0(%rsp), %rdx
leaq 0x298(%rsp), %rcx
leaq 0x258(%rsp), %r8
movq %r12, %rdi
movl $0x9, %esi
callq 0x256ba
leaq 0x210(%rsp), %rsi
movq %r12, (%rsi)
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x11182
leaq 0x270(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1805b
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x2b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movabsq $0x100000000, %r12      # imm = 0x100000000
je 0x18086
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x1e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x180a7
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x20(%rsp), %r15
cmpb $0x1, 0xc(%r15)
jne 0x180ca
movq %r12, 0x88(%r14)
movq 0x18(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x18(%rax)
movq %r12, 0x88(%r14)
movq 0x18(%r15), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movq %rbx, %rdx
callq *0x10(%rax)
leaq 0x2f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18102
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x198(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1811f
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x18150
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x18150
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
leaq 0x30(%rsp), %rdi
callq 0x26126
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movb $0x1, %r15b
jmp 0x18295
movq %rax, %rbx
leaq 0x1e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x182dc
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x182dc
movq %rax, %rbx
jmp 0x182dc
jmp 0x18245
movq %rax, %rbx
jmp 0x1830a
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x18327
movq 0xd0(%rsp), %rsi
jmp 0x1831f
movq %rax, %rbx
jmp 0x18327
movq %rax, %rbx
movl $0x40, %esi
movq %r12, %rdi
callq 0x82a0
jmp 0x1836d
jmp 0x181fe
jmp 0x184b8
movq %rax, %rbx
jmp 0x183cc
jmp 0x184b8
movq %rax, %rbx
jmp 0x18406
jmp 0x184b8
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x18434
movq %rax, %rbx
movl $0x40, %esi
movq %rbp, %rdi
callq 0x82a0
jmp 0x1845e
movq %rax, %rbx
jmp 0x18483
jmp 0x184b8
movq %rax, %rbx
jmp 0x182e9
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x254bc
jmp 0x1825f
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x2551a
jmp 0x184c5
movq %rax, %rbx
leaq 0x270(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18295
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x2b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x182b6
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x1e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x182d7
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %r15b, %r15b
je 0x182e9
movl $0xe0, %esi
movq %r12, %rdi
callq 0x82a0
leaq 0x2f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1830a
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x198(%rsp), %rdi
cmpq %rbp, %rdi
je 0x18327
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x184bb
movq 0x118(%rsp), %rsi
incq %rsi
jmp 0x1848d
movq %rax, %rbx
movq 0x220(%rsp), %rdi
cmpq %rbp, %rdi
je 0x18370
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x18370
movq %rax, %rbx
movb $0x1, %r15b
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x18395
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %r15b, %r15b
jne 0x183cc
jmp 0x184bb
movq %rax, %rbx
leaq 0x330(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x183c3
movq 0x330(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %bpl, %bpl
je 0x184bb
movl $0xe0, %esi
movq %r13, %rdi
jmp 0x1848d
movq %rax, %rbx
leaq 0x370(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x183fd
movq 0x370(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %r15b, %r15b
je 0x184bb
movl $0xe0, %esi
movq %rbp, %rdi
jmp 0x1848d
movq %rax, %rbx
leaq 0x3b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18434
movq 0x3b0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x18461
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x18461
movq %rax, %rbx
movb $0x1, %bpl
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x1847e
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %bpl, %bpl
je 0x184bb
movl $0xe0, %esi
movq 0x18(%rsp), %rdi
callq 0x82a0
jmp 0x184bb
jmp 0x18496
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x184c5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x184c5
jmp 0x184b8
jmp 0x184b8
jmp 0x184b8
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x26126
movq %rbx, %rdi
callq 0x8540
nop