LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2db2
callq 0x2d96
incq %rax
jmp 0x2db7
movl $0x1, %eax
movq 0x40(%r14), %r14
addq %rax, %rbx
testq %r14, %r14
jne 0x2d9f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x30fe
testq %rax, %rax
je 0x302f
movq %r12, %rdi
movq %r15, %rsi
callq 0x3216
movq (%rax), %r15
movq %r15, %rdi
callq 0x25ce
movq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2d48
movq %r15, %rdi
movq %r14, %rsi
callq 0x2442
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2c5e
movq %r12, %rax
jmp 0x308a
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 0x2e24
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x2bc0
movq %rax, %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x3216
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
movq %rbx, (%rax)
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3087
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 0x30ab
callq 0x2140
movq %rbx, %rdi
callq 0x2210
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2b5a
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 0xd5e(%rip), %rsi       # 0x4329
leaq 0xd5f(%rip), %rdx       # 0x4331
leaq 0x48(%rsp), %rdi
callq 0x3894
cmpl $0x2, %ebp
setge %r15b
jl 0x362c
movq 0x8(%rbx), %rsi
leaq 0x48(%rsp), %rdi
callq 0x2080
testl %eax, %eax
je 0x3629
movl %ebp, %r15d
movl $0x2, %ecx
leaq 0x48(%rsp), %r14
movq %rcx, %r13
cmpq %rcx, %r15
je 0x3620
movq (%rbx,%r13,8), %rsi
movq %r14, %rdi
callq 0x2080
leaq 0x1(%r13), %rcx
testl %eax, %eax
jne 0x3604
cmpq %r15, %r13
setb %r15b
jmp 0x362c
movb $0x1, %r15b
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x363b
callq 0x2140
movq 0x399e(%rip), %r14      # 0x6fe0
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r14,%rax)
jne 0x3731
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 0x369c
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 0x2e24
movq (%rsp), %rdx
leaq 0x68(%rsp), %rdi
movq %r13, %rsi
callq 0x2fc8
movq 0x3902(%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 0x370f
callq 0x2140
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x371e
callq 0x2140
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r14,%rax)
je 0x3664
leaq 0x70(%rsp), %rdi
callq 0x37fe
leaq 0x68(%rsp), %rdi
callq 0x2b62
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x3784
movq %rax, %r14
jmp 0x3775
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3775
callq 0x2140
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3784
callq 0x2140
leaq 0x70(%rsp), %rdi
callq 0x37fe
leaq 0x68(%rsp), %rdi
callq 0x2b62
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $0x2, %esi
setge %bpl
jl 0x37f3
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
movq 0x8(%rdx), %rsi
callq 0x2080
testl %eax, %eax
je 0x37f3
movl %r15d, %r15d
movl $0x2, %ecx
movq %rcx, %r12
cmpq %rcx, %r15
je 0x37ec
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
callq 0x2080
leaq 0x1(%r12), %rcx
testl %eax, %eax
jne 0x37cf
cmpq %r15, %r12
setb %bpl
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3884
testq %rax, %rax
je 0x14bc
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x14c0
movq $0x0, (%rax)
movq (%rbx), %rdx
movq %rdx, 0x8(%rax)
movq %rax, (%rdx)
movq %rax, (%rbx)
jmp 0x14cd
xorl %ebx, %ebx
jmp 0x14d4
movq %rax, 0x8(%rbx)
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
incq %rcx
movq %rcx, 0x28(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3884
testq %rax, %rax
je 0x151a
movq %r14, 0x10(%rax)
movq 0x28(%rbx), %rcx
testq %rcx, %rcx
je 0x151e
movq 0x8(%rbx), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, (%rax)
movq $0x0, 0x8(%rax)
jmp 0x1521
xorl %ebx, %ebx
jmp 0x152c
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_O1/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 0x3884
testq %rax, %rax
je 0x1577
movq %r15, 0x10(%rax)
testl %ebp, %ebp
je 0x157b
movq %r14, (%rax)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rax)
cmpq %r14, 0x8(%rbx)
jne 0x1590
leaq 0x8(%rbx), %rcx
jmp 0x158d
xorl %ebx, %ebx
jmp 0x15af
movq (%r14), %rcx
movq %rcx, (%rax)
movq %r14, 0x8(%rax)
movq %rbx, %rcx
cmpq %r14, (%rbx)
jne 0x1590
movq %rax, (%rcx)
cmpq $0x0, (%rax)
je 0x159d
movq (%r14), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, 0x8(%rax)
je 0x15ab
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_O1/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, %r15
movq %rdi, %r12
movl $0x10, %edi
callq 0x3884
movq %rax, %rbx
movl $0x0, 0x8(%rax)
movq (%r12), %r14
movq %r14, (%rax)
testq %r14, %r14
je 0x166f
xorl %eax, %eax
cmpl $0x0, 0x8(%rbx)
sete %al
movq (%r14,%rax,8), %rax
movq %rax, (%rbx)
movq 0x20(%r12), %rax
movq 0x10(%r14), %rdi
testq %rax, %rax
je 0x1665
movq %r15, %rsi
callq *%rax
testl %eax, %eax
je 0x166a
jmp 0x1672
cmpq %r15, %rdi
je 0x1672
movq (%rbx), %r14
jmp 0x1637
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x39a3
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1711
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %r15
testq %r15, %r15
je 0x16fe
movq (%rbx), %r14
movq 0x8(%r14), %r12
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x16eb
movq 0x10(%r14), %rdi
callq *%rax
decq %r15
movq %r14, %rdi
callq 0x39a3
movq %r12, %r14
testq %r15, %r15
jne 0x16d8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x39a3
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x174e
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_O1/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 0x2a6a
testq %rax, %rax
je 0x1a23
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x1, %esi
jne 0x1a51
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 0x1a49
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 0x24eb
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x2a6a
testq %rax, %rax
je 0x1aed
movq %rax, %r14
movq 0x8(%rax), %rdx
movl (%rdx), %ebp
cmpl $0x1, %ebp
jne 0x1b24
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rsi
xorl %edi, %edi
callq 0x3e6b
testl %eax, %eax
jne 0x1b2e
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x3ec0
movq (%rbx), %rdi
movq (%r14), %rsi
movq %rax, %rdx
callq 0x3c24
testl %eax, %eax
je 0x1b2e
leaq 0x361c(%rip), %rdi      # 0x50f1
leaq 0x3551(%rip), %rsi      # 0x502d
leaq 0x3556(%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 0x3ec0
movq %rax, %r15
movq %r14, %rdi
callq 0x3ec0
movq (%rbx), %rcx
movq (%rcx), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2ea7
jmp 0x1b33
movq %rbx, %rdi
movl %ebp, %esi
callq 0x24eb
cmpl $0x1, %ebp
jne 0x1b51
movslq 0x30(%rbx), %rax
movabsq $0x294b4f2074657328, %rcx # imm = 0x294B4F2074657328
movq %rcx, 0x34(%rbx,%rax)
movw $0xa, 0x3c(%rbx,%rax)
addl $0xa, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x20(%rdi), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x2a6a
testq %rax, %rax
je 0x1ba1
movq 0x8(%rax), %rdx
movl (%rdx), %ebp
cmpl $0x1, %ebp
jne 0x1b92
movq (%rax), %rsi
movq (%rbx), %rdi
callq 0x3c73
jmp 0x1b9c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x24eb
cmpl $0x1, %ebp
jne 0x1bbf
movslq 0x30(%rbx), %rax
movabsq $0x294b4f206c656428, %rcx # imm = 0x294B4F206C656428
movq %rcx, 0x34(%rbx,%rax)
movw $0xa, 0x3c(%rbx,%rax)
addl $0xa, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a6a
testq %rax, %rax
je 0x1c0e
movq 0x8(%rax), %r14
movl (%r14), %esi
cmpl $0x2, %esi
je 0x1c30
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x24eb
movq 0x8(%r14), %rdi
callq 0x3ec0
movq %rax, %r12
callq 0x3ee6
movq %rax, %r14
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2ea7
cmpl $0x3, 0x18(%rbx)
jl 0x1c68
movl $0x2, %r12d
movq 0x8(%r14), %r15
movq 0x20(%rbx), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rdi
callq 0x3ec0
movq %r15, %rdi
movq %rax, %rsi
callq 0x1480
incq %r12
movslq 0x18(%rbx), %rax
cmpq %rax, %r12
jl 0x1c3c
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_O1/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 0x2a6a
testq %rax, %rax
je 0x1d21
movq 0x8(%rax), %r14
movl (%r14), %esi
cmpl $0x2, %esi
je 0x1cca
movq %rbx, %rdi
callq 0x24eb
movq 0x8(%r14), %r14
cmpq $0x0, 0x28(%r14)
je 0x1d49
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 0x1d61
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_O1/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 0x2a6a
testq %rax, %rax
je 0x1dfa
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x2, %esi
jne 0x1e19
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 0x1e2c
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 0x1ddd
jmp 0x1e2e
movslq 0x30(%rbx), %rax
movabsq $0x297473696c206863, %rcx # imm = 0x297473696C206863
movq %rcx, 0x3a(%rbx,%rax)
movabsq $0x68637573206f6e28, %rcx # imm = 0x68637573206F6E28
jmp 0x1e64
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x24eb
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 0x1e6f
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 0x1ebd
testl %ecx, %ecx
js 0x1e81
movq (%r12), %rax
leaq 0x8(%rax), %r12
decl %ecx
jne 0x1e73
jmp 0x1e8f
addq $0x8, %r12
movq %r12, %rax
movq (%rax), %rax
incl %ecx
jne 0x1e88
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_O1/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 0x2a6a
testq %rax, %rax
je 0x1f3a
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x3, %esi
jne 0x1f55
movq 0x20(%rbx), %rcx
movq 0x10(%rcx), %rsi
movq 0x8(%rax), %rdi
callq 0x2a6a
testq %rax, %rax
je 0x1f62
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 0x1f85
movslq 0x30(%rbx), %rax
movups 0x315a(%rip), %xmm0     # 0x509f
movups %xmm0, 0x34(%rbx,%rax)
movb $0x29, 0x44(%rbx,%rax)
addl $0x11, 0x30(%rbx)
jmp 0x1f85
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x24eb
movslq 0x30(%rbx), %rax
movups 0x311c(%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_O1/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 0x2a6a
testq %rax, %rax
je 0x21d6
movq 0x8(%rax), %rax
movl (%rax), %esi
cmpl $0x3, %esi
jne 0x21f1
movq 0x8(%rax), %rax
movl 0x38(%rax), %ecx
addl 0x18(%rax), %ecx
xorl %eax, %eax
testl %ecx, %ecx
jle 0x21af
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 0x2186
testl %eax, %eax
je 0x2203
movl %eax, %ecx
leaq 0x10(%rsp), %rax
leaq (%rcx,%rax), %rdx
decq %rdx
xorl %eax, %eax
movb (%rdx), %sil
movb %sil, (%rsp,%rax)
incq %rax
decq %rdx
cmpl %eax, %ecx
jne 0x21c3
jmp 0x2205
movslq 0x30(%rbx), %rax
movups 0x2ebe(%rip), %xmm0     # 0x509f
movups %xmm0, 0x34(%rbx,%rax)
movb $0x29, 0x44(%rbx,%rax)
addl $0x11, 0x30(%rbx)
jmp 0x2240
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x24eb
xorl %eax, %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)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a6a
testq %rax, %rax
je 0x2299
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 0x22c7
cmpl $0x2, %edx
je 0x22bf
cmpl $0x1, %edx
jne 0x22d4
movw $0x676e, 0x4(%rcx)      # imm = 0x676E
movl $0x69727473, (%rcx)     # imm = 0x69727473
jmp 0x22e0
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 0x22e5
movl $0x7473696c, (%rcx)     # imm = 0x7473696C
jmp 0x22cd
movl $0x68736168, (%rcx)     # imm = 0x68736168
movl $0x4, %ecx
jmp 0x22e5
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_O1/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 0x23aa
cmpq $0x2, %rax
jne 0x23aa
movzbl 0x1(%r14), %eax
cmpl $0x6c, %eax
je 0x23ce
cmpl $0x73, %eax
jne 0x23aa
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
leaq 0x2e04(%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 0x244e
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 0x24da
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 0x24dc
movq 0x10(%r15), %rax
movq 0x8(%rax), %rdi
leaq 0x2d6b(%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 0x24b6
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 0x3324
movq %r14, %rdi
callq 0x1130
leaq 0x30(%rbx), %rax
movslq 0x30(%rbx), %rcx
movabsq $0x4b4f2064616f6c28, %rdx # imm = 0x4B4F2064616F6C28
jmp 0x24a5
movq (%rbx), %rdi
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x2eec
movq %rax, %r12
leaq 0x2cdd(%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 0x24da
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_O1/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 0x2536
cmpl $0x2, %esi
je 0x251d
cmpl $0x1, %esi
jne 0x2565
movslq 0x30(%rdi), %rax
movups 0x2ce6(%rip), %xmm0     # 0x51eb
movups %xmm0, 0x3f(%rdi,%rax)
movaps 0x2ccf(%rip), %xmm0     # 0x51e0
movups %xmm0, 0x34(%rdi,%rax)
movl $0x1b, %eax
jmp 0x2557
movslq 0x30(%rdi), %rax
movups 0x2ce1(%rip), %xmm0     # 0x5209
movups %xmm0, 0x3d(%rdi,%rax)
movaps 0x2ccc(%rip), %xmm0     # 0x5200
jmp 0x254d
movslq 0x30(%rdi), %rax
movups 0x2ce8(%rip), %xmm0     # 0x5229
movups %xmm0, 0x3d(%rdi,%rax)
movaps 0x2cd3(%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 0x2b84(%rip), %rdi      # 0x50f1
leaq 0x2ab9(%rip), %rsi      # 0x502d
leaq 0x2ba2(%rip), %rcx      # 0x511d
movl $0x83, %edx
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x264a
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 0x5be8(%rip), %rdi      # 0x81a8
callq 0x2a6a
testq %rax, %rax
je 0x2617
movq 0x8(%rax), %rax
movq %rax, (%r14)
movl 0x8(%rax), %ecx
testl %ecx, %ecx
jle 0x25dd
cmpl %ecx, 0x18(%rbx)
jne 0x25e8
testl %ecx, %ecx
jns 0x263f
negl %ecx
cmpl %ecx, 0x18(%rbx)
jge 0x263f
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 0x2639
movq $0x0, 0x28(%rbx)
movslq 0x30(%rbx), %rax
movups 0x2ba3(%rip), %xmm0     # 0x51cd
movups %xmm0, (%r15,%rax)
movb $0x0, 0x10(%r15,%rax)
addl $0x11, 0x30(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmpq *0x10(%rax)
leaq 0x2a91(%rip), %rdi      # 0x50e2
leaq 0x29d5(%rip), %rsi      # 0x502d
leaq 0x2a94(%rip), %rcx      # 0x50f3
movl $0x23a, %edx            # imm = 0x23A
callq 0x10f0
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/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 0x26a6
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 0x268b
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x26f0
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_O1/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 0x2702
retq
movq 0x20(%rdi), %rcx
testq %rcx, %rcx
je 0x271e
movq 0x18(%rdi), %rsi
xorl %eax, %eax
cmpq %rcx, %rsi
jb 0x2701
addq %rsi, %rsi
jmp 0x2728
movl $0x4, %esi
jmp 0x2728
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2744
incq %r14
jmp 0x2754
movl $0x4, %eax
movq %rax, %r14
addq %rax, %rax
cmpq %rsi, %r14
jb 0x2749
movl $0x1, %eax
cmpl $-0x1, 0x50(%rbx)
jne 0x27b6
cmpq %rsi, 0x18(%rbx)
ja 0x27b6
cmpq 0x20(%rbx), %r14
je 0x27b6
leaq -0x1(%r14), %r15
leaq (,%r14,8), %rdi
callq 0x38f5
cmpq $0x0, 0x10(%rbx)
je 0x27a0
movq %rax, 0x30(%rbx)
movq $0x0, 0x38(%rbx)
movq %r14, 0x40(%rbx)
movq %r15, 0x48(%rbx)
movl $0x0, 0x50(%rbx)
jmp 0x27b4
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_O1/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
cmpl $-0x1, 0x50(%rdi)
je 0x28d6
movl %esi, %r14d
movq %rdi, %rbx
leal (%r14,%r14), %eax
leal (%rax,%rax,4), %r15d
subl $0x1, %r14d
jb 0x289f
cmpq $0x0, 0x18(%rbx)
je 0x289f
movslq 0x50(%rbx), %rax
cmpq %rax, 0x20(%rbx)
jbe 0x28e7
movslq 0x50(%rbx), %rcx
leal 0x1(%rcx), %eax
shlq $0x3, %rcx
addq 0x10(%rbx), %rcx
movl %r15d, %r15d
xorl %edx, %edx
movq (%rcx,%rdx,8), %r12
testq %r12, %r12
jne 0x2843
leal (%rax,%rdx), %esi
movl %esi, 0x50(%rbx)
incq %rdx
cmpl %edx, %r15d
jne 0x2827
xorl %r15d, %r15d
jmp 0x288f
subq %rdx, %r15
movq %r12, %r13
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)
decq 0x18(%rbx)
incq 0x38(%rbx)
movq %rbp, %r13
testq %rbp, %rbp
jne 0x2849
movq 0x10(%rbx), %rax
movslq 0x50(%rbx), %rcx
movq $0x0, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x50(%rbx)
testq %r12, %r12
jne 0x27f0
movl $0x1, %eax
jmp 0x28d8
movl $0x1, %eax
cmpq $0x0, 0x18(%rbx)
jne 0x28d8
movq 0x10(%rbx), %rdi
callq 0x39a3
movups 0x30(%rbx), %xmm0
movups 0x40(%rbx), %xmm1
movups %xmm1, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x40(%rbx)
movl $0xffffffff, 0x50(%rbx) # imm = 0xFFFFFFFF
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x294c(%rip), %rdi      # 0x523a
leaq 0x2971(%rip), %rsi      # 0x5266
leaq 0x2973(%rip), %rcx      # 0x526f
movl $0xbb, %edx
callq 0x10f0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2931
cmpl $0x0, 0x54(%r14)
jne 0x2931
movq %r14, %rdi
movl $0x1, %esi
callq 0x27cd
movq %r14, %rdi
callq 0x26f6
movq (%r14), %rax
movq %rbx, %rdi
callq *(%rax)
movl %eax, 0x4(%rsp)
leaq 0x10(%r14), %r15
xorl %r13d, %r13d
movq %r13, %rax
shlq $0x5, %rax
movl 0x18(%r15,%rax), %r12d
andl 0x4(%rsp), %r12d
movq (%r15,%rax), %rax
movq (%rax,%r12,8), %rbp
testq %rbp, %rbp
je 0x2998
movq (%r14), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x2985
movq 0x8(%r14), %rdi
movq (%rbp), %rdx
movq %rbx, %rsi
callq *%rax
jmp 0x298e
xorl %eax, %eax
cmpq %rbx, (%rbp)
sete %al
testl %eax, %eax
jne 0x29a9
movq 0x10(%rbp), %rbp
jmp 0x2965
testq %r13, %r13
jne 0x29af
incq %r13
cmpl $-0x1, 0x50(%r14)
jne 0x294c
jmp 0x29af
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
cmpl $-0x1, %r12d
je 0x2a08
xorl %r13d, %r13d
cmpl $-0x1, 0x50(%r14)
setne %r13b
shll $0x5, %r13d
movl $0x18, %edi
callq 0x3884
movq %rax, %r15
movq 0x10(%r14,%r13), %rax
movslq %r12d, %rcx
movq (%rax,%rcx,8), %rdx
movq %rdx, 0x10(%r15)
movq %r15, (%rax,%rcx,8)
incq 0x18(%r14,%r13)
movq (%r14), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x2a03
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq *%rax
movq %rax, %rbx
movq %rbx, (%r15)
jmp 0x2a0b
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2b1b
movq %rsi, %rbx
movq %rdi, %r14
cmpl $-0x1, 0x50(%rdi)
je 0x2aa0
cmpl $0x0, 0x54(%r14)
jne 0x2aa0
movq %r14, %rdi
movl $0x1, %esi
callq 0x27cd
leaq 0x10(%r14), %r12
movq (%r14), %rax
movq %rbx, %rdi
callq *(%rax)
movl %eax, %ebp
movq $0x0, (%rsp)
xorl %r13d, %r13d
movq %r13, %rax
shlq $0x5, %rax
movl 0x18(%r12,%rax), %ecx
andl %ebp, %ecx
movq (%r12,%rax), %rax
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x2b00
movq (%r14), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x2aee
movq 0x8(%r14), %rdi
movq (%r15), %rdx
movq %rbx, %rsi
callq *%rax
jmp 0x2af6
xorl %eax, %eax
cmpq %rbx, (%r15)
sete %al
testl %eax, %eax
jne 0x2b15
movq 0x10(%r15), %r15
jmp 0x2acf
cmpl $-0x1, 0x50(%r14)
je 0x2b23
leaq 0x1(%r13), %rax
testq %r13, %r13
movq %rax, %r13
je 0x2ab9
jmp 0x2b23
movq %r15, (%rsp)
jmp 0x2b23
movq $0x0, (%rsp)
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/TTLIUJJ[P]acker_redis/dict.cpp
// Function: dictGetIterator(dict*)
dictIterator *dictGetIterator(dict *d)
{
	dictIterator * iter = (dictIterator *)zmalloc(sizeof(struct dictIterator));
	if (iter == NULL)
		return NULL;

	iter->d = d;
	iter->table = 0;
	iter->index = -1;
	iter->safe = 0;
	iter->entry = NULL;
	iter->nextEntry = NULL;

	return iter;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x28, %edi
callq 0x3884
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x2b7e
movq %rbx, (%rcx)
movl %eax, 0x10(%rcx)
movq $-0x1, 0x8(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x14(%rcx)
movl %eax, 0x24(%rcx)
movq %rcx, %rax
popq %rbx
retq