// File: /workspace/github_cpp_makefile_star2_O1/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 0x78b6a(%rip), %rax     # 0x90578
shlq $0x6, %r13
addq (%rax), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x12c3c
testq %rax, %rax
je 0x17a92
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 0xca10
leaq 0x581b5(%rip), %rsi     # 0x6fc13
movq %r14, %rdi
callq 0x8590
leaq 0x30(%rsp), %rsi
movl %ebx, %edi
callq 0x2b12a
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x183dd
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x183dd
movzbl 0xc(%r12), %edx
leaq 0x100(%rsp), %r15
movq %r15, %rdi
movl $0x1, %esi
callq 0x24c9c
leaq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x251cc
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0x26522
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x17ae7
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x17b01
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x17b18
movq 0x68(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17b33
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x138(%rsp), %rdi
testq %rdi, %rdi
je 0x17b50
movq 0x148(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x17b6d
movq 0x130(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq %rbx, 0x10(%rsp)
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x17b8f
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x82a0
movq %r13, %rdi
movq %rbp, 0x28(%rsp)
movq %rbp, %rsi
callq 0x12c3c
movq %rax, %r13
movq %r12, 0x20(%rsp)
movq 0x10(%r12), %rax
movq 0x18(%rax), %rbx
movq 0x20(%rax), %r12
cmpq %r12, %rbx
je 0x17bff
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 0x17beb
movl (%r15), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x38(%r13)
jmp 0x17bf6
movq %rbp, %rdi
movq %r15, %rdx
callq 0x12d38
addq $0x10, %rbx
cmpq %r12, %rbx
jne 0x17bc1
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 0x26f56
leaq 0x585b0(%rip), %rax     # 0x701e0
movl (%rax), %r12d
movl %r12d, 0xc(%rsp)
movq 0x30(%r15), %rax
movq 0x40(%r15), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x17c57
movl %r12d, (%rax)
addq $0x4, %rax
movq %rax, 0x60(%rsp)
jmp 0x17c66
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x270cc
movq 0x38(%r13), %rbx
cmpq 0x30(%r13), %rbx
je 0x17cbb
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 0x17ca6
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x60(%rsp)
jmp 0x17cb1
movq %r15, %rdi
movq %rbp, %rsi
callq 0x270cc
addq $-0x4, %rbx
cmpq 0x30(%r13), %rbx
jne 0x17c7a
movq 0x60(%rsp), %rdx
cmpq 0x40(%rsp), %rdx
je 0x17d68
movq %r13, %rbp
addq $0x48, %rbp
movl $0x200, %r15d           # imm = 0x200
cmpq 0x68(%rsp), %rdx
jne 0x17ceb
movq 0x78(%rsp), %rax
movq -0x8(%rax), %rdx
addq %r15, %rdx
addq $-0x4, %rdx
movq 0x50(%r13), %rsi
cmpq 0x58(%r13), %rsi
je 0x17d07
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x50(%r13)
jmp 0x17d0f
movq %rbp, %rdi
callq 0x12d38
movq 0x60(%rsp), %rdx
movq 0x68(%rsp), %rdi
cmpq %rdi, %rdx
je 0x17d24
addq $-0x4, %rdx
jmp 0x17d58
movl $0x200, %esi            # imm = 0x200
callq 0x82a0
movq 0x78(%rsp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x78(%rsp)
movq -0x8(%rax), %rdx
movq %rdx, 0x68(%rsp)
leaq 0x200(%rdx), %rax
movq %rax, 0x70(%rsp)
addq $0x1fc, %rdx            # imm = 0x1FC
movq %rdx, 0x60(%rsp)
cmpq 0x40(%rsp), %rdx
jne 0x17cd8
movq 0x90(%r14), %rax
cmpq %rax, 0x98(%r14)
je 0x17d7f
movq %rax, 0x98(%r14)
movq 0x48(%r13), %rbx
movq 0x50(%r13), %r15
cmpq %r15, %rbx
je 0x17dd8
leaq 0x90(%r14), %rbp
movl (%rbx), %eax
cltd
idivl %r12d
movl %eax, 0x100(%rsp)
movq 0x98(%r14), %rsi
cmpq 0xa0(%r14), %rsi
je 0x17dbf
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x98(%r14)
jmp 0x17dcf
movq %rbp, %rdi
leaq 0x100(%rsp), %rdx
callq 0x26d72
addq $0x4, %rbx
cmpq %r15, %rbx
jne 0x17d93
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 0x183c1
movl $0xe0, %edi
callq 0x8290
movq %rax, 0x18(%rsp)
leaq 0xf0(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %rdi
callq 0xca10
movl (%r14), %ebx
movl $0x40, %edi
callq 0x8290
movq %rax, %rbp
movq %rax, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x12ade
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 0xca10
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 0x12ade
movb $0x1, %bpl
leaq 0x150(%rsp), %rdx
leaq 0x398(%rsp), %rcx
movq 0x18(%rsp), %r15
movq %r15, %rdi
movl $0x16, %esi
callq 0x24e94
movq 0x10(%rsp), %rbx
leaq 0x100(%rsp), %rsi
movq %r15, (%rsi)
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x114b8
leaq 0x3b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17f20
movq 0x3b0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x17f45
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x17f62
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 0x12ade
movb $0x1, %r15b
leaq 0x358(%rsp), %rdx
movq %rbp, %rdi
movl $0x8, %esi
callq 0x25080
leaq 0x100(%rsp), %rsi
movq %rbp, (%rsi)
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x114b8
leaq 0x370(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x17fd6
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 0x12ade
movb $0x1, %bpl
leaq 0x318(%rsp), %rdx
movq %r13, %rdi
movl $0x8, %esi
callq 0x25080
leaq 0x100(%rsp), %rsi
movq %r13, (%rsi)
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x114b8
leaq 0x330(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18045
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 0xca10
movl (%r14), %ebx
movl $0x40, %edi
callq 0x8290
movq %rax, %r12
movq %rax, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x12ade
leaq 0x1e0(%rsp), %rdi
movl $0x5, -0x8(%rdi)
leaq 0x1f0(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
addq %rsi, %rdx
callq 0xca10
leaq 0x1d8(%rsp), %rdx
movl %ebx, 0x28(%rdx)
movq %r12, 0x30(%rdx)
movl $0xffffffff, 0x38(%rdx) # imm = 0xFFFFFFFF
movb $0x1, %bpl
movq %r13, %rdi
movl $0x8, %esi
callq 0x25080
movq 0x10(%rsp), %rbx
leaq 0x100(%rsp), %rsi
movq %r13, (%rsi)
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x114b8
movq 0x1e0(%rsp), %rdi
cmpq %r15, %rdi
je 0x18129
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1814e
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 0x577ce(%rip), %rsi     # 0x6f967
leaq 0x577cd(%rip), %rdx     # 0x6f96d
leaq 0xc0(%rsp), %rdi
callq 0xcaa0
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 0xca10
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 0x1821c
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x2d8(%rsp), %rdi
movl $0x1, %esi
movl $0x3, %edx
callq 0x12ade
movl $0xe0, %edi
callq 0x8290
movq %rax, %r12
leaq 0x298(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x28186
leaq 0x258(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0x28186
leaq 0x218(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x28186
movb $0x1, %r15b
leaq 0x298(%rsp), %rdx
leaq 0x258(%rsp), %rcx
leaq 0x218(%rsp), %r8
movq %r12, %rdi
movl $0x9, %esi
callq 0x24fee
leaq 0x1d0(%rsp), %rsi
movq %r12, (%rsi)
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x114b8
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x182de
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x270(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movabsq $0x100000000, %r12      # imm = 0x100000000
je 0x18309
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x2b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1832a
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x20(%rsp), %r15
cmpb $0x1, 0xc(%r15)
jne 0x1834d
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 0x18385
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x198(%rsp), %rdi
cmpq %rbp, %rdi
je 0x183a2
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x183d3
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x183d3
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x18(%rax)
leaq 0x30(%rsp), %rdi
callq 0x25a46
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 0x18502
movq %rax, %rbx
movb $0x1, %r15b
jmp 0x18523
movq %rax, %rbx
movb $0x1, %r15b
jmp 0x18544
jmp 0x184b2
movq %rax, %rbx
jmp 0x18577
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r15, %rdi
je 0x18594
movq 0xd0(%rsp), %rsi
jmp 0x1858c
movq %rax, %rbx
jmp 0x18594
movq %rax, %rbx
movl $0x40, %esi
movq %r12, %rdi
callq 0x82a0
jmp 0x185da
jmp 0x18462
jmp 0x18715
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x18620
jmp 0x18715
movq %rax, %rbx
movb $0x1, %r15b
jmp 0x1865a
jmp 0x18715
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x18691
movq %rax, %rbx
movl $0x40, %esi
movq %rbp, %rdi
callq 0x82a0
jmp 0x186bb
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x186db
jmp 0x18715
movq %rax, %rbx
jmp 0x18556
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x24df0
jmp 0x184cc
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0x24e4e
jmp 0x18722
movq %rax, %rbx
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18502
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x270(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18523
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x82a0
leaq 0x2b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18544
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %r15b, %r15b
je 0x18556
movl $0xe0, %esi
movq %r12, %rdi
callq 0x82a0
leaq 0x2f0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18577
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x198(%rsp), %rdi
cmpq %rbp, %rdi
je 0x18594
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x108(%rsp), %rdi
cmpq %r13, %rdi
je 0x18718
movq 0x118(%rsp), %rsi
incq %rsi
jmp 0x186ea
movq %rax, %rbx
movq 0x1e0(%rsp), %rdi
cmpq %r15, %rdi
je 0x185dd
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x185dd
movq %rax, %rbx
movb $0x1, %bpl
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x18620
movq 0xb0(%rsp), %rsi
jmp 0x18618
movq %rax, %rbx
leaq 0x330(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18620
movq 0x330(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %bpl, %bpl
je 0x18718
movl $0xe0, %esi
movq %r13, %rdi
jmp 0x186ea
movq %rax, %rbx
leaq 0x370(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1865a
movq 0x370(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %r15b, %r15b
je 0x18718
movl $0xe0, %esi
movq %rbp, %rdi
jmp 0x186ea
movq %rax, %rbx
leaq 0x3b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18691
movq 0x3b0(%rsp), %rsi
incq %rsi
callq 0x82a0
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x186be
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x186be
movq %rax, %rbx
movb $0x1, %bpl
movq 0xe0(%rsp), %rdi
cmpq %r12, %rdi
je 0x186db
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x82a0
testb %bpl, %bpl
je 0x18718
movl $0xe0, %esi
movq 0x18(%rsp), %rdi
callq 0x82a0
jmp 0x18718
jmp 0x186f3
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x18722
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x82a0
jmp 0x18722
jmp 0x18715
jmp 0x18715
jmp 0x18715
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x25a46
movq %rbx, %rdi
callq 0x8540