// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/jemalloc/src/jemalloc.c
// Function: ifree
JEMALLOC_INLINE_C void
ifree(tsd_t *tsd, void *ptr, tcache_t *tcache)
{
	size_t usize;
	UNUSED size_t rzsize JEMALLOC_CC_SILENCE_INIT(0);

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

	if (config_prof && opt_prof) {
		usize = isalloc(ptr, config_prof);
		prof_free(tsd, ptr, usize);
	} else if (config_stats || config_valgrind)
		usize = isalloc(ptr, config_prof);
	if (config_stats)
		*tsd_thread_deallocatedp_get(tsd) += usize;
	if (config_valgrind && unlikely(in_valgrind))
		rzsize = p2rz(ptr);
	iqalloc(tsd, ptr, tcache);
	JEMALLOC_VALGRIND_FREE(ptr, rzsize);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x37f4b(%rip), %r13     # 0x5b6b0
movq (%r13), %rax
notq %rax
andq %rsi, %rax
cmpq %rsi, %rax
je 0x2388d
movq %rbx, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x37dcf(%rip), %rdx     # 0x5b558
subq (%rdx), %rcx
movq 0x68(%rax,%rcx,8), %rax
movl %eax, %ecx
shrl $0x5, %ecx
movl $0xff, %edx
andl %edx, %ecx
cmpl %edx, %ecx
je 0x238d0
movl %ecx, %eax
leaq 0x24092(%rip), %rcx     # 0x47840
movq (%rcx,%rax,8), %rax
addq %rax, 0x18(%r15)
cmpb $0x1, 0x36ec7(%rip)     # 0x5a684
je 0x2389a
xorl %r12d, %r12d
cmpq $0x0, 0x36e5a(%rip)     # 0x5a628
jne 0x238aa
movq (%r13), %rsi
notq %rsi
andq %rbx, %rsi
cmpq %rbx, %rsi
je 0x238e4
movq %rbx, %rcx
subq %rsi, %rcx
shrq $0xc, %rcx
leaq 0x37d60(%rip), %rax     # 0x5b558
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x238f4
testq %r14, %r14
je 0x23925
shrl $0x5, %eax
movzbl %al, %r13d
cmpb $0x1, 0x36e00(%rip)     # 0x5a622
je 0x23945
movl %r13d, %eax
shll $0x5, %eax
leaq (%r14,%rax), %rbp
addq $0x20, %rbp
leaq 0x38573(%rip), %rax     # 0x5bdb0
movq (%rax), %rax
movl 0x10(%rbp), %r8d
cmpl (%rax,%r13,4), %r8d
je 0x23967
movq 0x18(%rbp), %rax
movl %r8d, %ecx
movq %rbx, (%rax,%rcx,8)
incl %r8d
movl %r8d, 0x10(%rbp)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xd3, %eax
je 0x23935
cmpb $0x1, 0x36e08(%rip)     # 0x5a684
je 0x238b7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x36d46
jmp 0x237b2
movq %rbx, %rdi
callq 0x22712
movq %rax, %r12
jmp 0x237c6
movq %r15, %rdi
movq %rbx, %rsi
callq 0x38e87
jmp 0x23875
movq %rbx, %rdi
movq %r12, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3e82a
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x237b2
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x36925
jmp 0x23875
testq %r14, %r14
je 0x23915
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r13
leaq 0x384d0(%rip), %rcx     # 0x5bde0
cmpq (%rcx), %r13
jbe 0x23984
movq (%rsi), %rdi
movq %rbx, %rdx
callq 0x299db
jmp 0x23875
movq (%rsi), %rdi
movq %rbx, %rdx
callq 0x298af
jmp 0x23875
movq %r15, %rdi
movq %r14, %rsi
callq 0x3c7e1
jmp 0x23875
leaq (,%r13,2), %rsi
addq %r13, %rsi
shll $0x5, %esi
addq 0x3467e(%rip), %rsi     # 0x57fd8
movq %rbx, %rdi
callq 0x2859f
jmp 0x23828
shrl %r8d
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movl %r13d, %ecx
callq 0x3c88f
movl 0x10(%rbp), %r8d
jmp 0x2384e
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x239e4
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x24622(%rip), %rcx     # 0x47fc0
movzbl (%rax,%rcx), %ebp
cmpb $0x1, 0x36c79(%rip)     # 0x5a622
je 0x239f0
movl %ebp, %eax
movq %rax, %rcx
shlq $0x5, %rcx
leaq (%r14,%rcx), %r13
addq $0x20, %r13
leaq 0x383ed(%rip), %rcx     # 0x5bdb0
movq (%rcx), %rdx
movl 0x10(%r13), %ecx
cmpl (%rdx,%rax,4), %ecx
je 0x239fd
movq 0x18(%r13), %rax
movl %ecx, %edx
movq %rbx, (%rax,%rdx,8)
incl %ecx
movl %ecx, 0x10(%r13)
jmp 0x23860
movq %r13, %rdi
callq 0x26dcf
movl %eax, %ebp
jmp 0x239a2
movq %rbx, %rdi
movq %r13, %rsi
callq 0x298b4
jmp 0x239ab
shrl %ecx
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x3ca47
movl 0x10(%r13), %ecx
jmp 0x239cf