// File: Cicko[P]Ram-Machine/Program.cpp
// Function: Program::parseInstructions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void  Program::parseInstructions (string fileData) {
  transform(fileData.begin(), fileData.end(), fileData.begin(), ::tolower);   // transform all characters into lower case characters
  vector<string> normalOps = {"add","sub","mul","div","load","store","read","write"};     // Possible no jump operations
  vector<string> jumpOps = {"jump","jgtz","jzero"};  // Possible jump operations
  bool error = false;
  unsigned lineCount = 0;
  char * input = (char*) fileData.c_str(); // Convert string into c char* type
  char * token = std::strtok(input, "\n"); // Divide it into rows
  string actualTag = "main";

  while (token != NULL && !error) {
    bool validInstruction = false;
    bool newTag = false;
    Instruction * dummy = new Instruction;
    string lineStr (token);

    string tag = getTagFromString(lineStr);

    if( tag != "noTag") {
      actualTag = tag;
      tags_.push_back(new Tag(tag, lineCount));
      newTag = true;
    }

    dummy->setTag(actualTag);
    bool skipLine = false;
    fileData = token;
    istringstream iss (fileData);
    string word;
    iss >> word;

    if (newTag) iss >> word;
    if (word == ":") iss >> word;


    if (find (normalOps.begin(), normalOps.end(), word) != normalOps.end()) {   // Is a normal operation
      dummy->setOp(word);
      iss >> word;
      if (word[0] == '*' || word[0] == '=') {                                   // immediate or indirect
        dummy->setType (word[0]);
        if (word.size() > 1) {
          string operand = word.substr (1,word.size()-1);
          dummy->setOperand(operand);
          validInstruction = true;
        }
        else {
           iss >> word;
           if(std::regex_match (word, std::regex("[0-9]") )) {                  // Operand must be a number
             dummy->setOperand(word);
             validInstruction = true;
           }
           else {
             cout << "At line " << lineCount << " is an invalid operad. Expected number and it get \"" << word << "\"." << endl;
             error = true;
           }
        }
      }
      else if (std::regex_match (word, std::regex("[0-9]"))) {
        dummy->setType('d');
        dummy->setOperand(word);
        validInstruction = true;
      }
    }
    else if (find (jumpOps.begin(), jumpOps.end(), word) != jumpOps.end()) {     // Is a jump operation
        dummy->setOp(word);
        iss >> word;
        dummy->setOperand (word);
        validInstruction = true;
    }
    else if (word.find("halt") != string::npos) {                               // Is a halt operation
      dummy->setOp(word);
      validInstruction = true;
    }

    if (validInstruction) {
      dummy->setLine(lineCount++);
      instructions_.push_back(dummy);
    }


    token = std::strtok(NULL, "\n");
  }
}

