LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 0x31a3
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdi), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %rax
testq %rax, %rax
je 0x319b
movq (%rax), %rbp
movq 0x10(%rax), %rsi
movq %rbx, %rdi
callq *%r14
movq %rbp, %rax
testq %rbp, %rbp
jne 0x3186
incq %r13
cmpq %r15, %r13
jne 0x317d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xf04(%rip), %xmm0      # 0x4100
movdqa 0xf0c(%rip), %xmm1      # 0x4110
movdqa 0xf14(%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 0x3246
movq %rax, 0x8(%rbx,%rcx,8)
pextrw $0x4, %xmm4, %edx
testb $0x1, %dl
je 0x3255
movq %rax, 0x10(%rbx,%rcx,8)
addq $0x2, %rcx
cmpq $0x6, %rcx
jne 0x3211
movl $0x0, 0x11c(%rbx)
movsd 0xecf(%rip), %xmm0      # 0x4140
movups %xmm0, 0x10c(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x32be
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 0x3298
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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), %eax
andl %ecx, %eax
cmpl 0x114(%rdi), %eax
jae 0x32e9
movl 0x108(%rbx), %eax
andl %ecx, %eax
movl %eax, %edi
orl $0x1, %eax
bsrl %eax, %eax
movq (%rbx,%rax,8), %r8
movq (%r8,%rdi,8), %rax
testq %rax, %rax
je 0x3317
movq 0x8(%rax), %rdi
movq %rdi, 0x8(%rsi)
movq %rsi, 0x8(%rax)
movq $0x0, (%rsi)
movq 0x8(%rsi), %rax
jmp 0x3326
leaq (%r8,%rdi,8), %rax
movq %rsi, 0x8(%rsi)
movq $0x0, (%rsi)
movq %rsi, (%rax)
movq %rdx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
movl 0x118(%rbx), %ebp
movl 0x11c(%rbx), %eax
incl %ebp
movl %ebp, 0x118(%rbx)
cmpl $0x1, %eax
je 0x33bb
movl 0x104(%rbx), %ecx
movl %ecx, %edx
shrl %edx
cmpl %edx, %ebp
jbe 0x33bb
testl %eax, %eax
jne 0x33b1
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)
movl $0x1, 0x11c(%rbx)
cmpl $0x1, 0x11c(%rbx)
jne 0x349c
addl %ebp, %ebp
movl 0x10c(%rbx), %ecx
movl 0x114(%rbx), %eax
leal (%rax,%rcx), %edx
cmpl %ebp, %edx
jae 0x349c
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 0x3467
movq (%rdi), %r8
xorl %r9d, %r9d
testl %ecx, 0x18(%rdi)
setne %r9b
movq (%rsp,%r9,8), %r9
movq (%r9), %r10
testq %r10, %r10
je 0x3451
movq 0x8(%r10), %r9
movq %r9, 0x8(%rdi)
movq %rdi, 0x8(%r10)
movq $0x0, (%rdi)
movq 0x8(%rdi), %r9
jmp 0x345c
movq %rdi, 0x8(%rdi)
movq $0x0, (%rdi)
movq %rdi, (%r9)
movq %r8, %rdi
testq %r8, %r8
jne 0x341f
incl %eax
cmpl %ecx, %eax
je 0x3480
incq %rdx
cmpl %edx, %ebp
ja 0x33e5
movl %eax, 0x114(%rbx)
jmp 0x349c
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_O1/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 0x34c4
andl 0x108(%rdi), %ecx
movl %ecx, %eax
movl %eax, %ecx
orl $0x1, %eax
bsrl %eax, %eax
movq (%rdi,%rax,8), %rdx
movq (%rdx,%rcx,8), %rsi
movq (%rbx), %rax
movq 0x8(%rbx), %r8
testq %rax, %rax
movq %rax, %r9
cmoveq %rsi, %r9
movq %r8, 0x8(%r9)
cmpq %rbx, %rsi
je 0x34f4
movq 0x8(%rbx), %rcx
jmp 0x34f8
leaq (%rdx,%rcx,8), %rcx
movq %rax, (%rcx)
decl 0x118(%rdi)
callq 0x350c
movq 0x10(%rbx), %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3671
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 0x36b0
leaq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
xorl %r12d, %r12d
cmpl %ebp, 0x18(%r13)
jne 0x36a5
movq 0x10(%r13), %rsi
movq %r14, %rdi
callq *%r15
testl %eax, %eax
je 0x36b5
movq (%r13), %r13
testq %r13, %r13
jne 0x3691
jmp 0x36f0
xorl %r12d, %r12d
jmp 0x36f0
movq (%rsp), %rdi
movq (%rdi), %rcx
movq (%r13), %rax
movq 0x8(%r13), %rdx
testq %rax, %rax
movq %rax, %rsi
cmoveq %rcx, %rsi
movq %rdx, 0x8(%rsi)
cmpq %r13, %rcx
je 0x36db
movq 0x8(%r13), %rdi
movq %rax, (%rdi)
decl 0x118(%rbx)
movq %rbx, %rdi
callq 0x350c
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_O1/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 0x375d
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 0x374c
movq (%rax), %r13
movq 0x10(%rax), %rdi
callq *%rbx
movq %r13, %rax
testq %r13, %r13
jne 0x373b
incq %r12
cmpq %r15, %r12
jne 0x3725
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x37c7
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 0x37b1
movq (%rax), %rbp
movq 0x10(%rax), %rsi
movq %rbx, %rdi
callq *%r14
movq %rbp, %rax
testq %rbp, %rbp
jne 0x379c
incq %r13
cmpq %r12, %r13
jne 0x3786
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rbx), %rdi
xorl %edx, %edx
movl $0x0, %ecx
testq %rdi, %rdi
je 0x37f7
movl 0x18(%rdi), %ecx
movq (%rbx), %rax
testq %rax, %rax
je 0x3802
movl 0x18(%rax), %edx
subl %edx, %ecx
cmpl $-0x2, %ecx
jg 0x3864
movq 0x8(%rax), %r14
xorl %ecx, %ecx
movl $0x0, %edx
testq %r14, %r14
je 0x381d
movl 0x18(%r14), %edx
movq (%rax), %rsi
testq %rsi, %rsi
je 0x3828
movl 0x18(%rsi), %ecx
cmpl %ecx, %edx
jle 0x3849
movq (%r14), %rcx
movq %rcx, 0x8(%rax)
movq %rax, %rdi
callq 0x37dd
movq %rax, (%r14)
movq %r14, %rdi
callq 0x37dd
movq %rax, (%rbx)
movq (%rbx), %r14
movq 0x8(%r14), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x37dd
movq %rax, 0x8(%r14)
movq %r14, %rbx
jmp 0x37e4
cmpl $0x2, %ecx
jl 0x38c6
movq 0x8(%rdi), %rdx
xorl %eax, %eax
movl $0x0, %ecx
testq %rdx, %rdx
je 0x387c
movl 0x18(%rdx), %ecx
movq (%rdi), %r14
testq %r14, %r14
je 0x3888
movl 0x18(%r14), %eax
cmpl %eax, %ecx
jge 0x38a8
movq 0x8(%r14), %rax
movq %rax, (%rdi)
callq 0x37dd
movq %rax, 0x8(%r14)
movq %r14, %rdi
callq 0x37dd
movq %rax, 0x8(%rbx)
movq 0x8(%rbx), %r14
movq (%r14), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0x37dd
movq %rax, (%r14)
movq %r14, %rbx
jmp 0x37e4
movl $0x0, 0x18(%rbx)
testq %rdi, %rdi
je 0x38dc
movl 0x18(%rdi), %ecx
testl %ecx, %ecx
je 0x38dc
movl %ecx, 0x18(%rbx)
testq %rax, %rax
je 0x38ec
movl 0x18(%rax), %eax
cmpl 0x18(%rbx), %eax
jbe 0x38ec
movl %eax, 0x18(%rbx)
incl 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0xc322(%rip), %rdi      # 0xf289
xorl %eax, %eax
callq 0x2130
movq 0x8(%rbx), %rsi
leaq 0xc322(%rip), %rdi      # 0xf29b
xorl %eax, %eax
callq 0x2130
movq 0x10(%rbx), %rsi
leaq 0xc325(%rip), %rdi      # 0xf2b0
xorl %eax, %eax
callq 0x2130
movq 0x18(%rbx), %rsi
leaq 0xc326(%rip), %rdi      # 0xf2c3
xorl %eax, %eax
callq 0x2130
movq 0x20(%rbx), %rsi
leaq 0xc32b(%rip), %rdi      # 0xf2da
xorl %eax, %eax
popq %rbx
jmp 0x2130
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x30df
testl %esi, %esi
sete %cl
movl %eax, %edx
shrl $0x10, %edx
andl $0x1, %edx
xorl %ebx, %ebx
testb %dl, %cl
jne 0x30df
btl $0x13, %eax
jb 0x30a6
btl $0x1b, %eax
movl (%rdi), %edi
jb 0x30cf
callq 0x2060
jmp 0x30d4
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 0x30d4
callq 0x22e0
testl %eax, %eax
je 0x30df
callq 0x2050
movl (%rax), %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x386c
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 0x385d
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 0x3870
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 0x3845
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 0x37de
cmpq $0x1, 0x8(%rsp)
movq %r14, %rcx
jg 0x379e
xorl %eax, %eax
jmp 0x3875
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_O1/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 0x3b3e
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3b30
callq 0x3b19
movq %rbx, %rdi
movl $0x200022, %esi         # imm = 0x200022
popq %rbx
jmp 0x3884
retq
// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x78(%rdi), %r12
testq %r12, %r12
jle 0x4168
movl %esi, %ebx
movq 0x68(%rdi), %r13
movq -0x8(%r13,%r12,8), %rbp
testq %rbp, %rbp
je 0x414d
movq %rbp, %r15
movq (%rbp), %rbp
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x4111
testl %ebx, %ebx
je 0x4116
movq (%r14), %rax
movq %rax, (%r15)
movq 0x8(%r14), %rax
movq %rax, 0x8(%r15)
movq 0x18(%r14), %rax
movq %rax, 0x18(%r15)
movq 0x28(%r14), %rax
movq %rax, 0x28(%r15)
movq 0x38(%r14), %rax
movq %rax, 0x38(%r15)
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x4140
movq 0x18(%r14), %rcx
movq %rcx, 0x18(%rax)
jmp 0x4140
movq %r15, %r14
jmp 0x4140
movl $0x188, %edx            # imm = 0x188
movq %r15, %rdi
movq %r14, %rsi
callq 0x2240
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x4140
leaq 0x188(%r14), %rsi
movl $0x1f0, %edx            # imm = 0x1F0
callq 0x2240
movq %r14, %rdi
callq 0x2030
jmp 0x40bb
leaq -0x1(%r12), %rax
movq $0x0, (%r13,%rax,8)
cmpq $0x1, %r12
movq %rax, %r12
jg 0x40b6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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, %rdx
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rdx
movq 0x58(%rsi), %r8
addq %rdx, %r8
movq %r8, 0x28(%rdi)
movq 0x50(%rsi), %r8
addq %rdx, %r8
movq %r8, 0x30(%rdi)
addq 0x70(%rsi), %rax
movq %rax, 0x38(%rdi)
movw $0x0, 0x148(%rdi)
movups %xmm0, 0x40(%rdi)
movq 0x58(%rsi), %rax
testb $0x4, 0x4(%rax,%rdx)
jne 0x41d1
movq $0x0, 0x10(%rdi)
jmp 0x4249
testq %rcx, %rcx
je 0x425f
movq %rcx, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
movq 0x18(%rdi), %rdx
movq %rdx, 0x18(%rcx)
leaq 0x188(%rcx), %rdx
movq %rdx, 0x28(%rcx)
leaq 0x1b8(%rcx), %rdx
movq %rdx, 0x30(%rcx)
movl 0x20(%rdi), %edx
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 0x4253
retq
xorl %esi, %esi
movl $0x2, %edx
jmp 0xa112
pushq %rax
movq 0x20(%rsi), %rdi
leaq 0xb93a(%rip), %rsi      # 0xfba5
leaq 0xb93e(%rip), %rdx      # 0xfbb0
movl $0x1caf, %ecx           # imm = 0x1CAF
callq 0xc43e
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5cca
movq %rdx, %r14
testq %rdx, %rdx
je 0x5cca
movq %rcx, %rbx
testq %rcx, %rcx
je 0x5cca
movl %esi, %edx
movq %rdi, %rsi
cmpl %edx, 0x78(%rdi)
jbe 0x5cca
movq 0x70(%rsi), %rcx
movl %edx, %edi
testb $0x10, (%rcx,%rdi)
je 0x5cca
movl $0xffff87c2, %eax       # imm = 0xFFFF87C2
testb $0x13, 0x7c(%rsi)
jne 0x5cca
leaq 0x8(%rsp), %r15
leaq 0x190(%rsp), %rcx
movq %r15, %rdi
callq 0x4177
leaq 0x4(%rsp), %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0xf, %ecx
callq 0x5cd7
addq $0x380, %rsp            # imm = 0x380
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x6712
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 0x6750
movw $0x10, 0x18c(%rax)
movzwl 0x8(%rcx), %ecx
movl %ecx, 0x188(%rax)
testb $0x20, 0x4(%rdx)
je 0x6750
movw $0x18, 0x18c(%rax)
jmp 0x6750
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 -0x3725(%rip), %rcx     # 0x3039
cmpq %rcx, 0x1c8(%rax)
je 0x6768
retq
cmpl $0x8, 0x188(%rax)
jne 0x6767
leaq -0x3725(%rip), %rcx     # 0x3053
movq %rcx, 0x1c8(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x67bd
movq (%rax), %rsi
leaq 0x8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x789a
testl %eax, %eax
jne 0x67c3
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_O1/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 0x67e7
andb $-0x4, 0x44(%rax)
testb $0x1, 0x44(%r12)
je 0x67f8
cmpw $0x0, 0x42(%r12)
je 0x680f
movq %r12, %rdi
xorl %esi, %esi
movl $0x4, %edx
callq 0xa112
testl %eax, %eax
jne 0x68bb
movzwl 0x42(%r12), %eax
movq 0x48(%r12,%rax,8), %rax
testb $0x2, 0xa(%rax)
je 0x68c7
movzwl 0x42(%r12), %ecx
movq 0x48(%r12,%rcx,8), %r15
movzwl 0x10(%r15), %eax
movl 0x44(%r12), %edx
andl $-0x4, %edx
incl %edx
movl %edx, 0x44(%r12)
movw $0x0, 0x148(%r12,%rcx,2)
testb $0x20, 0xa(%r15)
jne 0x6876
addq %rax, %r15
testq %r14, %r14
je 0x68a4
testb $0x4, 0x4(%r15)
jne 0x6886
movq 0x18(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x6780
jmp 0x68a0
addq $0x10, %r15
movq 0x28(%r12), %rax
movl (%rax), %eax
movq %rax, (%rbx)
jmp 0x68b5
movq %r12, %rdi
movq %r15, %rsi
callq 0x6663
movq 0x10(%r12), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x67c9
testl %eax, %eax
jne 0x68bb
testq %rbx, %rbx
je 0x68b9
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 0x91b5(%rip), %rsi      # 0xfa8c
leaq 0x91cd(%rip), %rdx      # 0xfaab
movl $0x1793, %ecx           # imm = 0x1793
callq 0xc43e
// File: /workspace/github_cpp_makefile_star2_O1/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 0x6b31
andb $-0x4, 0x44(%rax)
movl 0x44(%r15), %eax
testb $0x2, %al
jne 0x6b70
testb $0x1, %al
je 0x6b45
cmpw $0x0, 0x42(%r15)
je 0x6b5c
movq %r15, %rdi
xorl %esi, %esi
movl $0x8, %edx
callq 0xa112
testl %eax, %eax
jne 0x6c12
movzwl 0x42(%r15), %eax
movq 0x48(%r15,%rax,8), %rax
testb $0x2, 0xa(%rax)
je 0x6c1e
movzwl 0x42(%r15), %ecx
movq 0x48(%r15,%rcx,8), %rax
movzwl 0xc(%rax), %edx
addl $0x1fff0, %edx          # imm = 0x1FFF0
shrl %edx
decl %edx
movw %dx, 0x148(%r15,%rcx,2)
orb $0x3, 0x44(%r15)
movzwl %dx, %r12d
testb $0x20, 0xa(%rax)
jne 0x6bc7
movzwl 0x10(%rax,%r12,2), %r12d
addq %rax, %r12
testq %r14, %r14
je 0x6bfa
testb $0x4, 0x4(%r12)
jne 0x6bdd
movq 0x18(%r15), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x6780
jmp 0x6bf6
addq $0x10, %rax
movq 0x28(%r15), %rcx
movl (%rcx), %ecx
movq %rcx, (%rbx)
imulq %rcx, %r12
addq %rax, %r12
jmp 0x6c0c
movq %r15, %rdi
movq %r12, %rsi
callq 0x6663
movq 0x10(%r15), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x6b13
testl %eax, %eax
jne 0x6c12
testq %rbx, %rbx
je 0x6c10
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 0x8e5f(%rip), %rsi      # 0xfa8c
leaq 0x8eb5(%rip), %rdx      # 0xfae9
movl $0x17c1, %ecx           # imm = 0x17C1
callq 0xc43e
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_page_new
static int
mdb_page_new(MDB_cursor *mc, uint32_t flags, int num, MDB_page **mp)
{
	MDB_page	*np;
	int rc;

	if ((rc = mdb_page_alloc(mc, num, &np)))
		return rc;
	DPRINTF(("allocated new mpage %"Z"u, page size %u",
	    np->mp_pgno, mc->mc_txn->mt_env->me_psize));
	np->mp_flags = flags | P_DIRTY;
	np->mp_lower = (PAGEHDRSZ-PAGEBASE);
	np->mp_upper = mc->mc_txn->mt_env->me_psize - PAGEBASE;

	if (IS_BRANCH(np))
		mc->mc_db->md_branch_pages++;
	else if (IS_LEAF(np))
		mc->mc_db->md_leaf_pages++;
	else if (IS_OVERFLOW(np)) {
		mc->mc_db->md_overflow_pages += num;
		np->mp_pages = num;
	}
	*mp = np;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
movq %rsp, %rdx
movl %ebp, %esi
callq 0x730f
testl %eax, %eax
jne 0x7119
orl $0x10, %r15d
movq (%rsp), %rax
movw %r15w, 0xa(%rax)
movw $0x10, 0xc(%rax)
movq 0x18(%r14), %rcx
movq 0x20(%rcx), %rcx
movzwl 0x10(%rcx), %ecx
movw %cx, 0xe(%rax)
testb $0x1, %r15b
jne 0x7102
movzwl %r15w, %ecx
testb $0x2, %cl
jne 0x710c
testb $0x4, %cl
je 0x7114
movslq %ebp, %rcx
movq 0x28(%r14), %rdx
addq %rcx, 0x18(%rdx)
movl %ebp, 0xc(%rax)
jmp 0x7114
movq 0x28(%r14), %rcx
incq 0x8(%rcx)
jmp 0x7114
movq 0x28(%r14), %rcx
incq 0x10(%rcx)
movq %rax, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_cursor_touch
static int
mdb_cursor_touch(MDB_cursor *mc)
{
	int rc = MDB_SUCCESS;

	if (mc->mc_dbi >= CORE_DBS && !(*mc->mc_dbflag & DB_DIRTY)) {
		MDB_cursor mc2;
		MDB_xcursor mcx;
		if (TXN_DBI_CHANGED(mc->mc_txn, mc->mc_dbi))
			return MDB_BAD_DBI;
		mdb_cursor_init(&mc2, mc->mc_txn, MAIN_DBI, &mcx);
		rc = mdb_page_search(&mc2, &mc->mc_dbx->md_name, MDB_PS_MODIFY);
		if (rc)
			 return rc;
		*mc->mc_dbflag |= DB_DIRTY;
	}
	mc->mc_top = 0;
	if (mc->mc_snum) {
		do {
			rc = mdb_page_touch(mc);
		} while (!rc && ++(mc->mc_top) < mc->mc_snum);
		mc->mc_top = mc->mc_snum-1;
	}
	return rc;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x378, %rsp            # imm = 0x378
movq %rdi, %rbx
movl 0x20(%rdi), %eax
xorl %ecx, %ecx
cmpq $0x2, %rax
jb 0x71ad
movq 0x38(%rbx), %rdx
testb $0x1, (%rdx)
jne 0x71ad
movq 0x18(%rbx), %rsi
movq 0x20(%rsi), %rcx
movq 0x60(%rsi), %rdx
movl (%rdx,%rax,4), %edx
movq 0x98(%rcx), %rcx
cmpl (%rcx,%rax,4), %edx
jne 0x7195
movq %rsp, %r14
leaq 0x188(%rsp), %rcx
movq %r14, %rdi
movl $0x1, %edx
callq 0x4177
movq 0x30(%rbx), %rsi
movq %r14, %rdi
movl $0x1, %edx
callq 0xa112
xorl %ecx, %ecx
testl %eax, %eax
je 0x71a0
xorl %edx, %edx
movl %eax, %ecx
jmp 0x71a9
xorl %ecx, %ecx
movl $0xffff87c4, %eax       # imm = 0xFFFF87C4
xorl %edx, %edx
jmp 0x71a9
movq 0x38(%rbx), %rax
orb $0x1, (%rax)
movb $0x1, %dl
testb %dl, %dl
je 0x71e1
movw $0x0, 0x42(%rbx)
cmpw $0x0, 0x40(%rbx)
movl %ecx, %eax
je 0x71e1
movq %rbx, %rdi
callq 0xa4f1
testl %eax, %eax
jne 0x71d8
movzwl 0x42(%rbx), %ecx
incl %ecx
movw %cx, 0x42(%rbx)
cmpw 0x40(%rbx), %cx
jb 0x71bc
movl 0x40(%rbx), %ecx
decl %ecx
movw %cx, 0x42(%rbx)
addq $0x378, %rsp            # imm = 0x378
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_node_del
static void
mdb_node_del(MDB_cursor *mc, int ksize)
{
	MDB_page *mp = mc->mc_pg[mc->mc_top];
	indx_t	indx = mc->mc_ki[mc->mc_top];
	unsigned int	 sz;
	indx_t		 i, j, numkeys, ptr;
	MDB_node	*node;
	char		*base;

	DPRINTF(("delete node %u on %s page %"Z"u", indx,
	    IS_LEAF(mp) ? "leaf" : "branch", mdb_dbg_pgno(mp)));
	numkeys = NUMKEYS(mp);
	mdb_cassert(mc, indx < numkeys);

	if (IS_LEAF2(mp)) {
		int x = numkeys - 1 - indx;
		base = LEAF2KEY(mp, indx, ksize);
		if (x)
			memmove(base, base + ksize, x * ksize);
		mp->mp_lower -= sizeof(indx_t);
		mp->mp_upper += ksize - sizeof(indx_t);
		return;
	}

	node = NODEPTR(mp, indx);
	sz = NODESIZE + node->mn_ksize;
	if (IS_LEAF(mp)) {
		if (F_ISSET(node->mn_flags, F_BIGDATA))
			sz += sizeof(pgno_t);
		else
			sz += NODEDSZ(node);
	}
	sz = EVEN(sz);

	ptr = mp->mp_ptrs[indx];
	for (i = j = 0; i < numkeys; i++) {
		if (i != indx) {
			mp->mp_ptrs[j] = mp->mp_ptrs[i];
			if (mp->mp_ptrs[i] < ptr)
				mp->mp_ptrs[j] += sz;
			j++;
		}
	}

	base = (char *)mp + mp->mp_upper + PAGEBASE;
	memmove(base + sz, base, ptr - mp->mp_upper);

	mp->mp_lower -= sizeof(indx_t);
	mp->mp_upper += sz;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movzwl 0x42(%rdi), %eax
movq 0x48(%rdi,%rax,8), %r14
movzwl 0x148(%rdi,%rax,2), %ecx
movzwl 0xc(%r14), %eax
addl $0x1fff0, %eax          # imm = 0x1FFF0
shrl %eax
movzwl %ax, %eax
cmpl %ecx, %eax
jbe 0x787a
movzwl 0xa(%r14), %edi
testb $0x20, %dil
jne 0x77c7
movzwl 0x10(%r14,%rcx,2), %edx
movzwl 0x6(%r14,%rdx), %esi
leal 0x8(%rsi), %ebx
testb $0x2, %dil
je 0x7810
testb $0x1, 0x4(%r14,%rdx)
jne 0x780b
addl (%r14,%rdx), %ebx
jmp 0x7810
movl %esi, %ebx
movl %ecx, %edx
notl %edx
addl %edx, %eax
je 0x77f6
movslq %ebx, %rdx
imulq %rdx, %rcx
leaq (%r14,%rcx), %rsi
leaq (%r14,%rcx), %rdi
addq $0x10, %rdi
addq %rdx, %rsi
addq $0x10, %rsi
imull %ebx, %eax
movslq %eax, %rdx
callq 0x22d0
addw $-0x2, 0xc(%r14)
addw 0xe(%r14), %bx
addl $-0x2, %ebx
movw %bx, 0xe(%r14)
jmp 0x7872
addl $0x10, %esi
movl %esi, %ebx
incl %ebx
andl $-0x2, %ebx
movl %ecx, %ecx
cmpl $0x1, %eax
adcl $0x0, %eax
xorl %esi, %esi
xorl %edi, %edi
cmpq %rsi, %rcx
je 0x7849
movzwl 0x10(%r14,%rsi,2), %r8d
movzwl %di, %r9d
movw %r8w, 0x10(%r14,%r9,2)
cmpw %dx, 0x10(%r14,%rsi,2)
jae 0x7847
addl %ebx, %r8d
movw %r8w, 0x10(%r14,%r9,2)
incl %edi
incq %rsi
cmpq %rsi, %rax
jne 0x7821
movzwl 0xe(%r14), %eax
leaq (%r14,%rax), %rsi
movl %ebx, %edi
addq %rsi, %rdi
subq %rax, %rdx
callq 0x22d0
addw $-0x2, 0xc(%r14)
addw %bx, 0xe(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x18(%rdi), %rax
movq 0x20(%rax), %rdi
leaq 0x8300(%rip), %rsi      # 0xfb89
leaq 0x8308(%rip), %rdx      # 0xfb98
movl $0x1bfc, %ecx           # imm = 0x1BFC
callq 0xc43e
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_page_get
static int
mdb_page_get(MDB_txn *txn, pgno_t pgno, MDB_page **ret, int *lvl)
{
	MDB_env *env = txn->mt_env;
	MDB_page *p = NULL;
	int level;

	if (! (txn->mt_flags & (MDB_TXN_RDONLY|MDB_TXN_WRITEMAP))) {
		MDB_txn *tx2 = txn;
		level = 1;
		do {
			MDB_ID2L dl = tx2->mt_u.dirty_list;
			unsigned x;
			/* Spilled pages were dirtied in this txn and flushed
			 * because the dirty list got full. Bring this page
			 * back in from the map (but don't unspill it here,
			 * leave that unless page_touch happens again).
			 */
			if (tx2->mt_spill_pgs) {
				MDB_ID pn = pgno << 1;
				x = mdb_midl_search(tx2->mt_spill_pgs, pn);
				if (x <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[x] == pn) {
					p = (MDB_page *)(env->me_map + env->me_psize * pgno);
					goto done;
				}
			}
			if (dl[0].mid) {
				unsigned x = mdb_mid2l_search(dl, pgno);
				if (x <= dl[0].mid && dl[x].mid == pgno) {
					p = dl[x].mptr;
					goto done;
				}
			}
			level++;
		} while ((tx2 = tx2->mt_parent) != NULL);
	}

	if (pgno < txn->mt_next_pgno) {
		level = 0;
		p = (MDB_page *)(env->me_map + env->me_psize * pgno);
	} else {
		DPRINTF(("page %"Z"u not found", pgno));
		txn->mt_flags |= MDB_TXN_ERROR;
		return MDB_PAGE_NOTFOUND;
	}

done:
	*ret = p;
	if (lvl)
		*lvl = level;
	return MDB_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq 0x20(%rdi), %rax
movq %rax, 0x8(%rsp)
testb $0xa, 0x7e(%rdi)
je 0x78e6
cmpq %r15, 0x10(%rdi)
jbe 0x78d8
movq 0x8(%rsp), %rax
movl 0x10(%rax), %r14d
imulq %r15, %r14
addq 0x38(%rax), %r14
xorl %ebx, %ebx
jmp 0x79bd
orb $0x2, 0x7c(%rdi)
movl $0xffff87b3, %eax       # imm = 0xFFFF87B3
jmp 0x79c9
movq %rdx, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
leaq (%r15,%r15), %r13
movl $0x1, %ebx
xorl %r14d, %r14d
movq %rdi, 0x10(%rsp)
movq %rdi, %r12
movq 0x40(%r12), %rdi
movq 0x48(%r12), %rbp
testq %rdi, %rdi
je 0x794d
movq %r13, %rsi
callq 0xbeac
movl %eax, %edx
movq 0x40(%r12), %rsi
xorl %edi, %edi
movb $0x1, %al
cmpq %rdx, (%rsi)
jb 0x7949
cmpq %r13, (%rsi,%rdx,8)
jne 0x7949
movq 0x8(%rsp), %rax
movl 0x10(%rax), %r14d
imulq %r15, %r14
addq 0x38(%rax), %r14
movl $0x4, %edi
xorl %eax, %eax
testb %al, %al
je 0x798c
cmpq $0x0, (%rbp)
je 0x7988
movq %rbp, %rdi
movq %r15, %rsi
callq 0xc310
movl %eax, %edx
xorl %edi, %edi
movb $0x1, %al
cmpq %rdx, (%rbp)
jb 0x7984
shlq $0x4, %rdx
cmpq %r15, (%rbp,%rdx)
jne 0x7984
addq %rdx, %rbp
movq 0x8(%rbp), %r14
movl $0x4, %edi
xorl %eax, %eax
testb %al, %al
je 0x798c
incl %ebx
xorl %edi, %edi
testl %edi, %edi
jne 0x799f
movq (%r12), %r12
testq %r12, %r12
jne 0x7904
xorl %edi, %edi
cmpl $0x4, %edi
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rdx
je 0x79bd
testl %edi, %edi
movq 0x10(%rsp), %rdi
je 0x78ba
jmp 0x79c9
movq %r14, (%rdx)
xorl %eax, %eax
testq %rcx, %rcx
je 0x79c9
movl %ebx, (%rcx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_page_unspill
static int
mdb_page_unspill(MDB_txn *txn, MDB_page *mp, MDB_page **ret)
{
	MDB_env *env = txn->mt_env;
	const MDB_txn *tx2;
	unsigned x;
	pgno_t pgno = mp->mp_pgno, pn = pgno << 1;

	for (tx2 = txn; tx2; tx2=tx2->mt_parent) {
		if (!tx2->mt_spill_pgs)
			continue;
		x = mdb_midl_search(tx2->mt_spill_pgs, pn);
		if (x <= tx2->mt_spill_pgs[0] && tx2->mt_spill_pgs[x] == pn) {
			MDB_page *np;
			int num;
			if (txn->mt_dirty_room == 0)
				return MDB_TXN_FULL;
			if (IS_OVERFLOW(mp))
				num = mp->mp_pages;
			else
				num = 1;
			if (env->me_flags & MDB_WRITEMAP) {
				np = mp;
			} else {
				np = mdb_page_malloc(txn, num);
				if (!np)
					return ENOMEM;
				if (num > 1)
					memcpy(np, mp, num * env->me_psize);
				else
					mdb_page_copy(np, mp, env->me_psize);
			}
			if (tx2 == txn) {
				/* If in current txn, this page is no longer spilled.
				 * If it happens to be the last page, truncate the spill list.
				 * Otherwise mark it as deleted by setting the LSB.
				 */
				if (x == txn->mt_spill_pgs[0])
					txn->mt_spill_pgs[0]--;
				else
					txn->mt_spill_pgs[x] |= 1;
			}	/* otherwise, if belonging to a parent txn, the
				 * page remains spilled until child commits
				 */

			mdb_page_dirty(txn, np);
			np->mp_flags |= P_DIRTY;
			*ret = np;
			break;
		}
	}
	return MDB_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x7a31
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x20(%rdi), %rax
movq %rax, 0x10(%rsp)
movq (%rsi), %r12
addq %r12, %r12
movq %rdi, %r13
movq 0x40(%r13), %rdi
testq %rdi, %rdi
je 0x7a28
movq %r12, %rsi
callq 0xbeac
movl %eax, %ebp
movq 0x40(%r13), %rax
cmpq %rbp, (%rax)
jb 0x7a28
cmpq %r12, (%rax,%rbp,8)
je 0x7a42
movq (%r13), %r13
testq %r13, %r13
jne 0x7a06
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x0, 0x80(%r14)
je 0x7a9e
movl $0x1, %ecx
testb $0x4, 0xa(%r15)
je 0x7a5c
movl 0xc(%r15), %ecx
movq 0x10(%rsp), %rax
testb $0x8, 0xe(%rax)
jne 0x7aa5
movq %r14, %rdi
movl %ecx, %esi
movl %ecx, 0xc(%rsp)
callq 0x7afe
testq %rax, %rax
je 0x7aaa
movq %rax, %r12
movq 0x10(%rsp), %rax
movl 0x10(%rax), %edx
movl 0xc(%rsp), %eax
cmpl $0x2, %eax
jl 0x7ab3
imull %eax, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x2240
jmp 0x7abe
movl $0xffff87bc, %eax       # imm = 0xFFFF87BC
jmp 0x7aaf
movq %r15, %r12
jmp 0x7abe
movl $0xc, %eax
xorl %ecx, %ecx
jmp 0x7af1
movq %r12, %rdi
movq %r15, %rsi
callq 0xaa49
cmpq %r14, %r13
jne 0x7adb
movq 0x40(%r14), %rax
movq (%rax), %rcx
cmpq %rbp, %rcx
jne 0x7ad7
decq %rcx
movq %rcx, (%rax)
jmp 0x7adb
orb $0x1, (%rax,%rbp,8)
movq %r14, %rdi
movq %r12, %rsi
callq 0xadd8
orb $0x10, 0xa(%r12)
movq %r12, (%rbx)
movb $0x1, %cl
testb %cl, %cl
jne 0x7a31
jmp 0x7a33
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_page_malloc
static MDB_page *
mdb_page_malloc(MDB_txn *txn, unsigned num)
{
	MDB_env *env = txn->mt_env;
	MDB_page *ret = env->me_dpages;
	size_t psize = env->me_psize, sz = psize, off;
	/* For ! #MDB_NOMEMINIT, psize counts how much to init.
	 * For a single page alloc, we init everything after the page header.
	 * For multi-page, we init the final page; if the caller needed that
	 * many pages they will be filling in at least up to the last page.
	 */
	if (num == 1) {
		if (ret) {
			VGMEMP_ALLOC(env, ret, sz);
			VGMEMP_DEFINED(ret, sizeof(ret->mp_next));
			env->me_dpages = ret->mp_next;
			return ret;
		}
		psize -= off = PAGEHDRSZ;
	} else {
		sz *= num;
		off = sz - psize;
	}
	if ((ret = malloc(sz)) != NULL) {
		VGMEMP_ALLOC(env, ret, sz);
		if (!(env->me_flags & MDB_NOMEMINIT)) {
			memset((char *)ret + off, 0, psize);
			ret->mp_pad = 0;
		}
	} else {
		txn->mt_flags |= MDB_TXN_ERROR;
	}
	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %r12
movl 0x10(%r12), %edi
cmpl $0x1, %esi
jne 0x7b32
movq 0xc0(%r12), %r14
testq %r14, %r14
je 0x7b46
movq (%r14), %rax
movq %rax, 0xc0(%r12)
jmp 0x7b82
movl %esi, %eax
imulq %rdi, %rax
movq %rax, %r13
subq %rdi, %r13
movq %rdi, %r15
movq %rax, %rdi
jmp 0x7b50
leaq -0x10(%rdi), %r15
movl $0x10, %r13d
callq 0x2270
movq %rax, %r14
testq %rax, %rax
je 0x7b7e
testb $0x1, 0xf(%r12)
jne 0x7b82
movq %r14, %rdi
addq %r13, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x2190
movw $0x0, 0x8(%r14)
jmp 0x7b82
orb $0x2, 0x7c(%rbx)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb.c
// Function: mdb_node_shrink
static void
mdb_node_shrink(MDB_page *mp, indx_t indx)
{
	MDB_node *node;
	MDB_page *sp, *xp;
	char *base;
	indx_t delta, nsize, len, ptr;
	int i;

	node = NODEPTR(mp, indx);
	sp = (MDB_page *)NODEDATA(node);
	delta = SIZELEFT(sp);
	nsize = NODEDSZ(node) - delta;

	/* Prepare to shift upward, set len = length(subpage part to shift) */
	if (IS_LEAF2(sp)) {
		len = nsize;
		if (nsize & 1)
			return;		/* do not make the node uneven-sized */
	} else {
		xp = (MDB_page *)((char *)sp + delta); /* destination subpage */
		for (i = NUMKEYS(sp); --i >= 0; )
			xp->mp_ptrs[i] = sp->mp_ptrs[i] - delta;
		len = PAGEHDRSZ;
	}
	sp->mp_upper = sp->mp_lower;
	COPY_PGNO(sp->mp_pgno, mp->mp_pgno);
	SETDSZ(node, nsize);

	/* Shift <lower nodes...initial part of subpage> upward */
	base = (char *)mp + mp->mp_upper + PAGEBASE;
	memmove(base + delta, base, (char *)sp + len - base);

	ptr = mp->mp_ptrs[indx];
	for (i = NUMKEYS(mp); --i >= 0; ) {
		if (mp->mp_ptrs[i] <= ptr)
			mp->mp_ptrs[i] += delta;
	}
	mp->mp_upper += delta;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl %esi, %r14d
movzwl 0x10(%rdi,%r14,2), %r9d
leaq (%rdi,%r9), %rax
movzwl 0x6(%rdi,%r9), %ecx
movzwl 0x16(%rcx,%rax), %ebp
movzwl 0x14(%rcx,%rax), %edx
subl %edx, %ebp
movzwl (%rdi,%r9), %esi
subl %ebp, %esi
testb $0x20, 0x12(%rcx,%rax)
movzwl %bp, %edi
jne 0x9135
leal -0x10(%rdx), %r11d
movw $0x10, %r8w
cmpl $0x2, %r11d
jb 0x913e
movl %r11d, %r10d
shrl %r10d
incq %r10
andl $-0x2, %r11d
addq %rcx, %r9
addq %r11, %r9
addq %rbx, %r9
addq $0x16, %r9
movzwl (%r9), %r11d
subl %edi, %r11d
movw %r11w, (%r9,%rdi)
decq %r10
addq $-0x2, %r9
cmpq $0x1, %r10
jg 0x911a
jmp 0x913e
movl %esi, %r8d
testb $0x1, %sil
jne 0x91a7
addq %rax, %rcx
addq $0x8, %rcx
movw %dx, 0xe(%rcx)
movq (%rbx), %rdx
movq %rdx, (%rcx)
movw %si, (%rax)
movw $0x0, 0x2(%rax)
movzwl 0xe(%rbx), %esi
addq %rbx, %rsi
addq %rsi, %rdi
movzwl %r8w, %edx
addq %rcx, %rdx
subq %rsi, %rdx
callq 0x22d0
movzwl 0xc(%rbx), %eax
addl $-0x10, %eax
cmpl $0x2, %eax
jb 0x91a3
movzwl 0x10(%rbx,%r14,2), %ecx
shrl %eax
movzwl 0xe(%rbx,%rax,2), %edx
cmpw %cx, %dx
ja 0x9196
addl %ebp, %edx
movw %dx, 0xe(%rbx,%rax,2)
decq %rax
leaq 0x1(%rax), %rdx
cmpq $0x1, %rdx
jg 0x9185
addw %bp, 0xe(%rbx)
popq %rbx
popq %r14
popq %rbp
retq