LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::promote()
void RankTreeNode::promote() {
	assert(_parent != nullptr);
	auto A = _parent;
	auto GP = _parent->_parent;
	if (leftChild()) {
		auto E = _right;
		_right = A;
		A->_parent = this;
		A->_left = E;
		if (E != nullptr) {
			E->_parent = A;
		}
	} else {
		assert(rightChild());
		auto E = _left;
		_left = A;
		A->_parent = this;
		A->_right = E;
		if (E != nullptr) {
			E->_parent = A;
		}
	}
	_parent = GP;
	if (GP != nullptr) {
		if (GP->_left == A) {
			GP->_left = this;
		} else {
			assert(GP->_right == A);
			GP->_right = this;
		}
	}
}

// Assembly:
pushq %rax
movq 0x48(%rdi), %rcx
testq %rcx, %rcx
je 0x2797
movq 0x48(%rcx), %rax
cmpq %rdi, 0x38(%rcx)
je 0x275a
cmpq %rdi, 0x40(%rcx)
jne 0x27b4
movq 0x38(%rdi), %rdx
movq %rcx, 0x38(%rdi)
movq %rdi, 0x48(%rcx)
movq %rdx, 0x40(%rcx)
jmp 0x276a
movq 0x40(%rdi), %rdx
movq %rcx, 0x40(%rdi)
movq %rdi, 0x48(%rcx)
movq %rdx, 0x38(%rcx)
testq %rdx, %rdx
je 0x2773
movq %rcx, 0x48(%rdx)
movq %rax, 0x48(%rdi)
testq %rax, %rax
je 0x2795
cmpq %rcx, 0x38(%rax)
je 0x278e
cmpq %rcx, 0x40(%rax)
jne 0x27d3
addq $0x40, %rax
jmp 0x2792
addq $0x38, %rax
movq %rdi, (%rax)
popq %rax
retq
leaq 0x19c8(%rip), %rdi      # 0x4166
leaq 0x18a8(%rip), %rsi      # 0x404d
leaq 0x19cd(%rip), %rcx      # 0x4179
pushq $0x79
popq %rdx
callq 0x2110
leaq 0x19db(%rip), %rdi      # 0x4196
leaq 0x188b(%rip), %rsi      # 0x404d
leaq 0x19b0(%rip), %rcx      # 0x4179
movl $0x85, %edx
callq 0x2110
leaq 0x19c9(%rip), %rdi      # 0x41a3
leaq 0x186c(%rip), %rsi      # 0x404d
leaq 0x1991(%rip), %rcx      # 0x4179
movl $0x93, %edx
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::unlink()
void RankTreeNode::unlink() {
	assert(leaf());
	if (_parent == nullptr) {
		return;
	}
	if (_parent->_right == this) {
		_parent->_right = nullptr;
	} else {
		assert(_parent->_left == this);
		_parent->_left = nullptr;
	}
	_parent->fixWeights();
}

// Assembly:
pushq %rax
movq 0x40(%rdi), %rcx
orq 0x38(%rdi), %rcx
jne 0x28c3
movq %rdi, %rax
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
je 0x28b3
cmpq %rax, 0x40(%rdi)
je 0x28b5
cmpq %rax, 0x38(%rdi)
jne 0x28e2
leaq 0x38(%rdi), %rax
jmp 0x28b9
popq %rax
retq
leaq 0x40(%rdi), %rax
andq $0x0, (%rax)
popq %rax
jmp 0x2902
leaq 0x18ea(%rip), %rdi      # 0x41b4
leaq 0x177c(%rip), %rsi      # 0x404d
leaq 0x1908(%rip), %rcx      # 0x41e0
movl $0xaf, %edx
callq 0x2110
leaq 0x1913(%rip), %rdi      # 0x41fc
leaq 0x175d(%rip), %rsi      # 0x404d
leaq 0x18e9(%rip), %rcx      # 0x41e0
movl $0xb6, %edx
callq 0x2110
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::fixWeights()
int64_t RankTreeNode::leftWeight() {
	if (_left != nullptr) {
		return _left->_subtreeWeight;
	} else {
		return 0;
	}
}

