LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/amit-mittal[P]FTP/ftpClient.cpp
// Function: ftpClient::calculateSize(long)
char * ftpClient::calculateSize(long size)
{   
    char *result = (char *) malloc(sizeof(char) * 20);
    unsigned long  multiplier = exbibytes;
    int i;

    for (i = 0; i < DIM(sizes); i++, multiplier /= 1024)
    {   
        if (size < multiplier)
            continue;
        if (size % multiplier == 0)
            sprintf(result, "%lu %s", (unsigned long) size / multiplier, sizes[i]);
        else
            sprintf(result, "%.5f %s", (float) size / multiplier, sizes[i]);
        return result;
    }
    strcpy(result, "0");
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl $0x14, %edi
callq 0x3310
movq %rax, %rbx
movl $0x40000000, %esi       # imm = 0x40000000
xorl %ecx, %ecx
cmpq %r14, %rsi
jbe 0x41bf
shrq $0xa, %rsi
addq $0x8, %rcx
cmpl $0x20, %ecx
jne 0x41a6
movw $0x30, (%rbx)
jmp 0x421f
leaq -0x1(%rsi), %rax
testq %r14, %rax
je 0x41f8
cvtsi2ss %r14, %xmm0
cvtsi2ss %rsi, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x5b9f(%rip), %rax      # 0x9d80
movq (%rcx,%rax), %rdx
leaq 0x3323(%rip), %rsi      # 0x750f
movq %rbx, %rdi
movb $0x1, %al
callq 0x3080
jmp 0x421f
movq %r14, %rax
xorl %edx, %edx
divq %rsi
leaq 0x5b79(%rip), %rdx      # 0x9d80
movq (%rcx,%rdx), %rcx
leaq 0x32f6(%rip), %rsi      # 0x7508
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3080
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/amit-mittal[P]FTP/ftpClient.cpp
// Function: ftpClient::receiveFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int ftpClient::receiveFile(string filename){

	char data[MAXBUFFSIZE];
	string msgControl;
	size_t bytes_recv;
	long filesize = 0;
	FILE* fp = fopen(filename.c_str(), "w");

	if (fp == NULL) {
		fputs("File not found\n", stderr); 
		return 6;	
	}
    
	while ((bytes_recv = recvData(data)) > 0) {
        	fwrite(data, 1, bytes_recv, fp);
		msgControl = recvControl(4);
		filesize += bytes_recv;	
		if(msgControl == "EOF")
			break;
	}

	if (bytes_recv < 0) {
        	perror("recv");
	}

	fclose(fp);
	cout << "\nSize of file received : " << calculateSize(filesize);

	return 0;	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq %rdi, %r14
leaq -0x40(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq (%rsi), %rdi
leaq 0x2e5f(%rip), %rsi      # 0x70bc
callq 0x32c0
movq %rax, -0x30(%rbp)
testq %rax, %rax
je 0x4387
xorl %ebx, %ebx
leaq -0x70(%rbp), %r13
leaq -0x50(%rbp), %r15
movl 0xf0(%r14), %edi
movl $0x3ff, %edx            # imm = 0x3FF
leaq -0x470(%rbp), %rsi
xorl %ecx, %ecx
callq 0x30f0
testl %eax, %eax
je 0x42f7
movslq %eax, %r12
movl $0x1, %esi
leaq -0x470(%rbp), %rdi
movq %r12, %rdx
movq -0x30(%rbp), %rcx
callq 0x34a0
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl $0x4, %ecx
callq 0x3d24
movq %r15, %rdi
movq %r13, %rsi
callq 0x32f0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x42e1
callq 0x3210
addq %r12, %rbx
movq %r15, %rdi
leaq 0x2da9(%rip), %rsi      # 0x7097
callq 0x30b0
testl %eax, %eax
jne 0x4279
movq -0x30(%rbp), %rdi
callq 0x3240
movq 0x5cc9(%rip), %r14      # 0x9fd0
leaq 0x2db0(%rip), %rsi      # 0x70be
movl $0x19, %edx
movq %r14, %rdi
leaq -0x40(%rbp), %r15
callq 0x32b0
movq %rbx, %rsi
callq 0x4188
testq %rax, %rax
je 0x434b
movq %rax, %rbx
movq %rax, %rdi
callq 0x3120
movq 0x5c92(%rip), %rdi      # 0x9fd0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x32b0
jmp 0x4363
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x3410
xorl %ebx, %ebx
movq -0x50(%rbp), %rdi
cmpq %r15, %rdi
je 0x4373
callq 0x3210
movl %ebx, %eax
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x35c4
movl $0x6, %ebx
jmp 0x4365
jmp 0x4397
jmp 0x4397
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x43ac
callq 0x3210
movq %rbx, %rdi
callq 0x3450
// File: /workspace/github_cpp_makefile_star2_O1/amit-mittal[P]FTP/ftpClient.cpp
// Function: ftpClient::getInput[abi:cxx11]()
string ftpClient::getInput(){//takes the input
	char input[MAX_CMD_LEN];
	string cmd;

	fgets(input, MAX_CMD_LEN-1, stdin);
	input[strlen(input)-1] = '\0';
	stringstream s;
	s << input;
	cmd = s.str();
	if(DEBUG)
		cout << "Command entered: " << cmd << endl;
	cmd = reduce(cmd);

	return cmd;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x5f8, %rsp            # imm = 0x5F8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r13
movq %r13, (%rdi)
movq $0x0, 0x8(%rdi)
xorl %r12d, %r12d
movb %r12b, 0x10(%rdi)
movq 0x5899(%rip), %rax      # 0x9fc8
movq (%rax), %rdx
leaq -0x620(%rbp), %r15
movq %r15, %rdi
movl $0x3ff, %esi            # imm = 0x3FF
callq 0x33c0
movq %r15, %rdi
callq 0x3120
movb %r12b, -0x1(%rax,%r15)
leaq -0x218(%rbp), %rdi
movq %r13, -0x30(%rbp)
callq 0x3180
leaq -0x208(%rbp), %r15
leaq -0x620(%rbp), %r12
movq %r12, %rdi
callq 0x3120
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x32b0
leaq -0x200(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq 0x33d0
leaq -0x90(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32f0
movq (%r15), %rdi
leaq -0x80(%rbp), %r12
cmpq %r12, %rdi
je 0x47bd
callq 0x3210
leaq -0x60(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2a4c(%rip), %rsi      # 0x7218
leaq 0x2a46(%rip), %rdx      # 0x7219
leaq -0x70(%rbp), %rdi
callq 0x62b6
leaq -0x40(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x2943(%rip), %rsi      # 0x712e
leaq 0x293e(%rip), %rdx      # 0x7130
leaq -0x50(%rbp), %rdi
callq 0x62b6
leaq -0x90(%rbp), %rdi
leaq -0x70(%rbp), %rcx
leaq -0x50(%rbp), %r8
movq %r14, %rsi
movq %rbx, %rdx
callq 0x48ec
leaq -0x90(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x32f0
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x4834
callq 0x3210
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x4842
callq 0x3210
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x4850
callq 0x3210
movq 0x5759(%rip), %rsi      # 0x9fb0
leaq -0x218(%rbp), %rdi
callq 0x31b0
leaq -0x198(%rbp), %rdi
callq 0x3100
movq %rbx, %rax
addq $0x5f8, %rsp            # imm = 0x5F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x489a
callq 0x3210
jmp 0x489a
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x48b1
callq 0x3210
jmp 0x48b1
jmp 0x48ae
jmp 0x48ae
movq %rax, %r14
movq 0x56f8(%rip), %rsi      # 0x9fb0
leaq -0x218(%rbp), %rdi
callq 0x31b0
leaq -0x198(%rbp), %rdi
callq 0x3100
movq (%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x48de
callq 0x3210
movq %r14, %rdi
callq 0x3450
movq %rax, %r14
jmp 0x48d0
nop
// File: /workspace/github_cpp_makefile_star2_O1/amit-mittal[P]FTP/ftpClient.cpp
// Function: ftpClient::reduce(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string ftpClient::reduce(const string& str,
                   const string& fill,
                   const string& whitespace) {
    // trim first
    auto result = trim(str, whitespace);

    // replace sub ranges
    auto beginSpace = result.find_first_of(whitespace);
    while (beginSpace != string::npos) {

        const auto endSpace = result.find_first_not_of(whitespace, beginSpace);
        const auto range = endSpace - beginSpace;

        result.replace(beginSpace, range, fill);

        const auto newStart = beginSpace + fill.length();
        beginSpace = result.find_first_of(whitespace, newStart);
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdi, %rbx
movq %r8, %rcx
callq 0x4994
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3370
cmpq $-0x1, %rax
je 0x496b
movq %rax, %r12
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x3400
subq %r12, %rax
movq (%r15), %rcx
movq 0x8(%r15), %r8
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x32a0
addq 0x8(%r15), %r12
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x3370
movq %rax, %r12
cmpq $-0x1, %rax
jne 0x4922
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0x498b
callq 0x3210
movq %r14, %rdi
callq 0x3450
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rcx, %r12
movq %rdx, %r14
movq %rdi, %rbx
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
movq %rdx, %rdi
xorl %edx, %edx
callq 0x3400
cmpq $-0x1, %rax
je 0x49f1
movq %rax, %r15
movq (%r12), %rsi
movq 0x8(%r12), %rcx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x33e0
subq %r15, %rax
leaq 0x1(%rax), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3250
jmp 0x4a0a
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2731(%rip), %rdx      # 0x7130
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x62b6
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3f71(%rip), %rbx      # 0x9fd0
leaq 0x14b1(%rip), %rsi      # 0x7517
movq %rbx, %rdi
callq 0x3230
leaq 0x14ec(%rip), %rsi      # 0x7561
movq %rbx, %rdi
callq 0x3230
leaq 0x150f(%rip), %rsi      # 0x7593
movq %rbx, %rdi
callq 0x3230
leaq 0x1524(%rip), %rsi      # 0x75b7
movq %rbx, %rdi
callq 0x3230
leaq 0x1554(%rip), %rsi      # 0x75f6
movq %rbx, %rdi
callq 0x3230
movl $0x1, %edi
callq 0x32d0
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
cmpl $0x3, %edi
jne 0x6194
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq -0x68(%rbp), %r14
leaq -0x248(%rbp), %rdx
movq %r14, %rdi
callq 0x3110
leaq -0x230(%rbp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
movl $0x80, %ecx
movl %ecx, 0xd0(%r15)
leaq -0x140(%rbp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movl %ecx, 0xd0(%r12)
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x621c
movq 0x10(%rbx), %rdi
callq 0x33b0
leaq -0x248(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movl %eax, %edx
callq 0x43b4
movl %eax, %ebx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x616e
callq 0x3210
testl %ebx, %ebx
jne 0x6199
leaq 0x14e0(%rip), %rbx      # 0x7659
leaq -0x248(%rbp), %r14
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3050
movq %r14, %rdi
callq 0x4a16
jmp 0x6180
callq 0x6052
movq 0x3e30(%rip), %rdi      # 0x9fd0
leaq 0x1491(%rip), %rsi      # 0x7638
movl $0x20, %edx
callq 0x32b0
movq 0x3e18(%rip), %rdi      # 0x9fd0
callq 0x3130
movl $0x1, %edi
callq 0x32d0
jmp 0x61dc
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x61df
callq 0x3210
jmp 0x61df
movq %rax, %rbx
movq -0x150(%rbp), %rdi
cmpq %r12, %rdi
je 0x61f0
callq 0x3210
movq -0x240(%rbp), %rdi
cmpq %r15, %rdi
je 0x6201
callq 0x3210
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6213
callq 0x3210
movq %rbx, %rdi
callq 0x3450
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ddf(%rip), %rbx      # 0x3fd0
leaq 0xe0c(%rip), %r14       # 0x2004
movq 0x2de1(%rip), %r15      # 0x3fe0
leaq -0x2c(%rbp), %r12
leaq 0xe3d(%rip), %r13       # 0x2047
movl $0x1e, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1070
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movq %r15, %rdi
movq %r12, %rsi
callq 0x1090
movl -0x2c(%rbp), %eax
cmpl $0x7, %eax
je 0x12f9
jae 0x126b
movl $0x7, %edx
movq %rbx, %rdi
leaq 0xdd6(%rip), %rsi       # 0x203f
jmp 0x1276
movl $0x8, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1070
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movl -0x2c(%rbp), %eax
cmpl $0x7, %eax
je 0x12f9
jae 0x12bd
movl $0x7, %edx
movq %rbx, %rdi
leaq 0xd84(%rip), %rsi       # 0x203f
jmp 0x12c8
movl $0x8, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1070
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
jmp 0x120a
leaq 0xd23(%rip), %rsi       # 0x2023
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x1070
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
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_O1/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x13989
movl (%rbx), %eax
cmpq $0x3, %rax
ja 0x13981
leaq 0x4860(%rip), %rcx      # 0x18188
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
callq 0x135ae
movl $0x30, %r15d
jmp 0x13976
movq (%r14), %rdi
leaq 0x10(%r14), %rax
movl $0x20, %r15d
cmpq %rax, %rdi
je 0x13976
movq (%rax), %rsi
incq %rsi
callq 0x4270
jmp 0x13976
movl $0x10, %r15d
jmp 0x13976
movq %r14, %rdi
callq 0x7cbe
movl $0x18, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x4270
movq $0x0, 0x8(%rbx)
movl $0x6, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x13908
movl (%r14), %eax
cmpq $0xb, %rax
ja 0x139c3
leaq 0x47e0(%rip), %rcx      # 0x18198
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 0x13bc6
movq %rbx, %rdi
callq 0x13b58
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x4150
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x139c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
jmp 0x139c3
movq 0x8(%r14), %rax
fldt (%rax)
fstpt 0x3c(%rsp)
movq %rbx, %rdi
callq 0x13b96
fldt 0x3c(%rsp)
fstpt (%rax)
jmp 0x139c3
movq 0x8(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x13e00
movq %rbx, %rdi
callq 0x13ad0
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x14068
leaq 0x8(%rsp), %rdi
callq 0x135ae
jmp 0x139c3
movq 0x8(%r14), %rsi
leaq 0x8(%rsp), %rdi
callq 0x14332
movq %rbx, %rdi
callq 0x13b1e
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x13cc2
leaq 0x8(%rsp), %rdi
callq 0x7cbe
jmp 0x139c3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7cbe
jmp 0x13ac7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x135ae
jmp 0x13ac7
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13ac7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4270
movq %rbx, %rdi
callq 0x4440
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x13b17
movq %rbx, %rdi
callq 0x13908
movl $0x0, (%rbx)
movl $0x30, %edi
callq 0x4260
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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)
je 0x13b51
movq %rbx, %rdi
callq 0x13908
movl $0x1, (%rbx)
movl $0x18, %edi
callq 0x4260
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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)
je 0x13b90
movq %rbx, %rdi
callq 0x13908
movl $0x2, (%rbx)
movl $0x20, %edi
callq 0x4260
leaq 0x10(%rax), %rcx
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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)
je 0x13bbf
movq %rbx, %rdi
callq 0x13908
movl $0x3, (%rbx)
movl $0x10, %edi
callq 0x4260
fldz
fstpt (%rax)
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
cmpb $0x1, 0x88(%rdi)
je 0x2fed
movq 0x70(%rdi), %rax
cmpq %rax, 0x78(%rdi)
je 0x3091
movq (%rax), %rdi
jmp 0x2fd1
testq %rdi, %rdi
je 0x3082
movq 0x6fdb(%rip), %r12      # 0x9fd8
movabsq $-0x3333333333333333, %rbx # imm = 0xCCCCCCCCCCCCCCCD
movq 0x40(%rdi), %rax
cmpq %rax, 0x48(%rdi)
je 0x3079
movl $0x20, %r13d
xorl %r14d, %r14d
movq %rdi, -0x30(%rbp)
movsd (%rax,%r13), %xmm0
movq %r12, %rdi
callq 0x2280
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2190
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2100
movq -0x30(%rbp), %rdi
incq %r14
movq 0x40(%rdi), %rax
movq 0x48(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %rbx, %rcx
addq $0x28, %r13
cmpq %r14, %rcx
ja 0x301e
movq 0x30(%rdi), %rdi
testq %rdi, %rdi
jne 0x3007
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3fdd(%rip), %rdi      # 0x7075
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/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
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x40(%rdi), %r14
movl $0x0, 0x20(%rdi)
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 0x2d4d(%rip), %rcx      # 0x7040
movl $0x5, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2270
movb %r15b, 0x88(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0x4323
callq 0x2180
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x4331
callq 0x2180
movq %r14, %rdi
callq 0x43b2
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x4346
callq 0x2180
movq %r15, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x641e
movq %rdi, %r14
leaq 0x2ac99(%rip), %rcx     # 0x31094
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
movl $0x4, %edx
callq 0x4340
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %rbx
movq 0x35bc8(%rip), %r14     # 0x3bff0
leaq 0x2abf3(%rip), %r15     # 0x31022
movq %r14, %rdi
movq %r15, %rsi
callq 0x42e0
leaq 0x2abea(%rip), %r12     # 0x3102b
movq %rax, %rdi
movq %r12, %rsi
callq 0x42e0
leaq 0x2b3e4(%rip), %r13     # 0x31837
movq %rax, %rdi
movq %r13, %rsi
callq 0x42e0
movq %rax, %rdi
movl $0x3d, %esi
callq 0x4500
leaq 0x2abcf(%rip), %rbp     # 0x31041
movq %rax, %rdi
movq %rbp, %rsi
callq 0x42e0
leaq 0x2abc2(%rip), %rsi     # 0x31046
movq %rax, %rdi
callq 0x42e0
movq %rax, %rdi
callq 0x4170
movq %r14, %rdi
movq %r15, %rsi
callq 0x42e0
movq %rax, %rdi
movq %r12, %rsi
callq 0x42e0
movq %rax, %rdi
movq %r13, %rsi
callq 0x42e0
movq %rax, %rdi
movl $0x3e, %esi
callq 0x4500
movq %rax, %rdi
movq %rbp, %rsi
callq 0x42e0
leaq 0x2abae(%rip), %rsi     # 0x31082
movq %rax, %rdi
callq 0x42e0
movl 0x4(%rbx), %esi
movq %rax, %rdi
callq 0x4500
movq %rax, %rdi
callq 0x4170
xorl %edi, %edi
callq 0x4360
nop
// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movl $0x30, %edi
callq 0x42f0
movq %rax, %r14
movq %rax, %rdi
movl %r12d, %esi
movq %r15, %rdx
movl %ebp, %ecx
movq %rbx, %r8
callq 0x2bffc
movq 0x330(%rbx), %rdi
movq %r14, %rsi
callq 0x1394c
movl %eax, %ebx
testb %al, %al
je 0x1156e
leaq 0x2b021(%rip), %rax     # 0x3c488
cmpb $0x1, (%rax)
jne 0x1159d
movq 0x2ab59(%rip), %r15     # 0x3bfd0
movq (%r15), %rax
movq -0x18(%rax), %rcx
movq $0x12, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
leaq (%r15,%rax), %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x114b8
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
leaq 0x203d0(%rip), %rsi     # 0x31898
movl $0x6, %edx
movq %r15, %rdi
callq 0x4340
movq (%r15), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
leaq (%r15,%rax), %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x11516
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq 0x2aaaa(%rip), %rdi     # 0x3bfd0
movq %r14, %rsi
callq 0x2c070
movq %rax, %r14
leaq 0x20367(%rip), %rsi     # 0x3189f
movl $0x30, %edx
movq %rax, %rdi
callq 0x4340
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
jmp 0x1159d
movq %r14, %rdi
callq 0x2c066
movq 0x8(%r14), %r15
testq %r15, %r15
je 0x11594
movq %r15, %rdi
callq 0x139fc
movl $0x20, %esi
movq %r15, %rdi
callq 0x4300
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x30, %esi
movq %r14, %rdi
callq 0x4300
movq %rbx, %rdi
callq 0x4540
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0x330(%rdi), %rdi
callq 0x1394c
movl %eax, %ebx
testb %al, %al
je 0x116ed
leaq 0x2aea0(%rip), %rax     # 0x3c488
cmpb $0x1, (%rax)
jne 0x116ed
movq 0x2a9d8(%rip), %r15     # 0x3bfd0
movq (%r15), %rax
movq -0x18(%rax), %rcx
movq $0x12, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
leaq (%r15,%rax), %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x11639
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
leaq 0x2024f(%rip), %rsi     # 0x31898
movl $0x6, %edx
movq %r15, %rdi
callq 0x4340
movq (%r15), %rax
movq -0x18(%rax), %rcx
movq $0xf, 0x10(%r15,%rcx)
movq -0x18(%rax), %rax
leaq (%r15,%rax), %r12
cmpb $0x0, 0xe1(%r15,%rax)
jne 0x11697
movq %r12, %rdi
movl $0x20, %esi
callq 0x42d0
movb %al, 0xe0(%r12)
movb $0x1, 0xe1(%r12)
movb $0x20, 0xe0(%r12)
movq 0x2a929(%rip), %rdi     # 0x3bfd0
movq %r14, %rsi
callq 0x2c070
movq %rax, %r14
leaq 0x201e6(%rip), %rsi     # 0x3189f
movl $0x30, %edx
movq %rax, %rdi
callq 0x4340
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41f0
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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), %rcx
movq 0x1d8(%rdi), %rax
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movl 0x430(%rsi), %r12d
addq %rdx, %r12
movslq 0x1c8(%rdi), %r13
cmpq %r13, %r12
ja 0x1a92d
cmpq %rcx, %rax
jne 0x1a910
movl 0x200(%rbx), %ecx
cmpl $0x2, %ecx
movl $0x1, %edx
cmovgel %ecx, %edx
movl %edx, 0x200(%rbx)
leaq 0x1d0(%rbx), %r14
cmpq 0x1e0(%rbx), %rax
je 0x1a937
movq %rsi, (%rax)
addq $0x8, 0x1d8(%rbx)
jmp 0x1a947
movq (%rbx), %rax
movq %rbx, %rdi
xorl %edx, %edx
jmp 0x1a98d
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1ac5a
movq 0x8(%rsp), %rsi
cmpl $0x2, 0x430(%rsi)
jb 0x1a982
movl $0x1, %ebp
leaq 0x10(%rsp), %r15
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1aee0
incl %ebp
movq 0x8(%rsp), %rsi
cmpl 0x430(%rsi), %ebp
jb 0x1a95f
movq (%rbx), %rax
movq %rbx, %rdi
movl $0x1, %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_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0xc(%rdi), %esi
testl %esi, %esi
je 0x13a28
movl 0x14(%rbx), %edx
testl %edx, %edx
je 0x13a28
movl 0x1c(%rbx), %ecx
testl %ecx, %ecx
je 0x13a28
movq (%rbx), %rdi
callq 0x14180
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x285c1(%rip), %rdi     # 0x3bff0
leaq 0x1d5ec(%rip), %rsi     # 0x31022
movl $0x8, %edx
callq 0x4340
movq 0x285a9(%rip), %rdi     # 0x3bff0
leaq 0x1ee1a(%rip), %rsi     # 0x32868
movl $0x13, %edx
callq 0x4340
movq 0x28591(%rip), %rdi     # 0x3bff0
leaq 0x1ddd1(%rip), %rsi     # 0x31837
movl $0x1, %edx
callq 0x4340
movq 0x28579(%rip), %rdi     # 0x3bff0
movl $0x28, %esi
callq 0x4500
movq %rax, %r14
leaq 0x1d5b6(%rip), %rsi     # 0x31041
movl $0x4, %edx
movq %rax, %rdi
callq 0x4340
leaq 0x1eddd(%rip), %rsi     # 0x3287c
movl $0x38, %edx
movq %r14, %rdi
callq 0x4340
movl 0xc(%rbx), %esi
movq %r14, %rdi
callq 0x41e0
movq %rax, %r14
leaq 0x1e5b2(%rip), %rsi     # 0x32073
movl $0x10, %edx
movq %rax, %rdi
callq 0x4340
movl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x41e0
movq %rax, %r14
leaq 0x1e5a1(%rip), %rsi     # 0x32084
movl $0x11, %edx
movq %rax, %rdi
callq 0x4340
movl 0x1c(%rbx), %esi
movq %r14, %rdi
callq 0x41e0
movq %rax, %rbx
leaq 0x2095c(%rip), %rsi     # 0x34461
movl $0x1, %edx
movq %rax, %rdi
callq 0x4340
movq %rbx, %rdi
callq 0x4170
xorl %edi, %edi
callq 0x4360
movq %rax, %rdi
callq 0x13940
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbx
subq $0x10, %rsp
movl %esi, %eax
movq %rdi, %rbx
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x10(%rdi), %rsi
cmpq 0x18(%rdi), %rsi
je 0x141ac
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x141ba
leaq 0x8(%rbx), %rdi
leaq 0xc(%rsp), %rdx
callq 0x14232
movq 0x28(%rbx), %rsi
cmpq 0x30(%rbx), %rsi
je 0x141d4
movl 0x8(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rbx)
jmp 0x141e2
leaq 0x20(%rbx), %rdi
leaq 0x8(%rsp), %rdx
callq 0x14232
movq 0x40(%rbx), %rsi
cmpq 0x48(%rbx), %rsi
je 0x141fc
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x40(%rbx)
jmp 0x1420a
leaq 0x38(%rbx), %rdi
leaq 0x4(%rsp), %rdx
callq 0x14232
movl 0xc(%rsp), %eax
addq %rax, 0x190(%rbx)
movl 0x8(%rsp), %eax
addq %rax, 0x198(%rbx)
movl 0x4(%rsp), %eax
addq %rax, 0x1a0(%rbx)
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x26c98(%rip), %rax     # 0x3b968
movq %rax, (%rdi)
leaq 0x278a6(%rip), %rax     # 0x3c580
movslq (%rax), %rax
testq %rax, %rax
jle 0x14d29
leaq 0x278a7(%rip), %rcx     # 0x3c590
movb (%rcx), %cl
decq %rax
xorl %edx, %edx
movq 0x238(%rbx), %rsi
testb %cl, %cl
movl $0x0, %edi
cmovneq %rdx, %rdi
leaq (%rdi,%rdi,2), %r8
movq (%rsi,%r8,8), %rdi
cmpq %rdi, 0x8(%rsi,%r8,8)
je 0x14d19
leaq (%rsi,%r8,8), %rsi
movq %rdi, 0x8(%rsi)
testb %cl, %cl
je 0x14d29
leaq 0x1(%rdx), %rsi
cmpq %rdx, %rax
movq %rsi, %rdx
jne 0x14cf0
movq 0x1e0(%rbx), %rcx
movq 0x208(%rbx), %rax
movq %rcx, 0x1f0(%rbx)
movl $0x0, 0x1f8(%rbx)
cmpq %rax, 0x210(%rbx)
je 0x14d58
movq %rax, 0x210(%rbx)
movq 0x220(%rbx), %rax
cmpq %rax, 0x228(%rbx)
je 0x14d6f
movq %rax, 0x228(%rbx)
leaq 0x238(%rbx), %r14
movq 0x238(%rbx), %rsi
movq %r14, %rdi
callq 0x1800c
movq 0x250(%rbx), %rax
cmpq %rax, 0x258(%rbx)
je 0x14d9c
movq %rax, 0x258(%rbx)
movq 0x268(%rbx), %rdi
cmpq %rdi, 0x270(%rbx)
je 0x14db3
movq %rdi, 0x270(%rbx)
testq %rdi, %rdi
je 0x14dc7
movq 0x278(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x250(%rbx), %rdi
testq %rdi, %rdi
je 0x14de2
movq 0x260(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq %r14, %rdi
callq 0x17c6c
movq 0x220(%rbx), %rdi
testq %rdi, %rdi
je 0x14e05
movq 0x230(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x1e0(%rbx), %r14
movq 0x208(%rbx), %rdi
testq %rdi, %rdi
je 0x14e27
movq 0x218(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq %r14, %rdi
callq 0x17d96
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x17d50
movq %rax, %rdi
callq 0x13940
// File: /workspace/github_cpp_makefile_star2_O1/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:
movl %esi, %eax
movl %esi, %ecx
shrl $0x6, %ecx
movq 0x1e0(%rdi), %r8
movq 0x238(%rdi), %rdi
movq (%r8,%rcx,8), %rcx
btq %rsi, %rcx
adcl $0x0, %edx
leaq 0x2770b(%rip), %rcx     # 0x3c590
xorl %esi, %esi
cmpb $0x0, (%rcx)
cmovneq %rax, %rsi
leaq (%rsi,%rsi,2), %rax
movq 0x8(%rdi,%rax,8), %rcx
subq (%rdi,%rax,8), %rcx
sarq $0x3, %rcx
addq %rcx, %rdx
leaq 0x2761f(%rip), %rax     # 0x3c4c8
movslq (%rax), %rax
cmpq %rax, %rdx
setbe %al
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2527f(%rip), %rax     # 0x3c580
movslq (%rax), %rcx
testq %rcx, %rcx
setle %al
jle 0x1731c
movq 0x238(%rdi), %rdx
movq (%rdx), %rsi
cmpq 0x8(%rdx), %rsi
je 0x1731d
retq
leaq 0x2526c(%rip), %rax     # 0x3c590
movb (%rax), %al
movl $0x1, %edi
movq %rdi, %rsi
cmpq %rdi, %rcx
je 0x17351
testb %al, %al
movl $0x0, %edi
cmovneq %rsi, %rdi
leaq (%rdi,%rdi,2), %r8
movq (%rdx,%r8,8), %r9
leaq 0x1(%rsi), %rdi
cmpq 0x8(%rdx,%r8,8), %r9
je 0x1732b
cmpq %rcx, %rsi
setae %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x25221(%rip), %rax     # 0x3c580
cmpl $0x0, (%rax)
jle 0x173ca
leaq 0x25225(%rip), %rcx     # 0x3c590
movb (%rcx), %cl
xorl %edx, %edx
testb %cl, %cl
movl $0x0, %esi
cmovneq %rdx, %rsi
movq 0x220(%rdi), %r8
cmpl $0x0, (%r8,%rsi,4)
movl $0x0, %esi
jle 0x173a6
movq 0x220(%rdi), %rsi
testb %cl, %cl
movl $0x0, %r8d
cmovneq %rdx, %r8
movl (%rsi,%r8,4), %esi
decl %esi
movq 0x220(%rdi), %r8
movl $0x0, %r9d
testb %cl, %cl
cmovneq %rdx, %r9
movl %esi, (%r8,%r9,4)
je 0x173ca
incq %rdx
movslq (%rax), %rsi
cmpq %rsi, %rdx
jl 0x1736f
incq 0x8(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x23591(%rip), %rax     # 0x3c4c4
movl (%rax), %ecx
movl %ecx, %r8d
callq 0x1a67c
leaq 0x22a9c(%rip), %rax     # 0x3b9e0
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)
movq 0x28(%rbx), %rdx
leaq 0x19e27(%rip), %rcx     # 0x32db8
movl $0xc, %r8d
xorl %esi, %esi
callq 0x4440
movl $0xffffffff, 0x238(%rbx) # imm = 0xFFFFFFFF
leaq 0x235cd(%rip), %rax     # 0x3c57c
movslq (%rax), %rsi
leaq 0x10(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x1a732
leaq 0x18(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x1abbe
movq (%r12), %rdi
testq %rdi, %rdi
je 0x18ff3
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x234ae(%rip), %rax     # 0x3c4a8
movslq (%rax), %rsi
leaq 0x10(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x18(%rsp), %rdi
leaq 0xf(%rsp), %rcx
callq 0x1a7b0
leaq 0x18(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1ac1a
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x1903d
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1904f
jmp 0x1904f
movq %rax, %r12
leaq 0x240(%rbx), %r13
movq 0x258(%rbx), %rdi
testq %rdi, %rdi
je 0x19074
movq 0x268(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%r13), %rdi
testq %rdi, %rdi
je 0x1908c
movq 0x250(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%r15), %rdi
testq %rdi, %rdi
je 0x190a3
movq 0x230(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%r14), %rdi
testq %rdi, %rdi
je 0x190ba
movq 0x218(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x1ab12
movq %r12, %rdi
callq 0x4540
// File: /workspace/github_cpp_makefile_star2_O1/estwings57[P]CasHMC/sources/CrossbarSwitch.cpp
// Function: CasHMC::CrossbarSwitch::~CrossbarSwitch()
CrossbarSwitch::~CrossbarSwitch()
{	
	downBufferDest.clear();
	upBufferDest.clear();
	pendingSegTag.clear(); 
	pendingSegPacket.clear(); 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x2290b(%rip), %rax     # 0x3b9e0
movq %rax, (%rdi)
movq 0x208(%rdi), %rax
cmpq %rax, 0x210(%rdi)
je 0x190ef
movq %rax, 0x210(%rbx)
movq 0x220(%rbx), %rax
cmpq %rax, 0x228(%rbx)
je 0x19106
movq %rax, 0x228(%rbx)
movq 0x240(%rbx), %rax
cmpq %rax, 0x248(%rbx)
je 0x1911d
movq %rax, 0x248(%rbx)
movq 0x258(%rbx), %rdi
cmpq %rdi, 0x260(%rbx)
je 0x19134
movq %rdi, 0x260(%rbx)
testq %rdi, %rdi
je 0x19148
movq 0x268(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x240(%rbx), %rdi
testq %rdi, %rdi
je 0x19163
movq 0x250(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x220(%rbx), %rdi
testq %rdi, %rdi
je 0x1917e
movq 0x230(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x208(%rbx), %rdi
testq %rdi, %rdi
je 0x19199
movq 0x218(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
popq %rbx
jmp 0x1ab12
// File: /workspace/github_cpp_makefile_star2_O1/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
movq %rax, %rcx
subq 0x1d0(%rdi), %rcx
sarq $0x3, %rcx
movl 0x430(%rsi), %r12d
addq %rcx, %r12
movslq 0x1c8(%rdi), %r13
cmpq %r13, %r12
ja 0x1aa04
leaq 0x1d0(%rbx), %r14
cmpq 0x1e0(%rbx), %rax
je 0x1aa0e
movq %rsi, (%rax)
addq $0x8, 0x1d8(%rbx)
jmp 0x1aa1e
movq (%rbx), %rax
movq %rbx, %rdi
xorl %edx, %edx
jmp 0x1aa64
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x1ac5a
movq 0x8(%rsp), %rsi
cmpl $0x2, 0x430(%rsi)
jb 0x1aa59
movl $0x1, %ebp
leaq 0x10(%rsp), %r15
movq $0x0, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x1aee0
incl %ebp
movq 0x8(%rsp), %rsi
cmpl 0x430(%rsi), %ebp
jb 0x1aa36
movq (%rbx), %rax
movq %rbx, %rdi
movl $0x1, %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
// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x20841(%rip), %rax     # 0x3ba80
movq %rax, (%rdi)
movq 0x218(%rdi), %rax
movq 0x220(%rdi), %rcx
cmpq %rax, %rcx
je 0x1b287
xorl %r14d, %r14d
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x1b267
movq (%rdi), %rax
callq *0x8(%rax)
incq %r14
movq 0x218(%rbx), %rax
movq 0x220(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r14, %rdx
ja 0x1b258
cmpq %rax, %rcx
je 0x1b293
movq %rax, 0x220(%rbx)
movq 0x230(%rbx), %rax
cmpq %rax, 0x238(%rbx)
je 0x1b2aa
movq %rax, 0x238(%rbx)
leaq 0x212cf(%rip), %r14     # 0x3c580
cmpl $0x0, (%r14)
jle 0x1b2df
xorl %r15d, %r15d
movq 0x1d8(%rbx), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x1b2d4
movl $0x40, %esi
callq 0x4300
incq %r15
movslq (%r14), %rax
cmpq %rax, %r15
jl 0x1b2ba
movq 0x1d8(%rbx), %rax
cmpq %rax, 0x1e0(%rbx)
je 0x1b2f6
movq %rax, 0x1e0(%rbx)
movq 0x230(%rbx), %rdi
testq %rdi, %rdi
je 0x1b311
movq 0x240(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x218(%rbx), %rdi
testq %rdi, %rdi
je 0x1b32c
movq 0x228(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x1f0(%rbx), %rdi
testq %rdi, %rdi
je 0x1b347
movq 0x200(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x1d8(%rbx), %rdi
testq %rdi, %rdi
je 0x1b362
movq 0x1e8(%rbx), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x17d50
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2037f(%rip), %rax     # 0x3c580
movslq (%rax), %rcx
testq %rcx, %rcx
setle %al
jle 0x1c241
movq 0x1d8(%rdi), %rdx
movq (%rdx), %rsi
cmpl $0x0, 0x4(%rsi)
je 0x1c21d
retq
movl $0x1, %eax
cmpq %rax, %rcx
je 0x1c23e
movq (%rdx,%rax,8), %rsi
incq %rax
cmpl $0x0, 0x4(%rsi)
je 0x1c222
decq %rax
cmpq %rcx, %rax
setae %al
retq
setbe %al
testl %ecx, %ecx
jle 0x1c21c
movq 0x1d8(%rdi), %rdx
leaq 0x20391(%rip), %rsi     # 0x3c5e4
movl (%rsi), %esi
addq 0x8(%rdi), %rsi
xorl %edi, %edi
movq (%rdx,%rdi,8), %r8
movl $0x4, 0x4(%r8)
movq %rsi, 0x30(%r8)
incq %rdi
cmpq %rdi, %rcx
jne 0x1c25b
jmp 0x1c21c
nop