// Assembly:
subq $0x8a8, %rsp            # imm = 0x8A8
movq %rsi, 0x240(%rsp)
movq %rdi, %rax
movq 0x240(%rsp), %rdi
movq %rdi, 0x250(%rsp)
movq %rax, 0x8a0(%rsp)
movq %rdi, 0x898(%rsp)
movq 0x8a0(%rsp), %rax
movq %rax, 0x248(%rsp)
callq 0x63c0
movq 0x250(%rsp), %rdi
movq %rax, 0x890(%rsp)
callq 0x6250
movq 0x250(%rsp), %rdi
movq %rax, 0x888(%rsp)
callq 0x63c0
movq %rax, 0x880(%rsp)
movq 0x890(%rsp), %rdi
movq 0x888(%rsp), %rsi
movq 0x880(%rsp), %rdx
movq 0x48360(%rip), %rcx     # 0x4ffa8
callq 0x9c30
movq %rax, 0x878(%rsp)
movb $0x1, 0x72c(%rsp)
leaq 0x750(%rsp), %rax
movq %rax, 0x258(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x747(%rsp), %rdi
movq %rdi, 0x260(%rsp)
callq 0x67c0
movq 0x258(%rsp), %rdi
movq 0x260(%rsp), %rdx
leaq 0x32720(%rip), %rsi     # 0x3a3c1
callq 0x6610
jmp 0x7ca8
leaq 0x770(%rsp), %rax
movq %rax, 0x230(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x733(%rsp), %rdi
movq %rdi, 0x238(%rsp)
callq 0x67c0
movq 0x230(%rsp), %rdi
movq 0x238(%rsp), %rdx
leaq 0x326d9(%rip), %rsi     # 0x3a3c5
callq 0x6610
jmp 0x7cf3
leaq 0x790(%rsp), %rax
movq %rax, 0x220(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x732(%rsp), %rdi
movq %rdi, 0x228(%rsp)
callq 0x67c0
movq 0x220(%rsp), %rdi
movq 0x228(%rsp), %rdx
leaq 0x32692(%rip), %rsi     # 0x3a3c9
callq 0x6610
jmp 0x7d3e
leaq 0x7b0(%rsp), %rax
movq %rax, 0x210(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x731(%rsp), %rdi
movq %rdi, 0x218(%rsp)
callq 0x67c0
movq 0x210(%rsp), %rdi
movq 0x218(%rsp), %rdx
leaq 0x3264b(%rip), %rsi     # 0x3a3cd
callq 0x6610
jmp 0x7d89
leaq 0x7d0(%rsp), %rax
movq %rax, 0x200(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x730(%rsp), %rdi
movq %rdi, 0x208(%rsp)
callq 0x67c0
movq 0x200(%rsp), %rdi
movq 0x208(%rsp), %rdx
leaq 0x32604(%rip), %rsi     # 0x3a3d1
callq 0x6610
jmp 0x7dd4
leaq 0x7f0(%rsp), %rax
movq %rax, 0x1f0(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x72f(%rsp), %rdi
movq %rdi, 0x1f8(%rsp)
callq 0x67c0
movq 0x1f0(%rsp), %rdi
movq 0x1f8(%rsp), %rdx
leaq 0x325be(%rip), %rsi     # 0x3a3d6
callq 0x6610
jmp 0x7e1f
leaq 0x810(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x72e(%rsp), %rdi
movq %rdi, 0x1e8(%rsp)
callq 0x67c0
movq 0x1e0(%rsp), %rdi
movq 0x1e8(%rsp), %rdx
leaq 0x32579(%rip), %rsi     # 0x3a3dc
callq 0x6610
jmp 0x7e6a
leaq 0x830(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq %rax, 0x748(%rsp)
leaq 0x72d(%rsp), %rdi
movq %rdi, 0x1d8(%rsp)
callq 0x67c0
movq 0x1d0(%rsp), %rdi
movq 0x1d8(%rsp), %rdx
leaq 0x32533(%rip), %rsi     # 0x3a3e1
callq 0x6610
jmp 0x7eb5
movb $0x0, 0x72c(%rsp)
leaq 0x750(%rsp), %rax
movq %rax, 0x850(%rsp)
movq $0x8, 0x858(%rsp)
leaq 0x72b(%rsp), %rdi
movq %rdi, 0x1c8(%rsp)
callq 0x9cc0
movq 0x1c8(%rsp), %rcx
movq 0x850(%rsp), %rsi
movq 0x858(%rsp), %rdx
leaq 0x860(%rsp), %rdi
callq 0x9cd0
jmp 0x7f15
leaq 0x72b(%rsp), %rdi
callq 0x9d60
leaq 0x750(%rsp), %rax
movq %rax, 0x1b8(%rsp)
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x1c0(%rsp)
movq 0x1c0(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x1b0(%rsp)
callq 0x62a0
movq 0x1b8(%rsp), %rcx
movq 0x1b0(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x1c0(%rsp)
jne 0x7f40
leaq 0x72d(%rsp), %rdi
callq 0x64a0
leaq 0x72e(%rsp), %rdi
callq 0x64a0
leaq 0x72f(%rsp), %rdi
callq 0x64a0
leaq 0x730(%rsp), %rdi
callq 0x64a0
leaq 0x731(%rsp), %rdi
callq 0x64a0
leaq 0x732(%rsp), %rdi
callq 0x64a0
leaq 0x733(%rsp), %rdi
callq 0x64a0
leaq 0x747(%rsp), %rdi
callq 0x64a0
movb $0x1, 0x694(%rsp)
leaq 0x6a0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq %rax, 0x698(%rsp)
leaq 0x697(%rsp), %rdi
movq %rdi, 0x1a8(%rsp)
callq 0x67c0
movq 0x1a0(%rsp), %rdi
movq 0x1a8(%rsp), %rdx
leaq 0x323bd(%rip), %rsi     # 0x3a3e7
callq 0x6610
jmp 0x8031
leaq 0x6c0(%rsp), %rax
movq %rax, 0x190(%rsp)
movq %rax, 0x698(%rsp)
leaq 0x696(%rsp), %rdi
movq %rdi, 0x198(%rsp)
callq 0x67c0
movq 0x190(%rsp), %rdi
movq 0x198(%rsp), %rdx
leaq 0x32377(%rip), %rsi     # 0x3a3ec
callq 0x6610
jmp 0x807c
leaq 0x6e0(%rsp), %rax
movq %rax, 0x180(%rsp)
movq %rax, 0x698(%rsp)
leaq 0x695(%rsp), %rdi
movq %rdi, 0x188(%rsp)
callq 0x67c0
movq 0x180(%rsp), %rdi
movq 0x188(%rsp), %rdx
leaq 0x32331(%rip), %rsi     # 0x3a3f1
callq 0x6610
jmp 0x80c7
movb $0x0, 0x694(%rsp)
leaq 0x6a0(%rsp), %rax
movq %rax, 0x700(%rsp)
movq $0x3, 0x708(%rsp)
leaq 0x693(%rsp), %rdi
movq %rdi, 0x178(%rsp)
callq 0x9cc0
movq 0x178(%rsp), %rcx
movq 0x700(%rsp), %rsi
movq 0x708(%rsp), %rdx
leaq 0x710(%rsp), %rdi
callq 0x9cd0
jmp 0x8127
leaq 0x693(%rsp), %rdi
callq 0x9d60
leaq 0x6a0(%rsp), %rax
movq %rax, 0x168(%rsp)
addq $0x60, %rax
movq %rax, 0x170(%rsp)
movq 0x170(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x160(%rsp)
callq 0x62a0
movq 0x168(%rsp), %rcx
movq 0x160(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x170(%rsp)
jne 0x8150
leaq 0x695(%rsp), %rdi
callq 0x64a0
leaq 0x696(%rsp), %rdi
callq 0x64a0
leaq 0x697(%rsp), %rdi
callq 0x64a0
movq 0x250(%rsp), %rdi
movb $0x0, 0x692(%rsp)
movl $0x0, 0x68c(%rsp)
callq 0x6190
movq %rax, 0x680(%rsp)
movq 0x680(%rsp), %rdi
leaq 0x31fe9(%rip), %rsi     # 0x3a1cd
callq 0x66c0
movq %rax, 0x678(%rsp)
leaq 0x657(%rsp), %rdi
movq %rdi, 0x158(%rsp)
callq 0x67c0
movq 0x158(%rsp), %rdx
leaq 0x321e2(%rip), %rsi     # 0x3a3f7
leaq 0x658(%rsp), %rdi
callq 0x6610
jmp 0x8224
leaq 0x657(%rsp), %rdi
callq 0x64a0
xorl %eax, %eax
cmpq $0x0, 0x678(%rsp)
movb %al, 0x157(%rsp)
je 0x8255
movb 0x692(%rsp), %al
xorb $-0x1, %al
movb %al, 0x157(%rsp)
movb 0x157(%rsp), %al
testb $0x1, %al
jne 0x8265
jmp 0x925a
movb $0x0, 0x656(%rsp)
movb $0x0, 0x655(%rsp)
movl $0x70, %edi
callq 0x6440
movq %rax, 0x148(%rsp)
jmp 0x8289
movq 0x148(%rsp), %rdi
callq 0x9d70
jmp 0x8298
movq 0x148(%rsp), %rax
movq %rax, 0x648(%rsp)
movq 0x678(%rsp), %rax
movq %rax, 0x138(%rsp)
leaq 0x627(%rsp), %rdi
movq %rdi, 0x140(%rsp)
callq 0x67c0
movq 0x138(%rsp), %rsi
movq 0x140(%rsp), %rdx
leaq 0x628(%rsp), %rdi
callq 0x6610
jmp 0x82ec
leaq 0x627(%rsp), %rdi
callq 0x64a0
leaq 0x5e0(%rsp), %rdi
leaq 0x628(%rsp), %rsi
callq 0x61b0
jmp 0x8310
movq 0x248(%rsp), %rsi
leaq 0x600(%rsp), %rdi
leaq 0x5e0(%rsp), %rdx
callq 0x92c0
jmp 0x832f
leaq 0x5e0(%rsp), %rdi
callq 0x62a0
leaq 0x320b9(%rip), %rsi     # 0x3a3fc
leaq 0x600(%rsp), %rdi
callq 0x9e40
movb %al, 0x137(%rsp)
jmp 0x8359
movb 0x137(%rsp), %al
testb $0x1, %al
jne 0x8369
jmp 0x88ba
leaq 0x658(%rsp), %rdi
leaq 0x600(%rsp), %rsi
callq 0x6060
jmp 0x8380
movq 0x248(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x120(%rsp)
movl $0x28, %edi
callq 0x6440
movq %rax, 0x128(%rsp)
jmp 0x83a8
movb $0x1, 0x5b7(%rsp)
leaq 0x5b8(%rsp), %rdi
leaq 0x600(%rsp), %rsi
callq 0x61b0
jmp 0x83c7
movq 0x128(%rsp), %rdi
movl 0x68c(%rsp), %edx
leaq 0x5b8(%rsp), %rsi
callq 0x9ea0
jmp 0x83e5
movq 0x120(%rsp), %rdi
movq 0x128(%rsp), %rax
movb $0x0, 0x5b7(%rsp)
movq %rax, 0x5d8(%rsp)
leaq 0x5d8(%rsp), %rsi
callq 0x9e70
jmp 0x8414
leaq 0x5b8(%rsp), %rdi
callq 0x62a0
movb $0x1, 0x655(%rsp)
jmp 0x88ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x85c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x85b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x85ab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x859e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x8591
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x8584
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x8577
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x856a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x72b(%rsp), %rdi
callq 0x9d60
leaq 0x750(%rsp), %rax
movq %rax, 0x110(%rsp)
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x118(%rsp)
movq 0x118(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x108(%rsp)
callq 0x62a0
movq 0x110(%rsp), %rcx
movq 0x108(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x118(%rsp)
jne 0x8532
jmp 0x856a
leaq 0x72d(%rsp), %rdi
callq 0x64a0
leaq 0x72e(%rsp), %rdi
callq 0x64a0
leaq 0x72f(%rsp), %rdi
callq 0x64a0
leaq 0x730(%rsp), %rdi
callq 0x64a0
leaq 0x731(%rsp), %rdi
callq 0x64a0
leaq 0x732(%rsp), %rdi
callq 0x64a0
leaq 0x733(%rsp), %rdi
callq 0x64a0
leaq 0x747(%rsp), %rdi
callq 0x64a0
testb $0x1, 0x72c(%rsp)
jne 0x85de
jmp 0x8633
movq 0x748(%rsp), %rax
leaq 0x750(%rsp), %rcx
cmpq %rax, %rcx
movq %rax, 0x100(%rsp)
je 0x8631
movq 0x100(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0xf8(%rsp)
callq 0x62a0
movq 0xf8(%rsp), %rax
leaq 0x750(%rsp), %rcx
cmpq %rcx, %rax
movq %rax, 0x100(%rsp)
jne 0x85fb
jmp 0x8633
jmp 0x92b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x870f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x8702
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x86f5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x693(%rsp), %rdi
callq 0x9d60
leaq 0x6a0(%rsp), %rax
movq %rax, 0xe8(%rsp)
addq $0x60, %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0xe0(%rsp)
callq 0x62a0
movq 0xe8(%rsp), %rcx
movq 0xe0(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0xf0(%rsp)
jne 0x86bd
jmp 0x86f5
leaq 0x695(%rsp), %rdi
callq 0x64a0
leaq 0x696(%rsp), %rdi
callq 0x64a0
leaq 0x697(%rsp), %rdi
callq 0x64a0
testb $0x1, 0x694(%rsp)
jne 0x8728
jmp 0x877d
movq 0x698(%rsp), %rax
leaq 0x6a0(%rsp), %rcx
cmpq %rax, %rcx
movq %rax, 0xd8(%rsp)
je 0x877b
movq 0xd8(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0xd0(%rsp)
callq 0x62a0
movq 0xd0(%rsp), %rax
leaq 0x6a0(%rsp), %rcx
cmpq %rcx, %rax
movq %rax, 0xd8(%rsp)
jne 0x8745
jmp 0x877d
jmp 0x92a3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x657(%rsp), %rdi
callq 0x64a0
jmp 0x9296
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x9289
movq 0x148(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
callq 0x6410
jmp 0x9289
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x627(%rsp), %rdi
callq 0x64a0
jmp 0x9289
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x924b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x5e0(%rsp), %rdi
callq 0x62a0
jmp 0x924b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x923e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x889c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x5b8(%rsp), %rdi
callq 0x62a0
testb $0x1, 0x5b7(%rsp)
jne 0x88a8
jmp 0x88b5
movq 0x128(%rsp), %rdi
callq 0x6410
jmp 0x923e
movq 0x648(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0x590(%rsp), %rdi
leaq 0x658(%rsp), %rsi
callq 0x61b0
jmp 0x88e1
movq 0xc8(%rsp), %rdi
leaq 0x590(%rsp), %rsi
callq 0x9f20
jmp 0x88f8
leaq 0x590(%rsp), %rdi
callq 0x62a0
movq 0x250(%rsp), %rdi
movb $0x0, 0x58f(%rsp)
movq 0x678(%rsp), %rsi
callq 0x6600
jmp 0x8924
movq 0x250(%rsp), %rsi
leaq 0x408(%rsp), %rdi
movl $0x8, %edx
callq 0x6730
jmp 0x8940
leaq 0x3e8(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
callq 0x6620
movq 0xc0(%rsp), %rsi
leaq 0x408(%rsp), %rdi
callq 0x6590
jmp 0x896c
testb $0x1, 0x655(%rsp)
je 0x89ce
leaq 0x408(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x6590
jmp 0x898d
jmp 0x89ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x590(%rsp), %rdi
callq 0x62a0
jmp 0x923e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x9224
leaq 0x32bbf(%rip), %rsi     # 0x3b594
leaq 0x3e8(%rsp), %rdi
callq 0x9f50
movb %al, 0xbf(%rsp)
jmp 0x89eb
movb 0xbf(%rsp), %al
testb $0x1, %al
jne 0x89f8
jmp 0x8a11
leaq 0x408(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x6590
jmp 0x8a0f
jmp 0x8a11
leaq 0x860(%rsp), %rdi
movq %rdi, 0xa8(%rsp)
callq 0xa020
movq 0xa8(%rsp), %rdi
movq %rax, 0x3d8(%rsp)
callq 0xa050
movq %rax, 0x3d0(%rsp)
movq 0x3d8(%rsp), %rdi
movq 0x3d0(%rsp), %rsi
leaq 0x3e8(%rsp), %rdx
callq 0x9fc0
movq %rax, 0xb0(%rsp)
jmp 0x8a6a
movq 0xb0(%rsp), %rax
movq %rax, 0x3e0(%rsp)
leaq 0x860(%rsp), %rdi
callq 0xa050
movq %rax, 0x3c8(%rsp)
leaq 0x3e0(%rsp), %rdi
leaq 0x3c8(%rsp), %rsi
callq 0x9f80
testb $0x1, %al
jne 0x8aad
jmp 0x8f70
movq 0x648(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0x3a8(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x61b0
jmp 0x8ad4
movq 0xa0(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0xa080
jmp 0x8aeb
leaq 0x3a8(%rsp), %rdi
callq 0x62a0
leaq 0x408(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x6590
jmp 0x8b0f
xorl %eax, %eax
movl %eax, %esi
leaq 0x3e8(%rsp), %rdi
callq 0x6860
movq %rax, 0x98(%rsp)
jmp 0x8b2a
movq 0x98(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
je 0x8b69
xorl %eax, %eax
movl %eax, %esi
leaq 0x3e8(%rsp), %rdi
callq 0x6860
movq %rax, 0x90(%rsp)
jmp 0x8b55
movq 0x90(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x3d, %eax
jne 0x8e68
movq 0x648(%rsp), %rax
movq %rax, 0x80(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0x3e8(%rsp), %rdi
callq 0x6860
movq %rax, 0x88(%rsp)
jmp 0x8b94
movq 0x80(%rsp), %rdi
movq 0x88(%rsp), %rax
movsbl (%rax), %esi
callq 0xa0b0
jmp 0x8bae
leaq 0x3e8(%rsp), %rdi
callq 0x6330
cmpq $0x1, %rax
jbe 0x8cc4
leaq 0x3e8(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x6330
movq 0x78(%rsp), %rsi
movq %rax, %rcx
decq %rcx
leaq 0x388(%rsp), %rdi
movl $0x1, %edx
callq 0x6460
jmp 0x8bf6
movq 0x648(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x368(%rsp), %rdi
leaq 0x388(%rsp), %rsi
callq 0x61b0
jmp 0x8c1a
movq 0x70(%rsp), %rdi
leaq 0x368(%rsp), %rsi
callq 0xa0d0
jmp 0x8c2e
leaq 0x368(%rsp), %rdi
callq 0x62a0
movb $0x1, 0x656(%rsp)
leaq 0x388(%rsp), %rdi
callq 0x62a0
jmp 0x8e63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x3a8(%rsp), %rdi
callq 0x62a0
jmp 0x9224
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
jmp 0x8cb2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x368(%rsp), %rdi
callq 0x62a0
leaq 0x388(%rsp), %rdi
callq 0x62a0
jmp 0x9224
leaq 0x408(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x6590
jmp 0x8cdb
leaq 0x31720(%rip), %rsi     # 0x3a402
leaq 0x348(%rsp), %rdi
movl $0x10, %edx
callq 0xa150
jmp 0x8cf6
leaq 0x3e8(%rsp), %rdi
leaq 0x348(%rsp), %rsi
xorl %edx, %edx
callq 0xa100
movb %al, 0x6f(%rsp)
jmp 0x8d13
leaq 0x348(%rsp), %rdi
callq 0xa200
movb 0x6f(%rsp), %al
testb $0x1, %al
jne 0x8d2d
jmp 0x8dcb
movq 0x648(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x328(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x61b0
jmp 0x8d51
movq 0x60(%rsp), %rdi
leaq 0x328(%rsp), %rsi
callq 0xa0d0
jmp 0x8d65
leaq 0x328(%rsp), %rdi
callq 0x62a0
movb $0x1, 0x656(%rsp)
jmp 0x8e61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x348(%rsp), %rdi
callq 0xa200
jmp 0x9224
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x328(%rsp), %rdi
callq 0x62a0
jmp 0x9224
movq 0x471c6(%rip), %rdi     # 0x4ff98
leaq 0x3162f(%rip), %rsi     # 0x3a408
callq 0x6430
movq %rax, 0x58(%rsp)
jmp 0x8de5
movq 0x58(%rsp), %rdi
movl 0x68c(%rsp), %esi
callq 0x65f0
movq %rax, 0x50(%rsp)
jmp 0x8dfd
movq 0x50(%rsp), %rdi
leaq 0x31608(%rip), %rsi     # 0x3a411
callq 0x6430
movq %rax, 0x48(%rsp)
jmp 0x8e15
movq 0x48(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x63e0
movq %rax, 0x40(%rsp)
jmp 0x8e2e
movq 0x40(%rsp), %rdi
leaq 0x3160b(%rip), %rsi     # 0x3a445
callq 0x6430
movq %rax, 0x38(%rsp)
jmp 0x8e46
movq 0x38(%rsp), %rdi
movq 0x4711e(%rip), %rsi     # 0x4ff70
callq 0x6480
jmp 0x8e59
movb $0x1, 0x692(%rsp)
jmp 0x8e63
jmp 0x8f6b
leaq 0x31593(%rip), %rsi     # 0x3a402
leaq 0x308(%rsp), %rdi
movl $0x10, %edx
callq 0xa150
jmp 0x8e83
leaq 0x3e8(%rsp), %rdi
leaq 0x308(%rsp), %rsi
xorl %edx, %edx
callq 0xa100
movb %al, 0x37(%rsp)
jmp 0x8ea0
leaq 0x308(%rsp), %rdi
callq 0xa200
movb 0x37(%rsp), %al
testb $0x1, %al
jne 0x8eba
jmp 0x8f69
movq 0x648(%rsp), %rdi
movl $0x64, %esi
callq 0xa0b0
jmp 0x8ece
movq 0x648(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x2e8(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x61b0
jmp 0x8ef2
movq 0x28(%rsp), %rdi
leaq 0x2e8(%rsp), %rsi
callq 0xa0d0
jmp 0x8f06
leaq 0x2e8(%rsp), %rdi
callq 0x62a0
movb $0x1, 0x656(%rsp)
jmp 0x8f69
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x308(%rsp), %rdi
callq 0xa200
jmp 0x9224
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x2e8(%rsp), %rdi
callq 0x62a0
jmp 0x9224
jmp 0x8f6b
jmp 0x918f
leaq 0x710(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0xa020
movq 0x18(%rsp), %rdi
movq %rax, 0x2d8(%rsp)
callq 0xa050
movq %rax, 0x2d0(%rsp)
movq 0x2d8(%rsp), %rdi
movq 0x2d0(%rsp), %rsi
leaq 0x3e8(%rsp), %rdx
callq 0x9fc0
movq %rax, 0x20(%rsp)
jmp 0x8fc0
movq 0x20(%rsp), %rax
movq %rax, 0x2e0(%rsp)
leaq 0x710(%rsp), %rdi
callq 0xa050
movq %rax, 0x2c8(%rsp)
leaq 0x2e0(%rsp), %rdi
leaq 0x2c8(%rsp), %rsi
callq 0x9f80
testb $0x1, %al
jne 0x9000
jmp 0x90fa
movq 0x648(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x2a8(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x61b0
jmp 0x9024
movq 0x10(%rsp), %rdi
leaq 0x2a8(%rsp), %rsi
callq 0xa080
jmp 0x9038
leaq 0x2a8(%rsp), %rdi
callq 0x62a0
leaq 0x408(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x6590
jmp 0x905c
movq 0x648(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x288(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x61b0
jmp 0x9080
movq 0x8(%rsp), %rdi
leaq 0x288(%rsp), %rsi
callq 0xa0d0
jmp 0x9094
leaq 0x288(%rsp), %rdi
callq 0x62a0
movb $0x1, 0x656(%rsp)
jmp 0x918d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x2a8(%rsp), %rdi
callq 0x62a0
jmp 0x9224
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x288(%rsp), %rdi
callq 0x62a0
jmp 0x9224
leaq 0x3e8(%rsp), %rdi
leaq 0x3133f(%rip), %rsi     # 0x3a448
xorl %eax, %eax
movl %eax, %edx
callq 0x6850
cmpq $-0x1, %rax
je 0x918b
movq 0x648(%rsp), %rax
movq %rax, (%rsp)
leaq 0x268(%rsp), %rdi
leaq 0x3e8(%rsp), %rsi
callq 0x61b0
jmp 0x913b
movq (%rsp), %rdi
leaq 0x268(%rsp), %rsi
callq 0xa080
jmp 0x914e
leaq 0x268(%rsp), %rdi
callq 0x62a0
movb $0x1, 0x656(%rsp)
jmp 0x918b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x738(%rsp)
movl %eax, 0x734(%rsp)
leaq 0x268(%rsp), %rdi
callq 0x62a0
jmp 0x9224
jmp 0x918d
jmp 0x918f
testb $0x1, 0x656(%rsp)
je 0x91d3
movq 0x648(%rsp), %rdi
movl 0x68c(%rsp), %esi
movl %esi, %eax
incl %eax
movl %eax, 0x68c(%rsp)
callq 0xa230
jmp 0x91ba
movq 0x248(%rsp), %rdi
leaq 0x648(%rsp), %rsi
callq 0xa250
jmp 0x91d1
jmp 0x91d3
xorl %eax, %eax
movl %eax, %edi
leaq 0x30fef(%rip), %rsi     # 0x3a1cd
callq 0x66c0
movq %rax, 0x678(%rsp)
leaq 0x3e8(%rsp), %rdi
callq 0x62a0
leaq 0x408(%rsp), %rdi
callq 0x61e0
leaq 0x600(%rsp), %rdi
callq 0x62a0
leaq 0x628(%rsp), %rdi
callq 0x62a0
jmp 0x8231
leaq 0x3e8(%rsp), %rdi
callq 0x62a0
leaq 0x408(%rsp), %rdi
callq 0x61e0
leaq 0x600(%rsp), %rdi
callq 0x62a0
leaq 0x628(%rsp), %rdi
callq 0x62a0
jmp 0x9289
leaq 0x658(%rsp), %rdi
callq 0x62a0
leaq 0x710(%rsp), %rdi
callq 0xa2c0
leaq 0x860(%rsp), %rdi
callq 0xa2c0
addq $0x8a8, %rsp            # imm = 0x8A8
retq
leaq 0x658(%rsp), %rdi
callq 0x62a0
leaq 0x710(%rsp), %rdi
callq 0xa2c0
leaq 0x860(%rsp), %rdi
callq 0xa2c0
movq 0x738(%rsp), %rdi
callq 0x67b0
nopl (%rax)