// Assembly:
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0x2911
movq 0x20(%rax), %rax
jmp 0x2913
xorl %eax, %eax
movq 0x40(%rdi), %rcx
testq %rcx, %rcx
je 0x2922
movq 0x20(%rcx), %rcx
jmp 0x2924
xorl %ecx, %ecx
addq 0x28(%rdi), %rax
addq %rcx, %rax
movq %rax, 0x20(%rdi)
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
jne 0x2902
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::makeLeaf()
RankTreeNode* RankTreeNode::makeLeaf() {
	RankTreeNode* ret = nullptr;
	while(!leaf()) {
		if (root()) {
			ret = demote();
		} else {
			demote();
		}
	}
	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
xorl %ebx, %ebx
movq 0x40(%r14), %rax
orq 0x38(%r14), %rax
je 0x2963
movq 0x48(%r14), %r15
movq %r14, %rdi
callq 0x281a
testq %r15, %r15
cmoveq %rax, %rbx
jmp 0x2944
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::fixPriority()
bool RankTreeNode::fixPriority() {
	while(_parent != nullptr
		  and _parent->_priority < _priority) {
		promote();
	}
	if (_parent == nullptr) {
		return true;
	} else {
		return false;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x2995
movl 0x30(%rax), %ecx
cmpl 0x30(%rbx), %ecx
jge 0x2995
movq %rbx, %rdi
callq 0x272e
jmp 0x297a
testq %rax, %rax
sete %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::leftChildRank(long)
int64_t RankTreeNode::leftChildRank(int64_t rank) {
	if (root()) {
		return rank;
	} else if (leftChild()) {
		return _parent->leftChildRank(rank);
	} else {
		assert(rightChild());
		return _parent->rightChildRank(rank);
	}
}

// Assembly:
pushq %rax
movq %rdi, %rax
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
je 0x29bd
cmpq %rax, 0x38(%rdi)
je 0x299f
cmpq %rax, 0x40(%rdi)
jne 0x29c2
popq %rax
jmp 0x29e2
movq %rsi, %rax
popq %rcx
retq
leaq 0x17cd(%rip), %rdi      # 0x4196
leaq 0x167d(%rip), %rsi      # 0x404d
leaq 0x183c(%rip), %rcx      # 0x4213
movl $0xdd, %edx
callq 0x2110
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::rightChildRank(long)
int64_t RankTreeNode::rightChildRank(int64_t rank) {
	if (root()) {
		return _weight + rank + leftWeight();
	} else if (leftChild()) {
		return _parent->leftChildRank(_weight + rank + leftWeight());
	} else {
		assert(rightChild());
		return _parent->rightChildRank(_weight + rank + leftWeight());
	}
}

// Assembly:
pushq %rax
movq %rdi, %rax
movq 0x48(%rdi), %rdi
testq %rdi, %rdi
je 0x2a15
cmpq %rax, 0x38(%rdi)
je 0x2a28
cmpq %rax, 0x40(%rdi)
jne 0x2a50
movq 0x38(%rax), %rcx
testq %rcx, %rcx
je 0x2a0a
movq 0x20(%rcx), %rcx
jmp 0x2a0c
xorl %ecx, %ecx
addq 0x28(%rax), %rsi
addq %rcx, %rsi
jmp 0x29e3
addq 0x28(%rax), %rsi
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x2a3b
movq 0x20(%rax), %rax
jmp 0x2a3d
addq 0x28(%rax), %rsi
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x2a45
movq 0x20(%rax), %rax
jmp 0x2a47
xorl %eax, %eax
addq %rax, %rsi
movq %rsi, %rax
popq %rcx
retq
xorl %eax, %eax
addq %rax, %rsi
popq %rax
jmp 0x299e
leaq 0x173f(%rip), %rdi      # 0x4196
leaq 0x15ef(%rip), %rsi      # 0x404d
leaq 0x17db(%rip), %rcx      # 0x4240
movl $0xe9, %edx
callq 0x2110
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTree::InsertNode(RankTreeNode*)
void RankTree::InsertNode(RankTreeNode* node) {
	if (_root == nullptr) {
		_root = node;
	} else {
		auto first_ = first();
		first_->_left = node;
		node->_parent = first_;
		if(node->fixPriority()) {
			_root = node;
		}
	}
	node->fixWeights();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, (%rdi)
je 0x2b94
movq %r14, %rdi
callq 0x2aa4
movq %rbx, 0x38(%rax)
movq %rax, 0x48(%rbx)
movq %rbx, %rdi
callq 0x2976
testb %al, %al
je 0x2b97
movq %rbx, (%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2902
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTree::check()
void RankTree::check() {
	if (_root != nullptr) {
		_root->checkPriorities(_root->_priority);
		_root->checkParentPointers(nullptr);
		_root->checkWeights();
		std::set<RankTreeNode*> nodes;
		_root->checkUniqueness(nodes);
	}
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x2c1f
movl 0x30(%rdi), %esi
callq 0x262a
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x2676
movq (%rbx), %rdi
callq 0x25c2
leaq 0x8(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq (%rbx), %rdi
movq %rsp, %rsi
callq 0x26bc
movq %rsp, %rdi
callq 0x2ce6
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2ce6
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTree::Remove(RankTreeNode*)
void RankTree::Remove(RankTreeNode* node) {
	auto newRoot = node->makeLeaf();
	if (newRoot != nullptr) {
		_root = newRoot;
	}
	if (_root == node) {
		_root = nullptr;
	} else {
		node->unlink();
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x293a
testq %rax, %rax
je 0x2c54
movq %rax, (%r14)
jmp 0x2c57
movq (%r14), %rax
cmpq %rbx, %rax
je 0x2c6b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x288a
andq $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/rank-tree.cpp
// Function: RankTreeNode::computeSize()
size_t RankTreeNode::computeSize() {
	size_t size = 1;
	if (_left) {
		size += _left->computeSize();
	}
	if (_right) {
		size += _right->computeSize();
	}
	return size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
xorl %ebx, %ebx
pushq $0x1
popq %r15
movq 0x38(%r14), %rdi
movq %r15, %rax
testq %rdi, %rdi
je 0x2caa
callq 0x2c88
incq %rax
addq %rax, %rbx
movq 0x40(%r14), %r14
testq %r14, %r14
jne 0x2c96
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/stack-simulator.cpp
// Function: StackSimulator::Reference(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long)
int64_t StackSimulator::Reference(string key, uint64_t weight) {
	if (_objectNodeMap.count(key) == 0) {
		_objectNodeMap[key] = _lruTree.Insert(key, weight);
		return INT64_MAX;
	} else {
		auto node = _objectNodeMap[key];
		int64_t rank = node->Rank();
		_lruTree.Remove(node);
		node->setWeight(weight);
		_lruTree.InsertNode(node);
		return rank;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
movq %r12, %rdi
callq 0x2fee
testq %rax, %rax
je 0x2f46
movq %r12, %rdi
movq %r15, %rsi
callq 0x311e
movq (%rax), %r15
movq %r15, %rdi
callq 0x2546
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2c38
movq %r15, %rdi
movq %r14, %rsi
callq 0x240c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2b68
movq %r12, %rax
jmp 0x2f85
movq %rsp, %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x21c0
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x2ae6
movq %rax, %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x311e
movq %rbx, (%rax)
movq %rsp, %rdi
callq 0x20c0
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/main.cpp
// Function: main
int main(int argc, char** argv) {
	StackSimulator simulator;
	bool weights = hasFlag("--weight", argc, argv);
	while (not cin.eof()) {
		string s;
		uint64_t weight = 1;
		cin >> s;
		if (weights) {
			cin >> weight;
		}
		cout << simulator.Reference(s, weight) << endl;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x68(%rsp), %rdi
callq 0x3660
leaq 0xe04(%rip), %rsi       # 0x42ff
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x2090
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x361c
movl %eax, %ebx
movq %r14, %rdi
callq 0x20c0
movq 0x3ab3(%rip), %r14      # 0x6fe0
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r13
leaq 0x68(%rsp), %rbp
movq 0x3a8d(%rip), %r12      # 0x6fd0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r14,%rax)
jne 0x35cb
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq $0x1, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x21a0
testb %bl, %bl
je 0x3589
movq %r14, %rdi
movq %rsp, %rsi
callq 0x20f0
movq %r13, %rdi
movq %r15, %rsi
callq 0x21c0
movq (%rsp), %rdx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2ee0
movq %r12, %rdi
movq %rax, %rsi
callq 0x2160
movq %rax, %rdi
callq 0x20d0
movq %r13, %rdi
callq 0x20c0
movq %r15, %rdi
callq 0x20c0
jmp 0x3543
leaq 0x68(%rsp), %rdi
callq 0x368e
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x360a
movq %rax, %rbx
jmp 0x3600
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20c0
leaq 0x8(%rsp), %rdi
callq 0x20c0
leaq 0x68(%rsp), %rdi
callq 0x368e
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O2/jcipar[P]stack-distance/src/main.cpp
// Function: hasFlag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, char**)
bool hasFlag(string flag, int argc, char** argv) {
	for (int i=1; i < argc; i++) {
		if (flag == argv[i]) {
			return true;
		}
	}
	return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movslq %esi, %r15
pushq $0x1
popq %rcx
movq %rcx, %r12
cmpq %r15, %rcx
jge 0x364d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
callq 0x36a4
leaq 0x1(%r12), %rcx
testb %al, %al
je 0x3630
cmpq %r15, %r12
setl %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/adlist.cpp
// Function: listAddNodeHead(list*, void*)
list *listAddNodeHead(list *l, void *value)
{
	listNode *node = (listNode *)zmalloc(sizeof(struct listNode));
	
	if (node == NULL)
		return NULL;

	node->value = value;

	if (l->len != 0) {
		node->prev = NULL;
		node->next = l->head;
		l->head->prev = node;
		l->head = node;
	}
	else {
		l->head = l->tail = node;
		node->prev = NULL;
		node->next = NULL;
	}
	++l->len;

	return l;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x18
popq %rdi
callq 0x3564
testq %rax, %rax
je 0x13ba
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x13be
andq $0x0, (%rax)
movq (%rbx), %rdx
movq %rax, (%rdx)
jmp 0x13c8
xorl %ebx, %ebx
jmp 0x13d6
movq %rax, 0x8(%rbx)
andq $0x0, (%rax)
xorl %edx, %edx
movq %rax, (%rbx)
movq %rdx, 0x8(%rax)
incq %rcx
movq %rcx, 0x28(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/adlist.cpp
// Function: listAddNodeTail(list*, void*)
list *listAddNodeTail(list *l, void *value)
{
	listNode *node = (listNode *)zmalloc(sizeof(struct listNode));

	if (node == NULL)
		return NULL;
	node->value = value;
	if(l->len != 0){
		l->tail->next = node;
		node->prev = l->tail;
		node->next = NULL;
		l->tail = node;
	}
	else {
		l->head = node;
		l->tail = node;
	}
	++l->len;

	return l;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x18
popq %rdi
callq 0x3564
testq %rax, %rax
je 0x1417
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x141b
movq 0x8(%rbx), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, (%rax)
andq $0x0, 0x8(%rax)
jmp 0x141e
xorl %ebx, %ebx
jmp 0x1429
movq %rax, (%rbx)
movq %rax, 0x8(%rbx)
incq %rcx
movq %rcx, 0x28(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/adlist.cpp
// Function: listInsertNode(list*, listNode*, void*, int)
list *listInsertNode(list *l, listNode *old_node, void *value, int after)
{
	listNode *node = (listNode *)zmalloc(sizeof(struct listNode));

	if (node == NULL)
		return NULL;

	node->value = value;
	if (after) {
		node->prev = old_node;
		node->next = old_node->next;
		if (old_node == l->tail)
			l->tail = node;
	}
	else {
		node->prev = old_node->prev;
		node->next = old_node;
		if (old_node == l->head)
			l->head = node;
	}
	if (node->prev != NULL)
		old_node->prev->next = node;
	if (node->next != NULL)
		old_node->next->prev = node;
	++l->len;

	return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x18
popq %rdi
callq 0x3564
testq %rax, %rax
je 0x1472
movq %r15, 0x10(%rax)
testl %ebp, %ebp
je 0x1476
movq %r14, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
cmpq %r14, 0x8(%rbx)
jne 0x148d
movq %rax, 0x8(%rbx)
jmp 0x148d
xorl %ebx, %ebx
jmp 0x14a6
movq (%r14), %rcx
movq %rcx, (%rax)
movq %r14, 0x8(%rax)
cmpq %r14, (%rbx)
jne 0x1488
movq %rax, (%rbx)
testq %rcx, %rcx
je 0x149b
movq (%r14), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, 0x8(%rax)
je 0x14a2
movq 0x8(%r14), %rcx
movq %rax, (%rcx)
incq 0x28(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/adlist.cpp
// Function: listSearchKey(list*, void*)
listNode *listSearchKey(list *l, void *key)
{
	listIterator *iter = listGetIterator(l, AL_START_HEAD);
	listNode *node;

	while ((node = listNext(iter)) != NULL) {
		if (l->match) {
			if (l->match(node->value, key)) {
				listReleaseIterator(iter);
				return node;
			}
		}
		else {
			if (node->value == key) {
				listReleaseIterator(iter);
				return node;
			}
		}
	}
	listReleaseIterator(iter);

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %esi, %esi
callq 0x14b4
movq %rax, %r15
movq %r15, %rdi
callq 0x14e6
movq %rax, %r12
testq %rax, %rax
je 0x1545
movq 0x20(%r14), %rax
movq 0x10(%r12), %rdi
testq %rax, %rax
je 0x1540
movq %rbx, %rsi
callq *%rax
testl %eax, %eax
je 0x1517
jmp 0x1545
cmpq %rbx, %rdi
jne 0x1517
movq %r15, %rdi
callq 0x3681
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/adlist.cpp
// Function: listRelease(list*)
void listRelease(list *l)
{
	listNode *next, *cur;
	unsigned long len;

	if (l == NULL)
		return;
	cur = l->head;
	len = l->len;
	while (len--) {
		next = cur->next;
		if (l->free)
			l->free(cur->value);
		zfree(cur);
		cur = next;
	}
	zfree(l);
}

// Assembly:
testq %rdi, %rdi
je 0x15db
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x28(%rdi), %r15
subq $0x1, %r15
jb 0x15c8
movq 0x8(%r14), %r12
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x15bb
movq 0x10(%r14), %rdi
callq *%rax
movq %r14, %rdi
callq 0x3681
movq %r12, %r14
jmp 0x15a2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3681
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/adlist.cpp
// Function: listmatchsds(void*, void*)
int listmatchsds(void *key1, void *key2)
{
	int cmp;
	char *k1 = (char *)key1;
	char *k2 = (char *)key2;

	int len1 = strlen(k1);
	int len2 = strlen(k2);
	if (len1 != len2)
		return 0;

	cmp = memcmp(k1, k2, len1);
	if (cmp == 0)
		return 1;
	else
		return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1090
movq %rax, %r15
movq %rbx, %rdi
callq 0x1090
movq %rax, %rcx
xorl %eax, %eax
cmpl %ecx, %r15d
jne 0x1618
movslq %r15d, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1140
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: getCommand(redisClient*)
void getCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	if (de != NULL) {
		robj *val = (robj *)de->val;
		if (val->type == REDIS_STRING) {
			size_t len = sdslen((sds)val->ptr);
			memcpy(client->buf + client->bufpos, sds(val->ptr), len);
			memset(client->buf+len, 0, 1);
			client->bufpos += len;
		}
		else {
			explainNotForThat(client, val->type);
			return;
		}
	}
	else {
		memcpy(client->buf + client->bufpos, "(not found)\n\0", 13);
		client->bufpos += 13;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x18f1
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x1, %esi
jne 0x191f
movq 0x8(%rax), %rsi
movl -0x8(%rsi), %r14d
movslq 0x30(%rbx), %rax
leaq (%rbx,%rax), %rdi
addq $0x34, %rdi
movq %r14, %rdx
callq 0x1110
movb $0x0, 0x34(%rbx,%r14)
addl %r14d, 0x30(%rbx)
jmp 0x1917
movslq 0x30(%rbx), %rax
movabsq $0xa29646e756f66, %rcx  # imm = 0xA29646E756F66
movq %rcx, 0x39(%rbx,%rax)
movabsq $0x756f6620746f6e28, %rcx # imm = 0x756F6620746F6E28
movq %rcx, 0x34(%rbx,%rax)
addl $0xd, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x234d
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: setCommand(redisClient*)
void setCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	//three conditions if we			 set A - B
	//and it may be like that in db:		 C - D
	//										 A - B
	//										 A - E
	if (de != NULL) {
		robj *val = (robj *)de->val;
		if (val->type == REDIS_STRING) {
			//if argv[2] == val, it shouldn't be created again or change.
			if (keyStringObjectCompare(NULL, client->argv[2], val)) {
				//do noting.       
			}
			else {
				robj *val2 = createStringObject((char *)(client->argv[2])->ptr);
				if (dbModifyStringVal(client->db, de->key, val2) != REDIS_OK)
					assert(0);
			}
		}
		else {
			explainNotForThat(client, val->type);
			return;
		}
	}
	else {
		char *k = (char *)client->argv[1]->ptr;
		char *v = (char *)client->argv[2]->ptr;
		robj *key = createStringObject(k);
		robj *val = createStringObject(v);
		dictAdd(client->db->dict, key, val);
	}
	memcpy(client->buf + client->bufpos, "(set OK)\n\0", 10);
	client->bufpos += 10;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x19b5
movq %rax, %r14
movq 0x8(%rax), %rdx
movl (%rdx), %esi
cmpl $0x1, %esi
jne 0x1a0e
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rsi
xorl %edi, %edi
callq 0x3ae0
testl %eax, %eax
jne 0x19ea
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x3b33
movq (%rbx), %rdi
movq (%r14), %rsi
movq %rax, %rdx
callq 0x38e4
testl %eax, %eax
je 0x19ea
leaq 0x3754(%rip), %rdi      # 0x50f1
leaq 0x3689(%rip), %rsi      # 0x502d
leaq 0x368e(%rip), %rcx      # 0x5039
movl $0xba, %edx
callq 0x10f0
movq 0x20(%rbx), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
movq 0x8(%rcx), %rdi
movq 0x8(%rax), %r14
callq 0x3b33
movq %rax, %r15
movq %r14, %rdi
callq 0x3b33
movq (%rbx), %rcx
movq (%rcx), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2c6c
movslq 0x30(%rbx), %rax
movabsq $0x294b4f2074657328, %rcx # imm = 0x294B4F2074657328
movq %rcx, 0x34(%rbx,%rax)
movw $0xa, 0x3c(%rbx,%rax)
addl $0xa, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x234d
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: delCommand(redisClient*)
void delCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	if (de != NULL) {
		robj *val = (robj*)de->val;
		if (val->type == REDIS_STRING) {
			robj *key = (robj *)de->key;
			dbRemoveHashEntry(client->db, key, val);
		}
		else {
			explainNotForThat(client, val->type);
			return;
		}
	}
	//generally speaking, if the argv[1] cann't find in dictEntry
	//so we can delete it in a wrong buf safe way.
	memcpy(client->buf + client->bufpos, "(del OK)\n\0", 10);
	client->bufpos += 10;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x1a4d
movq 0x8(%rax), %rdx
movl (%rdx), %esi
cmpl $0x1, %esi
jne 0x1a6d
movq (%rax), %rsi
movq (%rbx), %rdi
callq 0x3931
movslq 0x30(%rbx), %rax
movabsq $0x294b4f206c656428, %rcx # imm = 0x294B4F206C656428
movq %rcx, 0x34(%rbx,%rax)
movw $0xa, 0x3c(%rbx,%rax)
addl $0xa, 0x30(%rbx)
popq %rbx
retq
movq %rbx, %rdi
popq %rbx
jmp 0x234d
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: lpushCommand(redisClient*)
void lpushCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	robj *key;
	robj *val;
	if (de != NULL) {
		int type = ((robj *)de->val)->type;
		if (type != REDIS_LIST) {
			explainNotForThat(client, type);
			return;
		}
		else {
			key = (robj *)de->key;
			val = (robj *)de->val;
		}
	}
	else {
		key = createStringObject((char *)o->ptr);
		val = createListObject();
		dictAdd(d, key, val);
	}

	for (int i = 2; i < client->argc; ++i) {
		list *l = (list *)val->ptr;
		robj *v = createStringObject((char *)(client->argv[i]->ptr));
		listAddNodeHead(l, v);
	}
	memcpy(client->buf + client->bufpos, "(lpush OK)", 10);
	client->bufpos += 10;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %r15
movq 0x8(%rcx), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x28ae
testq %rax, %rax
je 0x1abe
movq 0x8(%rax), %r14
movl (%r14), %esi
cmpl $0x2, %esi
je 0x1ae0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x234d
movq 0x8(%r14), %rdi
callq 0x3b33
movq %rax, %r12
callq 0x3b45
movq %rax, %r14
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2c6c
pushq $0x2
popq %r12
movslq 0x18(%rbx), %rax
cmpq %rax, %r12
jge 0x1b12
movq 0x8(%r14), %r15
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rdi
callq 0x3b33
movq %r15, %rdi
movq %rax, %rsi
callq 0x138a
incq %r12
jmp 0x1ae4
movslq 0x30(%rbx), %rax
movabsq $0x4f20687375706c28, %rcx # imm = 0x4F20687375706C28
movq %rcx, 0x34(%rbx,%rax)
movw $0x294b, 0x3c(%rbx,%rax) # imm = 0x294B
addl $0xa, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: lpopCommand(redisClient*)
void lpopCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	if (de != NULL) {
		robj *val = (robj *)de->val;
		if (val->type != REDIS_LIST) {
			explainNotForThat(client, val->type);
		}
		list *l = (list *)val->ptr;
		if (l->len == 0) {
			memcpy(client->buf + client->bufpos, "(empty)", 7);
			client->bufpos += 7;
			return;
		}
		listNode *node = l->head;
		char *p = (sds)((robj *)node->value)->ptr;
		memcpy(client->buf + client->bufpos, p, strlen(p));
		client->bufpos += strlen(p);
		listDelNode(l, node);
	}
	else {
		memcpy(client->buf + client->bufpos, "(no such list)", 14);
		client->bufpos += 14;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x1bcb
movq 0x8(%rax), %r14
movl (%r14), %esi
cmpl $0x2, %esi
je 0x1b74
movq %rbx, %rdi
callq 0x234d
movq 0x8(%r14), %r14
cmpq $0x0, 0x28(%r14)
je 0x1bf3
movq (%r14), %r15
movq 0x10(%r15), %rax
movq 0x8(%rax), %r12
movslq 0x30(%rbx), %rax
leaq (%rbx,%rax), %r13
addq $0x34, %r13
movq %r12, %rdi
callq 0x1090
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x1110
movq %r12, %rdi
callq 0x1090
addl %eax, 0x30(%rbx)
movq %r14, %rdi
movq %r15, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x155c
movslq 0x30(%rbx), %rax
movabsq $0x297473696c206863, %rcx # imm = 0x297473696C206863
movq %rcx, 0x3a(%rbx,%rax)
movabsq $0x68637573206f6e28, %rcx # imm = 0x68637573206F6E28
movq %rcx, 0x34(%rbx,%rax)
addl $0xe, 0x30(%rbx)
jmp 0x1c0b
movslq 0x30(%rbx), %rax
movl $0x29797470, 0x37(%rbx,%rax) # imm = 0x29797470
movl $0x706d6528, 0x34(%rbx,%rax) # imm = 0x706D6528
addl $0x7, 0x30(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: lindexCommand(redisClient*)
void lindexCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	if (de != NULL) {
		robj *val = (robj *)de->val;
		if (val->type != REDIS_LIST) {
			explainNotForThat(client, val->type);
			return;
		}
		list *l = (list *)val->ptr;
		listNode *node;
		int len = parseObjectToDigit(client->argv[2]);
		unsigned long ablen = (len < 0) ? -len : len;
		if (ablen > l->len) {
			memcpy(client->buf + client->bufpos, "(out of range)", 14);
			client->bufpos += 14;
			return;
		}
		if (len < 0) {
			len = -len;
			node = listTail(l);
			while (--len)
				node = node->prev;
		}
		else {
			node = listFirst(l);
			while (--len)
				node = node->next;
		}
		char *p = (char *)((robj *)node->value)->ptr;
		size_t plen = strlen(p);
		memcpy(client->buf + client->bufpos, p, plen);
		client->bufpos += plen;
	}
	else {
		memcpy(client->buf + client->bufpos, "(no such list)", 14);
		client->bufpos += 14;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x1ca2
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x2, %esi
jne 0x1cc1
movq 0x8(%rax), %r12
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movslq -0x8(%rsi), %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x1110
movb (%rsp), %cl
xorl %eax, %eax
cmpb $0x2d, %cl
sete %al
subl %r14d, %eax
leaq (%r14,%r15), %rdx
decq %rdx
xorl %esi, %esi
pushq $0x1
popq %r8
xorl %edi, %edi
cmpl %esi, %eax
je 0x1cd4
movsbl (%rdx,%rsi), %r9d
addl $-0x30, %r9d
imull %r8d, %r9d
addl %r9d, %edi
imull $0xa, %r8d, %r8d
decq %rsi
jmp 0x1c85
movslq 0x30(%rbx), %rax
movabsq $0x297473696c206863, %rcx # imm = 0x297473696C206863
movq %rcx, 0x3a(%rbx,%rax)
movabsq $0x68637573206f6e28, %rcx # imm = 0x68637573206F6E28
jmp 0x1d0c
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x234d
movl %edi, %eax
negl %eax
cmpb $0x2d, %cl
cmovnel %edi, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movslq %ecx, %rcx
cmpq %rcx, 0x28(%r12)
jae 0x1d17
movslq 0x30(%rbx), %rax
movabsq $0x2965676e61722066, %rcx # imm = 0x2965676E61722066
movq %rcx, 0x3a(%rbx,%rax)
movabsq $0x20666f2074756f28, %rcx # imm = 0x20666F2074756F28
movq %rcx, 0x34(%rbx,%rax)
addl $0xe, 0x30(%rbx)
jmp 0x1d65
testl %eax, %eax
js 0x1d29
movq (%r12), %rcx
leaq 0x8(%rcx), %r12
decl %eax
jne 0x1d1b
jmp 0x1d37
addq $0x8, %r12
movq %r12, %rcx
movq (%rcx), %rcx
incl %eax
jne 0x1d30
movq 0x10(%rcx), %rax
movq 0x8(%rax), %r14
movq %r14, %rdi
callq 0x1090
movq %rax, %r15
movslq 0x30(%rbx), %rax
leaq (%rbx,%rax), %rdi
addq $0x34, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1110
addl %r15d, 0x30(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: hgetCommand(redisClient*)
void hgetCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	if (de != NULL) {
		robj *val = (robj *)de->val;
		if (val->type != REDIS_HASH) {
			explainNotForThat(client, val->type);
			return;
		}

		robj *k = client->argv[2];
		dictEntry *nde = dictFind((dict *)val->ptr, k);
		if (nde != NULL) {
			robj *v = (robj *)nde->val;
			char *p = (char *)v->ptr;
			size_t plen = strlen(p);
			memcpy(client->buf + client->bufpos, p, plen);
			client->bufpos += plen;
		}
		else {
			memcpy(client->buf + client->bufpos, "(no such key in dict)", 21);
			client->bufpos += 21;
		}
	}
	else {
		memcpy(client->buf + client->bufpos, "(no such dictory)", 17);
		client->bufpos += 17;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x1de2
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x3, %esi
jne 0x1dfd
movq 0x20(%rbx), %rcx
movq 0x10(%rcx), %rsi
movq 0x8(%rax), %rdi
callq 0x28ae
testq %rax, %rax
je 0x1e0a
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
movq %r14, %rdi
callq 0x1090
movq %rax, %r15
movslq 0x30(%rbx), %rax
leaq (%rbx,%rax), %rdi
addq $0x34, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1110
addl %r15d, 0x30(%rbx)
jmp 0x1e2d
movslq 0x30(%rbx), %rax
movups 0x32b2(%rip), %xmm0     # 0x509f
movups %xmm0, 0x34(%rbx,%rax)
movb $0x29, 0x44(%rbx,%rax)
addl $0x11, 0x30(%rbx)
jmp 0x1e2d
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x234d
movslq 0x30(%rbx), %rax
movups 0x3274(%rip), %xmm0     # 0x5089
movups %xmm0, 0x34(%rbx,%rax)
movabsq $0x2974636964206e69, %rcx # imm = 0x2974636964206E69
movq %rcx, 0x41(%rbx,%rax)
addl $0x15, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: hlenCommand(redisClient*)
void hlenCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *o = client->argv[1];
	dictEntry *de = dictFind(d, o);

	if (de != NULL) {
		robj *val = (robj *)de->val;
		if (val->type != REDIS_HASH) {
			explainNotForThat(client, val->type);
			return;
		}
		int len = ((dict *)(val->ptr))->ht[0].used + ((dict *)(val->ptr))->ht[1].used;
		char p[16];
		parseDigitToString(len, p);
		size_t plen = strlen(p);
		memcpy(client->buf + client->bufpos, p, plen);
		client->bufpos += plen;
		client->buf[client->bufpos] = '\0';
	}
	else {
		memcpy(client->buf + client->bufpos, "(no such dictory)", 17);
		client->bufpos += 17;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x2035
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x3, %esi
jne 0x20b5
movq 0x8(%rax), %rcx
movl 0x38(%rcx), %eax
addl 0x18(%rcx), %eax
xorl %ecx, %ecx
pushq $0xa
popq %rsi
testl %eax, %eax
jle 0x2050
xorl %edx, %edx
divl %esi
orb $0x30, %dl
movb %dl, 0x10(%rsp,%rcx)
incq %rcx
jmp 0x2021
movslq 0x30(%rbx), %rax
movups 0x305f(%rip), %xmm0     # 0x509f
movups %xmm0, 0x34(%rbx,%rax)
movb $0x29, 0x44(%rbx,%rax)
addl $0x11, 0x30(%rbx)
jmp 0x20aa
movl %ecx, %eax
leaq (%rsp,%rax), %rdx
addq $0xf, %rdx
xorl %eax, %eax
cmpl %eax, %ecx
je 0x206f
movb (%rdx), %sil
movb %sil, (%rsp,%rax)
incq %rax
decq %rdx
jmp 0x205c
xorl %ebp, %ebp
movb %bpl, (%rsp,%rax)
movq %rsp, %r14
movq %r14, %rdi
callq 0x1090
movq %rax, %r15
movslq 0x30(%rbx), %rax
leaq (%rbx,%rax), %rdi
addq $0x34, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1110
addl 0x30(%rbx), %r15d
movl %r15d, 0x30(%rbx)
movslq %r15d, %rax
movb %bpl, 0x34(%rbx,%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x234d
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: typeCommand(redisClient*)
void typeCommand(redisClient *client)
{
	dict *d = client->db->dict;
	robj *q = client->argv[1];
	dictEntry *de = dictFind(d, q);

	if (de != NULL) {
		robj *val = (robj *)de->val;
		switch (val->type) {
		case REDIS_STRING:
			memcpy(client->buf + client->bufpos, "string", 6);
			client->bufpos += 6;
			break;
		case REDIS_LIST:
			memcpy(client->buf + client->bufpos, "list", 4);
			client->bufpos += 4;
			break;
		case REDIS_HASH:
			memcpy(client->buf + client->bufpos, "hash", 4);
			client->bufpos += 4;
			break;
		default:
			memcpy(client->buf + client->bufpos, "(none)", 6);
			client->bufpos += 6;
			break;
		}
	}
	else
		NOT_FOUND(client);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x28ae
testq %rax, %rax
je 0x2115
movq 0x8(%rax), %rax
movl (%rax), %edx
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
addq %rbx, %rcx
addq $0x34, %rcx
cmpl $0x3, %edx
je 0x2140
cmpl $0x2, %edx
je 0x2138
cmpl $0x1, %edx
jne 0x214a
movw $0x676e, 0x4(%rcx)      # imm = 0x676E
movl $0x69727473, (%rcx)     # imm = 0x69727473
jmp 0x2156
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x756f6620746f6e28, %rdx # imm = 0x756F6620746F6E28
movq %rdx, 0x34(%rbx,%rcx)
movl $0x29646e75, 0x3b(%rbx,%rcx) # imm = 0x29646E75
pushq $0xb
jmp 0x2158
movl $0x7473696c, (%rcx)     # imm = 0x7473696C
jmp 0x2146
movl $0x68736168, (%rcx)     # imm = 0x68736168
pushq $0x4
jmp 0x2158
movw $0x2965, 0x4(%rcx)      # imm = 0x2965
movl $0x6e6f6e28, (%rcx)     # imm = 0x6E6F6E28
pushq $0x6
popq %rcx
addl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: dbCommand(redisClient*)
void dbCommand(redisClient *client)
{
	robj *o1 = client->argv[1];
	char* cmd1 = (sds)o1->ptr;
	size_t cmdlen = strlen(cmd1);

	if(*cmd1 != '-' || cmdlen != 2){
		NOT_FOUND(client);
		return;
	}
	
	char type = cmd1[1];
	switch(type){
	case 's':
		dbSaveCommand(client);
		break;
	case 'l':
		dbLoadCommand(client);
		break;
	default:
		NOT_FOUND(client);
		break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100018, %rsp         # imm = 0x100018
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq 0x8(%r15), %rax
movq 0x8(%rax), %r14
movq %r14, %rdi
callq 0x1090
cmpb $0x2d, (%r14)
jne 0x2218
cmpq $0x2, %rax
jne 0x2218
movzbl 0x1(%r14), %eax
cmpl $0x6c, %eax
je 0x223c
cmpl $0x73, %eax
jne 0x2218
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
leaq 0x2f90(%rip), %rsi      # 0x5148
movq %r14, %rdi
callq 0x1170
movq %rax, %r15
andq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movl $0x100000, %edx         # imm = 0x100000
xorl %esi, %esi
callq 0x10d0
testq %r15, %r15
je 0x22b7
movq %r15, %rdi
callq 0x1130
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x2973747369786520, %rdx # imm = 0x2973747369786520
movq %rdx, 0x39(%rbx,%rcx)
movabsq $0x786520656c696628, %rdx # imm = 0x786520656C696628
movq %rdx, 0x34(%rbx,%rcx)
pushq $0xd
jmp 0x233b
movslq 0x30(%rbx), %rax
movabsq $0x756f6620746f6e28, %rcx # imm = 0x756F6620746F6E28
movq %rcx, 0x34(%rbx,%rax)
movl $0x29646e75, 0x3b(%rbx,%rax) # imm = 0x29646E75
addl $0xb, 0x30(%rbx)
jmp 0x233e
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x2efd(%rip), %rsi      # 0x5148
callq 0x1170
movq %rax, %r14
andq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movl $0x100000, %edx         # imm = 0x100000
xorl %esi, %esi
callq 0x10d0
testq %r14, %r14
je 0x231a
leaq 0x10(%rsp), %r15
pushq $0x1
popq %rsi
movl $0x100000, %edx         # imm = 0x100000
movq %r15, %rdi
movq %r14, %rcx
callq 0x11f0
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3071
movq %r14, %rdi
callq 0x1130
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x4b4f2064616f6c28, %rdx # imm = 0x4B4F2064616F6C28
jmp 0x230c
movq (%rbx), %rdi
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x2cb0
movq %rax, %r12
leaq 0x2e74(%rip), %rsi      # 0x514a
movq %r14, %rdi
callq 0x1170
movq %rax, %r14
pushq $0x1
popq %rdx
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x1240
movq %r14, %rdi
callq 0x1130
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x4b4f206576617328, %rdx # imm = 0x4B4F206576617328
movq %rdx, 0x34(%rbx,%rcx)
movb $0x29, 0x3c(%rbx,%rcx)
pushq $0x9
jmp 0x233b
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x756f6620746f6e28, %rdx # imm = 0x756F6620746F6E28
movq %rdx, 0x34(%rbx,%rcx)
movl $0x29646e75, 0x3b(%rbx,%rcx) # imm = 0x29646E75
pushq $0xb
popq %rcx
addl %ecx, (%rax)
addq $0x100018, %rsp         # imm = 0x100018
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: explainNotForThat(redisClient*, int)
static void explainNotForThat(redisClient *client, int type)
{
	char s[] = "(Exist for a String Object)";
	char l[] = "(Exist for a List Object)";
	char h[] = "(Exist for a Hash Object)";

	switch (type) {
	case REDIS_STRING:
		EXIST_FOR_ANTHOR_OBJECT(client, s);
		break;
	case REDIS_LIST:
		EXIST_FOR_ANTHOR_OBJECT(client, l);
		break;
	case REDIS_HASH:
		EXIST_FOR_ANTHOR_OBJECT(client, h);
		break;
	default:
		assert(0);
	}
}

// Assembly:
cmpl $0x3, %esi
je 0x2395
cmpl $0x2, %esi
je 0x237c
cmpl $0x1, %esi
jne 0x23c2
movslq 0x30(%rdi), %rax
movups 0x2e84(%rip), %xmm0     # 0x51eb
movups %xmm0, 0x3f(%rdi,%rax)
movaps 0x2e6d(%rip), %xmm0     # 0x51e0
movups %xmm0, 0x34(%rdi,%rax)
pushq $0x1b
jmp 0x23b3
movslq 0x30(%rdi), %rax
movups 0x2e82(%rip), %xmm0     # 0x5209
movups %xmm0, 0x3d(%rdi,%rax)
movaps 0x2e6d(%rip), %xmm0     # 0x5200
jmp 0x23ac
movslq 0x30(%rdi), %rax
movups 0x2e89(%rip), %xmm0     # 0x5229
movups %xmm0, 0x3d(%rdi,%rax)
movaps 0x2e74(%rip), %xmm0     # 0x5220
movups %xmm0, 0x34(%rdi,%rax)
pushq $0x19
popq %rax
addl 0x30(%rdi), %eax
movl %eax, 0x30(%rdi)
cltq
movb $0x0, 0x34(%rdi,%rax)
retq
pushq %rax
leaq 0x2d27(%rip), %rdi      # 0x50f1
leaq 0x2c5c(%rip), %rsi      # 0x502d
leaq 0x2d45(%rip), %rcx      # 0x511d
movl $0x83, %edx
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/command.cpp
// Function: deduceCommandForQuery(redisClient*)
void deduceCommandForQuery(redisClient *client)
{
	assert(client->argc > 0);
	memset(client->buf, 0, REDIS_QUERY_CHUNK_BYTES);
	client->bufpos = 0;
	client->cmd = NULL;

	robj *o = client->argv[0];
	char *name = (sds)o->ptr;
	dictEntry *de = dictFind(cmdTable, name);
	
	if (de != NULL) {
		redisCommand *cmd = (redisCommand *)de->val;
		client->cmd = cmd;
		if ((cmd->arbity > 0 && client->argc != cmd->arbity) ||
			(cmd->arbity < 0 && client->argc < (-cmd->arbity))) {
			memcpy(client->buf + client->bufpos, "(argc error)\n\0", 14);
			client->bufpos += 14;
			client->cmd = NULL;
			return;
		}
		((client->cmd)->proc)(client);
	}
	else {
		client->cmd = NULL;
		memcpy(client->buf + client->bufpos, "(command error)\n\0", 17);
		client->bufpos += 17;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpl $0x0, 0x18(%rdi)
jle 0x249f
movq %rdi, %rbx
leaq 0x34(%rdi), %r15
leaq 0x28(%rdi), %r14
movl $0x40c, %edx            # imm = 0x40C
movq %r14, %rdi
xorl %esi, %esi
callq 0x10d0
movq 0x20(%rbx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
movq 0x6d8b(%rip), %rdi      # 0x91a8
callq 0x28ae
testq %rax, %rax
je 0x2466
movq 0x8(%rax), %rax
movq %rax, (%r14)
movl 0x8(%rax), %ecx
testl %ecx, %ecx
jle 0x248b
cmpl %ecx, 0x18(%rbx)
je 0x2494
movslq 0x30(%rbx), %rax
movabsq $0xa29726f727265, %rcx  # imm = 0xA29726F727265
movq %rcx, 0x6(%r15,%rax)
movabsq $0x7265206367726128, %rcx # imm = 0x7265206367726128
movq %rcx, (%r15,%rax)
addl $0xe, 0x30(%rbx)
andq $0x0, 0x28(%rbx)
jmp 0x2485
andq $0x0, 0x28(%rbx)
movslq 0x30(%rbx), %rax
movups 0x2d57(%rip), %xmm0     # 0x51cd
movups %xmm0, (%r15,%rax)
movb $0x0, 0x10(%r15,%rax)
addl $0x11, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
jns 0x2494
negl %ecx
cmpl %ecx, 0x18(%rbx)
jl 0x243a
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmpq *0x10(%rax)
leaq 0x2c3c(%rip), %rdi      # 0x50e2
leaq 0x2b80(%rip), %rsi      # 0x502d
leaq 0x2c3f(%rip), %rcx      # 0x50f3
movl $0x23a, %edx            # imm = 0x23A
callq 0x10f0
nop
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictGenCaseHashFunction(void const*)
unsigned int dictGenCaseHashFunction(const void *buf)
{
	const char *p = (const char *)buf;
	unsigned int hash = (unsigned int)dict_hash_function_seed;
	unsigned len = strlen(p);
	while (len--) {
		hash = ((hash << 5) + hash) + (tolower(*p++));
	}
	
	return hash;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1090
movq %rax, %r14
movl $0x1505, %eax           # imm = 0x1505
xorl %r15d, %r15d
cmpl %r15d, %r14d
je 0x24f3
imull $0x21, %eax, %ebp
movsbl (%rbx,%r15), %edi
callq 0x11e0
addl %ebp, %eax
incq %r15
jmp 0x24da
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictSdsCompare(void*, void const*, void const*)
int dictSdsCompare(void *privdata, const void *key1, const void *key2)
{
	char *k1 = (char *)key1;
	char *k2 = (char *)key2;

	int len1 = strlen(k1);
	int len2 = strlen(k2);
	if (len1 != len2)
		return 0;

	int cmp = memcmp(key1, key2, len1);
	if (cmp == 0)
		return 1;
	else
		return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x1090
movq %rax, %r15
movq %rbx, %rdi
callq 0x1090
movq %rax, %rcx
xorl %eax, %eax
cmpl %ecx, %r15d
jne 0x253d
movslq %r15d, %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1140
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictExpandIfNeeded(dict*)
int _dictExpandIfNeeded(dict *d)
{
	if (dictIsRehashing(d))
		return DICT_ERR;

	if (d->ht[0].size == 0)
		return dictExpand(d, DICT_HT_INITIAL_SIZE);

	unsigned int ratio = d->ht[0].used / d->ht[0].size;
	if (d->ht[0].used >= d->ht[0].size && (dict_can_resize || ratio > dict_force_resize_ratio))
		return dictExpand(d, d->ht[0].used * 2);

	return DICT_OK;
}

// Assembly:
cmpl $-0x1, 0x50(%rdi)
je 0x254d
pushq $0x1
popq %rax
retq
movq 0x20(%rdi), %rcx
testq %rcx, %rcx
je 0x2569
movq 0x18(%rdi), %rsi
xorl %eax, %eax
cmpq %rcx, %rsi
jb 0x254c
addq %rsi, %rsi
jmp 0x2571
pushq $0x4
popq %rsi
jmp 0x2571
// File: /workspace/github_cpp_makefile_star2_O2/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictExpand(dict*, unsigned long)
int dictExpand(dict *d, unsigned long size)
{
	dictht ht;
	unsigned long realsize = _dictNextPower(size);

	if (dictIsRehashing(d) || d->ht[0].used > size)
		return DICT_ERR;

	if (realsize == d->ht[0].size)
		return DICT_ERR;

	ht.size = realsize;
	ht.size_mask = realsize - 1;
	ht.table = (dictEntry **)(zcalloc(realsize * sizeof(dictEntry *)));
	ht.used = 0;

	if (d->ht[0].table == NULL) {
		d->ht[0] = ht;
		return DICT_OK;
	}
	d->ht[1] = ht;
	d->rehashidx = 0;	//ready for rehashing

	return DICT_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movabsq $0x7ffffffffffffffe, %r14 # imm = 0x7FFFFFFFFFFFFFFE
cmpq %r14, %rsi
jbe 0x258d
incq %r14
jmp 0x259b
pushq $0x4
popq %rax
movq %rax, %r14
addq %rax, %rax
cmpq %rsi, %r14
jb 0x2590
pushq $0x1
popq %rax
cmpl $-0x1, 0x50(%rbx)
jne 0x25f2
cmpq %rsi, 0x18(%rbx)
ja 0x25f2
cmpq 0x20(%rbx), %r14
je 0x25f2
leaq -0x1(%r14), %r15
leaq (,%r14,8), %rdi
callq 0x35d5
cmpq $0x0, 0x10(%rbx)
je 0x25df
movq %rax, 0x30(%rbx)
andq $0x0, 0x38(%rbx)
movq %r14, 0x40(%rbx)
movq %r15, 0x48(%rbx)
andl $0x0, 0x50(%rbx)
jmp 0x25f0
movq %rax, 0x10(%rbx)
andq $0x0, 0x18(%rbx)
movq %r14, 0x20(%rbx)
movq %r15, 0x28(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq