// File: /workspace/github_c_makefile_star2_O1/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, 0x2cac8(%rip)     # 0x4c59c
je 0x1fbc7
xorl %esi, %esi
testb %bpl, %bpl
je 0x1faef
cmpq $0x0, 0x2ca3f(%rip)     # 0x4c528
jne 0x1fd0a
leaq 0x2d5da(%rip), %rax     # 0x4d0d0
movq (%rax), %rdx
notq %rdx
andq %rbx, %rdx
cmpq %rbx, %rdx
je 0x1fbf0
cmpq $0x3800, %r13           # imm = 0x3800
ja 0x1fc03
testq %r12, %r12
je 0x1fc9e
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x1fcbb
decq %r13
shrq $0x3, %r13
leaq 0x1c287(%rip), %rax     # 0x3bdc0
movzbl (%r13,%rax), %r13d
movl %r13d, %r14d
testb %bpl, %bpl
je 0x1fb54
cmpb $0x1, 0x2c9d4(%rip)     # 0x4c522
je 0x1fd30
movq %r14, %rax
shlq $0x5, %rax
leaq (%r12,%rax), %rbp
addq $0x28, %rbp
leaq 0x2d90e(%rip), %rax     # 0x4d478
movq (%rax), %rax
movl (%rax,%r14,4), %r8d
cmpl %r8d, 0x10(%rbp)
je 0x1fcd1
movl 0x10(%rbp), %eax
incl %eax
movl %eax, 0x10(%rbp)
movq 0x18(%rbp), %rcx
shlq $0x3, %rax
negq %rax
movq %rbx, (%rcx,%rax)
movl 0x18(%r12), %eax
testl %eax, %eax
jle 0x1fcf0
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%r12)
testl %eax, %eax
jle 0x1fcfa
cmpb $0x1, 0x2c9e6(%rip)     # 0x4c59c
je 0x1fbda
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1bc38
movq %rax, %rsi
jmp 0x1fadc
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3719a
movq %r15, %rdi
movq %rsi, %r14
movq %rbx, %rsi
callq 0x11227
jmp 0x1fd28
movq %rsi, %r14
testq %r12, %r12
je 0x1fd1a
leaq 0x2d88a(%rip), %rax     # 0x4d4a0
cmpq %r13, (%rax)
jb 0x1fd1a
movq %r13, %rdi
callq 0xb8ec
movl %eax, %edx
testb %bpl, %bpl
je 0x1fc3b
cmpb $0x1, 0x2c8ed(%rip)     # 0x4c522
je 0x1fd73
movl %edx, %eax
leaq 0x2d834(%rip), %rcx     # 0x4d478
movq (%rcx), %rcx
movl (%rcx,%rax,4), %ecx
shlq $0x5, %rax
leaq (%r12,%rax), %r13
addq $0x28, %r13
cmpl %ecx, 0x10(%r13)
movq %r14, %rsi
je 0x1fd51
movl 0x10(%r13), %eax
incl %eax
movl %eax, 0x10(%r13)
movq 0x18(%r13), %rcx
shlq $0x3, %rax
negq %rax
movq %rbx, (%rcx,%rax)
movl 0x18(%r12), %eax
testl %eax, %eax
jle 0x1fd69
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%r12)
testl %eax, %eax
jg 0x1fbaf
movq %r15, %rdi
jmp 0x1fd00
movq %rbx, %r8
subq %rdx, %r8
shrq $0xc, %r8
movq %rsi, %r14
movq (%rdx), %rsi
movq %r15, %rdi
movq %rbx, %rcx
callq 0xdf6b
jmp 0x1fd28
movq %r13, %rdi
movq %rsi, %r14
callq 0xb8ec
movq %r14, %rsi
movl %eax, %r13d
jmp 0x1fb3f
shrl %r8d
movq %r15, %rdi
movq %rsi, %r14
movq %r12, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
callq 0x35162
movq %r14, %rsi
jmp 0x1fb7b
movl 0x1c(%r12), %ecx
jmp 0x1fba2
movq %r15, %rdi
movq %rsi, %r14
movq %r12, %rsi
callq 0x350b5
jmp 0x1fd28
movq %r15, %rdi
movq %rsi, %r14
movq %rbx, %rsi
callq 0x30003
jmp 0x1fd28
movq (%rdx), %rsi
movq %r15, %rdi
movq %rbx, %rcx
callq 0xdfd3
movq %r14, %rsi
jmp 0x1fbaf
movq %rsi, %rbp
movq %r14, %rsi
shlq $0x6, %rsi
addq 0x2c28f(%rip), %rsi     # 0x4bfd0
movq %rbx, %rdi
callq 0x2343b
movq %rbp, %rsi
jmp 0x1fb54
shrl %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %r8
callq 0x353a2
movq %r14, %rsi
jmp 0x1fc63
movl 0x1c(%r12), %ecx
jmp 0x1fc8c
movq %rbx, %rdi
movq %r13, %rsi
movl %edx, %ebp
callq 0x2394d
movl %ebp, %edx
jmp 0x1fc3b