LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/amit-mittal[P]FTP/ftpClient.cpp
// Function: ftpClient::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string ftpClient::trim(const string& str,
                       const string& whitespace) {

    const auto strBegin = str.find_first_not_of(whitespace);
    if (strBegin == string::npos)
        return ""; // no content

    const auto strEnd = str.find_last_not_of(whitespace);
    const auto strRange = strEnd - strBegin + 1;

    return str.substr(strBegin, strRange);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq %rdx, %rdi
movq %rcx, %rsi
xorl %edx, %edx
callq 0x21c0
cmpq $-0x1, %rax
je 0x348b
movq %rax, %r12
pushq $-0x1
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2400
subq %r12, %rax
leaq 0x1(%rax), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2230
jmp 0x349e
leaq 0x1c9e(%rip), %rsi      # 0x5130
leaq -0x21(%rbp), %rdx
movq %rbx, %rdi
callq 0x20f0
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/amit-mittal[P]FTP/ftpClient.cpp
// Function: help()
void help(){
	cout << "*********************** \nClient Program for FTP \n***********************\n";
	cout << "Amit Mittal & Rahul Radhakrishnan, IIT Guwahati\n\n";
	cout << "Usage : ./ftpClient Hostname Port\n\n";
	cout << "-- *Hostname* refers to the hostname/IP address of the server\n";
	cout << "-- *Port* refers to the server's control port (8182 in our case)\n";
	exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq 0x3ad3(%rip), %rbx      # 0x7fc8
leaq 0x101b(%rip), %rsi      # 0x5517
movq %rbx, %rdi
callq 0x2210
leaq 0x1056(%rip), %rsi      # 0x5561
movq %rbx, %rdi
callq 0x2210
leaq 0x1079(%rip), %rsi      # 0x5593
movq %rbx, %rdi
callq 0x2210
leaq 0x108e(%rip), %rsi      # 0x55b7
movq %rbx, %rdi
callq 0x2210
leaq 0x10be(%rip), %rsi      # 0x55f6
movq %rbx, %rdi
callq 0x2210
pushq $0x1
popq %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O2/amit-mittal[P]FTP/ftpClient.cpp
// Function: main
int main(int argc, char *argv[]){

	if(argc != 3){
		help();
	}

	string IP(argv[1]);
	ftpClient client;
	if(client.connect(IP, atoi(argv[2])) != 0){
		cout << "Error while connecting to server" << endl;
		exit(1);
	}

	while(1){
		printf("ftp> ");
		if(client.sendRequest() != 0){
			cout << "Error while sending a request to server" << endl;
			break;
		}
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
cmpl $0x3, %edi
jne 0x4608
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq -0x50(%rbp), %r14
leaq -0x230(%rbp), %rdx
movq %r14, %rdi
callq 0x20f0
leaq -0x218(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
movl $0x80, %edx
movl %edx, 0xd0(%rax)
leaq -0x128(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movl %edx, 0xd0(%rax)
leaq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x22e0
movq 0x10(%rbx), %rdi
callq 0x2360
leaq -0x230(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movl %eax, %edx
callq 0x2fe0
movl %eax, %ebx
leaq -0x30(%rbp), %rdi
callq 0x2110
testl %ebx, %ebx
jne 0x460d
leaq 0x106c(%rip), %rbx      # 0x5659
leaq -0x230(%rbp), %r14
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2040
movq %r14, %rdi
callq 0x34ae
jmp 0x45f4
callq 0x44e8
movq 0x39b4(%rip), %rdi      # 0x7fc8
leaq 0x101d(%rip), %rsi      # 0x5638
callq 0x2210
movq %rax, %rdi
callq 0x2120
pushq $0x1
popq %rdi
callq 0x2290
jmp 0x4640
movq %rax, %rbx
leaq -0x30(%rbp), %rdi
callq 0x2110
jmp 0x4643
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
callq 0x4722
leaq -0x50(%rbp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH05_Statements/examples/guess.cc
// Function: main
int main()
{
	do {
		cout << "Guess a number between 0 and 9" << endl;
		unsigned i, mynum = 7;
		cin >> i;

		if (i == mynum) {
			cout << "Congrats you guessed right!" << endl;
			break;
		} else
			if (i < mynum)
				cout << "too low" << endl;
			else
				cout << "too high" << endl;

		if (i != mynum)
			if (i < mynum)
				cout << "too low" << endl;
			else
				cout << "too high" << endl;
		else {
			cout << "Congrats you guessed right!" << endl;
			break;
		}
	} while (true);

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x2dff(%rip), %rbx      # 0x3fd0
movq 0x2e08(%rip), %r15      # 0x3fe0
leaq -0x2c(%rbp), %r12
leaq 0xe5c(%rip), %r13       # 0x203f
leaq 0xe5d(%rip), %r14       # 0x2047
movq %rbx, %rdi
leaq 0xe10(%rip), %rsi       # 0x2004
callq 0x1050
movq %rax, %rdi
callq 0x1030
movq %r15, %rdi
movq %r12, %rsi
callq 0x1070
cmpl $0x7, -0x2c(%rbp)
je 0x1248
movq %r14, %rsi
cmovbq %r13, %rsi
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
callq 0x1030
cmpl $0x7, -0x2c(%rbp)
je 0x1248
movq %r14, %rsi
cmovbq %r13, %rsi
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
callq 0x1030
jmp 0x11ea
movq 0x2d81(%rip), %rdi      # 0x3fd0
leaq 0xdcd(%rip), %rsi       # 0x2023
callq 0x1050
movq %rax, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: efgy::json::value<long double>::clear()
void clear(void) {
    if (payload) {
      switch (type) {
        case object:
          delete ((objectType *)payload);
          break;
        case array:
          delete ((arrayType *)payload);
          break;
        case string:
          delete ((stringType *)payload);
          break;
        case number:
          delete ((numberType *)payload);
          break;
        case yes:
        case no:
        case null:
        case comma:
        case colon:
        case error:
        case endObject:
        case endArray:
          break;
      }
      payload = 0;
    }
    type = null;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x109ba
movl (%rbx), %eax
cmpq $0x3, %rax
ja 0x109b5
leaq 0x480b(%rip), %rcx      # 0x15188
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x1056e
pushq $0x30
jmp 0x109ac
movq %r14, %rdi
callq 0x4130
pushq $0x20
jmp 0x109ac
pushq $0x10
jmp 0x109ac
movq %r14, %rdi
callq 0x66f0
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0x42b0
andq $0x0, 0x8(%rbx)
movl $0x6, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: efgy::json::value<long double>::operator=(efgy::json::value<long double> const&)
value &operator=(const value &b) {
    clear();
    switch (b.type) {
      case object:
        toObject() = b.asObject();
        break;
      case array:
        toArray() = b.asArray();
        break;
      case string:
        toString() = b.asString();
        break;
      case number:
        toNumber() = b.asNumber();
        break;
      case yes:
      case no:
      case null:
      case comma:
      case colon:
      case error:
      case endObject:
      case endArray:
        type = b.type;
        break;
    }
    return *this;
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1095e
movl (%r14), %eax
cmpq $0xb, %rax
ja 0x109f5
leaq 0x47ae(%rip), %rcx      # 0x15198
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movl %eax, (%rbx)
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x10bc4
movq %rbx, %rdi
callq 0x10b58
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4180
leaq 0x8(%rsp), %rdi
callq 0x4130
jmp 0x109f5
movq 0x8(%r14), %rax
fldt (%rax)
fstpt 0x3c(%rsp)
movq %rbx, %rdi
callq 0x10b94
fldt 0x3c(%rsp)
fstpt (%rax)
jmp 0x109f5
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x10ca8
movq %rbx, %rdi
callq 0x10ade
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x1106c
leaq 0x8(%rsp), %rdi
callq 0x1056e
jmp 0x109f5
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x10ce0
movq %rbx, %rdi
callq 0x10b22
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x10d08
leaq 0x8(%rsp), %rdi
callq 0x66f0
jmp 0x109f5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x66f0
jmp 0x10ad5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1056e
jmp 0x10ad5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x4470
nop
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: efgy::json::value<long double>::toObject[abi:cxx11]()
objectType &toObject(void) {
    if (!isObject()) {
      clear();
      type = object;
      payload = new objectType();
    }
    return *((objectType *)payload);
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, (%rdi)
je 0x10b1b
movq %rbx, %rdi
callq 0x1095e
andl $0x0, (%rbx)
pushq $0x30
popq %rdi
callq 0x42a0
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
andq $0x0, 0x28(%rax)
movq %rax, 0x8(%rbx)
jmp 0x10b1f
movq 0x8(%rbx), %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: efgy::json::value<long double>::toArray()
arrayType &toArray(void) {
    if (!isArray()) {
      clear();
      type = array;
      payload = new arrayType();
    }
    return *((arrayType *)payload);
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x1, (%rdi)
jne 0x10b31
movq 0x8(%rbx), %rax
jmp 0x10b56
movq %rbx, %rdi
callq 0x1095e
movl $0x1, (%rbx)
pushq $0x18
popq %rdi
callq 0x42a0
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: efgy::json::value<long double>::toString[abi:cxx11]()
stringType &toString(void) {
    if (!isString()) {
      clear();
      type = string;
      payload = new stringType();
    }
    return *((stringType *)payload);
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x2, (%rdi)
jne 0x10b67
movq 0x8(%rbx), %rax
jmp 0x10b91
movq %rbx, %rdi
callq 0x1095e
movl $0x2, (%rbx)
pushq $0x20
popq %rdi
callq 0x42a0
leaq 0x10(%rax), %rcx
movq %rcx, (%rax)
andq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/ef-gy[P]libefgy/include/ef.gy/json.h
// Function: efgy::json::value<long double>::toNumber()
numberType &toNumber(void) {
    if (!isNumber()) {
      clear();
      type = number;
      payload = new numberType();
    }
    return *((numberType *)payload);
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x3, (%rdi)
jne 0x10ba3
movq 0x8(%rbx), %rax
jmp 0x10bc1
movq %rbx, %rdi
callq 0x1095e
movl $0x3, (%rbx)
pushq $0x10
popq %rdi
callq 0x42a0
fldz
fstpt (%rax)
movq %rax, 0x8(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/JainamS1996[P]Btree_DataStructure/final.cpp
// Function: go(Node*)
void go(Node *curNode) {
    if (!curNode->isleaf) {
        go(curNode->children.at(0));
    }
    else {
        while (curNode!=NULL) {
            for (int i = 0; i<curNode->record.size();i++)
                cout << get<0>(curNode->record.at(i))<<endl;
            curNode = curNode->next;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x1, 0x88(%rbx)
je 0x2b6f
addq $0x70, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x38d2
movq (%rax), %rbx
jmp 0x2b53
pushq $0x28
popq %r13
movq 0x645e(%rip), %r14      # 0x8fd8
testq %rbx, %rbx
je 0x2bc3
leaq 0x40(%rbx), %r15
xorl %r12d, %r12d
movq 0x48(%rbx), %rax
subq 0x40(%rbx), %rax
cqto
idivq %r13
cmpq %r12, %rax
jbe 0x2bbd
movq %r15, %rdi
movq %r12, %rsi
callq 0x3830
movsd 0x20(%rax), %xmm0
movq %r14, %rdi
callq 0x2260
movq %rax, %rdi
callq 0x20f0
incq %r12
jmp 0x2b86
movq 0x30(%rbx), %rbx
jmp 0x2b7a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/JainamS1996[P]Btree_DataStructure/final.cpp
// Function: Node::Node(bool)
Node(bool leaf = true){
            nNodes = 0;
            parentNode = NULL;
            next = NULL;
            prev = NULL;
            greeting = "alive";
            isleaf = leaf ;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
andl $0x0, 0x20(%rdi)
movl %esi, %r14d
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x48(%rdi)
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movups %xmm0, 0x78(%rdi)
leaq 0x28d5(%rip), %rsi      # 0x6040
callq 0x22c0
movb %r14b, 0x88(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x70(%rbx), %rdi
leaq 0x58(%rbx), %r15
leaq 0x40(%rbx), %r12
callq 0x39ac
movq %r15, %rdi
callq 0x39c0
movq %r12, %rdi
callq 0x3972
movq %rbx, %rdi
callq 0x20d0
movq %r14, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/BankState.cpp
// Function: CasHMC::operator<<(std::ostream&, CasHMC::BankState const&)
ostream &operator<<(ostream &out, const BankState &bs)
{
	switch(bs.currentBankState) {
		case IDLE:
			out<<"Idle";
			break;
		case ROW_ACTIVE:
			out<<"Actv";
			break;
		case PRECHARGING:
			out<<"Prch";
			break;
		case REFRESHING:
			out<<"Refr";
			break;
		case POWERDOWN:
			out<<"Pwdw";
			break;
		case AWAKING:
			out<<"Awak";
			break;
		default:
			ERROR(" (BS) == Error - Trying to print unknown kind of bank state");
			ERROR("         Type : "<<bs.currentBankState);
			exit(0);
	}
	return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x4(%rsi), %eax
cmpq $0x6, %rax
jae 0x5b89
movq %rdi, %r14
leaq 0x1e529(%rip), %rcx     # 0x24094
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
callq 0x4300
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbx
movq 0x2b45d(%rip), %r14     # 0x30ff0
leaq 0x1e488(%rip), %r15     # 0x24022
movq %r14, %rdi
movq %r15, %rsi
callq 0x4300
leaq 0x1e47f(%rip), %r12     # 0x2402b
movq %rax, %rdi
movq %r12, %rsi
callq 0x4300
leaq 0x1ecb9(%rip), %r13     # 0x24877
movq %rax, %rdi
movq %r13, %rsi
callq 0x4300
pushq $0x3d
popq %rsi
movq %rax, %rdi
callq 0x44f0
leaq 0x1e466(%rip), %rbp     # 0x24041
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4300
leaq 0x1e459(%rip), %rsi     # 0x24046
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4180
movq %r14, %rdi
movq %r15, %rsi
callq 0x4300
movq %rax, %rdi
movq %r12, %rsi
callq 0x4300
movq %rax, %rdi
movq %r13, %rsi
callq 0x4300
pushq $0x3e
popq %rsi
movq %rax, %rdi
callq 0x44f0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4300
leaq 0x1e447(%rip), %rsi     # 0x24082
movq %rax, %rdi
callq 0x4300
movl 0x4(%rbx), %esi
movq %rax, %rdi
callq 0x44f0
movq %rax, %rdi
callq 0x4180
xorl %edi, %edi
callq 0x4370
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CasHMCWrapper.cpp
// Function: CasHMC::CasHMCWrapper::~CasHMCWrapper()
CasHMCWrapper::~CasHMCWrapper()
{
	PrintEpochStatistic();
	PrintFinalStatistic();
	debugOut.flush();		debugOut.close();
	stateOut.flush();		stateOut.close();
	plotDataOut.flush();	plotDataOut.close();
	plotScriptOut.flush();	plotScriptOut.close();
	resultOut.flush();		resultOut.close();
	
	for(int l=0; l<NUM_LINKS; l++) {
		delete downstreamLinks[l];
		delete upstreamLinks[l];
	}
	downstreamLinks.clear(); 
	upstreamLinks.clear(); 
	delete hmcCont;
	hmcCont = NULL;
	delete hmc;
	hmc = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x28858(%rip), %rax     # 0x30918
movq %rax, (%rdi)
callq 0x8292
movq %rbx, %rdi
callq 0xa482
leaq 0x618(%rbx), %r14
movq %r14, %rdi
callq 0x4220
movq %r14, %rdi
callq 0x43f0
leaq 0x818(%rbx), %r12
movq %r12, %rdi
callq 0x4220
movq %r12, %rdi
callq 0x43f0
leaq 0xa18(%rbx), %r13
movq %r13, %rdi
callq 0x4220
movq %r13, %rdi
callq 0x43f0
leaq 0xc18(%rbx), %rbp
movq %rbp, %rdi
callq 0x4220
movq %rbp, %rdi
callq 0x43f0
leaq 0xe18(%rbx), %r15
movq %r15, %rdi
callq 0x4220
movq %r15, %rdi
callq 0x43f0
movq %rbp, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r14, 0x20(%rsp)
leaq 0x338(%rbx), %r13
leaq 0x350(%rbx), %rbp
xorl %r12d, %r12d
leaq 0x29339(%rip), %r14     # 0x314a8
movslq (%r14), %rcx
movq (%r13), %rax
cmpq %rcx, %r12
jge 0x81a2
movq (%rax,%r12,8), %rdi
testq %rdi, %rdi
je 0x818a
movq (%rdi), %rax
callq *0x8(%rax)
movq (%rbp), %rax
movq (%rax,%r12,8), %rdi
testq %rdi, %rdi
je 0x819d
movq (%rdi), %rax
callq *0x8(%rax)
incq %r12
jmp 0x816f
cmpq %rax, 0x340(%rbx)
je 0x81b2
movq %rax, 0x340(%rbx)
movq 0x350(%rbx), %rax
cmpq %rax, 0x358(%rbx)
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %r12
je 0x81d3
movq %rax, 0x358(%rbx)
movq 0x330(%rbx), %rdi
testq %rdi, %rdi
je 0x81e5
movq (%rdi), %rax
callq *0x8(%rax)
andq $0x0, 0x330(%rbx)
movq 0x368(%rbx), %rdi
testq %rdi, %rdi
je 0x81ff
movq (%rdi), %rax
callq *0x8(%rax)
andq $0x0, 0x368(%rbx)
movq %r15, %rdi
callq 0x4410
movq 0x8(%rsp), %rdi
callq 0x4410
movq 0x10(%rsp), %rdi
callq 0x4410
movq %r12, %rdi
callq 0x4410
movq %r14, %rdi
callq 0x4410
leaq 0x418(%rbx), %rdi
callq 0x4410
leaq 0x400(%rbx), %rdi
callq 0xe66e
leaq 0x3e8(%rbx), %rdi
callq 0xe66e
leaq 0x3a8(%rbx), %rdi
callq 0x4598
movq %rbp, %rdi
callq 0xe7ee
movq %r13, %rdi
callq 0xe7ee
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdf60
movq %rax, %rdi
callq 0xdcce
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CasHMCWrapper.cpp
// Function: CasHMC::CasHMCWrapper::ReceiveTran(CasHMC::TransactionType, unsigned long, unsigned int)
bool CasHMCWrapper::ReceiveTran(TransactionType tranType, uint64_t addr, unsigned size)
{
	Transaction *newTran = new Transaction(tranType, addr, size, this);

	if(hmcCont->ReceiveDown(newTran)) {
		DE_CR(ALI(18)<<" (BUS)"<<ALI(15)<<*newTran<<"Down) SENDING transaction to HMC controller (HC)");
		return true;
	}
	else {
		newTran->ReductGlobalID();
		delete newTran->trace;
		delete newTran;
		return false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %r14
pushq $0x30
popq %rdi
callq 0x4310
movq %rax, %rbx
movq %rax, %rdi
movl %r12d, %esi
movq %r15, %rdx
movl %ebp, %ecx
movq %r14, %r8
callq 0x20a5c
movq 0x330(%r14), %rdi
movq %rbx, %rsi
callq 0xdcda
movl %eax, %ebp
testb %al, %al
je 0xc577
leaq 0x24f8b(%rip), %rax     # 0x31488
cmpb $0x1, (%rax)
jne 0xc5a4
movq 0x24ac3(%rip), %rdi     # 0x30fd0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x12, 0x10(%rdi,%rax)
pushq $0x20
popq %r14
movl %r14d, %esi
callq 0x4440
leaq 0x183a8(%rip), %rsi     # 0x248d8
movq %rax, %rdi
callq 0x4300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %r14d, %esi
callq 0x4440
movq %rax, %rdi
movq %rbx, %rsi
callq 0x20aca
leaq 0x1837a(%rip), %rsi     # 0x248df
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4180
jmp 0xc5a4
movq %rbx, %rdi
callq 0x20ac0
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0xc590
movq %r14, %rdi
callq 0xdd6c
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x4320
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
pushq $0x30
popq %rsi
movq %rbx, %rdi
callq 0x4320
movq %r14, %rdi
callq 0x4520
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CasHMCWrapper.cpp
// Function: CasHMC::CasHMCWrapper::ReceiveTran(CasHMC::Transaction*)
bool CasHMCWrapper::ReceiveTran(Transaction *tran)
{
	if(hmcCont->ReceiveDown(tran)) {
		DE_CR(ALI(18)<<" (BUS)"<<ALI(15)<<*tran<<"Down) SENDING transaction to HMC controller (HC)");
		return true;
	}
	else {
		return false;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq 0x330(%rdi), %rdi
callq 0xdcda
movl %eax, %ebx
testb %al, %al
je 0xc657
leaq 0x24ea2(%rip), %rax     # 0x31488
cmpb $0x1, (%rax)
jne 0xc657
movq 0x249de(%rip), %rdi     # 0x30fd0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x12, 0x10(%rdi,%rax)
pushq $0x20
popq %rbp
movl %ebp, %esi
callq 0x4440
leaq 0x182c5(%rip), %rsi     # 0x248d8
movq %rax, %rdi
callq 0x4300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xf, 0x10(%rax,%rcx)
movq %rax, %rdi
movl %ebp, %esi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x20aca
leaq 0x18298(%rip), %rsi     # 0x248df
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4180
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CasHMCWrapper.cpp
// Function: CasHMC::CasHMCWrapper::DataScaling[abi:cxx11](double)
string CasHMCWrapper::DataScaling(double dataScale)
{
	string outStr;
	char unitChar[5] = {' ','K','M','G','T'};
	
	int unitScale = 0;
	while(dataScale > 1024) {
		unitScale++;
		dataScale /= 1024;
		if(unitScale > 4)	break;
	}
	
	stringstream scaledData;
	scaledData<<ALI(7)<<dataScale;
	outStr = scaledData.str() + " " + unitChar[unitScale] + "B";
	return outStr;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movapd %xmm0, %xmm2
xorl %r14d, %r14d
ucomisd 0x17266(%rip), %xmm0    # 0x240d0
jbe 0xce91
movsd 0x17264(%rip), %xmm0    # 0x240d8
movsd 0x17254(%rip), %xmm1    # 0x240d0
mulsd %xmm0, %xmm2
movl %r14d, %eax
incq %r14
cmpl $0x3, %eax
ja 0xce91
ucomisd %xmm1, %xmm2
ja 0xce7c
movsd %xmm2, 0x8(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x4230
leaq 0xa0(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x7, 0xb0(%rsp,%rax)
pushq $0x20
popq %rsi
callq 0x4440
movq %rax, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x4470
leaq 0xa8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x4450
leaq 0x18b66(%rip), %rdx     # 0x25a54
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xdeea
leaq 0x17260(%rip), %rax     # 0x24164
movsbl (%r14,%rax), %edx
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xdc88
leaq 0x18e9b(%rip), %rdx     # 0x25dba
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xdeea
leaq 0x70(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4380
movq %r14, %rdi
callq 0x4598
leaq 0x50(%rsp), %rdi
callq 0x4598
leaq 0x30(%rsp), %rdi
callq 0x4598
leaq 0x10(%rsp), %rdi
callq 0x4598
leaq 0x90(%rsp), %rdi
callq 0x4260
movq %rbx, %rax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
retq
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x4598
jmp 0xcf91
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x4598
jmp 0xcfa0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x4598
jmp 0xcfb6
jmp 0xcfb3
movq %rax, %r14
jmp 0xcfc3
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x4260
movq %rbx, %rdi
callq 0x4598
movq %r14, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DualVectorObject.h
// Function: CasHMC::DualVectorObject<CasHMC::Packet, CasHMC::Packet>::ReceiveDown(CasHMC::Packet*)
bool ReceiveDown(DownT *downEle) {
		if(downBuffers.size() + downEle->LNG <= downBufferMax) {
			if(downBuffers.size() == 0) {
				bufPopDelay = (bufPopDelay>0) ? bufPopDelay : 1;
			}
			downBuffers.push_back(downEle);
			//If receiving packet is packet, add virtual tail packet in Buffers as long as packet length
			if(sizeof(*downEle) == sizeof(Packet)) {
				for(int i=1; i<downEle->LNG; i++) {
					downBuffers.push_back(NULL);
				}
			}
			CallbackReceiveDown(downEle, true);
			return true;
		}
		else {
			CallbackReceiveDown(downEle, false);
			return false;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq 0x1d0(%rdi), %rax
movq 0x1d8(%rdi), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movl 0x430(%rsi), %r12d
addq %rdx, %r12
movslq 0x1c8(%rdi), %r13
cmpq %r13, %r12
ja 0x133e7
leaq 0x1d0(%rbx), %r14
cmpq %rax, %rcx
jne 0x133a5
movl 0x200(%rbx), %eax
cmpl $0x2, %eax
pushq $0x1
popq %rcx
cmovgel %eax, %ecx
movl %ecx, 0x200(%rbx)
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x13442
leaq 0x10(%rsp), %r15
movq 0x8(%rsp), %rsi
cmpl 0x430(%rsi), %ebp
jae 0x133dc
andq $0x0, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x13bc4
incl %ebp
jmp 0x133ba
movq (%rbx), %rax
pushq $0x1
popq %rdx
movq %rbx, %rdi
jmp 0x133ef
movq (%rbx), %rax
movq %rbx, %rdi
xorl %edx, %edx
callq *0x18(%rax)
cmpq %r13, %r12
setbe %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/TranTrace.h
// Function: CasHMC::TranTrace::~TranTrace()
~TranTrace() {
		if(tranFullLat==0 || linkFullLat==0 || vaultFullLat==0) {
			ERROR(" (Trace) == Error - Full latency is '0'  (tranFullLat : "<<tranFullLat
					<<", linkFullLat : "<<linkFullLat<<", vaultFullLat : "<<vaultFullLat<<")");
			exit(0);
		}
		else {
			statis->UpdateStatis(tranFullLat, linkFullLat, vaultFullLat);
		}
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0xc(%rdi), %esi
testl %esi, %esi
je 0xdd8f
movl 0x14(%rbx), %edx
testl %edx, %edx
je 0xdd8f
movl 0x1c(%rbx), %ecx
testl %ecx, %ecx
je 0xdd8f
movq (%rbx), %rdi
callq 0xe518
popq %rbx
retq
movq 0x2325a(%rip), %rdi     # 0x30ff0
leaq 0x16285(%rip), %rsi     # 0x24022
callq 0x4300
leaq 0x17aff(%rip), %rsi     # 0x258a8
movq %rax, %rdi
callq 0x4300
leaq 0x16abf(%rip), %rsi     # 0x24877
movq %rax, %rdi
callq 0x4300
pushq $0x28
popq %rsi
movq %rax, %rdi
callq 0x44f0
leaq 0x1626f(%rip), %rsi     # 0x24041
movq %rax, %rdi
callq 0x4300
leaq 0x17adb(%rip), %rsi     # 0x258bc
movq %rax, %rdi
callq 0x4300
movl 0xc(%rbx), %esi
movq %rax, %rdi
callq 0x4210
leaq 0x172b8(%rip), %rsi     # 0x250b3
movq %rax, %rdi
callq 0x4300
movl 0x14(%rbx), %esi
movq %rax, %rdi
callq 0x4210
leaq 0x172af(%rip), %rsi     # 0x250c4
movq %rax, %rdi
callq 0x4300
movl 0x1c(%rbx), %esi
movq %rax, %rdi
callq 0x4210
leaq 0x196a2(%rip), %rsi     # 0x274d1
movq %rax, %rdi
callq 0x4300
movq %rax, %rdi
callq 0x4180
xorl %edi, %edi
callq 0x4370
movq %rax, %rdi
callq 0xdcce
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/TranStatistic.h
// Function: CasHMC::TranStatistic::~TranStatistic()
virtual ~TranStatistic() {
		tranFullLat.clear();
		linkFullLat.clear();
		vaultFullLat.clear();
		errorRetryLat.clear();
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x229ed(%rip), %rax     # 0x30960
movq %rax, (%rdi)
movq 0x8(%rdi), %rax
cmpq %rax, 0x10(%rdi)
je 0xdf84
movq %rax, 0x10(%rbx)
movq 0x20(%rbx), %rax
cmpq %rax, 0x28(%rbx)
je 0xdf92
movq %rax, 0x28(%rbx)
movq 0x38(%rbx), %rax
cmpq %rax, 0x40(%rbx)
je 0xdfa0
movq %rax, 0x40(%rbx)
leaq 0x8(%rbx), %r14
leaq 0x20(%rbx), %r15
leaq 0x38(%rbx), %r12
leaq 0x50(%rbx), %r13
movq 0x50(%rbx), %rax
cmpq %rax, 0x58(%rbx)
je 0xdfbe
movq %rax, 0x58(%rbx)
leaq 0x318(%rbx), %rdi
callq 0xe66e
leaq 0x300(%rbx), %rdi
callq 0xe66e
leaq 0x2e8(%rbx), %rdi
callq 0xe66e
leaq 0x2d0(%rbx), %rdi
callq 0xe66e
leaq 0x270(%rbx), %rdi
callq 0xe140
leaq 0x258(%rbx), %rdi
callq 0xe66e
leaq 0x240(%rbx), %rdi
callq 0xe66e
leaq 0x228(%rbx), %rdi
callq 0xe66e
leaq 0x210(%rbx), %rdi
callq 0xe66e
leaq 0x1f8(%rbx), %rdi
callq 0xe66e
leaq 0x1e0(%rbx), %rdi
callq 0xe66e
leaq 0x178(%rbx), %rdi
callq 0xe66e
leaq 0x160(%rbx), %rdi
callq 0xe66e
leaq 0x148(%rbx), %rdi
callq 0xe66e
leaq 0x130(%rbx), %rdi
callq 0xe66e
leaq 0x110(%rbx), %rdi
callq 0xe140
leaq 0xf8(%rbx), %rdi
callq 0xe140
leaq 0xe0(%rbx), %rdi
callq 0xe66e
leaq 0xc8(%rbx), %rdi
callq 0xe66e
leaq 0xb0(%rbx), %rdi
callq 0xe66e
leaq 0x98(%rbx), %rdi
callq 0xe66e
leaq 0x80(%rbx), %rdi
callq 0xe66e
addq $0x68, %rbx
movq %rbx, %rdi
callq 0xe66e
movq %r13, %rdi
callq 0xe140
movq %r12, %rdi
callq 0xe140
movq %r15, %rdi
callq 0xe140
movq %r14, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xe140
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/TranStatistic.h
// Function: CasHMC::TranStatistic::UpdateStatis(unsigned int, unsigned int, unsigned int)
void UpdateStatis(unsigned tranFull, unsigned linkFull, unsigned vaultFull) {
		tranFullLat.push_back(tranFull);
		linkFullLat.push_back(linkFull);
		vaultFullLat.push_back(vaultFull);
		
		tranFullSum += tranFull;
		linkFullSum += linkFull;
		vaultFullSum += vaultFull;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x14(%rsp), %r14
movl %esi, (%r14)
leaq 0x10(%rsp), %r15
movl %edx, (%r15)
leaq 0xc(%rsp), %r12
movl %ecx, (%r12)
addq $0x8, %rdi
movq %r14, %rsi
callq 0xe58e
leaq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0xe58e
leaq 0x38(%rbx), %rdi
movq %r12, %rsi
callq 0xe58e
movl (%r14), %eax
addq %rax, 0x190(%rbx)
movl (%r15), %eax
addq %rax, 0x198(%rbx)
movl (%r12), %eax
addq %rax, 0x1a0(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CommandQueue.cpp
// Function: CasHMC::CommandQueue::~CommandQueue()
CommandQueue::~CommandQueue()
{
	for(int b=0; b<NUM_BANKS; b++) {
		ACCESSQUE(b).clear();
		if(!QUE_PER_BANK)	break;
	}
	atomicLock.clear();
	atomicLockTag.clear();
	bufPopDelayPerBank.clear();
	queue.clear();
	tFAWCountdown.clear();
	rowAccessCounter.clear();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x219ad(%rip), %rax     # 0x30980
movq %rax, (%rdi)
leaq 0x225a3(%rip), %rax     # 0x31580
movslq (%rax), %rax
leaq 0x225a9(%rip), %rcx     # 0x31590
movb (%rcx), %cl
leaq 0x238(%rdi), %r14
xorl %edx, %edx
cmpq %rax, %rdx
jge 0xf024
movq (%r14), %rsi
testb $0x1, %cl
movl $0x0, %edi
cmovneq %rdx, %rdi
imulq $0x18, %rdi, %r8
movq (%rsi,%r8), %rdi
cmpq %rdi, 0x8(%rsi,%r8)
je 0xf01c
addq %r8, %rsi
movq %rdi, 0x8(%rsi)
incq %rdx
testb $0x1, %cl
jne 0xeff2
movq 0x1e0(%rbx), %rcx
movq 0x208(%rbx), %rax
movq %rcx, 0x1f0(%rbx)
andl $0x0, 0x1f8(%rbx)
cmpq %rax, 0x210(%rbx)
je 0xf050
movq %rax, 0x210(%rbx)
movq 0x220(%rbx), %rax
cmpq %rax, 0x228(%rbx)
je 0xf067
movq %rax, 0x228(%rbx)
movq %r14, %rdi
callq 0x110fe
movq 0x250(%rbx), %rax
cmpq %rax, 0x258(%rbx)
je 0xf086
movq %rax, 0x258(%rbx)
leaq 0x1e0(%rbx), %r15
leaq 0x208(%rbx), %r12
leaq 0x220(%rbx), %r13
leaq 0x250(%rbx), %rbp
leaq 0x268(%rbx), %rdi
movq 0x268(%rbx), %rax
cmpq %rax, 0x270(%rbx)
je 0xf0c0
movq %rax, 0x270(%rbx)
callq 0xe140
movq %rbp, %rdi
callq 0xe140
movq %r14, %rdi
callq 0x11046
movq %r13, %rdi
callq 0x1129c
movq %r12, %rdi
callq 0xe140
movq %r15, %rdi
callq 0x10ef4
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11246
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CommandQueue.cpp
// Function: CasHMC::CommandQueue::AvailableSpace(unsigned int, unsigned int)
bool CommandQueue::AvailableSpace(unsigned bank, unsigned cmdN)
{
	if(atomicLock[bank]) {
		cmdN += 1;
	}
		
	if(ACCESSQUE(bank).size()+cmdN <= MAX_CMD_QUE) {
		return true;
	}
	else {
/*		if(QUE_PER_BANK) {
			classID.str( string() );	classID.clear();
			classID << bank;
			DEBUG(ALI(39)<<(header+"-"+classID.str()+")")<<"Down) Command queue FULL");
		}
		else {
			DEBUG(ALI(39)<<(header+")")<<"Down) Command queue FULL");
		}*/
		return false;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rdi, %r14
addq $0x1e0, %rdi            # imm = 0x1E0
movl %esi, %r15d
movq %r15, %rsi
callq 0x11106
andq (%rax), %rdx
cmpq $0x1, %rdx
sbbl $-0x1, %ebx
leaq 0x22447(%rip), %rax     # 0x31590
movq 0x238(%r14), %rcx
xorl %edx, %edx
cmpb $0x0, (%rax)
cmovneq %r15, %rdx
imulq $0x18, %rdx, %rax
movq 0x8(%rcx,%rax), %rdx
subq (%rcx,%rax), %rdx
sarq $0x3, %rdx
addq %rdx, %rbx
leaq 0x22354(%rip), %rax     # 0x314c8
movslq (%rax), %rax
cmpq %rax, %rbx
setbe %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CommandQueue.cpp
// Function: CasHMC::CommandQueue::isEmpty()
bool CommandQueue::isEmpty()
{
	for(int b=0; b<NUM_BANKS; b++) {
		if(!ACCESSQUE(b).empty()) {
			return false;
		}
	}
	return true;
}

// Assembly:
leaq 0x20bc1(%rip), %rax     # 0x31580
movslq (%rax), %rax
leaq 0x20bc7(%rip), %rcx     # 0x31590
movb (%rcx), %cl
movq 0x238(%rdi), %rdx
xorl %r8d, %r8d
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
movq %r8, %rdi
cmpq %r8, %rsi
je 0x10a07
testb $0x1, %cl
movl $0x0, %r8d
cmovneq %rdi, %r8
imulq $0x18, %r8, %r9
movq (%rdx,%r9), %r10
leaq 0x1(%rdi), %r8
cmpq 0x8(%rdx,%r9), %r10
je 0x109df
cmpq %rax, %rdi
setge %al
retq
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CommandQueue.cpp
// Function: CasHMC::CommandQueue::Update()
void CommandQueue::Update()
{
	for(int b=0; b<NUM_BANKS; b++){
		POPCYCLE(b) = (POPCYCLE(b)>0) ? POPCYCLE(b)-1 : 0;
		if(!QUE_PER_BANK)	break;	
	}

	Step();
}

// Assembly:
leaq 0x20b7b(%rip), %rax     # 0x31590
movb (%rax), %cl
movq 0x220(%rdi), %rax
xorl %edx, %edx
leaq 0x20b59(%rip), %rsi     # 0x31580
xorl %r8d, %r8d
movslq (%rsi), %r9
cmpq %r9, %r8
jge 0x10a5d
testb $0x1, %cl
je 0x10a4f
movl (%rax,%r8,4), %r9d
leal -0x1(%r9), %r10d
testl %r9d, %r9d
cmovlel %edx, %r10d
movl %r10d, (%rax,%r8,4)
incq %r8
jmp 0x10a2a
movl (%rax), %ecx
leal -0x1(%rcx), %edx
xorl %esi, %esi
testl %ecx, %ecx
cmovgl %edx, %esi
movl %esi, (%rax)
incq 0x8(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CrossbarSwitch.cpp
// Function: CasHMC::CrossbarSwitch::CrossbarSwitch(std::basic_ofstream<char, std::char_traits<char>>&, std::basic_ofstream<char, std::char_traits<char>>&)
CrossbarSwitch::CrossbarSwitch(ofstream &debugOut_, ofstream &stateOut_):
	DualVectorObject<Packet, Packet>(debugOut_, stateOut_, MAX_CROSS_BUF, MAX_CROSS_BUF)
{
	header = "        (CS)";
	
	inServiceLink = -1;

	downBufferDest = vector<DualVectorObject<Packet, Packet> *>(NUM_VAULTS, NULL);
	upBufferDest = vector<LinkMaster *>(NUM_LINKS, NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x1f209(%rip), %rax     # 0x314c4
movl (%rax), %ecx
movl %ecx, %r8d
callq 0x13168
leaq 0x1e72c(%rip), %rax     # 0x309f8
movq %rax, (%rbx)
leaq 0x208(%rbx), %r14
leaq 0x220(%rbx), %r15
leaq 0x20(%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x208(%rbx)
movups %xmm0, 0x218(%rbx)
movups %xmm0, 0x228(%rbx)
movups %xmm0, 0x240(%rbx)
movups %xmm0, 0x250(%rbx)
movups %xmm0, 0x260(%rbx)
leaq 0x13af4(%rip), %rsi     # 0x25e09
callq 0x4560
orl $-0x1, 0x238(%rbx)
leaq 0x1f254(%rip), %rax     # 0x3157c
movslq (%rax), %rsi
leaq 0x10(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x13208
leaq 0x18(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x137b4
movq %r12, %rdi
callq 0x13678
leaq 0x1f146(%rip), %rax     # 0x314a8
movslq (%rax), %rsi
leaq 0x10(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x1325e
leaq 0x18(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x138bc
movq %rbx, %rdi
callq 0x136ac
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x123a7
jmp 0x123a7
movq %rax, %r12
leaq 0x240(%rbx), %r13
leaq 0x258(%rbx), %rdi
callq 0x136e0
movq %r13, %rdi
callq 0xe140
movq %r15, %rdi
callq 0x136ac
movq %r14, %rdi
callq 0x13678
movq %rbx, %rdi
callq 0x135ba
movq %r12, %rdi
callq 0x4520
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/CrossbarSwitch.cpp
// Function: CasHMC::CrossbarSwitch::~CrossbarSwitch()
CrossbarSwitch::~CrossbarSwitch()
{	
	downBufferDest.clear();
	upBufferDest.clear();
	pendingSegTag.clear(); 
	pendingSegPacket.clear(); 
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1e600(%rip), %rax     # 0x309f8
movq %rax, (%rdi)
movq 0x208(%rdi), %rax
cmpq %rax, 0x210(%rdi)
je 0x12412
movq %rax, 0x210(%rbx)
movq 0x220(%rbx), %rax
cmpq %rax, 0x228(%rbx)
je 0x12429
movq %rax, 0x228(%rbx)
movq 0x240(%rbx), %rax
cmpq %rax, 0x248(%rbx)
je 0x12440
movq %rax, 0x248(%rbx)
leaq 0x208(%rbx), %r14
leaq 0x220(%rbx), %r15
leaq 0x240(%rbx), %r12
leaq 0x258(%rbx), %rdi
movq 0x258(%rbx), %rax
cmpq %rax, 0x260(%rbx)
je 0x12473
movq %rax, 0x260(%rbx)
callq 0x136e0
movq %r12, %rdi
callq 0xe140
movq %r15, %rdi
callq 0x136ac
movq %r14, %rdi
callq 0x13678
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x135ba
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/ConfigValue.h
// Function: CasHMC::_log2(unsigned int)
unsigned inline _log2(unsigned value)
{
	unsigned logbase2 = 0;
	unsigned orig = value;
	value >>= 1;
	while(value > 0)
	{
		value >>= 1;
		logbase2++;
	}
	if(1<<logbase2 < orig)	logbase2++;
	return logbase2;
}

// Assembly:
xorl %eax, %eax
movl %edi, %ecx
cmpl $0x2, %ecx
jb 0x13333
shrl %ecx
incl %eax
jmp 0x13328
pushq $0x1
popq %rdx
movl %eax, %ecx
shll %cl, %edx
cmpl %edi, %edx
adcl $0x0, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/SingleVectorObject.h
// Function: CasHMC::SingleVectorObject<CasHMC::Packet>::Receive(CasHMC::Packet*)
bool Receive(BufT *ele) {
		if(Buffers.size() + ele->LNG <= bufferMax) {
			Buffers.push_back(ele);
			//If receiving packet is packet, add virtual tail packet in Buffers as long as packet length
			if(sizeof(*ele) == sizeof(Packet)) {
				for(int i=1; i<ele->LNG; i++) {
					Buffers.push_back(NULL);
				}
			}
			CallbackReceive(ele, true);
			return true;
		}
		else {
			CallbackReceive(ele, false);
			return false;
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq 0x1d8(%rdi), %rax
subq 0x1d0(%rdi), %rax
sarq $0x3, %rax
movl 0x430(%rsi), %r12d
addq %rax, %r12
movslq 0x1c8(%rdi), %r13
cmpq %r13, %r12
ja 0x134e7
leaq 0x1d0(%rbx), %r14
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x13442
pushq $0x1
popq %rbp
leaq 0x10(%rsp), %r15
movq 0x8(%rsp), %rsi
cmpl 0x430(%rsi), %ebp
jae 0x134dc
andq $0x0, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x13bc4
incl %ebp
jmp 0x134ba
movq (%rbx), %rax
pushq $0x1
popq %rdx
movq %rbx, %rdi
jmp 0x134ef
movq (%rbx), %rax
movq %rbx, %rdi
xorl %edx, %edx
callq *0x18(%rax)
cmpq %r13, %r12
setbe %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DRAM.cpp
// Function: CasHMC::DRAM::DRAM(std::basic_ofstream<char, std::char_traits<char>>&, std::basic_ofstream<char, std::char_traits<char>>&, unsigned int, CasHMC::VaultController*)
DRAM::DRAM(ofstream &debugOut_, ofstream &stateOut_, unsigned id, VaultController *contP):
	SimulatorObject(debugOut_, stateOut_),
	DRAMID(id),
	vaultContP(contP)
{
	classID << DRAMID;
	header = "        (DR_" + classID.str() + ")";
	
	readData = NULL;
	dataCyclesLeft = 0;

	bankStates.reserve(NUM_BANKS);
	for(int b=0; b<NUM_BANKS; b++) {
		bankStates.push_back(new BankState(b));
	}
	previousBankState = vector<BankStateType>(NUM_BANKS, IDLE);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %r14
movl %ecx, %ebp
movq %rdi, %r12
callq 0x10de6
leaq 0x1ce7a(%rip), %rax     # 0x30a98
movq %rax, (%r12)
movl %ebp, 0x1c8(%r12)
movq %r14, 0x1d0(%r12)
leaq 0x1d8(%r12), %r14
leaq 0x1f0(%r12), %rax
movq %rax, 0x8(%rsp)
leaq 0x50(%r12), %rdi
movl %ebp, %esi
xorps %xmm0, %xmm0
movups %xmm0, 0x1d8(%r12)
movups %xmm0, 0x1e8(%r12)
movups %xmm0, 0x1f8(%r12)
movups %xmm0, 0x218(%r12)
movups %xmm0, 0x228(%r12)
movups %xmm0, 0x238(%r12)
movq %r12, 0x10(%rsp)
callq 0x4210
leaq 0x58(%r12), %rsi
leaq 0x38(%rsp), %rdi
callq 0x4450
leaq 0x1233c(%rip), %rsi     # 0x25fe3
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0xdcaa
leaq 0x13814(%rip), %rdx     # 0x274d1
leaq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xdeea
leaq 0x20(%r12), %rdi
leaq 0x18(%rsp), %r15
movq %r15, %rsi
callq 0x4380
movq %r15, %rdi
callq 0x4598
leaq 0x58(%rsp), %rdi
callq 0x4598
leaq 0x38(%rsp), %rdi
callq 0x4598
andq $0x0, 0x208(%r12)
andl $0x0, 0x210(%r12)
leaq 0x1d86d(%rip), %rbx     # 0x31580
movslq (%rbx), %rsi
movq %r14, %rdi
callq 0x14de6
xorl %ebp, %ebp
pushq $0x40
popq %r12
leaq 0x18(%rsp), %r13
movslq (%rbx), %rsi
cmpl %esi, %ebp
jge 0x13d59
movq %r12, %rdi
callq 0x4310
movq %rax, %r15
movq %rax, %rdi
movl %ebp, %esi
callq 0x5b2c
movq %r15, 0x18(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x14f76
incl %ebp
jmp 0x13d29
leaq 0x58(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rcx
callq 0x14e7c
leaq 0x18(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x1516c
movq %rbx, %rdi
callq 0x14f06
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x13dcd
movq %rax, %r12
leaq 0x58(%rsp), %rdi
callq 0x4598
jmp 0x13dad
movq %rax, %r12
leaq 0x38(%rsp), %rdi
callq 0x4598
jmp 0x13dd0
jmp 0x13dcd
jmp 0x13dcd
movq %rax, %r12
pushq $0x40
popq %rsi
movq %r15, %rdi
callq 0x4320
jmp 0x13dd0
movq %rax, %r12
movq 0x10(%rsp), %rbx
leaq 0x218(%rbx), %r15
leaq 0x230(%rbx), %rdi
callq 0xe140
movq %r15, %rdi
callq 0x114fa
movq 0x8(%rsp), %rdi
callq 0x14f06
movq %r14, %rdi
callq 0x14ed2
movq %rbx, %rdi
callq 0x11246
movq %r12, %rdi
callq 0x4520
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DRAM.cpp
// Function: CasHMC::DRAM::~DRAM()
DRAM::~DRAM()
{
	for(int i=0; i<readReturnDATA.size(); i++) {
		delete readReturnDATA[i];
	}
	readReturnDATA.clear();
	readReturnCountdown.clear();
	
	for(int b=0; b<NUM_BANKS; b++) {
		delete bankStates[b];
	}
	bankStates.clear();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1cc71(%rip), %rax     # 0x30a98
movq %rax, (%rdi)
leaq 0x218(%rdi), %rax
movq %rax, (%rsp)
xorl %r15d, %r15d
movq 0x218(%rbx), %rax
movq 0x220(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r15, %rdx
jbe 0x13e69
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x13e64
movq (%rdi), %rax
callq *0x8(%rax)
incq %r15
jmp 0x13e38
cmpq %rax, %rcx
je 0x13e75
movq %rax, 0x220(%rbx)
movq 0x230(%rbx), %rax
cmpq %rax, 0x238(%rbx)
je 0x13e8c
movq %rax, 0x238(%rbx)
leaq 0x230(%rbx), %r12
leaq 0x1d8(%rbx), %r15
xorl %ebp, %ebp
leaq 0x1d6dd(%rip), %r14     # 0x31580
pushq $0x40
popq %r13
movslq (%r14), %rcx
movq (%r15), %rax
cmpq %rcx, %rbp
jge 0x13ec3
movq (%rax,%rbp,8), %rdi
movq %r13, %rsi
callq 0x4320
incq %rbp
jmp 0x13ea7
cmpq %rax, 0x1e0(%rbx)
je 0x13ed3
movq %rax, 0x1e0(%rbx)
movq %r12, %rdi
callq 0xe140
movq (%rsp), %rdi
callq 0x114fa
leaq 0x1f0(%rbx), %rdi
callq 0x14f06
movq %r15, %rdi
callq 0x14ed2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11246
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DRAM.cpp
// Function: CasHMC::DRAM::powerDown()
bool DRAM::powerDown()
{
	//check to make sure all banks are idle
	bool allIdle = true;
	for(int b=0; b<NUM_BANKS; b++) {
		if(bankStates[b]->currentBankState != IDLE) {
			allIdle = false;
			break;
		}
	}
	if(allIdle) {
		for(int b=0; b<NUM_BANKS; b++) {
			bankStates[b]->currentBankState = POWERDOWN;
			bankStates[b]->nextPowerUp = currentClockCycle + tCKE;
		}
		return true;
	}
	else {
		return false;
	}
}

// Assembly:
leaq 0x1cb87(%rip), %rax     # 0x31580
movslq (%rax), %rax
movq 0x1d8(%rdi), %rcx
xorl %r8d, %r8d
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
movq %r8, %rsi
cmpq %r8, %rdx
je 0x14a2e
movq (%rcx,%rsi,8), %r9
leaq 0x1(%rsi), %r8
cmpl $0x0, 0x4(%r9)
je 0x14a10
cmpq %rax, %rsi
setge %al
retq
leaq 0x1cbaf(%rip), %r8      # 0x315e4
movl (%r8), %r8d
addq 0x8(%rdi), %r8
xorl %edi, %edi
cmpq %rdi, %rdx
je 0x14a27
movq (%rcx,%rdi,8), %r9
movl $0x4, 0x4(%r9)
movq %r8, 0x30(%r9)
incq %rdi
jmp 0x14a3e
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DRAM.cpp
// Function: CasHMC::DRAM::powerUp()
void DRAM::powerUp()
{
	for(int b=0; b<NUM_BANKS; b++) {
		bankStates[b]->lastCommand = POWERDOWN_EXIT;
		bankStates[b]->currentBankState = AWAKING;
		bankStates[b]->stateChangeCountdown = tXP;
		bankStates[b]->nextActivate = currentClockCycle + tXP;
	}
	DEBUG(ALI(39)<<header<<"AWAKE DRAM power down mode   nextActivate time : "<<bankStates[0]->nextActivate);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1cb1d(%rip), %rax     # 0x31580
movslq (%rax), %rax
movq 0x1d8(%rdi), %rcx
leaq 0x1cb74(%rip), %rdx     # 0x315e8
movl (%rdx), %edx
movq %rdx, %rsi
addq 0x8(%rdi), %rsi
xorl %edi, %edi
cmpq %rax, %rdi
jge 0x14aa5
movq (%rcx,%rdi,8), %r8
movl $0xa, 0x38(%r8)
movl $0x5, 0x4(%r8)
movl %edx, 0x3c(%r8)
movq %rsi, 0x10(%r8)
incq %rdi
jmp 0x14a7f
leaq 0x1c9dc(%rip), %rax     # 0x31488
cmpb $0x0, (%rax)
je 0x14abd
leaq 0x1c9d1(%rip), %rax     # 0x31489
cmpb $0x0, (%rax)
je 0x14abf
popq %rbx
retq
movq 0x1c50a(%rip), %rdi     # 0x30fd0
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x27, 0x10(%rdi,%rax)
pushq $0x20
popq %rsi
callq 0x4440
leaq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x42b0
leaq 0x115fd(%rip), %rsi     # 0x260ee
movq %rax, %rdi
callq 0x4300
movq 0x1d8(%rbx), %rcx
movq (%rcx), %rcx
movq 0x10(%rcx), %rsi
movq %rax, %rdi
callq 0x4210
movq %rax, %rdi
popq %rbx
jmp 0x4180
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DRAM.cpp
// Function: CasHMC::DRAM::Update()
void DRAM::Update()
{
	//update bank states
	for(int b=0; b<NUM_BANKS; b++) {
		if(bankStates[b]->stateChangeCountdown>0) {
			//decrement counters
			bankStates[b]->stateChangeCountdown--;

			//if counter has reached 0, change state
			if(bankStates[b]->stateChangeCountdown == 0) {
				switch(bankStates[b]->lastCommand) {
					//only these commands have an implicit state change
					case WRITE_P:
					case READ_P:
						bankStates[b]->currentBankState = PRECHARGING;
						bankStates[b]->lastCommand = PRECHARGE;
						bankStates[b]->stateChangeCountdown = tRP;
						break;
					case REFRESH:
					case PRECHARGE:
					case POWERDOWN_EXIT:
						bankStates[b]->currentBankState = IDLE;
						break;
					default:
						break;
				}
			}
		}
	}
	
	UpdateState();
	Step();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1ca5d(%rip), %rax     # 0x31580
movslq (%rax), %rax
movq 0x1d8(%rdi), %rcx
leaq 0x1ca90(%rip), %rdx     # 0x315c4
movl (%rdx), %edx
xorl %esi, %esi
movl $0x580, %edi            # imm = 0x580
pushq $0x14
popq %r8
cmpq %rax, %rsi
jge 0x14b92
movq (%rcx,%rsi,8), %r9
movl 0x3c(%r9), %r10d
testl %r10d, %r10d
je 0x14b8d
decl %r10d
movl %r10d, 0x3c(%r9)
jne 0x14b8d
movl 0x38(%r9), %r10d
cmpl $0xa, %r10d
ja 0x14b8d
btl %r10d, %edi
jae 0x14b73
andl $0x0, 0x4(%r9)
jmp 0x14b8d
btl %r10d, %r8d
jae 0x14b8d
movl $0x2, 0x4(%r9)
movl $0x7, 0x38(%r9)
movl %edx, 0x3c(%r9)
incq %rsi
jmp 0x14b41
movq %rbx, %rdi
callq 0x14ba0
incq 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/estwings57[P]CasHMC/sources/DRAM.cpp
// Function: CasHMC::DRAM::UpdateState()
void DRAM::UpdateState()
{
	if(readData != NULL) {
		dataCyclesLeft--;
		if(dataCyclesLeft == 0) {
			vaultContP->ReturnCommand(readData);
			readData = NULL;
		}
	}

	//Send back return command to vault controller
	if(readReturnCountdown.size() > 0 && readReturnCountdown[0] == 0) {
		readData = readReturnDATA[0];
		dataCyclesLeft = BL;
		readReturnDATA.erase(readReturnDATA.begin());
		readReturnCountdown.erase(readReturnCountdown.begin());
	}
	
	for(int i=0; i<readReturnCountdown.size(); i++) {
		readReturnCountdown[i]--;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x208(%rdi), %rsi
testq %rsi, %rsi
je 0x14bcf
decl 0x210(%rbx)
jne 0x14bcf
movq 0x1d0(%rbx), %rdi
callq 0x21a18
andq $0x0, 0x208(%rbx)
movq 0x230(%rbx), %rax
movq 0x238(%rbx), %rcx
cmpq %rax, %rcx
je 0x14c3a
cmpl $0x0, (%rax)
jne 0x14c3a
leaq 0x230(%rbx), %r14
leaq 0x218(%rbx), %rdi
movq 0x218(%rbx), %rsi
movq (%rsi), %rax
movq %rax, 0x208(%rbx)
leaq 0x1c97f(%rip), %rax     # 0x3158c
movl (%rax), %eax
shrl $0x5, %eax
movl %eax, 0x210(%rbx)
callq 0x111e2
movq 0x230(%rbx), %rsi
movq %r14, %rdi
callq 0x111a8
movq 0x230(%rbx), %rax
movq 0x238(%rbx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
jbe 0x14c50
decl (%rax,%rdx,4)
incq %rdx
jmp 0x14c43
addq $0x8, %rsp
popq %rbx
popq %r14
retq