LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrieinp.c
// Function: trie_inplace_bucket_remove
static tommy_trie_inplace_node* trie_inplace_bucket_remove(tommy_uint_t shift, tommy_trie_inplace_node** let_ptr, tommy_trie_inplace_node* remove, tommy_key_t key)
{
	tommy_trie_inplace_node* node;
	int i;
	tommy_trie_inplace_node** leaf_let_ptr;
	tommy_trie_inplace_node* leaf;

	node = *let_ptr;
	while (node && node->key != key) {
		let_ptr = &node->map[(key >> shift) & TOMMY_TRIE_INPLACE_TREE_MASK];
		node = *let_ptr;
		shift -= TOMMY_TRIE_INPLACE_TREE_BIT;
	}

	if (!node)
		return 0;

	/* if the node to remove is not specified */
	if (!remove)
		remove = node; /* remove the first */

	tommy_trie_inplace_list_remove(let_ptr, remove);

	/* if not change in the node, nothing more to do */
	if (*let_ptr == node)
		return remove;

	/* if we have a substitute */
	if (*let_ptr != 0) {
		/* copy the child pointers to the new one */
		node = *let_ptr;
		for (i = 0; i < TOMMY_TRIE_INPLACE_TREE_MAX; ++i)
			node->map[i] = remove->map[i];

		return remove;
	}

	/* find a leaf */
	leaf_let_ptr = 0;
	leaf = remove;

	/* search backward, statistically we have more zeros than ones */
	i = TOMMY_TRIE_INPLACE_TREE_MAX - 1;
	while (i >= 0) {
		if (leaf->map[i]) {
			leaf_let_ptr = &leaf->map[i];
			leaf = *leaf_let_ptr;
			i = TOMMY_TRIE_INPLACE_TREE_MAX - 1;
			continue;
		}
		--i;
	}

	/* if it's itself a leaf */
	if (!leaf_let_ptr)
		return remove;

	/* remove the leaf */
	*leaf_let_ptr = 0;

	/* copy the child pointers */
	for (i = 0; i < TOMMY_TRIE_INPLACE_TREE_MAX; ++i)
		leaf->map[i] = remove->map[i];

	/* put it in place */
	*let_ptr = leaf;

	return remove;
}

// Assembly:
movq %rsi, %rax
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x2d06
cmpl %edx, 0x18(%rsi)
je 0x2cbc
movl $0x1a, %ecx
movl %edx, %edi
shrl %cl, %edi
movq %rsi, %r8
andl $0x3, %edi
movq 0x20(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
je 0x2d06
addl $-0x2, %ecx
cmpl %edx, 0x18(%rsi)
jne 0x2c98
addq $0x20, %r8
leaq (%r8,%rdi,8), %rdi
testq %rax, %rax
cmoveq %rsi, %rax
movq (%rax), %rcx
movq 0x8(%rax), %rdx
testq %rcx, %rcx
movq %rcx, %r8
cmoveq %rsi, %r8
movq %rdx, 0x8(%r8)
cmpq %rax, %rsi
cmoveq %rdi, %rdx
movq %rcx, (%rdx)
movq (%rdi), %rcx
cmpq %rsi, %rcx
je 0x2d05
testq %rcx, %rcx
je 0x2d09
movl $0x4, %edx
movq (%rax,%rdx,8), %rsi
movq %rsi, (%rcx,%rdx,8)
incq %rdx
cmpq $0x8, %rdx
jne 0x2cf4
retq
xorl %eax, %eax
retq
xorl %edx, %edx
movq %rax, %rcx
leaq 0x20(%rcx), %rsi
movl $0x3, %r8d
movl %r8d, %r8d
movq (%rsi,%r8,8), %r9
testq %r9, %r9
jne 0x2d2c
addl $-0x1, %r8d
jb 0x2d18
jmp 0x2d35
leaq (%rsi,%r8,8), %rdx
movq %r9, %rcx
jmp 0x2d0e
testq %rdx, %rdx
je 0x2d05
movq $0x0, (%rdx)
movl $0x4, %edx
movq (%rax,%rdx,8), %rsi
movq %rsi, (%rcx,%rdx,8)
incq %rdx
cmpq $0x8, %rdx
jne 0x2d46
movq %rcx, (%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrieinp.c
// Function: tommy_trie_inplace_remove_existing
void* tommy_trie_inplace_remove_existing(tommy_trie_inplace* trie_inplace, tommy_trie_inplace_node* node)
{
	tommy_trie_inplace_node* ret;
	tommy_key_t key = node->key;
	tommy_trie_inplace_node** let_ptr;

	let_ptr = &trie_inplace->bucket[key >> TOMMY_TRIE_INPLACE_BUCKET_SHIFT];

	ret = trie_inplace_bucket_remove(TOMMY_TRIE_INPLACE_BUCKET_SHIFT, let_ptr, node, key);

	/* the element removed must match the one passed */
	assert(ret == node);

	--trie_inplace->count;

	return ret->data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x18(%rsi), %edx
movl %edx, %eax
shrl $0x1a, %eax
leaq (%rdi,%rax,8), %rdi
callq 0x2c83
cmpq %r14, %rax
jne 0x2d8d
decl 0x200(%rbx)
movq 0x10(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1416(%rip), %rdi      # 0x41aa
leaq 0x146b(%rip), %rsi      # 0x4206
leaq 0x1475(%rip), %rcx      # 0x4217
movl $0xf3, %edx
callq 0x1050
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytrieinp.c
// Function: tommy_trie_inplace_bucket
tommy_trie_inplace_node* tommy_trie_inplace_bucket(tommy_trie_inplace* trie_inplace, tommy_key_t key)
{
	tommy_trie_inplace_node* node;
	tommy_uint_t shift;

	node = trie_inplace->bucket[key >> TOMMY_TRIE_INPLACE_BUCKET_SHIFT];
	shift = TOMMY_TRIE_INPLACE_BUCKET_SHIFT;

	while (node && node->key != key) {
		node = node->map[(key >> shift) & TOMMY_TRIE_INPLACE_TREE_MASK];
		shift -= TOMMY_TRIE_INPLACE_TREE_BIT;
	}

	return node;
}

// Assembly:
movl %esi, %eax
shrl $0x1a, %eax
movq (%rdi,%rax,8), %rax
testq %rax, %rax
je 0x2dd8
movl $0x1a, %ecx
cmpl %esi, 0x18(%rax)
je 0x2dda
movl %esi, %edx
shrl %cl, %edx
andl $0x3, %edx
addl $-0x2, %ecx
movq 0x20(%rax,%rdx,8), %rax
testq %rax, %rax
jne 0x2dbf
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashtbl.c
// Function: tommy_hashtable_init
void tommy_hashtable_init(tommy_hashtable* hashtable, tommy_count_t bucket_max)
{
	if (bucket_max < 16)
		bucket_max = 16;
	else
		bucket_max = tommy_roundup_pow2_u32(bucket_max);

	hashtable->bucket_max = bucket_max;
	hashtable->bucket_mask = hashtable->bucket_max - 1;

	/* initialize the vector using malloc()+memset() instead of calloc() */
	/* to ensure that all the memory in really allocated immediately */
	/* by the OS, and not deferred at later time. */
	/* this improves performance, because we start with a fully initialized hashtable. */
	hashtable->bucket = tommy_cast(tommy_hashtable_node**, tommy_malloc(hashtable->bucket_max * sizeof(tommy_hashtable_node*)));
	memset(hashtable->bucket, 0, hashtable->bucket_max * sizeof(tommy_hashtable_node*));

	hashtable->count = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x10, %eax
cmpl $0x10, %esi
jb 0x2e1a
decl %esi
movl %esi, %eax
shrl %eax
orl %esi, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x10, %eax
orl %ecx, %eax
incl %eax
movl %eax, 0x8(%rbx)
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
movl %eax, %esi
shlq $0x3, %rsi
movl $0x1, %edi
callq 0x1070
movq %rax, (%rbx)
movl $0x0, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashtbl.c
// Function: tommy_hashtable_insert
void tommy_hashtable_insert(tommy_hashtable* hashtable, tommy_hashtable_node* node, void* data, tommy_hash_t hash)
{
	tommy_count_t pos = hash & hashtable->bucket_mask;

	tommy_list_insert_tail(&hashtable->bucket[pos], node, data);

	node->key = hash;

	++hashtable->count;
}

// Assembly:
movl 0xc(%rdi), %eax
andl %ecx, %eax
movq (%rdi), %r9
movq (%r9,%rax,8), %r8
testq %r8, %r8
je 0x2e6a
movq 0x8(%r8), %rax
movq %rax, 0x8(%rsi)
movq %rsi, 0x8(%r8)
movq 0x8(%rsi), %rax
jmp 0x2e72
leaq (%r9,%rax,8), %rax
movq %rsi, 0x8(%rsi)
movq $0x0, (%rsi)
movq %rsi, (%rax)
movq %rdx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
incl 0x10(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashtbl.c
// Function: tommy_hashtable_remove_existing
void* tommy_hashtable_remove_existing(tommy_hashtable* hashtable, tommy_hashtable_node* node)
{
	tommy_count_t pos = node->key & hashtable->bucket_mask;

	tommy_list_remove_existing(&hashtable->bucket[pos], node);

	--hashtable->count;

	return node->data;
}

// Assembly:
movl 0xc(%rdi), %eax
andl 0x18(%rsi), %eax
movq (%rdi), %rcx
leaq (%rcx,%rax,8), %rax
movq (%rax), %rcx
movq (%rsi), %rdx
movq 0x8(%rsi), %r8
testq %rdx, %rdx
movq %rdx, %r9
cmoveq %rcx, %r9
movq %r8, 0x8(%r9)
cmpq %rsi, %rcx
cmoveq %rax, %r8
movq %rdx, (%r8)
decl 0x10(%rdi)
movq 0x10(%rsi), %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashtbl.c
// Function: tommy_hashtable_remove
void* tommy_hashtable_remove(tommy_hashtable* hashtable, tommy_search_func* cmp, const void* cmp_arg, tommy_hash_t hash)
{
	tommy_count_t pos = hash & hashtable->bucket_mask;
	tommy_hashtable_node* node = hashtable->bucket[pos];

	while (node) {
		/* we first check if the hash matches, as in the same bucket we may have multiples hash values */
		if (node->key == hash && cmp(cmp_arg, node->data) == 0) {
			tommy_list_remove_existing(&hashtable->bucket[pos], node);

			--hashtable->count;

			return node->data;
		}
		node = node->next;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0xc(%rdi), %r15d
andl %ecx, %r15d
movq (%rdi), %rax
movq (%rax,%r15,8), %r13
testq %r13, %r13
je 0x2f04
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
cmpl %ebp, 0x18(%r13)
jne 0x2efb
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq *%r12
testl %eax, %eax
je 0x2f08
movq (%r13), %r13
testq %r13, %r13
jne 0x2ee7
xorl %eax, %eax
jmp 0x2f39
movq (%rbx), %rax
leaq (%rax,%r15,8), %rax
movq (%rax), %rcx
movq (%r13), %rdx
movq 0x8(%r13), %rsi
testq %rdx, %rdx
movq %rdx, %rdi
cmoveq %rcx, %rdi
movq %rsi, 0x8(%rdi)
cmpq %r13, %rcx
cmoveq %rax, %rsi
movq %rdx, (%rsi)
decl 0x10(%rbx)
movq 0x10(%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/attractivechaos[P]udb2/tommyds/./tommyhashtbl.c
// Function: tommy_hashtable_foreach
void tommy_hashtable_foreach(tommy_hashtable* hashtable, tommy_foreach_func* func)
{
	tommy_count_t bucket_max = hashtable->bucket_max;
	tommy_hashtable_node** bucket = hashtable->bucket;
	tommy_count_t pos;

	for (pos = 0; pos < bucket_max; ++pos) {
		tommy_hashtable_node* node = bucket[pos];

		while (node) {
			void* data = node->data;
			node = node->next;
			func(data);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x8(%rdi), %r14d
testq %r14, %r14
je 0x2f85
movq %rsi, %rbx
movq (%rdi), %r15
xorl %r12d, %r12d
movq (%r15,%r12,8), %rax
testq %rax, %rax
je 0x2f7d
movq (%rax), %r13
movq 0x10(%rax), %rdi
callq *%rbx
movq %r13, %rax
testq %r13, %r13
jne 0x2f6c
incq %r12
cmpq %r14, %r12
jne 0x2f63
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashtbl.c
// Function: tommy_hashtable_foreach_arg
void tommy_hashtable_foreach_arg(tommy_hashtable* hashtable, tommy_foreach_arg_func* func, void* arg)
{
	tommy_count_t bucket_max = hashtable->bucket_max;
	tommy_hashtable_node** bucket = hashtable->bucket;
	tommy_count_t pos;

	for (pos = 0; pos < bucket_max; ++pos) {
		tommy_hashtable_node* node = bucket[pos];

		while (node) {
			void* data = node->data;
			node = node->next;
			func(arg, data);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x8(%rdi), %r15d
testq %r15, %r15
je 0x2fd5
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdi), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %rax
testq %rax, %rax
je 0x2fcd
movq (%rax), %rbp
movq 0x10(%rax), %rsi
movq %rbx, %rdi
callq *%r14
movq %rbp, %rax
testq %rbp, %rbp
jne 0x2fb8
incq %r13
cmpq %r15, %r13
jne 0x2faf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashdyn.c
// Function: tommy_hashdyn_insert
void tommy_hashdyn_insert(tommy_hashdyn* hashdyn, tommy_hashdyn_node* node, void* data, tommy_hash_t hash)
{
	tommy_count_t pos = hash & hashdyn->bucket_mask;

	tommy_list_insert_tail(&hashdyn->bucket[pos], node, data);

	node->key = hash;

	++hashdyn->count;

	hashdyn_grow_step(hashdyn);
}

// Assembly:
movl 0x10(%rdi), %eax
andl %ecx, %eax
movq (%rdi), %r9
movq (%r9,%rax,8), %r8
testq %r8, %r8
je 0x3041
movq 0x8(%r8), %rax
movq %rax, 0x8(%rsi)
movq %rsi, 0x8(%r8)
movq 0x8(%rsi), %rax
jmp 0x3049
leaq (%r9,%rax,8), %rax
movq %rsi, 0x8(%rsi)
movq $0x0, (%rsi)
movq %rsi, (%rax)
movq %rdx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl 0xc(%rdi), %eax
movl 0x14(%rdi), %ecx
incl %ecx
movl %ecx, 0x14(%rdi)
shrl %eax
cmpl %eax, %ecx
jae 0x306c
retq
movl 0x8(%rdi), %esi
incl %esi
jmp 0x3964
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashdyn.c
// Function: tommy_hashdyn_remove_existing
void* tommy_hashdyn_remove_existing(tommy_hashdyn* hashdyn, tommy_hashdyn_node* node)
{
	tommy_count_t pos = node->key & hashdyn->bucket_mask;

	tommy_list_remove_existing(&hashdyn->bucket[pos], node);

	--hashdyn->count;

	hashdyn_shrink_step(hashdyn);

	return node->data;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl 0x10(%rdi), %eax
andl 0x18(%rsi), %eax
movq (%rdi), %rcx
leaq (%rcx,%rax,8), %rax
movq (%rax), %rcx
movq (%rsi), %rdx
movq 0x8(%rsi), %rsi
testq %rdx, %rdx
movq %rdx, %r8
cmoveq %rcx, %r8
movq %rsi, 0x8(%r8)
cmpq %rbx, %rcx
cmoveq %rax, %rsi
movq %rdx, (%rsi)
movl 0xc(%rdi), %eax
movl 0x14(%rdi), %ecx
decl %ecx
movl %ecx, 0x14(%rdi)
shrl $0x3, %eax
cmpl %eax, %ecx
ja 0x30ca
movl 0x8(%rdi), %esi
cmpl $0x5, %esi
jb 0x30ca
decl %esi
callq 0x3964
movq 0x10(%rbx), %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashdyn.c
// Function: tommy_hashdyn_remove
void* tommy_hashdyn_remove(tommy_hashdyn* hashdyn, tommy_search_func* cmp, const void* cmp_arg, tommy_hash_t hash)
{
	tommy_count_t pos = hash & hashdyn->bucket_mask;
	tommy_hashdyn_node* node = hashdyn->bucket[pos];

	while (node) {
		/* we first check if the hash matches, as in the same bucket we may have multiples hash values */
		if (node->key == hash && cmp(cmp_arg, node->data) == 0) {
			tommy_list_remove_existing(&hashdyn->bucket[pos], node);

			--hashdyn->count;

			hashdyn_shrink_step(hashdyn);

			return node->data;
		}
		node = node->next;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x10(%rdi), %r15d
andl %ecx, %r15d
movq (%rdi), %rax
movq (%rax,%r15,8), %r13
testq %r13, %r13
je 0x3116
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
cmpl %ebp, 0x18(%r13)
jne 0x310d
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq *%r12
testl %eax, %eax
je 0x311a
movq (%r13), %r13
testq %r13, %r13
jne 0x30f9
xorl %eax, %eax
jmp 0x316c
movq (%rbx), %rax
leaq (%rax,%r15,8), %rax
movq (%rax), %rcx
movq (%r13), %rdx
movq 0x8(%r13), %rsi
testq %rdx, %rdx
movq %rdx, %rdi
cmoveq %rcx, %rdi
movq %rsi, 0x8(%rdi)
cmpq %r13, %rcx
cmoveq %rax, %rsi
movq %rdx, (%rsi)
movl 0xc(%rbx), %eax
movl 0x14(%rbx), %ecx
decl %ecx
movl %ecx, 0x14(%rbx)
shrl $0x3, %eax
cmpl %eax, %ecx
ja 0x3168
movl 0x8(%rbx), %esi
cmpl $0x5, %esi
jb 0x3168
decl %esi
movq %rbx, %rdi
callq 0x3964
movq 0x10(%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/attractivechaos[P]udb2/tommyds/./tommyhashdyn.c
// Function: tommy_hashdyn_foreach
void tommy_hashdyn_foreach(tommy_hashdyn* hashdyn, tommy_foreach_func* func)
{
	tommy_count_t bucket_max = hashdyn->bucket_max;
	tommy_hashdyn_node** bucket = hashdyn->bucket;
	tommy_count_t pos;

	for (pos = 0; pos < bucket_max; ++pos) {
		tommy_hashdyn_node* node = bucket[pos];

		while (node) {
			void* data = node->data;
			node = node->next;
			func(data);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0xc(%rdi), %r14d
testq %r14, %r14
je 0x31b8
movq %rsi, %rbx
movq (%rdi), %r15
xorl %r12d, %r12d
movq (%r15,%r12,8), %rax
testq %rax, %rax
je 0x31b0
movq (%rax), %r13
movq 0x10(%rax), %rdi
callq *%rbx
movq %r13, %rax
testq %r13, %r13
jne 0x319f
incq %r12
cmpq %r14, %r12
jne 0x3196
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashdyn.c
// Function: tommy_hashdyn_foreach_arg
void tommy_hashdyn_foreach_arg(tommy_hashdyn* hashdyn, tommy_foreach_arg_func* func, void* arg)
{
	tommy_count_t bucket_max = hashdyn->bucket_max;
	tommy_hashdyn_node** bucket = hashdyn->bucket;
	tommy_count_t pos;

	for (pos = 0; pos < bucket_max; ++pos) {
		tommy_hashdyn_node* node = bucket[pos];

		while (node) {
			void* data = node->data;
			node = node->next;
			func(arg, data);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0xc(%rdi), %r15d
testq %r15, %r15
je 0x3208
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdi), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %rax
testq %rax, %rax
je 0x3200
movq (%rax), %rbp
movq 0x10(%rax), %rsi
movq %rbx, %rdi
callq *%r14
movq %rbp, %rax
testq %rbp, %rbp
jne 0x31eb
incq %r13
cmpq %r15, %r13
jne 0x31e2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_init
void tommy_hashlin_init(tommy_hashlin* hashlin)
{
	tommy_uint_t i;

	/* fixed initial size */
	hashlin->bucket_bit = TOMMY_HASHLIN_BIT;
	hashlin->bucket_max = 1 << hashlin->bucket_bit;
	hashlin->bucket_mask = hashlin->bucket_max - 1;
	hashlin->bucket[0] = tommy_cast(tommy_hashlin_node**, tommy_calloc(hashlin->bucket_max, sizeof(tommy_hashlin_node*)));
	for (i = 1; i < TOMMY_HASHLIN_BIT; ++i)
		hashlin->bucket[i] = hashlin->bucket[0];

	/* stable state */
	tommy_hashlin_stable(hashlin);

	hashlin->count = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movabsq $0x4000000006, %rax     # imm = 0x4000000006
movq %rax, 0x100(%rdi)
movl $0x3f, 0x108(%rdi)
movl $0x40, %edi
movl $0x8, %esi
callq 0x1070
movq %rax, (%rbx)
xorl %ecx, %ecx
movdqa 0xe9f(%rip), %xmm0      # 0x4100
movdqa 0xea7(%rip), %xmm1      # 0x4110
movdqa 0xeaf(%rip), %xmm2      # 0x4120
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movq %rcx, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm0, %xmm4
pxor %xmm1, %xmm4
movdqa %xmm2, %xmm5
pcmpgtd %xmm4, %xmm5
pshufd $0xf5, %xmm4, %xmm4     # xmm4 = xmm4[1,1,3,3]
pcmpeqd %xmm3, %xmm4
pand %xmm5, %xmm4
movd %xmm4, %edx
testb $0x1, %dl
je 0x32ab
movq %rax, 0x8(%rbx,%rcx,8)
pextrw $0x4, %xmm4, %edx
testb $0x1, %dl
je 0x32ba
movq %rax, 0x10(%rbx,%rcx,8)
addq $0x2, %rcx
cmpq $0x6, %rcx
jne 0x3276
movl $0x0, 0x11c(%rbx)
movsd 0xe6a(%rip), %xmm0      # 0x4140
movups %xmm0, 0x10c(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_done
void tommy_hashlin_done(tommy_hashlin* hashlin)
{
	tommy_uint_t i;

	tommy_free(hashlin->bucket[0]);
	for (i = TOMMY_HASHLIN_BIT; i < hashlin->bucket_bit; ++i) {
		tommy_hashlin_node** segment = hashlin->bucket[i];
		tommy_free(&segment[((tommy_ptrdiff_t)1) << i]);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x1030
cmpl $0x7, 0x100(%rbx)
jb 0x3323
movl $0x6, %r14d
movl $0x1, %edi
movl %r14d, %ecx
shlq %cl, %rdi
shlq $0x3, %rdi
addq (%rbx,%r14,8), %rdi
callq 0x1030
incq %r14
movl 0x100(%rbx), %eax
cmpq %rax, %r14
jb 0x32fd
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_insert
void tommy_hashlin_insert(tommy_hashlin* hashlin, tommy_hashlin_node* node, void* data, tommy_hash_t hash)
{
	tommy_list_insert_tail(tommy_hashlin_bucket_ref(hashlin, hash), node, data);

	node->key = hash;

	++hashlin->count;

	hashlin_grow_step(hashlin);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl 0x110(%rdi), %edi
andl %ecx, %edi
movl 0x114(%rbx), %eax
cmpl %eax, %edi
jae 0x3350
movl 0x108(%rbx), %edi
andl %ecx, %edi
movl %edi, %r8d
orl $0x1, %edi
bsrl %edi, %edi
movq (%rbx,%rdi,8), %r9
movq (%r9,%r8,8), %rdi
testq %rdi, %rdi
je 0x3378
movq 0x8(%rdi), %r8
movq %r8, 0x8(%rsi)
movq %rsi, 0x8(%rdi)
movq 0x8(%rsi), %rdi
jmp 0x3380
leaq (%r9,%r8,8), %rdi
movq %rsi, 0x8(%rsi)
movq $0x0, (%rsi)
movq %rsi, (%rdi)
movq %rdx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl 0x118(%rbx), %ebp
movl 0x11c(%rbx), %edx
incl %ebp
movl %ebp, 0x118(%rbx)
cmpl $0x1, %edx
je 0x3422
movl 0x104(%rbx), %ecx
movl %ecx, %esi
shrl %esi
cmpl %esi, %ebp
jbe 0x34e9
testl %edx, %edx
jne 0x3418
movl %ecx, 0x10c(%rbx)
movl 0x108(%rbx), %eax
movl %eax, 0x110(%rbx)
leaq (,%rcx,8), %r14
movq %r14, %rdi
callq 0x1090
subq %r14, %rax
movl 0x100(%rbx), %ecx
movq %rax, (%rbx,%rcx,8)
incl %ecx
movl %ecx, 0x100(%rbx)
movl $0x1, %eax
shll %cl, %eax
movl %eax, 0x104(%rbx)
decl %eax
movl %eax, 0x108(%rbx)
movl $0x0, 0x114(%rbx)
xorl %eax, %eax
movl $0x1, 0x11c(%rbx)
addl %ebp, %ebp
movl 0x10c(%rbx), %ecx
leal (%rax,%rcx), %edx
cmpl %ebp, %edx
jae 0x34e9
movl %edx, %edx
xorl %esi, %esi
movl %eax, %edi
orl $0x1, %edi
bsrl %edi, %edi
movq (%rbx,%rdi,8), %rdi
movl %eax, %r8d
leaq (%rdi,%r8,8), %r8
movq %r8, (%rsp)
movl %edx, %edi
orl $0x1, %edi
bsrl %edi, %edi
movq (%rbx,%rdi,8), %rdi
leaq (%rdi,%rdx,8), %r9
movq %r9, 0x8(%rsp)
movq (%r8), %rdi
movq %rsi, (%r8)
movq %rsi, (%r9)
testq %rdi, %rdi
je 0x34b4
movq (%rdi), %r8
xorl %r9d, %r9d
testl %ecx, 0x18(%rdi)
setne %r9b
movq (%rsp,%r9,8), %r9
movq (%r9), %r10
testq %r10, %r10
je 0x349e
movq 0x8(%r10), %r9
movq %r9, 0x8(%rdi)
movq %rdi, 0x8(%r10)
movq 0x8(%rdi), %r9
jmp 0x34a2
movq %rdi, 0x8(%rdi)
movq $0x0, (%rdi)
movq %rdi, (%r9)
movq %r8, %rdi
testq %r8, %r8
jne 0x3473
incl %eax
cmpl %ecx, %eax
je 0x34cd
incq %rdx
cmpl %edx, %ebp
ja 0x3439
movl %eax, 0x114(%rbx)
jmp 0x34e9
xorl %eax, %eax
movl %eax, 0x11c(%rbx)
movq 0x104(%rbx), %rcx
movq %rcx, 0x10c(%rbx)
movl %eax, 0x114(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_remove_existing
void* tommy_hashlin_remove_existing(tommy_hashlin* hashlin, tommy_hashlin_node* node)
{
	tommy_list_remove_existing(tommy_hashlin_bucket_ref(hashlin, node->key), node);

	--hashlin->count;

	hashlin_shrink_step(hashlin);

	return node->data;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl 0x18(%rsi), %ecx
movl 0x110(%rdi), %eax
andl %ecx, %eax
cmpl 0x114(%rdi), %eax
jae 0x3511
andl 0x108(%rdi), %ecx
movl %ecx, %eax
movl %eax, %ecx
orl $0x1, %eax
bsrl %eax, %eax
movq (%rdi,%rax,8), %rax
leaq (%rax,%rcx,8), %rax
movq (%rax), %rcx
movq (%rbx), %rdx
movq 0x8(%rbx), %rsi
testq %rdx, %rdx
movq %rdx, %r8
cmoveq %rcx, %r8
movq %rsi, 0x8(%r8)
cmpq %rbx, %rcx
cmoveq %rax, %rsi
movq %rdx, (%rsi)
decl 0x118(%rdi)
callq 0x3554
movq 0x10(%rbx), %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_remove
void* tommy_hashlin_remove(tommy_hashlin* hashlin, tommy_search_func* cmp, const void* cmp_arg, tommy_hash_t hash)
{
	tommy_hashlin_node** let_ptr = tommy_hashlin_bucket_ref(hashlin, hash);
	tommy_hashlin_node* node = *let_ptr;

	while (node) {
		/* we first check if the hash matches, as in the same bucket we may have multiples hash values */
		if (node->key == hash && cmp(cmp_arg, node->data) == 0) {
			tommy_list_remove_existing(let_ptr, node);

			--hashlin->count;

			hashlin_shrink_step(hashlin);

			return node->data;
		}
		node = node->next;
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl 0x110(%rdi), %eax
andl %ecx, %eax
cmpl 0x114(%rdi), %eax
jae 0x36b3
movl 0x108(%rbx), %eax
andl %ebp, %eax
movl %eax, %ecx
orl $0x1, %eax
bsrl %eax, %eax
movq (%rbx,%rax,8), %rax
movq (%rax,%rcx,8), %r13
testq %r13, %r13
je 0x36f2
leaq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
xorl %r12d, %r12d
cmpl %ebp, 0x18(%r13)
jne 0x36e7
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq *%r15
testl %eax, %eax
je 0x36f7
movq (%r13), %r13
testq %r13, %r13
jne 0x36d3
jmp 0x3730
xorl %r12d, %r12d
jmp 0x3730
movq (%rsp), %rdi
movq (%rdi), %rax
movq (%r13), %rcx
movq 0x8(%r13), %rdx
testq %rcx, %rcx
movq %rcx, %rsi
cmoveq %rax, %rsi
movq %rdx, 0x8(%rsi)
cmpq %r13, %rax
cmoveq %rdi, %rdx
movq %rcx, (%rdx)
decl 0x118(%rbx)
movq %rbx, %rdi
callq 0x3554
movq 0x10(%r13), %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_foreach
void tommy_hashlin_foreach(tommy_hashlin* hashlin, tommy_foreach_func* func)
{
	tommy_count_t bucket_max;
	tommy_count_t pos;

	/* number of valid buckets */
	bucket_max = hashlin->low_max + hashlin->split;

	for (pos = 0; pos < bucket_max; ++pos) {
		tommy_hashlin_node* node = *tommy_hashlin_pos(hashlin, pos);

		while (node) {
			void* data = node->data;
			node = node->next;
			func(data);
		}
	}
}

// Assembly:
movl 0x114(%rdi), %eax
addl 0x10c(%rdi), %eax
je 0x379d
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl %eax, %r15d
xorl %r12d, %r12d
movl %r12d, %eax
orl $0x1, %eax
bsrl %eax, %eax
movq (%r14,%rax,8), %rax
movq (%rax,%r12,8), %rax
testq %rax, %rax
je 0x378c
movq (%rax), %r13
movq 0x10(%rax), %rdi
callq *%rbx
movq %r13, %rax
testq %r13, %r13
jne 0x377b
incq %r12
cmpq %r15, %r12
jne 0x3765
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommyhashlin.c
// Function: tommy_hashlin_foreach_arg
void tommy_hashlin_foreach_arg(tommy_hashlin* hashlin, tommy_foreach_arg_func* func, void* arg)
{
	tommy_count_t bucket_max;
	tommy_count_t pos;

	/* number of valid buckets */
	bucket_max = hashlin->low_max + hashlin->split;

	for (pos = 0; pos < bucket_max; ++pos) {
		tommy_hashlin_node* node = *tommy_hashlin_pos(hashlin, pos);

		while (node) {
			void* data = node->data;
			node = node->next;
			func(arg, data);
		}
	}
}

// Assembly:
movl 0x114(%rdi), %eax
addl 0x10c(%rdi), %eax
je 0x3807
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl %eax, %r12d
xorl %r13d, %r13d
movl %r13d, %eax
orl $0x1, %eax
bsrl %eax, %eax
movq (%r15,%rax,8), %rax
movq (%rax,%r13,8), %rax
testq %rax, %rax
je 0x37f1
movq (%rax), %rbp
movq 0x10(%rax), %rsi
movq %rbx, %rdi
callq *%r14
movq %rbp, %rax
testq %rbp, %rbp
jne 0x37dc
incq %r13
cmpq %r12, %r13
jne 0x37c6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/attractivechaos[P]udb2/tommyds/./tommytree.c
// Function: tommy_tree_balance
static tommy_tree_node* tommy_tree_balance(tommy_tree_node* root)
{
	int delta = tommy_tree_delta(root);

	if (delta < -1) {
		if (tommy_tree_delta(root->next) > 0)
			root->next = tommy_tree_rotate_right(root->next);
		return tommy_tree_rotate_left(root);
	}

	if (delta > 1) {
		if (tommy_tree_delta(root->prev) < 0)
			root->prev = tommy_tree_rotate_left(root->prev);
		return tommy_tree_rotate_right(root);
	}

	/* recompute key */
	root->key = 0;

	if (root->prev && root->prev->key > root->key)
		root->key = root->prev->key;

	if (root->next && root->next->key > root->key)
		root->key = root->next->key;

	/* count itself */
	root->key += 1;

	return root;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rbx), %r15
xorl %ecx, %ecx
movl $0x0, %eax
testq %r15, %r15
je 0x383c
movl 0x18(%r15), %eax
movq (%rbx), %r14
testq %r14, %r14
je 0x3848
movl 0x18(%r14), %ecx
subl %ecx, %eax
cmpl $-0x2, %eax
jg 0x389f
movq 0x8(%r14), %r12
xorl %eax, %eax
movl $0x0, %ecx
testq %r12, %r12
je 0x3864
movl 0x18(%r12), %ecx
movq (%r14), %rdx
testq %rdx, %rdx
je 0x386f
movl 0x18(%rdx), %eax
cmpl %eax, %ecx
jle 0x3896
movq (%r12), %rax
movq %rax, 0x8(%r14)
movq %r14, %rdi
callq 0x381d
movq %rax, (%r12)
movq %r12, %rdi
callq 0x381d
movq %rax, %r14
movq 0x8(%rax), %r12
leaq 0x8(%r14), %r15
movq %r12, (%rbx)
jmp 0x38ef
cmpl $0x2, %eax
jl 0x3902
movq 0x8(%r15), %rdx
xorl %eax, %eax
movl $0x0, %ecx
testq %rdx, %rdx
je 0x38b7
movl 0x18(%rdx), %ecx
movq (%r15), %r14
testq %r14, %r14
je 0x38c3
movl 0x18(%r14), %eax
cmpl %eax, %ecx
jge 0x38e8
movq 0x8(%r14), %rax
movq %rax, (%r15)
movq %r15, %rdi
callq 0x381d
movq %rax, 0x8(%r14)
movq %r14, %rdi
callq 0x381d
movq %rax, %r15
movq (%rax), %r14
movq %r14, 0x8(%rbx)
movq %r15, %r14
movq %rbx, %rdi
callq 0x381d
movq %rax, (%r15)
movq %r14, %rbx
jmp 0x3828
xorl %eax, %eax
movl $0x0, 0x18(%rbx)
testq %r15, %r15
je 0x391d
movl 0x18(%r15), %ecx
testl %ecx, %ecx
je 0x391d
movl %ecx, 0x18(%rbx)
movl %ecx, %eax
testq %r14, %r14
je 0x392f
movl 0x18(%r14), %ecx
cmpl %eax, %ecx
jbe 0x392f
movl %ecx, 0x18(%rbx)
movl %ecx, %eax
incl %eax
movl %eax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb_stat.c
// Function: prstat
static void prstat(MDB_stat *ms)
{
#if 0
	printf("  Page size: %u\n", ms->ms_psize);
#endif
	printf("  Tree depth: %u\n", ms->ms_depth);
	printf("  Branch pages: %"Z"u\n", ms->ms_branch_pages);
	printf("  Leaf pages: %"Z"u\n", ms->ms_leaf_pages);
	printf("  Overflow pages: %"Z"u\n", ms->ms_overflow_pages);
	printf("  Entries: %"Z"u\n", ms->ms_entries);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x4(%rdi), %esi
leaq 0xc332(%rip), %rdi      # 0xf289
xorl %eax, %eax
callq 0x2130
movq 0x8(%rbx), %rsi
leaq 0xc332(%rip), %rdi      # 0xf29b
xorl %eax, %eax
callq 0x2130
movq 0x10(%rbx), %rsi
leaq 0xc335(%rip), %rdi      # 0xf2b0
xorl %eax, %eax
callq 0x2130
movq 0x18(%rbx), %rsi
leaq 0xc336(%rip), %rdi      # 0xf2c3
xorl %eax, %eax
callq 0x2130
movq 0x20(%rbx), %rsi
leaq 0xc33b(%rip), %rdi      # 0xf2da
xorl %eax, %eax
popq %rbx
jmp 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_env_sync
int
mdb_env_sync(MDB_env *env, int force)
{
	int rc = 0;
	if (env->me_flags & MDB_RDONLY)
		return EACCES;
	if (force || !F_ISSET(env->me_flags, MDB_NOSYNC)) {
		if (env->me_flags & MDB_WRITEMAP) {
			int flags = ((env->me_flags & MDB_MAPASYNC) && !force)
				? MS_ASYNC : MS_SYNC;
			if (MDB_MSYNC(env->me_map, env->me_mapsize, flags))
				rc = ErrCode();
#ifdef _WIN32
			else if (flags == MS_SYNC && MDB_FDATASYNC(env->me_fd))
				rc = ErrCode();
#endif
		} else {
#ifdef BROKEN_FDATASYNC
			if (env->me_flags & MDB_FSYNCONLY) {
				if (fsync(env->me_fd))
					rc = ErrCode();
			} else
#endif
			if (MDB_FDATASYNC(env->me_fd))
				rc = ErrCode();
		}
	}
	return rc;
}

// Assembly:
pushq %rbx
movl 0xc(%rdi), %eax
movl $0xd, %ebx
btl $0x11, %eax
jb 0x30cf
testl %esi, %esi
sete %cl
movl %eax, %edx
shrl $0x10, %edx
andl $0x1, %edx
xorl %ebx, %ebx
testb %dl, %cl
jne 0x30cf
btl $0x13, %eax
jb 0x3096
btl $0x1b, %eax
movl (%rdi), %edi
jb 0x30bf
callq 0x2060
jmp 0x30c4
xorl %ecx, %ecx
btl $0x14, %eax
setae %cl
testl %esi, %esi
leal 0x1(%rcx,%rcx,2), %eax
movl $0x4, %edx
cmovel %eax, %edx
movq 0x38(%rdi), %rax
movq 0x70(%rdi), %rsi
movq %rax, %rdi
callq 0x2100
jmp 0x30c4
callq 0x22e0
testl %eax, %eax
je 0x30cf
callq 0x2050
movl (%rax), %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_cursor_shadow
static int
mdb_cursor_shadow(MDB_txn *src, MDB_txn *dst)
{
	MDB_cursor *mc, *bk;
	MDB_xcursor *mx;
	size_t size;
	int i;

	for (i = src->mt_numdbs; --i >= 0; ) {
		if ((mc = src->mt_cursors[i]) != NULL) {
			size = sizeof(MDB_cursor);
			if (mc->mc_xcursor)
				size += sizeof(MDB_xcursor);
			for (; mc; mc = bk->mc_next) {
				bk = malloc(size);
				if (!bk)
					return ENOMEM;
				*bk = *mc;
				mc->mc_backup = bk;
				mc->mc_db = &dst->mt_dbs[i];
				/* Kill pointers into src - and dst to reduce abuse: The
				 * user may not use mc until dst ends. Otherwise we'd...
				 */
				mc->mc_txn    = NULL;	/* ...set this to dst */
				mc->mc_dbflag = NULL;	/* ...and &dst->mt_dbflags[i] */
				if ((mx = mc->mc_xcursor) != NULL) {
					*(MDB_xcursor *)(bk+1) = *mx;
					mx->mx_cursor.mc_txn = NULL; /* ...and dst. */
				}
				mc->mc_next = dst->mt_cursors[i];
				dst->mt_cursors[i] = mc;
			}
		}
	}
	return MDB_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, (%rsp)
movslq 0x78(%rdi), %rcx
testq %rcx, %rcx
jle 0x37f5
movq %rsi, %rbx
leaq -0x1(%rcx), %r14
movq (%rsp), %rax
movq 0x68(%rax), %rax
movq %rcx, 0x8(%rsp)
movq -0x8(%rax,%rcx,8), %r15
testq %r15, %r15
je 0x37e6
cmpq $0x0, 0x10(%r15)
movl $0x378, %r12d           # imm = 0x378
movl $0x188, %eax            # imm = 0x188
cmoveq %rax, %r12
leaq (%r14,%r14,2), %rax
shlq $0x4, %rax
movq %rax, 0x10(%rsp)
movq %r12, %rdi
callq 0x2270
testq %rax, %rax
je 0x37f9
movq %rax, %r13
movl $0x188, %edx            # imm = 0x188
movq %rax, %rdi
movq %r15, %rsi
callq 0x2240
movq %r13, 0x8(%r15)
movq 0x58(%rbx), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x28(%r15)
xorl %eax, %eax
movq %rax, 0x18(%r15)
movq %rax, 0x38(%r15)
movq 0x10(%r15), %rbp
testq %rbp, %rbp
je 0x37ce
movq %r13, %rdi
addq $0x188, %rdi            # imm = 0x188
movl $0x1f0, %edx            # imm = 0x1F0
movq %rbp, %rsi
callq 0x2240
movq $0x0, 0x18(%rbp)
movq 0x68(%rbx), %rax
movq (%rax,%r14,8), %rcx
movq %rcx, (%r15)
movq %r15, (%rax,%r14,8)
movq (%r13), %r15
testq %r15, %r15
jne 0x3767
cmpq $0x1, 0x8(%rsp)
movq %r14, %rcx
jg 0x3727
xorl %eax, %eax
jmp 0x37fe
movl $0xc, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_txn_abort
void
mdb_txn_abort(MDB_txn *txn)
{
	if (txn == NULL)
		return;

	if (txn->mt_child)
		mdb_txn_abort(txn->mt_child);

	mdb_txn_end(txn, MDB_END_ABORT|MDB_END_SLOT|MDB_END_FREE);
}

// Assembly:
testq %rdi, %rdi
je 0x3acb
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3abd
callq 0x3aa6
movq %rbx, %rdi
movl $0x200022, %esi         # imm = 0x200022
popq %rbx
jmp 0x380d
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_cursors_close
static void
mdb_cursors_close(MDB_txn *txn, unsigned merge)
{
	MDB_cursor **cursors = txn->mt_cursors, *mc, *next, *bk;
	MDB_xcursor *mx;
	int i;

	for (i = txn->mt_numdbs; --i >= 0; ) {
		for (mc = cursors[i]; mc; mc = next) {
			next = mc->mc_next;
			if ((bk = mc->mc_backup) != NULL) {
				if (merge) {
					/* Commit changes to parent txn */
					mc->mc_next = bk->mc_next;
					mc->mc_backup = bk->mc_backup;
					mc->mc_txn = bk->mc_txn;
					mc->mc_db = bk->mc_db;
					mc->mc_dbflag = bk->mc_dbflag;
					if ((mx = mc->mc_xcursor) != NULL)
						mx->mx_cursor.mc_txn = bk->mc_txn;
				} else {
					/* Abort nested txn */
					*mc = *bk;
					if ((mx = mc->mc_xcursor) != NULL)
						*mx = *(MDB_xcursor *)(bk+1);
				}
				mc = bk;
			}
			/* Only malloced cursors are permanently tracked. */
			free(mc);
		}
		cursors[i] = NULL;
	}
}

// Assembly:
testl %esi, %esi
jle 0x40bd
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
movl %esi, %r13d
movq -0x8(%r14,%r13,8), %rbp
testq %rbp, %rbp
je 0x4096
movq %rbp, %r12
movq (%rbp), %rbp
movq 0x8(%r12), %r15
testq %r15, %r15
je 0x4059
testl %ebx, %ebx
je 0x405e
movups (%r15), %xmm0
movups %xmm0, (%r12)
movq 0x18(%r15), %rax
movq %rax, 0x18(%r12)
movq 0x28(%r15), %rcx
movq %rcx, 0x28(%r12)
movq 0x38(%r15), %rcx
movq %rcx, 0x38(%r12)
movq 0x10(%r12), %rcx
testq %rcx, %rcx
je 0x4089
movq %rax, 0x18(%rcx)
jmp 0x4089
movq %r12, %r15
jmp 0x4089
movl $0x188, %edx            # imm = 0x188
movq %r12, %rdi
movq %r15, %rsi
callq 0x2240
movq 0x10(%r12), %rdi
testq %rdi, %rdi
je 0x4089
leaq 0x188(%r15), %rsi
movl $0x1f0, %edx            # imm = 0x1F0
callq 0x2240
movq %r15, %rdi
callq 0x2030
jmp 0x4007
leaq -0x1(%r13), %rax
movq $0x0, (%r14,%rax,8)
cmpq $0x1, %r13
movq %rax, %r13
jg 0x4002
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_cursor_init
static void
mdb_cursor_init(MDB_cursor *mc, MDB_txn *txn, MDB_dbi dbi, MDB_xcursor *mx)
{
	mc->mc_next = NULL;
	mc->mc_backup = NULL;
	mc->mc_dbi = dbi;
	mc->mc_txn = txn;
	mc->mc_db = &txn->mt_dbs[dbi];
	mc->mc_dbx = &txn->mt_dbxs[dbi];
	mc->mc_dbflag = &txn->mt_dbflags[dbi];
	mc->mc_snum = 0;
	mc->mc_top = 0;
	mc->mc_pg[0] = 0;
	mc->mc_ki[0] = 0;
	mc->mc_flags = 0;
	if (txn->mt_dbs[dbi].md_flags & MDB_DUPSORT) {
		mdb_tassert(txn, mx != NULL);
		mc->mc_xcursor = mx;
		mdb_xcursor_init0(mc);
	} else {
		mc->mc_xcursor = NULL;
	}
	if (*mc->mc_dbflag & DB_STALE) {
		mdb_page_search(mc, NULL, MDB_PS_ROOTONLY);
	}
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movl %edx, 0x20(%rdi)
movq %rsi, 0x18(%rdi)
movl %edx, %eax
movq %rax, %r8
shlq $0x4, %r8
leaq (%r8,%r8,2), %r8
movq 0x58(%rsi), %r9
addq %r8, %r9
movq %r9, 0x28(%rdi)
movq 0x50(%rsi), %r9
addq %r8, %r9
movq %r9, 0x30(%rdi)
addq 0x70(%rsi), %rax
movq %rax, 0x38(%rdi)
movw $0x0, 0x148(%rdi)
movups %xmm0, 0x40(%rdi)
movq 0x58(%rsi), %r9
testb $0x4, 0x4(%r9,%r8)
jne 0x4119
movq $0x0, 0x10(%rdi)
jmp 0x418a
testq %rcx, %rcx
je 0x419c
movq %rcx, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
movq %rsi, 0x18(%rcx)
leaq 0x188(%rcx), %rsi
movq %rsi, 0x28(%rcx)
leaq 0x1b8(%rcx), %rsi
movq %rsi, 0x30(%rcx)
movl %edx, 0x20(%rcx)
leaq 0x1e8(%rcx), %rdx
movq %rdx, 0x38(%rcx)
movabsq $0x400000000, %rdx      # imm = 0x400000000
movq %rdx, 0x40(%rcx)
movups %xmm0, 0x1b8(%rcx)
movq 0x30(%rdi), %rdx
movq 0x18(%rdx), %rsi
movq %rsi, 0x1c8(%rcx)
movq %rax, 0x1d0(%rcx)
movq 0x20(%rdx), %rax
movq %rax, 0x1d8(%rcx)
movq 0x38(%rdi), %rax
testb $0x2, (%rax)
jne 0x4190
retq
xorl %esi, %esi
movl $0x2, %edx
jmp 0x9d28
pushq %rax
movq 0x20(%rsi), %rdi
leaq 0xba3d(%rip), %rsi      # 0xfbe5
leaq 0xba41(%rip), %rdx      # 0xfbf0
movl $0x1caf, %ecx           # imm = 0x1CAF
callq 0xbfbd
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_get
int
mdb_get(MDB_txn *txn, MDB_dbi dbi,
    MDB_val *key, MDB_val *data)
{
	MDB_cursor	mc;
	MDB_xcursor	mx;
	int exact = 0;
	DKBUF;

	DPRINTF(("===> get db %u key [%s]", dbi, DKEY(key)));

	if (!key || !data || !TXN_DBI_EXIST(txn, dbi, DB_USRVALID))
		return EINVAL;

	if (txn->mt_flags & MDB_TXN_BLOCKED)
		return MDB_BAD_TXN;

	mdb_cursor_init(&mc, txn, dbi, &mx);
	return mdb_cursor_set(&mc, key, data, MDB_SET, &exact);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x380, %rsp            # imm = 0x380
movl $0x0, 0x4(%rsp)
movl $0x16, %eax
testq %rdi, %rdi
je 0x5aac
movq %rdx, %r14
testq %rdx, %rdx
je 0x5aac
movq %rcx, %rbx
testq %rcx, %rcx
je 0x5aac
movl %esi, %edx
movq %rdi, %rsi
cmpl %edx, 0x78(%rdi)
jbe 0x5aac
movq 0x70(%rsi), %rcx
movl %edx, %edi
testb $0x10, (%rcx,%rdi)
je 0x5aac
movl $0xffff87c2, %eax       # imm = 0xFFFF87C2
testb $0x13, 0x7c(%rsi)
jne 0x5aac
leaq 0x8(%rsp), %r15
leaq 0x190(%rsp), %rcx
movq %r15, %rdi
callq 0x40be
leaq 0x4(%rsp), %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0xf, %ecx
callq 0x5ab9
addq $0x380, %rsp            # imm = 0x380
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_xcursor_init1
static void
mdb_xcursor_init1(MDB_cursor *mc, MDB_node *node)
{
	MDB_xcursor *mx = mc->mc_xcursor;

	if (node->mn_flags & F_SUBDATA) {
		memcpy(&mx->mx_db, NODEDATA(node), sizeof(MDB_db));
		mx->mx_cursor.mc_pg[0] = 0;
		mx->mx_cursor.mc_snum = 0;
		mx->mx_cursor.mc_top = 0;
		mx->mx_cursor.mc_flags = C_SUB;
	} else {
		MDB_page *fp = NODEDATA(node);
		mx->mx_db.md_pad = 0;
		mx->mx_db.md_flags = 0;
		mx->mx_db.md_depth = 1;
		mx->mx_db.md_branch_pages = 0;
		mx->mx_db.md_leaf_pages = 1;
		mx->mx_db.md_overflow_pages = 0;
		mx->mx_db.md_entries = NUMKEYS(fp);
		COPY_PGNO(mx->mx_db.md_root, fp->mp_pgno);
		mx->mx_cursor.mc_snum = 1;
		mx->mx_cursor.mc_top = 0;
		mx->mx_cursor.mc_flags = C_INITIALIZED|C_SUB;
		mx->mx_cursor.mc_pg[0] = fp;
		mx->mx_cursor.mc_ki[0] = 0;
		if (mc->mc_db->md_flags & MDB_DUPFIXED) {
			mx->mx_db.md_flags = MDB_DUPFIXED;
			mx->mx_db.md_pad = fp->mp_pad;
			if (mc->mc_db->md_flags & MDB_INTEGERDUP)
				mx->mx_db.md_flags |= MDB_INTEGERKEY;
		}
	}
	DPRINTF(("Sub-db -%u root page %"Z"u", mx->mx_cursor.mc_dbi,
		mx->mx_db.md_root));
	mx->mx_dbflag = DB_VALID|DB_USRVALID|DB_DIRTY; /* DB_DIRTY guides mdb_cursor_touch */
#if UINT_MAX < SIZE_MAX
	if (mx->mx_dbx.md_cmp == mdb_cmp_int && mx->mx_db.md_pad == sizeof(size_t))
		mx->mx_dbx.md_cmp = mdb_cmp_clong;
#endif
}

// Assembly:
movq 0x10(%rdi), %rax
testb $0x2, 0x4(%rsi)
jne 0x63ed
movzwl 0x6(%rsi), %ecx
addq %rsi, %rcx
addq $0x8, %rcx
movl $0x0, 0x188(%rax)
xorl %edx, %edx
movw %dx, 0x18c(%rax)
movw $0x1, 0x18e(%rax)
movq %rdx, 0x190(%rax)
movq $0x1, 0x198(%rax)
movq %rdx, 0x1a0(%rax)
movzwl 0xc(%rcx), %esi
addl $-0x10, %esi
shrl %esi
movq %rsi, 0x1a8(%rax)
movq (%rcx), %rsi
movq %rsi, 0x1b0(%rax)
movabsq $0x500000001, %rsi      # imm = 0x500000001
movq %rsi, 0x40(%rax)
movq %rcx, 0x48(%rax)
movw %dx, 0x148(%rax)
movq 0x28(%rdi), %rdx
testb $0x10, 0x4(%rdx)
je 0x642b
movw $0x10, 0x18c(%rax)
movzwl 0x8(%rcx), %ecx
movl %ecx, 0x188(%rax)
testb $0x20, 0x4(%rdx)
je 0x642b
movw $0x18, 0x18c(%rax)
jmp 0x642b
movzwl 0x6(%rsi), %ecx
movups 0x8(%rsi,%rcx), %xmm0
movups 0x18(%rsi,%rcx), %xmm1
movups 0x28(%rsi,%rcx), %xmm2
movups %xmm2, 0x1a8(%rax)
movups %xmm1, 0x198(%rax)
movups %xmm0, 0x188(%rax)
movq $0x0, 0x48(%rax)
movabsq $0x400000000, %rcx      # imm = 0x400000000
movq %rcx, 0x40(%rax)
movb $0x19, 0x1e8(%rax)
leaq -0x3410(%rip), %rcx     # 0x3029
cmpq %rcx, 0x1c8(%rax)
je 0x6443
retq
cmpl $0x8, 0x188(%rax)
jne 0x6442
leaq -0x3410(%rip), %rcx     # 0x3043
movq %rcx, 0x1c8(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_node_read
static int
mdb_node_read(MDB_txn *txn, MDB_node *leaf, MDB_val *data)
{
	MDB_page	*omp;		/* overflow page */
	pgno_t		 pgno;
	int rc;

	if (!F_ISSET(leaf->mn_flags, F_BIGDATA)) {
		data->mv_size = NODEDSZ(leaf);
		data->mv_data = NODEDATA(leaf);
		return MDB_SUCCESS;
	}

	/* Read overflow data.
	 */
	data->mv_size = NODEDSZ(leaf);
	memcpy(&pgno, NODEDATA(leaf), sizeof(pgno));
	if ((rc = mdb_page_get(txn, pgno, &omp, NULL)) != 0) {
		DPRINTF(("read overflow page %"Z"u failed", pgno));
		return rc;
	}
	data->mv_data = METADATA(omp);

	return MDB_SUCCESS;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movzwl 0x4(%rsi), %ecx
movl (%rsi), %eax
movq %rax, (%rdx)
movzwl 0x6(%rsi), %eax
addq %rsi, %rax
addq $0x8, %rax
testb $0x1, %cl
je 0x6498
movq (%rax), %rsi
leaq 0x8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x74c4
testl %eax, %eax
jne 0x649e
movq 0x8(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x8(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_cursor_first
static int
mdb_cursor_first(MDB_cursor *mc, MDB_val *key, MDB_val *data)
{
	int		 rc;
	MDB_node	*leaf;

	if (mc->mc_xcursor)
		mc->mc_xcursor->mx_cursor.mc_flags &= ~(C_INITIALIZED|C_EOF);

	if (!(mc->mc_flags & C_INITIALIZED) || mc->mc_top) {
		rc = mdb_page_search(mc, NULL, MDB_PS_FIRST);
		if (rc != MDB_SUCCESS)
			return rc;
	}
	mdb_cassert(mc, IS_LEAF(mc->mc_pg[mc->mc_top]));

	leaf = NODEPTR(mc->mc_pg[mc->mc_top], 0);
	mc->mc_flags |= C_INITIALIZED;
	mc->mc_flags &= ~C_EOF;

	mc->mc_ki[mc->mc_top] = 0;

	if (IS_LEAF2(mc->mc_pg[mc->mc_top])) {
		key->mv_size = mc->mc_db->md_pad;
		key->mv_data = LEAF2KEY(mc->mc_pg[mc->mc_top], 0, key->mv_size);
		return MDB_SUCCESS;
	}

	if (data) {
		if (F_ISSET(leaf->mn_flags, F_DUPDATA)) {
			mdb_xcursor_init1(mc, leaf);
			rc = mdb_cursor_first(&mc->mc_xcursor->mx_cursor, data, NULL);
			if (rc)
				return rc;
		} else {
			if ((rc = mdb_node_read(mc->mc_txn, leaf, data)) != MDB_SUCCESS)
				return rc;
		}
	}
	MDB_GET_KEY(leaf, key);
	return MDB_SUCCESS;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x64c2
andb $-0x4, 0x44(%rax)
testb $0x1, 0x44(%r12)
je 0x64d3
cmpw $0x0, 0x42(%r12)
je 0x64f2
movq %r12, %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0x9d28
testl %eax, %eax
jne 0x6590
movzwl 0x42(%r12), %eax
jmp 0x64f4
xorl %eax, %eax
movq 0x48(%r12,%rax,8), %r15
testb $0x2, 0xa(%r15)
je 0x659c
movzwl 0x10(%r15), %ecx
movl 0x44(%r12), %edx
andl $-0x4, %edx
incl %edx
movl %edx, 0x44(%r12)
movw $0x0, 0x148(%r12,%rax,2)
testb $0x20, 0xa(%r15)
jne 0x654b
addq %rcx, %r15
testq %r14, %r14
je 0x6579
testb $0x4, 0x4(%r15)
jne 0x655b
movq 0x18(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x645b
jmp 0x6575
addq $0x10, %r15
movq 0x28(%r12), %rax
movl (%rax), %eax
movq %rax, (%rbx)
jmp 0x658a
movq %r12, %rdi
movq %r15, %rsi
callq 0x633e
movq 0x10(%r12), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x64a4
testl %eax, %eax
jne 0x6590
testq %rbx, %rbx
je 0x658e
movzwl 0x6(%r15), %eax
movq %rax, (%rbx)
addq $0x8, %r15
movq %r15, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x18(%r12), %rax
movq 0x20(%rax), %rdi
leaq 0x9520(%rip), %rsi      # 0xfacc
leaq 0x9538(%rip), %rdx      # 0xfaeb
movl $0x1793, %ecx           # imm = 0x1793
callq 0xbfbd
// File: /workspace/github_cpp_makefile_star2_O3/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_cursor_last
static int
mdb_cursor_last(MDB_cursor *mc, MDB_val *key, MDB_val *data)
{
	int		 rc;
	MDB_node	*leaf;

	if (mc->mc_xcursor)
		mc->mc_xcursor->mx_cursor.mc_flags &= ~(C_INITIALIZED|C_EOF);

	if (!(mc->mc_flags & C_EOF)) {

		if (!(mc->mc_flags & C_INITIALIZED) || mc->mc_top) {
			rc = mdb_page_search(mc, NULL, MDB_PS_LAST);
			if (rc != MDB_SUCCESS)
				return rc;
		}
		mdb_cassert(mc, IS_LEAF(mc->mc_pg[mc->mc_top]));

	}
	mc->mc_ki[mc->mc_top] = NUMKEYS(mc->mc_pg[mc->mc_top]) - 1;
	mc->mc_flags |= C_INITIALIZED|C_EOF;
	leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]);

	if (IS_LEAF2(mc->mc_pg[mc->mc_top])) {
		key->mv_size = mc->mc_db->md_pad;
		key->mv_data = LEAF2KEY(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top], key->mv_size);
		return MDB_SUCCESS;
	}

	if (data) {
		if (F_ISSET(leaf->mn_flags, F_DUPDATA)) {
			mdb_xcursor_init1(mc, leaf);
			rc = mdb_cursor_last(&mc->mc_xcursor->mx_cursor, data, NULL);
			if (rc)
				return rc;
		} else {
			if ((rc = mdb_node_read(mc->mc_txn, leaf, data)) != MDB_SUCCESS)
				return rc;
		}
	}

	MDB_GET_KEY(leaf, key);
	return MDB_SUCCESS;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x6806
andb $-0x4, 0x44(%rax)
movl 0x44(%r15), %edx
testb $0x2, %dl
jne 0x683a
testb $0x1, %dl
je 0x681c
cmpw $0x0, 0x42(%r15)
je 0x6841
movq %r15, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0x9d28
testl %eax, %eax
jne 0x68f5
movzwl 0x42(%r15), %eax
jmp 0x6843
movzwl 0x42(%r15), %eax
jmp 0x6856
xorl %eax, %eax
movq 0x48(%r15,%rax,8), %rcx
testb $0x2, 0xa(%rcx)
je 0x6901
movl 0x44(%r15), %edx
movq 0x48(%r15,%rax,8), %rcx
movzwl 0xc(%rcx), %esi
addl $0x1fff0, %esi          # imm = 0x1FFF0
shrl %esi
decl %esi
movw %si, 0x148(%r15,%rax,2)
orl $0x3, %edx
movl %edx, 0x44(%r15)
movzwl %si, %r12d
testb $0x20, 0xa(%rcx)
jne 0x68aa
movzwl 0x10(%rcx,%r12,2), %r12d
addq %rcx, %r12
testq %r14, %r14
je 0x68dd
testb $0x4, 0x4(%r12)
jne 0x68c0
movq 0x18(%r15), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x645b
jmp 0x68d9
addq $0x10, %rcx
movq 0x28(%r15), %rax
movl (%rax), %eax
movq %rax, (%rbx)
imulq %rax, %r12
addq %rcx, %r12
jmp 0x68ef
movq %r15, %rdi
movq %r12, %rsi
callq 0x633e
movq 0x10(%r15), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x67e8
testl %eax, %eax
jne 0x68f5
testq %rbx, %rbx
je 0x68f3
movzwl 0x6(%r12), %eax
movq %rax, (%rbx)
addq $0x8, %r12
movq %r12, 0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x18(%r15), %rax
movq 0x20(%rax), %rdi
leaq 0x91bc(%rip), %rsi      # 0xfacc
leaq 0x9212(%rip), %rdx      # 0xfb29
movl $0x17c1, %ecx           # imm = 0x17C1
callq 0xbfbd