// File: /workspace/github_c_makefile_star2_O3/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, 0x2cdc6(%rip)     # 0x4c59c
je 0x1f8bf
xorl %ecx, %ecx
testb %bpl, %bpl
je 0x1f7f1
cmpq $0x0, 0x2cd3d(%rip)     # 0x4c528
jne 0x1f9fa
leaq 0x2d8d8(%rip), %rax     # 0x4d0d0
movq (%rax), %rdx
notq %rdx
andq %rbx, %rdx
cmpq %rbx, %rdx
je 0x1f8eb
cmpq $0x3800, %r13           # imm = 0x3800
ja 0x1f8fe
testq %r12, %r12
je 0x1f98a
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x1f9a7
decq %r13
shrq $0x3, %r13
leaq 0x1c605(%rip), %rax     # 0x3be40
movzbl (%r13,%rax), %r13d
movl %r13d, %r14d
testb %bpl, %bpl
je 0x1f856
cmpb $0x1, 0x2ccd2(%rip)     # 0x4c522
je 0x1fa20
movq %r14, %rax
shlq $0x5, %rax
leaq (%r12,%rax), %rbp
addq $0x28, %rbp
leaq 0x2dc0c(%rip), %rax     # 0x4d478
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r14,4), %r8d
je 0x1f9bd
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 0x1f9e0
decl %eax
movl %eax, 0x18(%r12)
cmpb $0x1, 0x2ccee(%rip)     # 0x4c59c
je 0x1f8d2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b9d9
movq %rax, %rcx
jmp 0x1f7de
movq %rbx, %rdi
movq %rcx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x37746
movq %r15, %rdi
movq %rbx, %rsi
movq %rcx, %r14
callq 0x10a30
jmp 0x1fa18
movq %rcx, %r14
testq %r12, %r12
je 0x1fa0a
leaq 0x2db8f(%rip), %rax     # 0x4d4a0
cmpq %r13, (%rax)
jb 0x1fa0a
movq %r13, %rdi
callq 0xb765
testb %bpl, %bpl
je 0x1f934
cmpb $0x1, 0x2cbf4(%rip)     # 0x4c522
je 0x1fa6e
movl %eax, %esi
movq %rsi, %rcx
shlq $0x5, %rcx
leaq (%r12,%rcx), %r13
addq $0x28, %r13
leaq 0x2db2c(%rip), %rcx     # 0x4d478
movq (%rcx), %rdx
movl 0x10(%r13), %ecx
cmpl (%rdx,%rsi,4), %ecx
je 0x1fa41
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 0x1fa5c
decl %eax
movl %eax, 0x18(%r12)
jmp 0x1fa18
movq %rbx, %r8
subq %rdx, %r8
shrq $0xc, %r8
movq (%rdx), %rsi
movq %r15, %rdi
movq %rcx, %r14
movq %rbx, %rcx
callq 0xd9f4
jmp 0x1fa18
movq %r13, %rdi
movq %rcx, %r14
callq 0xb765
movq %r14, %rcx
movl %eax, %r13d
jmp 0x1f841
shrl %r8d
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rcx, %r14
movl %r13d, %ecx
callq 0x3561b
movq %r14, %rcx
movl 0x10(%rbp), %r8d
jmp 0x1f87d
movl 0x1c(%r12), %eax
movl %eax, 0x18(%r12)
movq %r15, %rdi
movq %r12, %rsi
movq %rcx, %r14
callq 0x35571
jmp 0x1fa18
movq %r15, %rdi
movq %rbx, %rsi
movq %rcx, %r14
callq 0x2fdfa
jmp 0x1fa18
movq (%rdx), %rsi
movq %r15, %rdi
movq %rbx, %rcx
callq 0xda57
movq %r14, %rcx
jmp 0x1f8a7
movq %r14, %rsi
shlq $0x6, %rsi
addq 0x2c5a2(%rip), %rsi     # 0x4bfd0
movq %rbx, %rdi
movq %rcx, %rbp
callq 0x2333e
movq %rbp, %rcx
jmp 0x1f856
shrl %ecx
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
movq %r12, %r8
callq 0x35853
movl 0x10(%r13), %ecx
jmp 0x1f95c
movl 0x1c(%r12), %eax
movl %eax, 0x18(%r12)
movq %r15, %rdi
movq %r12, %rsi
jmp 0x1f9f3
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %ebp
callq 0x23843
movl %ebp, %eax
jmp 0x1f934