LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/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), %rcx
testq %rcx, %rcx
je 0x2b56
movq %rcx, %rdi
cmpq %rax, 0x38(%rcx)
je 0x2b6c
cmpq %rax, 0x40(%rdi)
jne 0x2b94
movq 0x38(%rax), %rcx
testq %rcx, %rcx
je 0x2b3f
movq 0x20(%rcx), %rcx
jmp 0x2b41
xorl %ecx, %ecx
addq 0x28(%rax), %rsi
addq %rcx, %rsi
movq 0x48(%rdi), %rcx
movq %rdi, %rax
testq %rcx, %rcx
jne 0x2b21
jmp 0x2b59
movq %rax, %rdi
addq 0x28(%rdi), %rsi
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0x2b7f
movq 0x20(%rax), %rax
jmp 0x2b81
addq 0x28(%rax), %rsi
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x2b89
movq 0x20(%rax), %rax
jmp 0x2b8b
xorl %eax, %eax
addq %rax, %rsi
movq %rsi, %rax
popq %rcx
retq
xorl %eax, %eax
addq %rax, %rsi
popq %rax
jmp 0x2ad0
leaq 0x15fb(%rip), %rdi      # 0x4196
leaq 0x14ab(%rip), %rsi      # 0x404d
leaq 0x1697(%rip), %rcx      # 0x4240
movl $0xe9, %edx
callq 0x20e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
movq (%rdi), %rax
testq %rax, %rax
je 0x2cfc
movq %rax, %rcx
movq 0x38(%rax), %rax
testq %rax, %rax
jne 0x2cdc
movq %rbx, 0x38(%rcx)
movq %rcx, 0x48(%rbx)
movq %rbx, %rdi
callq 0x2a96
testb %al, %al
je 0x2cff
movq %rbx, (%r14)
movq 0x38(%rbx), %rax
testq %rax, %rax
je 0x2d0e
movq 0x20(%rax), %rax
jmp 0x2d10
xorl %eax, %eax
movq 0x40(%rbx), %rcx
testq %rcx, %rcx
je 0x2d1f
movq 0x20(%rcx), %rcx
jmp 0x2d21
xorl %ecx, %ecx
addq 0x28(%rbx), %rax
addq %rcx, %rax
movq %rax, 0x20(%rbx)
movq 0x48(%rbx), %rbx
testq %rbx, %rbx
jne 0x2cff
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x2dc7
movl 0x30(%rdi), %esi
callq 0x26d0
movq (%rbx), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
callq 0x2732
movq (%rbx), %rdi
callq 0x2666
leaq 0x10(%rsp), %rax
movl $0x0, (%rax)
movq %r14, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %r14, 0x20(%rax)
movq (%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x277a
leaq 0x8(%rsp), %rdi
callq 0x2e7a
addq $0x38, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2e7a
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a4c
testq %rax, %rax
je 0x2e00
movq %rax, (%r14)
jmp 0x2e03
movq (%r14), %rax
cmpq %rbx, %rax
je 0x2e17
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x296c
movq $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %ebx, %ebx
movq 0x38(%r14), %rdi
testq %rdi, %rdi
je 0x2e52
callq 0x2e36
incq %rax
jmp 0x2e57
movl $0x1, %eax
addq %rax, %rbx
movq 0x40(%r14), %r14
testq %r14, %r14
jne 0x2e3f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %r12
movq %r12, %rdi
callq 0x31a2
testq %rax, %rax
je 0x30d3
movq %r12, %rdi
movq %r15, %rsi
callq 0x32ba
movq (%rax), %r15
movq %r15, %rdi
callq 0x25ea
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2de4
movq %r15, %rdi
movq %r14, %rsi
callq 0x2442
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2cca
movq %r12, %rax
jmp 0x312e
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x2ec4
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x2c2c
movq %rax, %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x32ba
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
movq %rbx, (%rax)
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x312b
callq 0x2140
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x314f
callq 0x2140
movq %rbx, %rdi
callq 0x2210
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2bc6
leaq 0xa0(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xcc6(%rip), %rsi       # 0x4329
leaq 0xcc7(%rip), %rdx       # 0x4331
leaq 0x48(%rsp), %rdi
callq 0x392c
cmpl $0x2, %ebp
jl 0x36bd
movq 0x8(%rbx), %rsi
leaq 0x48(%rsp), %rdi
callq 0x2080
testl %eax, %eax
je 0x36c2
movl %ebp, %r15d
movl $0x2, %ecx
leaq 0x48(%rsp), %r14
movq %rcx, %r13
cmpq %rcx, %r15
je 0x36b4
movq (%rbx,%r13,8), %rsi
movq %r14, %rdi
callq 0x2080
leaq 0x1(%r13), %rcx
testl %eax, %eax
jne 0x3698
cmpq %r15, %r13
setb %r15b
jmp 0x36c5
xorl %r15d, %r15d
jmp 0x36c5
movb $0x1, %r15b
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x36d4
callq 0x2140
movq 0x3905(%rip), %r14      # 0x6fe0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r14,%rax)
jne 0x37ca
leaq 0x18(%rsp), %rbp
leaq 0x38(%rsp), %rbx
leaq 0x28(%rsp), %r13
movq %rbp, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq $0x1, (%rsp)
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x21b0
testb %r15b, %r15b
je 0x3735
movq %r14, %rdi
movq %rsp, %rsi
callq 0x20c0
movq %rbx, 0x28(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2ec4
movq (%rsp), %rdx
leaq 0x68(%rsp), %rdi
movq %r13, %rsi
callq 0x306c
movq 0x3869(%rip), %rdi      # 0x6fd0
movq %rax, %rsi
callq 0x2150
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x37a8
callq 0x2140
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x37b7
callq 0x2140
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r14,%rax)
je 0x36fd
leaq 0x70(%rsp), %rdi
callq 0x3896
leaq 0x68(%rsp), %rdi
callq 0x2bce
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x381d
movq %rax, %r14
jmp 0x380e
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x380e
callq 0x2140
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x381d
callq 0x2140
leaq 0x70(%rsp), %rdi
callq 0x3896
leaq 0x68(%rsp), %rdi
callq 0x2bce
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/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:
cmpl $0x2, %esi
jl 0x3888
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq 0x8(%rdx), %rsi
callq 0x2080
testl %eax, %eax
je 0x388b
movl %ebp, %r15d
movl $0x2, %ecx
movq %rcx, %r12
cmpq %rcx, %r15
je 0x3880
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
callq 0x2080
leaq 0x1(%r12), %rcx
testl %eax, %eax
jne 0x3863
cmpq %r15, %r12
setb %al
jmp 0x388d
xorl %eax, %eax
retq
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
movl $0x18, %edi
callq 0x38a8
testq %rax, %rax
je 0x14b1
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x14b5
movq $0x0, (%rax)
movq (%rbx), %rdx
movq %rax, (%rdx)
jmp 0x14c2
xorl %ebx, %ebx
jmp 0x14d0
movq %rax, 0x8(%rbx)
movq $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_O3/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
movl $0x18, %edi
callq 0x38a8
testq %rax, %rax
je 0x1516
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x151a
movq 0x8(%rbx), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, (%rax)
movq $0x0, 0x8(%rax)
jmp 0x151d
xorl %ebx, %ebx
jmp 0x1528
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_O3/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
movl $0x18, %edi
callq 0x38a8
testq %rax, %rax
je 0x1573
movq %r15, 0x10(%rax)
testl %ebp, %ebp
je 0x1577
movq %r14, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
cmpq %r14, 0x8(%rbx)
jne 0x158e
movq %rax, 0x8(%rbx)
jmp 0x158e
xorl %ebx, %ebx
jmp 0x15a7
movq (%r14), %rcx
movq %rcx, (%rax)
movq %r14, 0x8(%rax)
cmpq %r14, (%rbx)
jne 0x1589
movq %rax, (%rbx)
testq %rcx, %rcx
je 0x159c
movq (%r14), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, 0x8(%rax)
je 0x15a3
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_O3/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, %r14
movq %rdi, %r15
movl $0x10, %edi
callq 0x38a8
movq %rax, %rbx
testq %rax, %rax
je 0x1636
movl $0x0, 0x8(%rbx)
movq (%r15), %r12
movq %r12, (%rbx)
testq %r12, %r12
jne 0x1636
jmp 0x166f
xorl %eax, %eax
cmpl $0x0, 0x8(%rbx)
sete %al
movq (%r12,%rax,8), %rax
movq %rax, (%rbx)
movq 0x20(%r15), %rcx
movq 0x10(%r12), %rdi
testq %rcx, %rcx
je 0x1662
movq %r14, %rsi
callq *%rcx
testl %eax, %eax
jne 0x1672
movq (%rbx), %rax
jmp 0x1667
cmpq %r14, %rdi
je 0x1672
movq %rax, %r12
testq %rax, %rax
jne 0x1636
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x39c7
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x170d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %r15
testq %r15, %r15
je 0x16fa
movq (%rbx), %r14
movq 0x8(%r14), %r12
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x16e7
movq 0x10(%r14), %rdi
callq *%rax
decq %r15
movq %r14, %rdi
callq 0x39c7
movq %r12, %r14
testq %r15, %r15
jne 0x16d4
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x39c7
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a50
testq %rax, %rax
je 0x1a1f
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x1, %esi
jne 0x1a4d
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 0x1a45
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 0x24c3
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a50
testq %rax, %rax
je 0x1ae3
movq %rax, %r14
movq 0x8(%rax), %rdx
movl (%rdx), %esi
cmpl $0x1, %esi
jne 0x1b3c
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rsi
xorl %edi, %edi
callq 0x3ea7
testl %eax, %eax
jne 0x1b18
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x3efc
movq (%rbx), %rdi
movq (%r14), %rsi
movq %rax, %rdx
callq 0x3c34
testl %eax, %eax
je 0x1b18
leaq 0x3626(%rip), %rdi      # 0x50f1
leaq 0x355b(%rip), %rsi      # 0x502d
leaq 0x3560(%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 0x3efc
movq %rax, %r15
movq %r14, %rdi
callq 0x3efc
movq (%rbx), %rcx
movq (%rcx), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2e6c
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 0x24c3
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a50
testq %rax, %rax
je 0x1b7b
movq 0x8(%rax), %rdx
movl (%rdx), %esi
cmpl $0x1, %esi
jne 0x1b9b
movq (%rax), %rsi
movq (%rbx), %rdi
callq 0x3c83
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 0x24c3
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a50
testq %rax, %rax
je 0x1bec
movq 0x8(%rax), %r14
movl (%r14), %esi
cmpl $0x2, %esi
je 0x1c0e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x24c3
movq 0x8(%r14), %rdi
callq 0x3efc
movq %rax, %r12
callq 0x3f22
movq %rax, %r14
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2e6c
cmpl $0x3, 0x18(%rbx)
jl 0x1c46
movl $0x2, %r12d
movq 0x8(%r14), %r15
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rdi
callq 0x3efc
movq %r15, %rdi
movq %rax, %rsi
callq 0x147c
incq %r12
movslq 0x18(%rbx), %rax
cmpq %rax, %r12
jl 0x1c1a
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_O3/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 0x2a50
testq %rax, %rax
je 0x1cff
movq 0x8(%rax), %r14
movl (%r14), %esi
cmpl $0x2, %esi
je 0x1ca8
movq %rbx, %rdi
callq 0x24c3
movq 0x8(%r14), %r14
cmpq $0x0, 0x28(%r14)
je 0x1d27
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 0x1689
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 0x1d3f
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_O3/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 0x2a50
testq %rax, %rax
je 0x1dd8
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x2, %esi
jne 0x1df7
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), %al
xorl %edx, %edx
cmpb $0x2d, %al
sete %dl
movl %r14d, %ecx
subl %edx, %ecx
je 0x1e0a
leaq (%r14,%r15), %rsi
decq %rsi
movl $0x1, %edi
xorl %edx, %edx
movsbl (%rsi), %r8d
addl $-0x30, %r8d
imull %edi, %r8d
addl %r8d, %edx
addl %edi, %edi
decq %rsi
leal (%rdi,%rdi,4), %edi
decl %ecx
jne 0x1dbb
jmp 0x1e0c
movslq 0x30(%rbx), %rax
movabsq $0x297473696c206863, %rcx # imm = 0x297473696C206863
movq %rcx, 0x3a(%rbx,%rax)
movabsq $0x68637573206f6e28, %rcx # imm = 0x68637573206F6E28
jmp 0x1e42
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x24c3
xorl %edx, %edx
movl %edx, %ecx
negl %ecx
cmpb $0x2d, %al
cmovnel %edx, %ecx
movl %ecx, %eax
negl %eax
cmovsl %ecx, %eax
cltq
cmpq %rax, 0x28(%r12)
jae 0x1e4d
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 0x1e9b
testl %ecx, %ecx
js 0x1e5f
movq (%r12), %rax
leaq 0x8(%rax), %r12
decl %ecx
jne 0x1e51
jmp 0x1e6d
addq $0x8, %r12
movq %r12, %rax
movq (%rax), %rax
incl %ecx
jne 0x1e66
movq 0x10(%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)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a50
testq %rax, %rax
je 0x1f18
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x3, %esi
jne 0x1f33
movq 0x20(%rbx), %rcx
movq 0x10(%rcx), %rsi
movq 0x8(%rax), %rdi
callq 0x2a50
testq %rax, %rax
je 0x1f40
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 0x1f63
movslq 0x30(%rbx), %rax
movups 0x317c(%rip), %xmm0     # 0x509f
movups %xmm0, 0x34(%rbx,%rax)
movb $0x29, 0x44(%rbx,%rax)
addl $0x11, 0x30(%rbx)
jmp 0x1f63
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x24c3
movslq 0x30(%rbx), %rax
movups 0x313e(%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_O3/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 0x2a50
testq %rax, %rax
je 0x21ed
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x3, %esi
jne 0x2211
movq 0x8(%rax), %rax
movl 0x38(%rax), %ecx
addl 0x18(%rax), %ecx
xorl %eax, %eax
testl %ecx, %ecx
jle 0x21b0
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
movl %ecx, %esi
imulq %rdx, %rsi
shrq $0x23, %rsi
leal (%rsi,%rsi), %edi
leal (%rdi,%rdi,4), %edi
movl %ecx, %r8d
subl %edi, %r8d
orb $0x30, %r8b
movb %r8b, 0x10(%rsp,%rax)
incq %rax
cmpl $0x9, %ecx
movl %esi, %ecx
ja 0x2168
movl %eax, %ecx
leaq (%rsp,%rcx), %rdx
addq $0xf, %rdx
xorl %ecx, %ecx
movb (%rdx), %sil
movb %sil, (%rsp,%rcx)
incq %rcx
decq %rdx
cmpl %ecx, %eax
jne 0x219d
movl %ecx, %eax
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)
jmp 0x2206
movslq 0x30(%rbx), %rax
movups 0x2ea7(%rip), %xmm0     # 0x509f
movups %xmm0, 0x34(%rbx,%rax)
movb $0x29, 0x44(%rbx,%rax)
addl $0x11, 0x30(%rbx)
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 0x24c3
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2a50
testq %rax, %rax
je 0x2271
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 0x229f
cmpl $0x2, %edx
je 0x2297
cmpl $0x1, %edx
jne 0x22ac
movw $0x676e, 0x4(%rcx)      # imm = 0x676E
movl $0x69727473, (%rcx)     # imm = 0x69727473
jmp 0x22b8
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
movl $0xb, %ecx
jmp 0x22bd
movl $0x7473696c, (%rcx)     # imm = 0x7473696C
jmp 0x22a5
movl $0x68736168, (%rcx)     # imm = 0x68736168
movl $0x4, %ecx
jmp 0x22bd
movw $0x2965, 0x4(%rcx)      # imm = 0x2965
movl $0x6e6f6e28, (%rcx)     # imm = 0x6E6F6E28
movl $0x6, %ecx
addl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2382
cmpq $0x2, %rax
jne 0x2382
movzbl 0x1(%r14), %eax
cmpl $0x6c, %eax
je 0x23a6
cmpl $0x73, %eax
jne 0x2382
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
leaq 0x2e2c(%rip), %rsi      # 0x5148
movq %r14, %rdi
callq 0x1170
movq %rax, %r15
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movl $0x100000, %edx         # imm = 0x100000
xorl %esi, %esi
callq 0x10d0
testq %r15, %r15
je 0x2426
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)
movl $0xd, %ecx
jmp 0x24b2
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 0x24b4
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x2d93(%rip), %rsi      # 0x5148
callq 0x1170
movq %rax, %r14
movq $0x0, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
movl $0x100000, %edx         # imm = 0x100000
xorl %esi, %esi
callq 0x10d0
testq %r14, %r14
je 0x248e
leaq 0x10(%rsp), %r15
movl $0x1, %esi
movl $0x100000, %edx         # imm = 0x100000
movq %r15, %rdi
movq %r14, %rcx
callq 0x11f0
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32e8
movq %r14, %rdi
callq 0x1130
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x4b4f2064616f6c28, %rdx # imm = 0x4B4F2064616F6C28
jmp 0x247d
movq (%rbx), %rdi
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x2eb0
movq %rax, %r12
leaq 0x2d05(%rip), %rsi      # 0x514a
movq %r14, %rdi
callq 0x1170
movq %rax, %r14
movl $0x1, %edx
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)
movl $0x9, %ecx
jmp 0x24b2
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
movl $0xb, %ecx
addl %ecx, (%rax)
addq $0x100018, %rsp         # imm = 0x100018
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x250e
cmpl $0x2, %esi
je 0x24f5
cmpl $0x1, %esi
jne 0x253d
movslq 0x30(%rdi), %rax
movups 0x2d0e(%rip), %xmm0     # 0x51eb
movups %xmm0, 0x3f(%rdi,%rax)
movaps 0x2cf7(%rip), %xmm0     # 0x51e0
movups %xmm0, 0x34(%rdi,%rax)
movl $0x1b, %eax
jmp 0x252f
movslq 0x30(%rdi), %rax
movups 0x2d09(%rip), %xmm0     # 0x5209
movups %xmm0, 0x3d(%rdi,%rax)
movaps 0x2cf4(%rip), %xmm0     # 0x5200
jmp 0x2525
movslq 0x30(%rdi), %rax
movups 0x2d10(%rip), %xmm0     # 0x5229
movups %xmm0, 0x3d(%rdi,%rax)
movaps 0x2cfb(%rip), %xmm0     # 0x5220
movups %xmm0, 0x34(%rdi,%rax)
movl $0x19, %eax
addl 0x30(%rdi), %eax
movl %eax, 0x30(%rdi)
cltq
movb $0x0, 0x34(%rdi,%rax)
retq
pushq %rax
leaq 0x2bac(%rip), %rdi      # 0x50f1
leaq 0x2ae1(%rip), %rsi      # 0x502d
leaq 0x2bca(%rip), %rcx      # 0x511d
movl $0x83, %edx
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2620
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 0x5c10(%rip), %rdi      # 0x81a8
callq 0x2a50
testq %rax, %rax
je 0x25e4
movq 0x8(%rax), %rax
movq %rax, (%r14)
movl 0x8(%rax), %ecx
testl %ecx, %ecx
jle 0x260c
cmpl %ecx, 0x18(%rbx)
je 0x2615
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)
movq $0x0, 0x28(%rbx)
jmp 0x2606
movq $0x0, 0x28(%rbx)
movslq 0x30(%rbx), %rax
movups 0x2bd6(%rip), %xmm0     # 0x51cd
movups %xmm0, (%r15,%rax)
movb $0x0, 0x10(%r15,%rax)
addl $0x11, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
jns 0x2615
negl %ecx
cmpl %ecx, 0x18(%rbx)
jl 0x25b5
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmpq *0x10(%rax)
leaq 0x2abb(%rip), %rdi      # 0x50e2
leaq 0x29ff(%rip), %rsi      # 0x502d
leaq 0x2abe(%rip), %rcx      # 0x50f3
movl $0x23a, %edx            # imm = 0x23A
callq 0x10f0
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
testl %r14d, %r14d
je 0x267a
xorl %r15d, %r15d
movl %eax, %ebp
shll $0x5, %ebp
addl %eax, %ebp
movsbl (%rbx,%r15), %edi
callq 0x11e0
addl %ebp, %eax
incq %r15
cmpl %r15d, %r14d
jne 0x265f
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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:
movl $0x1, %eax
cmpl $-0x1, 0x50(%rdi)
je 0x26d6
retq
movq 0x20(%rdi), %rcx
testq %rcx, %rcx
je 0x26f2
movq 0x18(%rdi), %rsi
xorl %eax, %eax
cmpq %rcx, %rsi
jb 0x26d5
addq %rsi, %rsi
jmp 0x26fc
movl $0x4, %esi
jmp 0x26fc
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2718
incq %r14
jmp 0x2728
movl $0x4, %eax
movq %rax, %r14
addq %rax, %rax
cmpq %rsi, %r14
jb 0x271d
movl $0x1, %eax
cmpl $-0x1, 0x50(%rbx)
jne 0x278a
cmpq %rsi, 0x18(%rbx)
ja 0x278a
cmpq 0x20(%rbx), %r14
je 0x278a
leaq -0x1(%r14), %r15
leaq (,%r14,8), %rdi
callq 0x3919
cmpq $0x0, 0x10(%rbx)
je 0x2774
movq %rax, 0x30(%rbx)
movq $0x0, 0x38(%rbx)
movq %r14, 0x40(%rbx)
movq %r15, 0x48(%rbx)
movl $0x0, 0x50(%rbx)
jmp 0x2788
movq %rax, 0x10(%rbx)
movq $0x0, 0x18(%rbx)
movq %r14, 0x20(%rbx)
movq %r15, 0x28(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictRehash(dict*, int)
int dictRehash(dict *d, int n)
{
	int empty_visits = n * 10;
	if (!dictIsRehashing(d))
		return 0;
	
	while (n-- && d->ht[0].used != 0) {
		dictEntry *de, *nextde;

		assert(d->ht[0].size > (unsigned long)d->rehashidx);
		while (d->ht[0].table[d->rehashidx] == NULL) {
			++d->rehashidx;
			if (--empty_visits == 0)
				return 1;
		}
		de = d->ht[0].table[d->rehashidx];
		while (de) {
			unsigned int h;
			nextde = de->next;

			h = dictHashKey(d, de->key) & d->ht[1].size_mask;
			de->next = d->ht[1].table[h];
			d->ht[1].table[h] = de;
			--d->ht[0].used;
			++d->ht[1].used;
			de = nextde;
		}
		d->ht[0].table[d->rehashidx] = NULL;
		++d->rehashidx;
	}
	if (d->ht[0].used == 0) {
		zfree(d->ht[0].table);
		d->ht[0] = d->ht[1];
		_dictReset(&d->ht[1]);
		d->rehashidx = -1;
		return 0;
	}

	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x50(%rdi), %edx
xorl %eax, %eax
cmpl $-0x1, %edx
je 0x28bc
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq 0x18(%rdi), %rcx
testl %esi, %esi
je 0x2877
leal (%r14,%r14), %eax
leal (%rax,%rax,4), %r12d
testq %rcx, %rcx
je 0x2881
movslq %edx, %rax
cmpq %rax, 0x20(%rbx)
jbe 0x28cb
leaq (,%rax,8), %rcx
addq (%r15), %rcx
decl %r14d
incl %eax
movl %r12d, %r12d
xorl %edx, %edx
movq (%rcx,%rdx,8), %r13
testq %r13, %r13
jne 0x281f
leal (%rax,%rdx), %esi
movl %esi, 0x50(%rbx)
incq %rdx
cmpl %edx, %r12d
jne 0x2803
jmp 0x28b7
subq %rdx, %r12
movq (%r13), %rdi
movq 0x10(%r13), %rbp
movq (%rbx), %rax
callq *(%rax)
andl 0x48(%rbx), %eax
movq 0x30(%rbx), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, 0x10(%r13)
movq %r13, (%rcx,%rax,8)
movq 0x18(%rbx), %rcx
decq %rcx
movq %rcx, 0x18(%rbx)
incq 0x38(%rbx)
movq %rbp, %r13
testq %rbp, %rbp
jne 0x2822
movq 0x10(%rbx), %rax
movslq 0x50(%rbx), %rdx
movq $0x0, (%rax,%rdx,8)
incl %edx
movl %edx, 0x50(%rbx)
testl %r14d, %r14d
jne 0x27d8
movl $0x1, %eax
testq %rcx, %rcx
jne 0x28bc
leaq 0x30(%rbx), %r14
movq 0x10(%rbx), %rdi
callq 0x39c7
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x10(%r14)
movl $0xffffffff, 0x50(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
jmp 0x28bc
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2968(%rip), %rdi      # 0x523a
leaq 0x298d(%rip), %rsi      # 0x5266
leaq 0x298f(%rip), %rcx      # 0x526f
movl $0xbb, %edx
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O3/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictAddRaw(dict*, void*)
dictEntry* dictAddRaw(dict *d, void *key)
{
	int index;
	dictht *ht;

	if (dictIsRehashing(d))
		_dictRehashStep(d);
	
	if ((index = _dictKeyIndex(d, key)) == -1)
		return NULL;
	
	ht = (dictIsRehashing(d)) ? &d->ht[1] : &d->ht[0];
	dictEntry *de = (dictEntry *)zmalloc(sizeof(struct dictEntry));
	de->next = ht->table[index];
	ht->table[index] = de;
	++ht->used;
	
	dictSetKey(d, de, key);
	
	return de;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpl $-0x1, 0x50(%rdi)
je 0x2915
cmpl $0x0, 0x54(%r14)
jne 0x2915
movq %r14, %rdi
movl $0x1, %esi
callq 0x27a1
movq %r14, %rdi
callq 0x26ca
movq (%r14), %rax
movq %rbx, %rdi
callq *(%rax)
movl %eax, 0x4(%rsp)
leaq 0x10(%r14), %r13
movb $0x1, %r15b
xorl %eax, %eax
shlq $0x5, %rax
movl 0x18(%r13,%rax), %r12d
andl 0x4(%rsp), %r12d
movq (%r13,%rax), %rax
movq (%rax,%r12,8), %rbp
testq %rbp, %rbp
je 0x297c
movq (%r14), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x2969
movq 0x8(%r14), %rdi
movq (%rbp), %rdx
movq %rbx, %rsi
callq *%rax
jmp 0x2972
xorl %eax, %eax
cmpq %rbx, (%rbp)
sete %al
testl %eax, %eax
jne 0x29ee
movq 0x10(%rbp), %rbp
jmp 0x2949
movl 0x50(%r14), %ecx
cmpl $-0x1, %ecx
setne %dl
movl $0x1, %eax
testb %dl, %r15b
movl $0x0, %r15d
jne 0x2932
cmpl $-0x1, %r12d
je 0x29ee
xorl %r15d, %r15d
cmpl $-0x1, %ecx
setne %r15b
shll $0x5, %r15d
movl $0x18, %edi
callq 0x38a8
movq %rax, %r13
movq 0x10(%r14,%r15), %rax
movslq %r12d, %rcx
movq (%rax,%rcx,8), %rdx
movq %rdx, 0x10(%r13)
movq %r13, (%rax,%rcx,8)
incq 0x18(%r14,%r15)
movq (%r14), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x29e8
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq *%rax
movq %rax, %rbx
movq %rbx, (%r13)
jmp 0x29f1
xorl %r13d, %r13d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictFind(dict*, void const*)
dictEntry *dictFind(dict *d, const void *key)
{
	dictEntry *de;
	unsigned int h, idx, table;
	
	if (d->ht[0].size == 0)
		return NULL;

	if (dictIsRehashing(d))
		_dictRehashStep(d);
	h = d->type->hashFunction(key);
	
	for (table = 0; table < 2; ++table) {
		idx = h & d->ht[table].size_mask;
		de = d->ht[table].table[idx];
		while (de) {
			if (dictCompareKeys(d, key, de->key)) {
				return de;
			}
			de = de->next;
		}
		if (!dictIsRehashing(d))
			break;
	}
	
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x20(%rdi)
je 0x2afa
movq %rsi, %rbx
movq %rdi, %r14
cmpl $-0x1, 0x50(%rdi)
je 0x2a86
cmpl $0x0, 0x54(%r14)
jne 0x2a86
movq %r14, %rdi
movl $0x1, %esi
callq 0x27a1
leaq 0x10(%r14), %r12
movq (%r14), %rax
movq %rbx, %rdi
callq *(%rax)
movl %eax, %ebp
movb $0x1, %r13b
xorl %eax, %eax
shlq $0x5, %rax
movl 0x18(%r12,%rax), %ecx
andl %ebp, %ecx
movq (%r12,%rax), %rax
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x2add
movq (%r14), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x2acb
movq 0x8(%r14), %rdi
movq (%r15), %rdx
movq %rbx, %rsi
callq *%rax
jmp 0x2ad3
xorl %eax, %eax
cmpq %rbx, (%r15)
sete %al
testl %eax, %eax
jne 0x2afd
movq 0x10(%r15), %r15
jmp 0x2aac
cmpl $-0x1, 0x50(%r14)
setne %cl
movl $0x1, %eax
xorl %r15d, %r15d
testb %r13b, %cl
movl $0x0, %r13d
jne 0x2a99
jmp 0x2afd
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq