// File: /workspace/github_c_makefile_star2_O2/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/jemalloc.c
// Function: isfree
JEMALLOC_INLINE_C void
isfree(tsd_t *tsd, void *ptr, size_t usize, tcache_t *tcache, bool slow_path)
{
	UNUSED size_t rzsize JEMALLOC_CC_SILENCE_INIT(0);

	witness_assert_lockless(tsd_tsdn(tsd));

	assert(ptr != NULL);
	assert(malloc_initialized() || IS_INITIALIZER);

	if (config_prof && opt_prof)
		prof_free(tsd, ptr, usize);
	if (config_stats)
		*tsd_thread_deallocatedp_get(tsd) += usize;
	if (config_valgrind && unlikely(in_valgrind))
		rzsize = p2rz(tsd_tsdn(tsd), ptr);
	isqalloc(tsd, ptr, usize, tcache, slow_path);
	JEMALLOC_VALGRIND_FREE(ptr, rzsize);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rdx, %r13
movq %rdi, %r15
addq %rdx, 0x18(%rdi)
movq %rcx, %r12
movq %rsi, %rbx
cmpb $0x1, 0x309ca(%rip)     # 0x4859c
je 0x17cbb
xorl %ecx, %ecx
testb %bpl, %bpl
je 0x17bed
cmpq $0x0, 0x30941(%rip)     # 0x48528
jne 0x17df6
leaq 0x314dc(%rip), %rax     # 0x490d0
movq (%rax), %rdx
notq %rdx
andq %rbx, %rdx
cmpq %rbx, %rdx
je 0x17ce7
cmpq $0x3800, %r13           # imm = 0x3800
ja 0x17cfa
testq %r12, %r12
je 0x17d86
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x17da3
decq %r13
shrq $0x3, %r13
leaq 0x1ed89(%rip), %rax     # 0x369c0
movzbl (%r13,%rax), %r13d
movl %r13d, %r14d
testb %bpl, %bpl
je 0x17c52
cmpb $0x1, 0x308d6(%rip)     # 0x48522
je 0x17e1c
movq %r14, %rax
shlq $0x5, %rax
leaq (%r12,%rax), %rbp
addq $0x28, %rbp
leaq 0x31810(%rip), %rax     # 0x49478
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r14,4), %r8d
je 0x17db9
incl %r8d
movl %r8d, 0x10(%rbp)
movq 0x18(%rbp), %rax
shlq $0x3, %r8
negq %r8
movq %rbx, (%rax,%r8)
movl 0x18(%r12), %eax
testl %eax, %eax
jle 0x17ddc
decl %eax
movl %eax, 0x18(%r12)
cmpb $0x1, 0x308f2(%rip)     # 0x4859c
je 0x17cce
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rbx, %rsi
callq 0x13779
movq %rax, %rcx
jmp 0x17bda
movq %rbx, %rdi
movq %rcx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3251a
movq %r15, %rdi
movq %rbx, %rsi
movq %rcx, %r14
callq 0x28fb2
jmp 0x17e14
movq %rcx, %r14
testq %r12, %r12
je 0x17e06
leaq 0x31793(%rip), %rax     # 0x494a0
cmpq %r13, (%rax)
jb 0x17e06
movq %r13, %rdi
callq 0x19a84
testb %bpl, %bpl
je 0x17d30
cmpb $0x1, 0x307f8(%rip)     # 0x48522
je 0x17e6a
movl %eax, %esi
movq %rsi, %rcx
shlq $0x5, %rcx
leaq (%r12,%rcx), %r13
addq $0x28, %r13
leaq 0x31730(%rip), %rcx     # 0x49478
movq (%rcx), %rdx
movl 0x10(%r13), %ecx
cmpl (%rdx,%rsi,4), %ecx
je 0x17e3d
incl %ecx
movl %ecx, 0x10(%r13)
movq 0x18(%r13), %rax
shlq $0x3, %rcx
negq %rcx
movq %rbx, (%rax,%rcx)
movl 0x18(%r12), %eax
testl %eax, %eax
jle 0x17e58
decl %eax
movl %eax, 0x18(%r12)
jmp 0x17e14
movq %rbx, %r8
subq %rdx, %r8
shrq $0xc, %r8
movq (%rdx), %rsi
movq %r15, %rdi
movq %rcx, %r14
movq %rbx, %rcx
callq 0x1ca94
jmp 0x17e14
movq %r13, %rdi
movq %rcx, %r14
callq 0x19a84
movq %r14, %rcx
movl %eax, %r13d
jmp 0x17c3d
shrl %r8d
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rcx, %r14
movl %r13d, %ecx
callq 0x301d3
movq %r14, %rcx
movl 0x10(%rbp), %r8d
jmp 0x17c79
movl 0x1c(%r12), %eax
movl %eax, 0x18(%r12)
movq %r15, %rdi
movq %r12, %rsi
movq %rcx, %r14
callq 0x30129
jmp 0x17e14
movq %r15, %rdi
movq %rbx, %rsi
movq %rcx, %r14
callq 0x2af4b
jmp 0x17e14
movq (%rdx), %rsi
movq %r15, %rdi
movq %rbx, %rcx
callq 0x1cc1f
movq %r14, %rcx
jmp 0x17ca3
movq %r14, %rsi
shlq $0x6, %rsi
addq 0x301ae(%rip), %rsi     # 0x47fd8
movq %rbx, %rdi
movq %rcx, %rbp
callq 0x1b8a9
movq %rbp, %rcx
jmp 0x17c52
shrl %ecx
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
movq %r12, %r8
callq 0x303be
movl 0x10(%r13), %ecx
jmp 0x17d58
movl 0x1c(%r12), %eax
movl %eax, 0x18(%r12)
movq %r15, %rdi
movq %r12, %rsi
jmp 0x17def
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %ebp
callq 0x1cae2
movl %ebp, %eax
jmp 0x17d30