LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/chunk.c
// Function: je_chunk_alloc_wrapper
void *
chunk_alloc_wrapper(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks,
    void *new_addr, size_t size, size_t alignment, size_t *sn, bool *zero,
    bool *commit)
{
	void *ret;

	chunk_hooks_assure_initialized(tsdn, arena, chunk_hooks);

	ret = chunk_alloc_retained(tsdn, arena, chunk_hooks, new_addr, size,
	    alignment, sn, zero, commit);
	if (ret == NULL) {
		if (chunk_hooks->alloc == chunk_alloc_default) {
			/* Call directly to propagate tsdn. */
			ret = chunk_alloc_default_impl(tsdn, arena, new_addr,
			    size, alignment, zero, commit);
		} else {
			ret = chunk_hooks->alloc(new_addr, size, alignment,
			    zero, commit, arena->ind);
		}

		if (ret == NULL)
			return (NULL);

		*sn = arena_extent_sn_next(arena);

		if (config_valgrind && chunk_hooks->alloc !=
		    chunk_alloc_default)
			JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ret, chunksize);
	}

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbp
movq %r8, %r12
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x26e28
leaq 0x890(%r14), %rcx
leaq 0x898(%r14), %r8
subq $0x8, %rsp
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %r9d, %r9d
pushq $0x1
pushq 0x60(%rsp)
pushq 0x60(%rsp)
pushq 0x60(%rsp)
movq %rbp, 0x28(%rsp)
pushq %rbp
pushq %r12
pushq %r15
callq 0x26891
addq $0x40, %rsp
testq %rax, %rax
je 0x26d89
movq %rax, %rbp
subq %r12, 0x68(%r14)
movq %rbp, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq 0x48(%rsp), %r11
movq 0x50(%rsp), %r10
movq (%rsp), %r8
movq (%r13), %rax
leaq -0x99d(%rip), %rbx      # 0x26408
cmpq %rbx, %rax
je 0x26dc0
movl (%r14), %r9d
movq %r15, %rdi
movq %r12, %rsi
movq %r8, %rdx
movq %r11, %rcx
movq %r10, %r8
callq *%rax
jmp 0x26ddb
subq $0x8, %rsp
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r11, %r9
pushq %r10
callq 0x26ec4
addq $0x10, %rsp
movq %rax, %rbp
movq 0x40(%rsp), %r15
testq %rax, %rax
je 0x26e21
movq %r14, %rdi
callq 0x23da2
movq %rax, (%r15)
cmpq %rbx, (%r13)
je 0x26d77
leaq 0x25798(%rip), %rax     # 0x4c59c
cmpb $0x1, (%rax)
jne 0x26d77
movq 0x262b4(%rip), %rsi     # 0x4d0c8
movq %rbp, %rdi
callq 0x376c2
jmp 0x26d77
xorl %ebp, %ebp
jmp 0x26d77
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/chunk.c
// Function: chunk_alloc_default_impl
static void *
chunk_alloc_default_impl(tsdn_t *tsdn, arena_t *arena, void *new_addr,
    size_t size, size_t alignment, bool *zero, bool *commit)
{
	void *ret;

	ret = chunk_alloc_core(tsdn, arena, new_addr, size, alignment, zero,
	    commit, arena->dss_prec);
	if (ret == NULL)
		return (NULL);
	if (config_valgrind)
		JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ret, size);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
movq 0x50(%rsp), %rax
movl 0xf8(%rsi), %r15d
cmpl $0x1, %r15d
movq %rcx, 0x8(%rsp)
jne 0x26f2e
movq %rax, (%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %rax, %rbp
movq %r12, %r8
movq %r9, %r15
movq %rcx, %rbx
callq 0x27558
testq %rax, %rax
jne 0x26f7b
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %rbp, %r8
callq 0x27830
jmp 0x26f76
movq %r13, %rdi
movq %rcx, %rsi
movq %r12, %rdx
movq %r9, %rcx
movq %rax, %r8
movq %r9, 0x10(%rsp)
callq 0x27830
testq %rax, %rax
jne 0x26f7b
movq 0x50(%rsp), %rax
movq 0x10(%rsp), %r9
cmpl $0x2, %r15d
jne 0x26f9c
movq %rax, (%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq 0x8(%rsp), %rcx
movq %r12, %r8
callq 0x27558
testq %rax, %rax
je 0x26f9c
movq %rax, %r14
leaq 0x25617(%rip), %rax     # 0x4c59c
cmpb $0x1, (%rax)
je 0x26fa1
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x26f8a
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0x376c2
jmp 0x26f8a
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/chunk.c
// Function: je_chunk_dalloc_cache
void
chunk_dalloc_cache(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks,
    void *chunk, size_t size, size_t sn, bool committed)
{

	assert(chunk != NULL);
	assert(CHUNK_ADDR2BASE(chunk) == chunk);
	assert(size != 0);
	assert((size & chunksize_mask) == 0);

	chunk_record(tsdn, arena, chunk_hooks, &arena->chunks_szsnad_cached,
	    &arena->chunks_ad_cached, true, chunk, size, sn, false,
	    committed);
	arena_maybe_purge(tsdn, arena);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %rax
movq %r8, %r10
movq %rcx, %r11
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x880(%rsi), %rcx
leaq 0x888(%rsi), %r8
subq $0x8, %rsp
movzbl 0x28(%rsp), %r15d
movl $0x1, %r9d
pushq %r15
pushq $0x0
pushq %rax
pushq %r10
pushq %r11
callq 0x27004
addq $0x30, %rsp
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x2221b
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/chunk.c
// Function: je_chunk_dalloc_wrapper
void
chunk_dalloc_wrapper(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks,
    void *chunk, size_t size, size_t sn, bool zeroed, bool committed)
{
	bool err;

	assert(chunk != NULL);
	assert(CHUNK_ADDR2BASE(chunk) == chunk);
	assert(size != 0);
	assert((size & chunksize_mask) == 0);

	chunk_hooks_assure_initialized(tsdn, arena, chunk_hooks);
	/* Try to deallocate. */
	if (chunk_hooks->dalloc == chunk_dalloc_default) {
		/* Call directly to propagate tsdn. */
		err = chunk_dalloc_default_impl(chunk, size);
	} else
		err = chunk_hooks->dalloc(chunk, size, committed, arena->ind);

	if (!err)
		return;
	/* Try to decommit; purge if that fails. */
	if (committed) {
		committed = chunk_hooks->decommit(chunk, size, 0, size,
		    arena->ind);
	}
	zeroed = !committed || !chunk_hooks->purge(chunk, size, 0, size,
	    arena->ind);
	chunk_record(tsdn, arena, chunk_hooks, &arena->chunks_szsnad_retained,
	    &arena->chunks_ad_retained, false, chunk, size, sn, zeroed,
	    committed);

	if (config_stats)
		arena->stats.retained += size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movb 0x58(%rsp), %bpl
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x26e28
movq 0x8(%r13), %rax
leaq -0xebc(%rip), %rcx      # 0x264f7
cmpq %rcx, %rax
je 0x273c9
movl (%r14), %ecx
movzbl %bpl, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq *%rax
jmp 0x273e0
movq %r15, %rdi
callq 0x277b6
testb %al, %al
jne 0x273e8
movq %r15, %rdi
movq %rbx, %rsi
callq 0x278e6
testb %al, %al
je 0x2746c
movq %r12, 0x8(%rsp)
movb $0x1, %r12b
testb %bpl, %bpl
je 0x2742b
movl (%r14), %r8d
xorl %ebp, %ebp
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq *0x18(%r13)
testb %al, %al
je 0x2742d
movl (%r14), %r8d
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq *0x20(%r13)
movl %eax, %r12d
xorb $0x1, %r12b
movb $0x1, %bpl
jmp 0x2742d
xorl %ebp, %ebp
leaq 0x890(%r14), %rcx
leaq 0x898(%r14), %r8
subq $0x8, %rsp
movzbl %bpl, %eax
movzbl %r12b, %r10d
movq 0x18(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq 0x20(%rsp)
pushq %rbx
pushq %r15
callq 0x27004
addq $0x30, %rsp
addq %rbx, 0x68(%r14)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/chunk_dss.c
// Function: je_chunk_dss_boot
void
chunk_dss_boot(void)
{

	cassert(have_dss);

	dss_base = chunk_dss_sbrk(0);
	dss_exhausted = (unsigned)(dss_base == (void *)-1);
	dss_max = dss_base;
}

// Assembly:
pushq %rax
xorl %edi, %edi
callq 0xb2a0
movq %rax, 0x258d9(%rip)     # 0x4d0f0
xorl %ecx, %ecx
cmpq $-0x1, %rax
sete %cl
movl %ecx, 0x258ba(%rip)     # 0x4d0e0
movq %rax, 0x258bb(%rip)     # 0x4d0e8
popq %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/chunk_mmap.c
// Function: je_chunk_alloc_mmap
void *
chunk_alloc_mmap(void *new_addr, size_t size, size_t alignment, bool *zero,
    bool *commit)
{
	void *ret;
	size_t offset;

	/*
	 * Ideally, there would be a way to specify alignment to mmap() (like
	 * NetBSD has), but in the absence of such a feature, we have to work
	 * hard to efficiently create aligned mappings.  The reliable, but
	 * slow method is to create a mapping that is over-sized, then trim the
	 * excess.  However, that always results in one or two calls to
	 * pages_unmap().
	 *
	 * Optimistically try mapping precisely the right amount before falling
	 * back to the slow method, with the expectation that the optimistic
	 * approach works most of the time.
	 */

	assert(alignment != 0);
	assert((alignment & chunksize_mask) == 0);

	ret = pages_map(new_addr, size, commit);
	if (ret == NULL || ret == new_addr)
		return (ret);
	assert(new_addr == NULL);
	offset = ALIGNMENT_ADDR2OFFSET(ret, alignment);
	if (offset != 0) {
		pages_unmap(ret, size);
		return (chunk_alloc_mmap_slow(size, alignment, zero, commit));
	}

	assert(ret != NULL);
	*zero = true;
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbp
movq %r8, %rdx
callq 0x2e5b8
movq %rax, %r13
testq %rax, %rax
sete %al
cmpq %rbp, %r13
sete %cl
orb %al, %cl
jne 0x278d4
movq %rbx, (%rsp)
leaq -0x1(%r15), %rbx
testq %r13, %rbx
je 0x278cd
movq %r13, %rdi
movq %r12, %rsi
callq 0x2e628
leaq (%r12,%r15), %rbp
addq $-0x1000, %rbp          # imm = 0xF000
cmpq %r12, %rbp
jae 0x27892
xorl %r13d, %r13d
jmp 0x278d4
negq %r15
xorl %r13d, %r13d
xorl %edi, %edi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2e5b8
testq %rax, %rax
je 0x278d4
leaq (%rbx,%rax), %rdx
andq %r15, %rdx
subq %rax, %rdx
movq %rax, %rdi
movq %rbp, %rsi
movq %r12, %rcx
movq %r14, %r8
callq 0x2e676
testq %rax, %rax
je 0x27898
movq %rax, %r13
movq (%rsp), %rax
movb $0x1, (%rax)
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: je_ctl_byname
int
ctl_byname(tsd_t *tsd, const char *name, void *oldp, size_t *oldlenp,
    void *newp, size_t newlen)
{
	int ret;
	size_t depth;
	ctl_node_t const *nodes[CTL_MAX_DEPTH];
	size_t mib[CTL_MAX_DEPTH];
	const ctl_named_node_t *node;

	if (!ctl_initialized && ctl_init(tsd_tsdn(tsd))) {
		ret = EAGAIN;
		goto label_return;
	}

	depth = CTL_MAX_DEPTH;
	ret = ctl_lookup(tsd_tsdn(tsd), name, nodes, mib, &depth);
	if (ret != 0)
		goto label_return;

	node = ctl_named_node(nodes[depth-1]);
	if (node != NULL && node->ctl)
		ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen);
	else {
		/* The name refers to a partial path through the ctl tree. */
		ret = ENOENT;
	}

label_return:
	return(ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r12
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, %r13
cmpb $0x0, 0x257e5(%rip)     # 0x4d0f8
jne 0x27928
movq %r13, %rdi
callq 0x27991
movl %eax, %ecx
movl $0xb, %eax
testb %cl, %cl
jne 0x27982
leaq 0x8(%rsp), %r8
movq $0x6, (%r8)
leaq 0x40(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x27abe
testl %eax, %eax
jne 0x27982
movq 0x8(%rsp), %rdx
movq 0x38(%rsp,%rdx,8), %rcx
movl $0x2, %eax
cmpb $0x1, (%rcx)
jne 0x27982
movq 0x20(%rcx), %r10
testq %r10, %r10
je 0x27982
movq %r12, (%rsp)
leaq 0x10(%rsp), %rsi
movq %r13, %rdi
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
callq *%r10
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: ctl_init
static bool
ctl_init(tsdn_t *tsdn)
{
	bool ret;

	malloc_mutex_lock(tsdn, &ctl_mtx);
	if (!ctl_initialized) {
		/*
		 * Allocate space for one extra arena stats element, which
		 * contains summed stats across all arenas.
		 */
		ctl_stats.narenas = narenas_total_get();
		ctl_stats.arenas = (ctl_arena_stats_t *)a0malloc(
		    (ctl_stats.narenas + 1) * sizeof(ctl_arena_stats_t));
		if (ctl_stats.arenas == NULL) {
			ret = true;
			goto label_return;
		}
		memset(ctl_stats.arenas, 0, (ctl_stats.narenas + 1) *
		    sizeof(ctl_arena_stats_t));

		/*
		 * Initialize all stats structures, regardless of whether they
		 * ever get used.  Lazy initialization would allow errors to
		 * cause inconsistent state to be viewable by the application.
		 */
		if (config_stats) {
			unsigned i;
			for (i = 0; i <= ctl_stats.narenas; i++) {
				if (ctl_arena_init(&ctl_stats.arenas[i])) {
					unsigned j;
					for (j = 0; j < i; j++) {
						a0dalloc(
						    ctl_stats.arenas[j].lstats);
						a0dalloc(
						    ctl_stats.arenas[j].hstats);
					}
					a0dalloc(ctl_stats.arenas);
					ctl_stats.arenas = NULL;
					ret = true;
					goto label_return;
				}
			}
		}
		ctl_stats.arenas[ctl_stats.narenas].initialized = true;

		ctl_epoch = 0;
		ctl_refresh(tsdn);
		ctl_initialized = true;
	}

	ret = false;
label_return:
	malloc_mutex_unlock(tsdn, &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x2575e(%rip), %rdi     # 0x4d100
callq 0xb5a0
cmpb $0x0, 0x2574a(%rip)     # 0x4d0f8
jne 0x27a48
callq 0x1acbe
movl %eax, 0x257c1(%rip)     # 0x4d180
incl %eax
imulq $0xbd8, %rax, %rdi      # imm = 0xBD8
callq 0x1aa08
movq %rax, 0x257b4(%rip)     # 0x4d188
movb $0x1, %bl
testq %rax, %rax
je 0x27a4a
movl 0x2579f(%rip), %ecx     # 0x4d180
incl %ecx
imulq $0xbd8, %rcx, %rdx      # imm = 0xBD8
xorl %ebp, %ebp
movq %rax, %rdi
xorl %esi, %esi
callq 0xb230
movl %ebp, %r15d
imulq $0xbd8, %r15, %rdi      # imm = 0xBD8
addq 0x25781(%rip), %rdi     # 0x4d188
callq 0x27e14
testb %al, %al
jne 0x27a63
incl %ebp
movl 0x25768(%rip), %eax     # 0x4d180
cmpl %eax, %ebp
jbe 0x279f6
movq 0x25765(%rip), %rcx     # 0x4d188
imulq $0xbd8, %rax, %rax      # imm = 0xBD8
movb $0x1, %bl
movb %bl, (%rcx,%rax)
movq $0x0, 0x25756(%rip) # 0x4d190
movq %r14, %rdi
callq 0x27e74
movb %bl, 0x256b0(%rip)      # 0x4d0f8
xorl %ebx, %ebx
leaq 0x256af(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
testl %ebp, %ebp
je 0x27aa5
imulq $0xbd8, %r15, %r14      # imm = 0xBD8
xorl %r15d, %r15d
movq 0x25710(%rip), %rax     # 0x4d188
movq 0xbc8(%rax,%r15), %rdi
callq 0x1ab70
movq 0x256fc(%rip), %rax     # 0x4d188
movq 0xbd0(%rax,%r15), %rdi
callq 0x1ab70
addq $0xbd8, %r15            # imm = 0xBD8
cmpq %r15, %r14
jne 0x27a71
movq 0x256dc(%rip), %rdi     # 0x4d188
callq 0x1ab70
movq $0x0, 0x256cc(%rip) # 0x4d188
jmp 0x27a4a
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: je_ctl_bymib
int
ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	const ctl_named_node_t *node;
	size_t i;

	if (!ctl_initialized && ctl_init(tsd_tsdn(tsd))) {
		ret = EAGAIN;
		goto label_return;
	}

	/* Iterate down the tree. */
	node = super_root_node;
	for (i = 0; i < miblen; i++) {
		assert(node);
		assert(node->nchildren > 0);
		if (ctl_named_node(node->children) != NULL) {
			/* Children are named. */
			if (node->nchildren <= (unsigned)mib[i]) {
				ret = ENOENT;
				goto label_return;
			}
			node = ctl_named_children(node, mib[i]);
		} else {
			const ctl_indexed_node_t *inode;

			/* Indexed element. */
			inode = ctl_indexed_node(node->children);
			node = inode->index(tsd_tsdn(tsd), mib, miblen, mib[i]);
			if (node == NULL) {
				ret = ENOENT;
				goto label_return;
			}
		}
	}

	/* Call the ctl function. */
	if (node && node->ctl)
		ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen);
	else {
		/* Partial MIB. */
		ret = ENOENT;
	}

label_return:
	return(ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
cmpb $0x0, 0x253e2(%rip)     # 0x4d0f8
jne 0x27d2f
movq %rbp, %rdi
callq 0x27991
movl %eax, %ecx
movl $0xb, %eax
testb %cl, %cl
jne 0x27dbb
testq %r12, %r12
je 0x27d84
movq %rbx, (%rsp)
leaq 0x225a1(%rip), %rax     # 0x4a2e0
xorl %ebx, %ebx
movq 0x18(%rax), %r8
movq (%r13,%rbx,8), %rcx
cmpb $0x1, (%r8)
jne 0x27d5f
cmpl %ecx, 0x10(%rax)
jbe 0x27db6
leaq (%rcx,%rcx,4), %rax
leaq (%r8,%rax,8), %rax
jmp 0x27d71
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq *0x8(%r8)
testq %rax, %rax
je 0x27db6
incq %rbx
cmpq %rbx, %r12
jne 0x27d41
testq %rax, %rax
movq (%rsp), %rbx
jne 0x27d8b
jmp 0x27db6
leaq 0x22555(%rip), %rax     # 0x4a2e0
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x27db6
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
movq %rbx, %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: thread_tcache_flush_ctl
static int
tcache_flush_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned tcache_ind;

	if (!config_tcache)
		return (ENOENT);

	WRITEONLY();
	tcache_ind = UINT_MAX;
	WRITE(tcache_ind, unsigned);
	if (tcache_ind == UINT_MAX) {
		ret = EFAULT;
		goto label_return;
	}
	tcaches_flush(tsd, tcache_ind);

	ret = 0;
label_return:
	return (ret);
}

// Assembly:
pushq %rbx
movl $0x1, %eax
orq 0x10(%rsp), %r9
jne 0x28968
orq %r8, %rcx
jne 0x28968
movq 0x236a2(%rip), %rax     # 0x4bfe8
movq %fs:0x0, %rbx
addq %rax, %rbx
movl %fs:(%rax), %ecx
testl %ecx, %ecx
je 0x2896a
cmpl $0x2, %ecx
je 0x28973
movq %rbx, %rdi
callq 0x35cfd
xorl %eax, %eax
popq %rbx
retq
movl $0x1, %fs:(%rax)
jmp 0x2897a
movl $0x3, %fs:(%rax)
leaq 0x24b53(%rip), %rax     # 0x4d4d4
movl (%rax), %edi
movq %rbx, %rsi
callq 0xb5b0
testl %eax, %eax
je 0x2895e
leaq 0x1386b(%rip), %rdi     # 0x3c201
callq 0x3645c
leaq 0x23b7e(%rip), %rax     # 0x4c520
cmpb $0x1, (%rax)
jne 0x2895e
callq 0xb070
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: tcache_create_ctl
static int
tcache_create_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned tcache_ind;

	if (!config_tcache)
		return (ENOENT);

	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
	READONLY();
	if (tcaches_create(tsd, &tcache_ind)) {
		ret = EFAULT;
		goto label_return;
	}
	READ(tcache_ind, unsigned);

	ret = 0;
label_return:
	malloc_mutex_unlock(tsd_tsdn(tsd), &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r9, %r12
movq %r8, %r14
movq %rcx, %rbx
movq %rdi, %r15
leaq 0x23cfc(%rip), %rdi     # 0x4d100
callq 0xb5a0
movl $0x1, %ebp
orq 0x40(%rsp), %r12
jne 0x29469
leaq 0xc(%rsp), %rsi
movq %r15, %rdi
callq 0x36006
movl $0xe, %ebp
testb %al, %al
jne 0x29469
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x29469
movq (%r14), %rax
cmpq $0x4, %rax
jne 0x2944e
movl 0xc(%rsp), %eax
movl %eax, (%rbx)
jmp 0x29469
movl $0x4, %edx
cmovbq %rax, %rdx
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0xb340
movl $0x16, %ebp
leaq 0x23c90(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_index
static const ctl_named_node_t *
arena_i_index(tsdn_t *tsdn, const size_t *mib, size_t miblen, size_t i)
{
	const ctl_named_node_t *ret;

	malloc_mutex_lock(tsdn, &ctl_mtx);
	if (i > ctl_stats.narenas) {
		ret = NULL;
		goto label_return;
	}

	ret = super_arena_i_node;
label_return:
	malloc_mutex_unlock(tsdn, &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
leaq 0x23bf7(%rip), %r14     # 0x4d100
movq %r14, %rdi
callq 0xb5a0
movl 0x23c69(%rip), %eax     # 0x4d180
xorl %r15d, %r15d
cmpq %rbx, %rax
leaq 0x21cfc(%rip), %rax     # 0x4b220
cmovaeq %rax, %r15
movq %r14, %rdi
callq 0xb380
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_decay_ctl
static int
arena_i_decay_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;

	READONLY();
	WRITEONLY();
	arena_i_purge(tsd_tsdn(tsd), (unsigned)mib[1], false);

	ret = 0;
label_return:
	return (ret);
}

// Assembly:
pushq %rbx
movl $0x1, %ebx
orq 0x10(%rsp), %r9
jne 0x2957a
orq %r8, %rcx
jne 0x2957a
movl 0x8(%rsi), %esi
xorl %ebx, %ebx
xorl %edx, %edx
callq 0x299da
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_dss_ctl
static int
arena_i_dss_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	const char *dss = NULL;
	unsigned arena_ind = (unsigned)mib[1];
	dss_prec_t dss_prec_old = dss_prec_limit;
	dss_prec_t dss_prec = dss_prec_limit;

	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
	WRITE(dss, const char *);
	if (dss != NULL) {
		int i;
		bool match = false;

		for (i = 0; i < dss_prec_limit; i++) {
			if (strcmp(dss_prec_names[i], dss) == 0) {
				dss_prec = i;
				match = true;
				break;
			}
		}

		if (!match) {
			ret = EINVAL;
			goto label_return;
		}
	}

	if (arena_ind < ctl_stats.narenas) {
		arena_t *arena = arena_get(tsd_tsdn(tsd), arena_ind, false);
		if (arena == NULL || (dss_prec != dss_prec_limit &&
		    arena_dss_prec_set(tsd_tsdn(tsd), arena, dss_prec))) {
			ret = EFAULT;
			goto label_return;
		}
		dss_prec_old = arena_dss_prec_get(tsd_tsdn(tsd), arena);
	} else {
		if (dss_prec != dss_prec_limit &&
		    chunk_dss_prec_set(dss_prec)) {
			ret = EFAULT;
			goto label_return;
		}
		dss_prec_old = chunk_dss_prec_get();
	}

	dss = dss_prec_names[dss_prec_old];
	READ(dss, const char *);

	ret = 0;
label_return:
	malloc_mutex_unlock(tsd_tsdn(tsd), &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movq %r8, 0x8(%rsp)
movq %rcx, %r14
movq %rdi, %r15
movq 0x8(%rsi), %rbx
leaq 0x23b5b(%rip), %rdi     # 0x4d100
callq 0xb5a0
testq %r12, %r12
je 0x295f5
movl $0x16, %ebp
cmpq $0x8, 0x50(%rsp)
jne 0x296c4
movq (%r12), %r13
testq %r13, %r13
je 0x295f5
movq %r14, (%rsp)
xorl %r12d, %r12d
leaq 0x22e09(%rip), %r14     # 0x4c3e0
movq (%r14,%r12,8), %rdi
movq %r13, %rsi
callq 0xb2e0
testl %eax, %eax
je 0x2964a
incq %r12
cmpq $0x3, %r12
jne 0x295d7
jmp 0x296c4
movl $0x3, %r12d
cmpl %ebx, 0x23b7f(%rip)     # 0x4d180
jbe 0x2966d
movl %ebx, %eax
leaq 0x22fa4(%rip), %rcx     # 0x4c5b0
movq (%rcx), %rcx
movq (%rcx,%rax,8), %r13
testq %r13, %r13
je 0x296e1
cmpl $0x3, %r12d
je 0x2963d
movq %r15, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x239d0
movl $0xe, %ebp
testb %al, %al
jne 0x296c4
movq %r15, %rdi
movq %r13, %rsi
callq 0x239a5
jmp 0x29672
cmpl %ebx, 0x23b30(%rip)     # 0x4d180
jbe 0x29658
movq (%rsp), %r14
jmp 0x29603
movl %r12d, %edi
callq 0x2754f
movl $0xe, %ebp
testb %al, %al
movq (%rsp), %r14
jne 0x296c4
callq 0x27544
movl %eax, %eax
leaq 0x22d65(%rip), %rcx     # 0x4c3e0
movq (%rcx,%rax,8), %rax
movq %rax, 0x10(%rsp)
testq %r14, %r14
sete %cl
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
sete %dl
xorl %ebp, %ebp
orb %cl, %dl
jne 0x296c4
movq (%rsi), %rcx
cmpq $0x8, %rcx
jne 0x296a9
movq %rax, (%r14)
jmp 0x296c4
movl $0x8, %edx
cmovbq %rcx, %rdx
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0xb340
movl $0x16, %ebp
leaq 0x23a35(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
lock
xaddq %r13, (%rcx,%rax,8)
testq %r13, %r13
jne 0x2961c
movl $0xe, %ebp
jmp 0x296c4
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_lg_dirty_mult_ctl
static int
arena_i_lg_dirty_mult_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
    void *oldp, size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned arena_ind = (unsigned)mib[1];
	arena_t *arena;

	arena = arena_get(tsd_tsdn(tsd), arena_ind, false);
	if (arena == NULL) {
		ret = EFAULT;
		goto label_return;
	}

	if (oldp != NULL && oldlenp != NULL) {
		size_t oldval = arena_lg_dirty_mult_get(tsd_tsdn(tsd), arena);
		READ(oldval, ssize_t);
	}
	if (newp != NULL) {
		if (newlen != sizeof(ssize_t)) {
			ret = EINVAL;
			goto label_return;
		}
		if (arena_lg_dirty_mult_set(tsd_tsdn(tsd), arena,
		    *(ssize_t *)newp)) {
			ret = EFAULT;
			goto label_return;
		}
	}

	ret = 0;
label_return:
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r9, %rbx
movq %r8, %r13
movq %rcx, %r12
movq %rdi, %r14
movl 0x8(%rsi), %eax
leaq 0x22e93(%rip), %rcx     # 0x4c5b0
movq (%rcx), %rcx
movq (%rcx,%rax,8), %r15
testq %r15, %r15
je 0x297b3
testq %r12, %r12
sete %al
testq %r13, %r13
sete %cl
orb %al, %cl
jne 0x2975b
movq %r14, %rdi
movq %r15, %rsi
callq 0x2219b
movq %rax, 0x8(%rsp)
movq (%r13), %rcx
cmpq $0x8, %rcx
jne 0x2978a
movq %rax, (%r12)
testq %rbx, %rbx
je 0x29786
movl $0x16, %eax
cmpq $0x8, 0x40(%rsp)
jne 0x297a5
movq (%rbx), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x221c8
movl %eax, %ecx
movl $0xe, %eax
testb %cl, %cl
jne 0x297a5
xorl %eax, %eax
jmp 0x297a5
movl $0x8, %edx
cmovbq %rcx, %rdx
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0xb340
movl $0x16, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %r15d, %r15d
lock
xaddq %r15, (%rcx,%rax,8)
testq %r15, %r15
jne 0x2972d
movl $0xe, %eax
jmp 0x297a5
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_decay_time_ctl
static int
arena_i_decay_time_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned arena_ind = (unsigned)mib[1];
	arena_t *arena;

	arena = arena_get(tsd_tsdn(tsd), arena_ind, false);
	if (arena == NULL) {
		ret = EFAULT;
		goto label_return;
	}

	if (oldp != NULL && oldlenp != NULL) {
		size_t oldval = arena_decay_time_get(tsd_tsdn(tsd), arena);
		READ(oldval, ssize_t);
	}
	if (newp != NULL) {
		if (newlen != sizeof(ssize_t)) {
			ret = EINVAL;
			goto label_return;
		}
		if (arena_decay_time_set(tsd_tsdn(tsd), arena,
		    *(ssize_t *)newp)) {
			ret = EFAULT;
			goto label_return;
		}
	}

	ret = 0;
label_return:
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r9, %rbx
movq %r8, %r13
movq %rcx, %r12
movq %rdi, %r14
movl 0x8(%rsi), %eax
leaq 0x22dc1(%rip), %rcx     # 0x4c5b0
movq (%rcx), %rcx
movq (%rcx,%rax,8), %r15
testq %r15, %r15
je 0x29885
testq %r12, %r12
sete %al
testq %r13, %r13
sete %cl
orb %al, %cl
jne 0x2982d
movq %r14, %rdi
movq %r15, %rsi
callq 0x2249a
movq %rax, 0x8(%rsp)
movq (%r13), %rcx
cmpq $0x8, %rcx
jne 0x2985c
movq %rax, (%r12)
testq %rbx, %rbx
je 0x29858
movl $0x16, %eax
cmpq $0x8, 0x40(%rsp)
jne 0x29877
movq (%rbx), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x224c7
movl %eax, %ecx
movl $0xe, %eax
testb %cl, %cl
jne 0x29877
xorl %eax, %eax
jmp 0x29877
movl $0x8, %edx
cmovbq %rcx, %rdx
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0xb340
movl $0x16, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %r15d, %r15d
lock
xaddq %r15, (%rcx,%rax,8)
testq %r15, %r15
jne 0x297ff
movl $0xe, %eax
jmp 0x29877
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_chunk_hooks_ctl
static int
arena_i_chunk_hooks_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
    void *oldp, size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned arena_ind = (unsigned)mib[1];
	arena_t *arena;

	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
	if (arena_ind < narenas_total_get() && (arena =
	    arena_get(tsd_tsdn(tsd), arena_ind, false)) != NULL) {
		if (newp != NULL) {
			chunk_hooks_t old_chunk_hooks, new_chunk_hooks;
			WRITE(new_chunk_hooks, chunk_hooks_t);
			old_chunk_hooks = chunk_hooks_set(tsd_tsdn(tsd), arena,
			    &new_chunk_hooks);
			READ(old_chunk_hooks, chunk_hooks_t);
		} else {
			chunk_hooks_t old_chunk_hooks =
			    chunk_hooks_get(tsd_tsdn(tsd), arena);
			READ(old_chunk_hooks, chunk_hooks_t);
		}
	} else {
		ret = EFAULT;
		goto label_return;
	}
	ret = 0;
label_return:
	malloc_mutex_unlock(tsd_tsdn(tsd), &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r12
movq %r8, %r14
movq %rcx, %rbx
movq %rdi, %r15
movq 0x8(%rsi), %r13
leaq 0x2383d(%rip), %rdi     # 0x4d100
callq 0xb5a0
callq 0x1acbe
movl $0xe, %ebp
cmpl %r13d, %eax
jbe 0x299aa
movl %r13d, %eax
leaq 0x22ccb(%rip), %rcx     # 0x4c5b0
movq (%rcx), %rcx
movq (%rcx,%rax,8), %rdx
testq %rdx, %rdx
je 0x299c7
testq %r12, %r12
je 0x29942
cmpq $0x38, 0xb0(%rsp)
jne 0x299a5
movq 0x30(%r12), %rax
leaq 0x40(%rsp), %rcx
movq %rax, 0x30(%rcx)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movaps %xmm2, 0x20(%rcx)
movaps %xmm1, 0x10(%rcx)
movaps %xmm0, (%rcx)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x265b0
jmp 0x2994f
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x26557
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x2998b
movq (%r14), %rax
cmpq $0x38, %rax
jne 0x2998f
movq 0x38(%rsp), %rax
movq %rax, 0x30(%rbx)
movups 0x8(%rsp), %xmm0
movups 0x18(%rsp), %xmm1
movups 0x28(%rsp), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
xorl %ebp, %ebp
jmp 0x299aa
movl $0x38, %edx
cmovbq %rax, %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xb340
movl $0x16, %ebp
leaq 0x2374f(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edx, %edx
lock
xaddq %rdx, (%rcx,%rax,8)
testq %rdx, %rdx
jne 0x298f5
jmp 0x299aa
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arena_i_purge
static void
arena_i_purge(tsdn_t *tsdn, unsigned arena_ind, bool all)
{

	malloc_mutex_lock(tsdn, &ctl_mtx);
	{
		unsigned narenas = ctl_stats.narenas;

		if (arena_ind == narenas) {
			unsigned i;
			VARIABLE_ARRAY(arena_t *, tarenas, narenas);

			for (i = 0; i < narenas; i++)
				tarenas[i] = arena_get(tsdn, i, false);

			/*
			 * No further need to hold ctl_mtx, since narenas and
			 * tarenas contain everything needed below.
			 */
			malloc_mutex_unlock(tsdn, &ctl_mtx);

			for (i = 0; i < narenas; i++) {
				if (tarenas[i] != NULL)
					arena_purge(tsdn, tarenas[i], all);
			}
		} else {
			arena_t *tarena;

			assert(arena_ind < narenas);

			tarena = arena_get(tsdn, arena_ind, false);

			/* No further need to hold ctl_mtx. */
			malloc_mutex_unlock(tsdn, &ctl_mtx);

			if (tarena != NULL)
				arena_purge(tsdn, tarena, all);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x23708(%rip), %rdi     # 0x4d100
callq 0xb5a0
cmpl %r15d, 0x2377c(%rip)    # 0x4d180
jne 0x29a64
movq %rsp, -0x30(%rbp)
movl %r15d, %r13d
movq %rsp, %r12
leaq 0xf(,%r13,8), %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
testl %r15d, %r15d
je 0x29ad9
leaq 0x22b7e(%rip), %rax     # 0x4c5b0
movq (%rax), %rsi
leaq (,%r13,8), %rcx
xorl %edx, %edx
movq (%rsi,%rdx), %rdi
testq %rdi, %rdi
je 0x29a57
movq %rdi, (%r12,%rdx)
addq $0x8, %rdx
cmpq %rdx, %rcx
jne 0x29a3f
jmp 0x29aa3
xorl %edi, %edi
lock
xaddq %rdi, (%rsi,%rdx)
movq (%rax), %rsi
jmp 0x29a48
leaq 0x22b45(%rip), %rax     # 0x4c5b0
movq (%rax), %rax
movl %r15d, %ecx
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x29af8
leaq 0x2367f(%rip), %rdi     # 0x4d100
callq 0xb380
movzbl %r14b, %edx
movq %rbx, %rdi
movq %r15, %rsi
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x225b4
leaq 0x23656(%rip), %rdi     # 0x4d100
callq 0xb380
testl %r15d, %r15d
je 0x29ae5
xorl %r15d, %r15d
movzbl %r14b, %r14d
movq (%r12,%r15,8), %rsi
testq %rsi, %rsi
je 0x29acf
movq %rbx, %rdi
movl %r14d, %edx
callq 0x225b4
incq %r15
cmpq %r15, %r13
jne 0x29abb
jmp 0x29ae5
leaq 0x23620(%rip), %rdi     # 0x4d100
callq 0xb380
movq -0x30(%rbp), %rsp
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
lock
xaddq %r15, (%rax,%rcx,8)
leaq 0x235f8(%rip), %rdi     # 0x4d100
callq 0xb380
testq %r15, %r15
jne 0x29a86
jmp 0x29ae9
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arenas_narenas_ctl
static int
arenas_narenas_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned narenas;

	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
	READONLY();
	if (*oldlenp != sizeof(unsigned)) {
		ret = EINVAL;
		goto label_return;
	}
	narenas = ctl_stats.narenas;
	READ(narenas, unsigned);

	ret = 0;
label_return:
	malloc_mutex_unlock(tsd_tsdn(tsd), &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r12
movq %r8, %r15
movq %rcx, %r14
leaq 0x235d0(%rip), %rdi     # 0x4d100
callq 0xb5a0
movl $0x1, %ebx
orq 0x30(%rsp), %r12
jne 0x29b5c
movl $0x16, %ebx
cmpq $0x4, (%r15)
jne 0x29b5c
xorl %ebx, %ebx
testq %r14, %r14
je 0x29b5c
movl 0x23627(%rip), %eax     # 0x4d180
movl %eax, (%r14)
leaq 0x2359d(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arenas_initialized_ctl
static int
arenas_initialized_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned nread, i;

	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
	READONLY();
	if (*oldlenp != ctl_stats.narenas * sizeof(bool)) {
		ret = EINVAL;
		nread = (*oldlenp < ctl_stats.narenas * sizeof(bool))
		    ? (unsigned)(*oldlenp / sizeof(bool)) : ctl_stats.narenas;
	} else {
		ret = 0;
		nread = ctl_stats.narenas;
	}

	for (i = 0; i < nread; i++)
		((bool *)oldp)[i] = ctl_stats.arenas[i].initialized;

label_return:
	malloc_mutex_unlock(tsd_tsdn(tsd), &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %r14
movq %rcx, %rbx
leaq 0x23573(%rip), %rdi     # 0x4d100
callq 0xb5a0
movl $0x1, %ebp
orq 0x30(%rsp), %r15
jne 0x29bde
movq (%r14), %rcx
movl 0x235d9(%rip), %eax     # 0x4d180
xorl %edx, %edx
cmpq %rax, %rcx
cmovael %eax, %ecx
movl $0x16, %ebp
cmovel %edx, %ebp
cmovel %eax, %ecx
testl %ecx, %ecx
je 0x29bde
movq 0x235c3(%rip), %rax     # 0x4d188
movl %ecx, %ecx
xorl %edx, %edx
movb (%rax), %sil
movb %sil, (%rbx,%rdx)
incq %rdx
addq $0xbd8, %rax            # imm = 0xBD8
cmpq %rdx, %rcx
jne 0x29bc9
leaq 0x2351b(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arenas_lg_dirty_mult_ctl
static int
arenas_lg_dirty_mult_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
    void *oldp, size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;

	if (oldp != NULL && oldlenp != NULL) {
		size_t oldval = arena_lg_dirty_mult_default_get();
		READ(oldval, ssize_t);
	}
	if (newp != NULL) {
		if (newlen != sizeof(ssize_t)) {
			ret = EINVAL;
			goto label_return;
		}
		if (arena_lg_dirty_mult_default_set(*(ssize_t *)newp)) {
			ret = EFAULT;
			goto label_return;
		}
	}

	ret = 0;
label_return:
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %r9, %rbx
movq %rcx, %r14
testq %rcx, %rcx
sete %al
testq %r8, %r8
sete %cl
orb %al, %cl
jne 0x29c2f
movq %r8, %r15
callq 0x239fd
movq %rax, 0x8(%rsp)
movq (%r15), %rcx
cmpq $0x8, %rcx
jne 0x29c58
movq %rax, (%r14)
testq %rbx, %rbx
je 0x29c54
movl $0x16, %eax
cmpq $0x8, 0x30(%rsp)
jne 0x29c73
movq (%rbx), %rdi
callq 0x23a09
movl %eax, %ecx
movl $0xe, %eax
testb %cl, %cl
jne 0x29c73
xorl %eax, %eax
jmp 0x29c73
movl $0x8, %edx
cmovbq %rcx, %rdx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xb340
movl $0x16, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arenas_decay_time_ctl
static int
arenas_decay_time_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;

	if (oldp != NULL && oldlenp != NULL) {
		size_t oldval = arena_decay_time_default_get();
		READ(oldval, ssize_t);
	}
	if (newp != NULL) {
		if (newlen != sizeof(ssize_t)) {
			ret = EINVAL;
			goto label_return;
		}
		if (arena_decay_time_default_set(*(ssize_t *)newp)) {
			ret = EFAULT;
			goto label_return;
		}
	}

	ret = 0;
label_return:
	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %r9, %rbx
movq %rcx, %r14
testq %rcx, %rcx
sete %al
testq %r8, %r8
sete %cl
orb %al, %cl
jne 0x29cb5
movq %r8, %r15
callq 0x23a2a
movq %rax, 0x8(%rsp)
movq (%r15), %rcx
cmpq $0x8, %rcx
jne 0x29cde
movq %rax, (%r14)
testq %rbx, %rbx
je 0x29cda
movl $0x16, %eax
cmpq $0x8, 0x30(%rsp)
jne 0x29cf9
movq (%rbx), %rdi
callq 0x23a36
movl %eax, %ecx
movl $0xe, %eax
testb %cl, %cl
jne 0x29cf9
xorl %eax, %eax
jmp 0x29cf9
movl $0x8, %edx
cmovbq %rcx, %rdx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xb340
movl $0x16, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: arenas_extend_ctl
static int
arenas_extend_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
    size_t *oldlenp, void *newp, size_t newlen)
{
	int ret;
	unsigned narenas;

	malloc_mutex_lock(tsd_tsdn(tsd), &ctl_mtx);
	READONLY();
	if (ctl_grow(tsd_tsdn(tsd))) {
		ret = EAGAIN;
		goto label_return;
	}
	narenas = ctl_stats.narenas - 1;
	READ(narenas, unsigned);

	ret = 0;
label_return:
	malloc_mutex_unlock(tsd_tsdn(tsd), &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xbd8, %rsp            # imm = 0xBD8
movq %r9, %r12
movq %r8, %r14
movq %rcx, %rbx
movq %rdi, %r15
leaq 0x23172(%rip), %rdi     # 0x4d100
callq 0xb5a0
movl $0x1, %ebp
orq 0xc10(%rsp), %r12
jne 0x2a0dd
movl 0x231d4(%rip), %esi     # 0x4d180
movq %r15, %rdi
callq 0x1acc9
movl $0xb, %ebp
testq %rax, %rax
je 0x2a0dd
movl 0x231b8(%rip), %eax     # 0x4d180
addl $0x2, %eax
imulq $0xbd8, %rax, %rdi      # imm = 0xBD8
callq 0x1aa08
testq %rax, %rax
je 0x2a0dd
movq %rax, %r15
movq 0x2319e(%rip), %rsi     # 0x4d188
movl 0x23190(%rip), %eax     # 0x4d180
incl %eax
imulq $0xbd8, %rax, %r12      # imm = 0xBD8
movq %r15, %rdi
movq %r12, %rdx
callq 0xb340
addq %r15, %r12
movl $0xbd8, %edx            # imm = 0xBD8
movq %r12, %rdi
xorl %esi, %esi
callq 0xb230
movq %r12, %rdi
callq 0x27e14
testb %al, %al
je 0x2a02f
movq %r15, %rdi
callq 0x1ab70
jmp 0x2a0dd
movl 0x2314b(%rip), %ebp     # 0x4d180
imulq $0xbd8, %rbp, %r13      # imm = 0xBD8
addq %r15, %r13
movq %rsp, %r12
movl $0xbd8, %edx            # imm = 0xBD8
movq %r12, %rdi
movq %r13, %rsi
callq 0xb340
leal 0x1(%rbp), %eax
imulq $0xbd8, %rax, %rbp      # imm = 0xBD8
addq %r15, %rbp
movl $0xbd8, %edx            # imm = 0xBD8
movq %r13, %rdi
movq %rbp, %rsi
callq 0xb340
movl $0xbd8, %edx            # imm = 0xBD8
movq %rbp, %rdi
movq %r12, %rsi
callq 0xb340
movq 0x23102(%rip), %rdi     # 0x4d188
callq 0x1ab70
movq %r15, 0x230f6(%rip)     # 0x4d188
movl 0x230e8(%rip), %eax     # 0x4d180
leal 0x1(%rax), %ecx
movl %ecx, 0x230df(%rip)     # 0x4d180
movl %eax, (%r12)
testq %rbx, %rbx
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
jne 0x2a0c0
movq (%r14), %rcx
cmpq $0x4, %rcx
jne 0x2a0c4
movl %eax, (%rbx)
xorl %ebp, %ebp
jmp 0x2a0dd
movl $0x4, %edx
cmovbq %rcx, %rdx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xb340
movl $0x16, %ebp
leaq 0x2301c(%rip), %rdi     # 0x4d100
callq 0xb380
movl %ebp, %eax
addq $0xbd8, %rsp            # imm = 0xBD8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/ctl.c
// Function: stats_arenas_i_index
static const ctl_named_node_t *
stats_arenas_i_index(tsdn_t *tsdn, const size_t *mib, size_t miblen, size_t i)
{
	const ctl_named_node_t * ret;

	malloc_mutex_lock(tsdn, &ctl_mtx);
	if (i > ctl_stats.narenas || !ctl_stats.arenas[i].initialized) {
		ret = NULL;
		goto label_return;
	}

	ret = super_stats_arenas_i_node;
label_return:
	malloc_mutex_unlock(tsdn, &ctl_mtx);
	return (ret);
}

// Assembly:
pushq %rbx
movq %rcx, %rbx
leaq 0x229f2(%rip), %rdi     # 0x4d100
callq 0xb5a0
movl 0x22a67(%rip), %eax     # 0x4d180
cmpq %rbx, %rax
jae 0x2a722
xorl %ebx, %ebx
jmp 0x2a741
movq 0x22a5f(%rip), %rax     # 0x4d188
imulq $0xbd8, %rbx, %rcx      # imm = 0xBD8
leaq 0x20de9(%rip), %rdx     # 0x4b520
xorl %ebx, %ebx
cmpb $0x0, (%rax,%rcx)
cmovneq %rdx, %rbx
leaq 0x229b8(%rip), %rdi     # 0x4d100
callq 0xb380
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/huge.c
// Function: je_huge_salloc
size_t
huge_salloc(tsdn_t *tsdn, const void *ptr)
{
	size_t size;
	extent_node_t *node;
	arena_t *arena;

	node = huge_node_get(ptr);
	arena = extent_node_arena_get(node);
	malloc_mutex_lock(tsdn, &arena->huge_mtx);
	size = extent_node_size_get(node);
	malloc_mutex_unlock(tsdn, &arena->huge_mtx);

	return (size);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rdi
callq 0x2e20e
movq %rax, %rbx
movl $0x830, %r14d           # imm = 0x830
addq (%rax), %r14
movq %r14, %rdi
callq 0xb5a0
movq 0x10(%rbx), %rbx
movq %r14, %rdi
callq 0xb380
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/nstime.c
// Function: je_nstime_update
bool
nstime_update(nstime_t *time)
{
	nstime_t old_time;

	nstime_copy(&old_time, time);
	nstime_get(time);

	/* Handle non-monotonic clocks. */
	if (unlikely(nstime_compare(&old_time, time) > 0)) {
		nstime_copy(time, &old_time);
		return (true);
	}

	return (false);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %r15
movq %rsp, %r14
movl $0x6, %edi
movq %r14, %rsi
callq 0xb140
imulq $0x3b9aca00, (%r14), %rax # imm = 0x3B9ACA00
addq 0x8(%r14), %rax
movq %rax, (%rbx)
cmpq %rax, %r15
ja 0x2e5b1
cmpq %rax, %r15
seta %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %r15, (%rbx)
jmp 0x2e5a1
nop
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/pages.c
// Function: pages_commit_impl
static bool
pages_commit_impl(void *addr, size_t size, bool commit)
{

	if (os_overcommits)
		return (true);

#ifdef _WIN32
	return (commit ? (addr != VirtualAlloc(addr, size, MEM_COMMIT,
	    PAGE_READWRITE)) : (!VirtualFree(addr, size, MEM_DECOMMIT)));
#else
	{
		int prot = commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
		void *result = mmap(addr, size, prot, mmap_flags | MAP_FIXED,
		    -1, 0);
		if (result == MAP_FAILED)
			return (true);
		if (result != addr) {
			/*
			 * We succeeded in mapping memory, but not in the right
			 * place.
			 */
			pages_unmap(result, size);
			return (true);
		}
		return (false);
	}
#endif
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movb $0x1, %bl
cmpb $0x0, 0x1eabe(%rip)     # 0x4d198
jne 0x2e719
movq %rsi, %r14
movq %rdi, %r15
movzbl %dl, %eax
leal (%rax,%rax,2), %edx
movl 0x1eaae(%rip), %ecx     # 0x4d19c
orl $0x10, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %r9d, %r9d
callq 0xb1a0
cmpq $-0x1, %rax
je 0x2e719
cmpq %r15, %rax
je 0x2e717
movq %rax, %rdi
movq %r14, %rsi
callq 0x2e628
jmp 0x2e719
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/pages.c
// Function: je_pages_boot
void
pages_boot(void)
{

#ifndef _WIN32
	mmap_flags = MAP_PRIVATE | MAP_ANON;
#endif

#ifdef JEMALLOC_SYSCTL_VM_OVERCOMMIT
	os_overcommits = os_overcommits_sysctl();
#elif defined(JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY)
	os_overcommits = os_overcommits_proc();
#  ifdef MAP_NORESERVE
	if (os_overcommits)
		mmap_flags |= MAP_NORESERVE;
#  endif
#else
	os_overcommits = false;
#endif
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x22, 0x1ea36(%rip)    # 0x4d19c
leaq 0xe4c8(%rip), %rsi      # 0x3cc35
movl $0x2, %edi
xorl %edx, %edx
xorl %eax, %eax
callq 0xb320
movq %rax, %rbx
cmpl $-0x1, %ebx
je 0x2e7c8
leaq 0x7(%rsp), %rdx
movl $0x1, %ecx
xorl %edi, %edi
movl %ebx, %esi
xorl %eax, %eax
callq 0xb320
movq %rax, %r14
movl $0x3, %edi
movl %ebx, %esi
xorl %eax, %eax
callq 0xb320
testq %r14, %r14
jle 0x2e7c8
movb 0x7(%rsp), %al
andb $-0x2, %al
cmpb $0x30, %al
sete 0x1e9db(%rip)           # 0x4d198
jne 0x2e7cf
orb $0x40, 0x1e9d7(%rip)    # 0x4d19d
jmp 0x2e7cf
movb $0x0, 0x1e9c9(%rip)     # 0x4d198
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/prof.c
// Function: je_prof_thread_active_init_get
bool
prof_thread_active_init_get(tsdn_t *tsdn)
{
	bool active_init;

	malloc_mutex_lock(tsdn, &prof_thread_active_init_mtx);
	active_init = prof_thread_active_init;
	malloc_mutex_unlock(tsdn, &prof_thread_active_init_mtx);
	return (active_init);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0x1e400(%rip), %rbx     # 0x4d310
movq %rbx, %rdi
callq 0xb5a0
movb 0x1e441(%rip), %bpl     # 0x4d360
movq %rbx, %rdi
callq 0xb380
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq