// File: temelmertcan[P]multgen/src/wallace.cpp
// Function: create_finaladder_inst(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>*&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int, std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, int&)
void create_finaladder_inst (std::queue<string>*& main_queue,
                             string final_stage_adder,
                             int out_size, int shift_amount,
                             std::queue<string>& verilog,
                             int& adder_size) {

  int final_offset = 0;
  int final_size = 0;
  bool flag = false;

  string final_in1 = " }";
  string final_in2 = " }";

  std::queue<string> fin1;
  std::queue<string> fin2;

  for (int j = 0; j < out_size; j++){

    if (flag || main_queue[j].size()>1) {
      flag = true;

      bool b = false;
      for (int i = j; main_queue[i].empty() && i<out_size; i++ )
        if (i==out_size-1)
          b=true;
      if(b)
        break;

      fin1.push (main_queue[j].empty() ? "1'b0" : main_queue[j].front());

      // final_in1 += (main_queue[j].empty() ? "1'b0" : main_queue[j].front());

      if (!main_queue[j].empty())
        main_queue[j].pop();

      fin2.push (main_queue[j].empty() ? "1'b0" : main_queue[j].front());
      //final_in2 += (main_queue[j].empty() ? "1'b0" : main_queue[j].front());
      if (!main_queue[j].empty())
        main_queue[j].pop();
      final_size++;

    } else {
      final_offset++;
      string cur = "assign result[" + to_string(j) + "] = "
        + main_queue[j].front() + ";";
      main_queue[j].pop();
      if (j>=shift_amount)
	verilog.push(cur);
    }
  }

  while (!fin1.empty()) {
    final_in1 = fin1.front() + final_in1;
    if (fin1.size() > 1)
      final_in1 = ", " + final_in1;
    else
      final_in1 = "{" + final_in1;
    fin1.pop();
  }

  while (!fin2.empty()) {
    final_in2 = fin2.front() + final_in2;
    if (fin2.size() > 1)
      final_in2 = ", " + final_in2;
    else
      final_in2 = "{" + final_in2;
    fin2.pop();
  }

  if (final_size > 0){
    string fin_inst = final_stage_adder + "_" + to_string (final_size)
      + " final_adder (" + final_in1 + ", " + final_in2;

    verilog.push
      ("logic ["
       + to_string(final_size)
       + ":0] adder_result;");

    fin_inst +=  ", adder_result );";

    verilog.push (fin_inst);

    if (shift_amount>final_offset)
      verilog.push ("assign result[" + to_string(out_size-1) + ":"
                  + to_string(shift_amount) + "] = adder_result[" +
                  to_string(out_size-1-final_offset) +":"+to_string(shift_amount-final_offset)+"];" );
    else
      verilog.push ("assign result[" + to_string(out_size-1) + ":"
		    + to_string(final_offset) + "] = adder_result[" +
		    to_string(out_size-1-final_offset) +":"+to_string(0)+"];" );
  }

  adder_size = final_size;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7f0, %rsp            # imm = 0x7F0
movq %rsi, -0x748(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movb $0x0, -0x31(%rbp)
leaq -0x59(%rbp), %rdi
movq %rdi, -0x740(%rbp)
callq 0x3430
movq -0x740(%rbp), %rdx
leaq 0xb9fc(%rip), %rsi      # 0x59684
leaq -0x58(%rbp), %rdi
callq 0x3320
jmp 0x4dc93
leaq -0x59(%rbp), %rdi
callq 0x32a0
leaq -0x91(%rbp), %rdi
movq %rdi, -0x750(%rbp)
callq 0x3430
movq -0x750(%rbp), %rdx
leaq 0xb9c7(%rip), %rsi      # 0x59684
leaq -0x90(%rbp), %rdi
callq 0x3320
jmp 0x4dccb
leaq -0x91(%rbp), %rdi
callq 0x32a0
leaq -0xe8(%rbp), %rdi
callq 0x1ed10
jmp 0x4dce5
leaq -0x138(%rbp), %rdi
callq 0x1ed10
jmp 0x4dcf3
movl $0x0, -0x13c(%rbp)
movl -0x13c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x4e33f
testb $0x1, -0x31(%rbp)
jne 0x4dd4a
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x487c0
movq %rax, -0x758(%rbp)
jmp 0x4dd39
movq -0x758(%rbp), %rax
cmpq $0x1, %rax
jbe 0x4e16c
movb $0x1, -0x31(%rbp)
movb $0x0, -0x13d(%rbp)
movl -0x13c(%rbp), %eax
movl %eax, -0x144(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x144(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecb0
movb %al, -0x759(%rbp)
jmp 0x4dd87
movb -0x759(%rbp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0x75a(%rbp)
jne 0x4dd9c
jmp 0x4ddae
movl -0x144(%rbp), %eax
cmpl -0x14(%rbp), %eax
setl %al
movb %al, -0x75a(%rbp)
movb -0x75a(%rbp), %al
testb $0x1, %al
jne 0x4ddbd
jmp 0x4de56
movl -0x144(%rbp), %eax
movl -0x14(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4de40
movb $0x1, -0x13d(%rbp)
jmp 0x4de40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x59(%rbp), %rdi
callq 0x32a0
jmp 0x4ef3c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x91(%rbp), %rdi
callq 0x32a0
jmp 0x4ef33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ef27
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ef1b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ef0f
jmp 0x4de42
movl -0x144(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x144(%rbp)
jmp 0x4dd61
testb $0x1, -0x13d(%rbp)
je 0x4de64
jmp 0x4e33f
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
movb $0x0, -0x16a(%rbp)
callq 0x1ecb0
movb %al, -0x75b(%rbp)
jmp 0x4de91
movb -0x75b(%rbp), %al
testb $0x1, %al
jne 0x4de9d
jmp 0x4ded5
leaq -0x169(%rbp), %rdi
movq %rdi, -0x768(%rbp)
callq 0x3430
movq -0x768(%rbp), %rdx
movb $0x1, -0x16a(%rbp)
leaq 0xb10f(%rip), %rsi      # 0x58fd4
leaq -0x168(%rbp), %rdi
callq 0x3320
jmp 0x4ded3
jmp 0x4df13
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecd0
movq %rax, -0x770(%rbp)
jmp 0x4defc
movq -0x770(%rbp), %rsi
leaq -0x168(%rbp), %rdi
callq 0x3100
jmp 0x4df11
jmp 0x4df13
leaq -0xe8(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x1e3c0
jmp 0x4df28
leaq -0x168(%rbp), %rdi
callq 0x31a0
testb $0x1, -0x16a(%rbp)
jne 0x4df3f
jmp 0x4df4b
leaq -0x169(%rbp), %rdi
callq 0x32a0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecb0
movb %al, -0x771(%rbp)
jmp 0x4df71
movb -0x771(%rbp), %al
testb $0x1, %al
jne 0x4dfe1
jmp 0x4df7d
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecf0
jmp 0x4df9d
jmp 0x4dfe1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4dfc5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x31a0
testb $0x1, -0x16a(%rbp)
jne 0x4dfd0
jmp 0x4dfdc
leaq -0x169(%rbp), %rdi
callq 0x32a0
jmp 0x4ef0f
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
movb $0x0, -0x192(%rbp)
callq 0x1ecb0
movb %al, -0x772(%rbp)
jmp 0x4e00e
movb -0x772(%rbp), %al
testb $0x1, %al
jne 0x4e01a
jmp 0x4e052
leaq -0x191(%rbp), %rdi
movq %rdi, -0x780(%rbp)
callq 0x3430
movq -0x780(%rbp), %rdx
movb $0x1, -0x192(%rbp)
leaq 0xaf92(%rip), %rsi      # 0x58fd4
leaq -0x190(%rbp), %rdi
callq 0x3320
jmp 0x4e050
jmp 0x4e090
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecd0
movq %rax, -0x788(%rbp)
jmp 0x4e079
movq -0x788(%rbp), %rsi
leaq -0x190(%rbp), %rdi
callq 0x3100
jmp 0x4e08e
jmp 0x4e090
leaq -0x138(%rbp), %rdi
leaq -0x190(%rbp), %rsi
callq 0x1e3c0
jmp 0x4e0a5
leaq -0x190(%rbp), %rdi
callq 0x31a0
testb $0x1, -0x192(%rbp)
jne 0x4e0bc
jmp 0x4e0c8
leaq -0x191(%rbp), %rdi
callq 0x32a0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecb0
movb %al, -0x789(%rbp)
jmp 0x4e0ee
movb -0x789(%rbp), %al
testb $0x1, %al
jne 0x4e15e
jmp 0x4e0fa
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecf0
jmp 0x4e11a
jmp 0x4e15e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e142
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x31a0
testb $0x1, -0x192(%rbp)
jne 0x4e14d
jmp 0x4e159
leaq -0x191(%rbp), %rdi
callq 0x32a0
jmp 0x4ef0f
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x4e329
movl -0x2c(%rbp), %eax
incl %eax
movl %eax, -0x2c(%rbp)
movl -0x13c(%rbp), %esi
leaq -0x238(%rbp), %rdi
callq 0x1e700
jmp 0x4e188
leaq 0xb53c(%rip), %rsi      # 0x596cb
leaq -0x218(%rbp), %rdi
leaq -0x238(%rbp), %rdx
callq 0x1e930
jmp 0x4e1a4
leaq 0xa0aa(%rip), %rdx      # 0x58255
leaq -0x1f8(%rbp), %rdi
leaq -0x218(%rbp), %rsi
callq 0x1e560
jmp 0x4e1c0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecd0
movq %rax, -0x798(%rbp)
jmp 0x4e1e7
movq -0x798(%rbp), %rdx
leaq -0x1d8(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0x1e980
jmp 0x4e203
leaq 0xb501(%rip), %rdx      # 0x5970b
leaq -0x1b8(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x1e560
jmp 0x4e21f
leaq -0x1d8(%rbp), %rdi
callq 0x31a0
leaq -0x1f8(%rbp), %rdi
callq 0x31a0
leaq -0x218(%rbp), %rdi
callq 0x31a0
leaq -0x238(%rbp), %rdi
callq 0x31a0
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movslq -0x13c(%rbp), %rax
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0x1ecf0
jmp 0x4e26f
movl -0x13c(%rbp), %eax
cmpl -0x18(%rbp), %eax
jl 0x4e31d
movq -0x20(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x2e150
jmp 0x4e290
jmp 0x4e31d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e2ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e2e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e2d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x31a0
leaq -0x1f8(%rbp), %rdi
callq 0x31a0
leaq -0x218(%rbp), %rdi
callq 0x31a0
leaq -0x238(%rbp), %rdi
callq 0x31a0
jmp 0x4ef0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x31a0
jmp 0x4ef0f
leaq -0x1b8(%rbp), %rdi
callq 0x31a0
jmp 0x4e32b
movl -0x13c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x13c(%rbp)
jmp 0x4dcfd
jmp 0x4e341
leaq -0xe8(%rbp), %rdi
callq 0x1ecb0
movb %al, -0x799(%rbp)
jmp 0x4e355
movb -0x799(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4e366
jmp 0x4e458
leaq -0xe8(%rbp), %rdi
callq 0x1ecd0
movq %rax, -0x7a8(%rbp)
jmp 0x4e37b
movq -0x7a8(%rbp), %rsi
leaq -0x258(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x1ed40
jmp 0x4e394
leaq -0x58(%rbp), %rdi
leaq -0x258(%rbp), %rsi
movq %rsi, -0x7b8(%rbp)
callq 0x32b0
movq -0x7b8(%rbp), %rdi
callq 0x31a0
leaq -0xe8(%rbp), %rdi
callq 0x487c0
movq %rax, -0x7b0(%rbp)
jmp 0x4e3cc
movq -0x7b0(%rbp), %rax
cmpq $0x1, %rax
jbe 0x4e410
leaq 0xa219(%rip), %rsi      # 0x585f9
leaq -0x278(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x1e820
jmp 0x4e3f2
leaq -0x58(%rbp), %rdi
leaq -0x278(%rbp), %rsi
callq 0x32b0
leaq -0x278(%rbp), %rdi
callq 0x31a0
jmp 0x4e445
leaq 0xab3a(%rip), %rsi      # 0x58f51
leaq -0x298(%rbp), %rdi
leaq -0x58(%rbp), %rdx
callq 0x1e820
jmp 0x4e429
leaq -0x58(%rbp), %rdi
leaq -0x298(%rbp), %rsi
callq 0x32b0
leaq -0x298(%rbp), %rdi
callq 0x31a0
leaq -0xe8(%rbp), %rdi
callq 0x1ecf0
jmp 0x4e453
jmp 0x4e341
jmp 0x4e45a
leaq -0x138(%rbp), %rdi
callq 0x1ecb0
movb %al, -0x7b9(%rbp)
jmp 0x4e46e
movb -0x7b9(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x4e47f
jmp 0x4e583
leaq -0x138(%rbp), %rdi
callq 0x1ecd0
movq %rax, -0x7c8(%rbp)
jmp 0x4e494
movq -0x7c8(%rbp), %rsi
leaq -0x2b8(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x1ed40
jmp 0x4e4b0
leaq -0x90(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
movq %rsi, -0x7d8(%rbp)
callq 0x32b0
movq -0x7d8(%rbp), %rdi
callq 0x31a0
leaq -0x138(%rbp), %rdi
callq 0x487c0
movq %rax, -0x7d0(%rbp)
jmp 0x4e4eb
movq -0x7d0(%rbp), %rax
cmpq $0x1, %rax
jbe 0x4e535
leaq 0xa0fa(%rip), %rsi      # 0x585f9
leaq -0x2d8(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x1e820
jmp 0x4e514
leaq -0x90(%rbp), %rdi
leaq -0x2d8(%rbp), %rsi
callq 0x32b0
leaq -0x2d8(%rbp), %rdi
callq 0x31a0
jmp 0x4e570
leaq 0xaa15(%rip), %rsi      # 0x58f51
leaq -0x2f8(%rbp), %rdi
leaq -0x90(%rbp), %rdx
callq 0x1e820
jmp 0x4e551
leaq -0x90(%rbp), %rdi
leaq -0x2f8(%rbp), %rsi
callq 0x32b0
leaq -0x2f8(%rbp), %rdi
callq 0x31a0
leaq -0x138(%rbp), %rdi
callq 0x1ecf0
jmp 0x4e57e
jmp 0x4e45a
cmpl $0x0, -0x30(%rbp)
jle 0x4eed0
movq -0x748(%rbp), %rsi
leaq 0xabbb(%rip), %rdx      # 0x59156
leaq -0x3b8(%rbp), %rdi
callq 0x1e680
jmp 0x4e5a9
movl -0x30(%rbp), %esi
leaq -0x3d8(%rbp), %rdi
callq 0x1e700
jmp 0x4e5ba
leaq -0x398(%rbp), %rdi
leaq -0x3b8(%rbp), %rsi
leaq -0x3d8(%rbp), %rdx
callq 0x1e5b0
jmp 0x4e5d6
leaq 0xb0fd(%rip), %rdx      # 0x596da
leaq -0x378(%rbp), %rdi
leaq -0x398(%rbp), %rsi
callq 0x1e560
jmp 0x4e5f2
leaq -0x358(%rbp), %rdi
leaq -0x378(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0x1e980
jmp 0x4e60b
leaq 0x9fe7(%rip), %rdx      # 0x585f9
leaq -0x338(%rbp), %rdi
leaq -0x358(%rbp), %rsi
callq 0x1e560
jmp 0x4e627
leaq -0x318(%rbp), %rdi
leaq -0x338(%rbp), %rsi
leaq -0x90(%rbp), %rdx
callq 0x1e980
jmp 0x4e643
leaq -0x338(%rbp), %rdi
callq 0x31a0
leaq -0x358(%rbp), %rdi
callq 0x31a0
leaq -0x378(%rbp), %rdi
callq 0x31a0
leaq -0x398(%rbp), %rdi
callq 0x31a0
leaq -0x3d8(%rbp), %rdi
callq 0x31a0
leaq -0x3b8(%rbp), %rdi
callq 0x31a0
movq -0x20(%rbp), %rax
movq %rax, -0x7e0(%rbp)
movl -0x30(%rbp), %esi
leaq -0x438(%rbp), %rdi
callq 0x1e700
jmp 0x4e6a7
leaq 0x9887(%rip), %rsi      # 0x57f35
leaq -0x418(%rbp), %rdi
leaq -0x438(%rbp), %rdx
callq 0x1e930
jmp 0x4e6c3
leaq 0xb01f(%rip), %rdx      # 0x596e9
leaq -0x3f8(%rbp), %rdi
leaq -0x418(%rbp), %rsi
callq 0x1e560
jmp 0x4e6df
movq -0x7e0(%rbp), %rdi
leaq -0x3f8(%rbp), %rsi
callq 0x1e3c0
jmp 0x4e6f4
leaq -0x3f8(%rbp), %rdi
callq 0x31a0
leaq -0x418(%rbp), %rdi
callq 0x31a0
leaq -0x438(%rbp), %rdi
callq 0x31a0
leaq 0xafdc(%rip), %rsi      # 0x596fb
leaq -0x318(%rbp), %rdi
callq 0x3230
jmp 0x4e72d
movq -0x20(%rbp), %rdi
leaq -0x318(%rbp), %rsi
callq 0x2e150
jmp 0x4e73f
movl -0x18(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jle 0x4eb86
movq -0x20(%rbp), %rax
movq %rax, -0x7e8(%rbp)
movl -0x14(%rbp), %esi
decl %esi
leaq -0x558(%rbp), %rdi
callq 0x1e700
jmp 0x4e769
leaq 0xaf5b(%rip), %rsi      # 0x596cb
leaq -0x538(%rbp), %rdi
leaq -0x558(%rbp), %rdx
callq 0x1e930
jmp 0x4e785
leaq 0x7f1e(%rip), %rdx      # 0x566aa
leaq -0x518(%rbp), %rdi
leaq -0x538(%rbp), %rsi
callq 0x1e560
jmp 0x4e7a1
movl -0x18(%rbp), %esi
leaq -0x578(%rbp), %rdi
callq 0x1e700
jmp 0x4e7b2
leaq -0x4f8(%rbp), %rdi
leaq -0x518(%rbp), %rsi
leaq -0x578(%rbp), %rdx
callq 0x1e5b0
jmp 0x4e7ce
leaq 0xaf38(%rip), %rdx      # 0x5970d
leaq -0x4d8(%rbp), %rdi
leaq -0x4f8(%rbp), %rsi
callq 0x1e560
jmp 0x4e7ea
movl -0x14(%rbp), %eax
movl -0x2c(%rbp), %esi
notl %esi
addl %eax, %esi
leaq -0x598(%rbp), %rdi
callq 0x1e700
jmp 0x4e802
leaq -0x4b8(%rbp), %rdi
leaq -0x4d8(%rbp), %rsi
leaq -0x598(%rbp), %rdx
callq 0x1e5b0
jmp 0x4e81e
leaq 0x7e85(%rip), %rdx      # 0x566aa
leaq -0x498(%rbp), %rdi
leaq -0x4b8(%rbp), %rsi
callq 0x1e560
jmp 0x4e83a
movl -0x18(%rbp), %esi
movl -0x2c(%rbp), %eax
subl %eax, %esi
leaq -0x5b8(%rbp), %rdi
callq 0x1e700
jmp 0x4e850
leaq -0x478(%rbp), %rdi
leaq -0x498(%rbp), %rsi
leaq -0x5b8(%rbp), %rdx
callq 0x1e5b0
jmp 0x4e86c
leaq 0xa1ea(%rip), %rdx      # 0x58a5d
leaq -0x458(%rbp), %rdi
leaq -0x478(%rbp), %rsi
callq 0x1e560
jmp 0x4e888
movq -0x7e8(%rbp), %rdi
leaq -0x458(%rbp), %rsi
callq 0x1e3c0
jmp 0x4e89d
leaq -0x458(%rbp), %rdi
callq 0x31a0
leaq -0x478(%rbp), %rdi
callq 0x31a0
leaq -0x5b8(%rbp), %rdi
callq 0x31a0
leaq -0x498(%rbp), %rdi
callq 0x31a0
leaq -0x4b8(%rbp), %rdi
callq 0x31a0
leaq -0x598(%rbp), %rdi
callq 0x31a0
leaq -0x4d8(%rbp), %rdi
callq 0x31a0
leaq -0x4f8(%rbp), %rdi
callq 0x31a0
leaq -0x578(%rbp), %rdi
callq 0x31a0
leaq -0x518(%rbp), %rdi
callq 0x31a0
leaq -0x538(%rbp), %rdi
callq 0x31a0
leaq -0x558(%rbp), %rdi
callq 0x31a0
jmp 0x4eeb4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e9c3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e9b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e9ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e99f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4e993
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x338(%rbp), %rdi
callq 0x31a0
leaq -0x358(%rbp), %rdi
callq 0x31a0
leaq -0x378(%rbp), %rdi
callq 0x31a0
leaq -0x398(%rbp), %rdi
callq 0x31a0
leaq -0x3d8(%rbp), %rdi
callq 0x31a0
leaq -0x3b8(%rbp), %rdi
callq 0x31a0
jmp 0x4ef0f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eec2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ea25
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ea19
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x3f8(%rbp), %rdi
callq 0x31a0
leaq -0x418(%rbp), %rdi
callq 0x31a0
leaq -0x438(%rbp), %rdi
callq 0x31a0
jmp 0x4eec2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb75
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb69
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb45
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb2d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb21
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb15
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eb09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eafd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x458(%rbp), %rdi
callq 0x31a0
leaq -0x478(%rbp), %rdi
callq 0x31a0
leaq -0x5b8(%rbp), %rdi
callq 0x31a0
leaq -0x498(%rbp), %rdi
callq 0x31a0
leaq -0x4b8(%rbp), %rdi
callq 0x31a0
leaq -0x598(%rbp), %rdi
callq 0x31a0
leaq -0x4d8(%rbp), %rdi
callq 0x31a0
leaq -0x4f8(%rbp), %rdi
callq 0x31a0
leaq -0x578(%rbp), %rdi
callq 0x31a0
leaq -0x518(%rbp), %rdi
callq 0x31a0
leaq -0x538(%rbp), %rdi
callq 0x31a0
leaq -0x558(%rbp), %rdi
callq 0x31a0
jmp 0x4eec2
movq -0x20(%rbp), %rax
movq %rax, -0x7f0(%rbp)
movl -0x14(%rbp), %esi
decl %esi
leaq -0x6d8(%rbp), %rdi
callq 0x1e700
jmp 0x4eba4
leaq 0xab20(%rip), %rsi      # 0x596cb
leaq -0x6b8(%rbp), %rdi
leaq -0x6d8(%rbp), %rdx
callq 0x1e930
jmp 0x4ebc0
leaq 0x7ae3(%rip), %rdx      # 0x566aa
leaq -0x698(%rbp), %rdi
leaq -0x6b8(%rbp), %rsi
callq 0x1e560
jmp 0x4ebdc
movl -0x2c(%rbp), %esi
leaq -0x6f8(%rbp), %rdi
callq 0x1e700
jmp 0x4ebed
leaq -0x678(%rbp), %rdi
leaq -0x698(%rbp), %rsi
leaq -0x6f8(%rbp), %rdx
callq 0x1e5b0
jmp 0x4ec09
leaq 0xaafd(%rip), %rdx      # 0x5970d
leaq -0x658(%rbp), %rdi
leaq -0x678(%rbp), %rsi
callq 0x1e560
jmp 0x4ec25
movl -0x14(%rbp), %eax
movl -0x2c(%rbp), %esi
notl %esi
addl %eax, %esi
leaq -0x718(%rbp), %rdi
callq 0x1e700
jmp 0x4ec3d
leaq -0x638(%rbp), %rdi
leaq -0x658(%rbp), %rsi
leaq -0x718(%rbp), %rdx
callq 0x1e5b0
jmp 0x4ec59
leaq 0x7a4a(%rip), %rdx      # 0x566aa
leaq -0x618(%rbp), %rdi
leaq -0x638(%rbp), %rsi
callq 0x1e560
jmp 0x4ec75
leaq -0x738(%rbp), %rdi
xorl %esi, %esi
callq 0x1e700
jmp 0x4ec85
leaq -0x5f8(%rbp), %rdi
leaq -0x618(%rbp), %rsi
leaq -0x738(%rbp), %rdx
callq 0x1e5b0
jmp 0x4eca1
leaq 0x9db5(%rip), %rdx      # 0x58a5d
leaq -0x5d8(%rbp), %rdi
leaq -0x5f8(%rbp), %rsi
callq 0x1e560
jmp 0x4ecbd
movq -0x7f0(%rbp), %rdi
leaq -0x5d8(%rbp), %rsi
callq 0x1e3c0
jmp 0x4ecd2
leaq -0x5d8(%rbp), %rdi
callq 0x31a0
leaq -0x5f8(%rbp), %rdi
callq 0x31a0
leaq -0x738(%rbp), %rdi
callq 0x31a0
leaq -0x618(%rbp), %rdi
callq 0x31a0
leaq -0x638(%rbp), %rdi
callq 0x31a0
leaq -0x718(%rbp), %rdi
callq 0x31a0
leaq -0x658(%rbp), %rdi
callq 0x31a0
leaq -0x678(%rbp), %rdi
callq 0x31a0
leaq -0x6f8(%rbp), %rdi
callq 0x31a0
leaq -0x698(%rbp), %rdi
callq 0x31a0
leaq -0x6b8(%rbp), %rdi
callq 0x31a0
leaq -0x6d8(%rbp), %rdi
callq 0x31a0
jmp 0x4eeb4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4eea6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee9a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee8e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee82
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee6a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee52
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee46
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee3a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x4ee2e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x5d8(%rbp), %rdi
callq 0x31a0
leaq -0x5f8(%rbp), %rdi
callq 0x31a0
leaq -0x738(%rbp), %rdi
callq 0x31a0
leaq -0x618(%rbp), %rdi
callq 0x31a0
leaq -0x638(%rbp), %rdi
callq 0x31a0
leaq -0x718(%rbp), %rdi
callq 0x31a0
leaq -0x658(%rbp), %rdi
callq 0x31a0
leaq -0x678(%rbp), %rdi
callq 0x31a0
leaq -0x6f8(%rbp), %rdi
callq 0x31a0
leaq -0x698(%rbp), %rdi
callq 0x31a0
leaq -0x6b8(%rbp), %rdi
callq 0x31a0
leaq -0x6d8(%rbp), %rdi
callq 0x31a0
jmp 0x4eec2
leaq -0x318(%rbp), %rdi
callq 0x31a0
jmp 0x4eed0
leaq -0x318(%rbp), %rdi
callq 0x31a0
jmp 0x4ef0f
movl -0x30(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
leaq -0x138(%rbp), %rdi
callq 0x1edc0
leaq -0xe8(%rbp), %rdi
callq 0x1edc0
leaq -0x90(%rbp), %rdi
callq 0x31a0
leaq -0x58(%rbp), %rdi
callq 0x31a0
addq $0x7f0, %rsp            # imm = 0x7F0
popq %rbp
retq
leaq -0x138(%rbp), %rdi
callq 0x1edc0
leaq -0xe8(%rbp), %rdi
callq 0x1edc0
leaq -0x90(%rbp), %rdi
callq 0x31a0
leaq -0x58(%rbp), %rdi
callq 0x31a0
movq -0x68(%rbp), %rdi
callq 0x3420
nopw %cs:(%rax,%rax)