// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/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 0x4e560(%rip), %r13     # 0x846a0
movq (%r13), %rax
notq %rax
andq %rsi, %rax
cmpq %rsi, %rax
je 0x3626a
movq %rbx, %rcx
subq %rax, %rcx
shrq $0xc, %rcx
leaq 0x4e3e4(%rip), %rdx     # 0x84548
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 0x362b3
movl %ecx, %eax
leaq 0x22ef7(%rip), %rcx     # 0x59080
movq (%rcx,%rax,8), %rax
addq %rax, 0x18(%r15)
cmpb $0x1, 0x4d5fc(%rip)     # 0x83794
je 0x36277
xorl %r9d, %r9d
cmpq $0x0, 0x4d58f(%rip)     # 0x83738
jne 0x36287
movq (%r13), %rsi
notq %rsi
andq %rbx, %rsi
cmpq %rbx, %rsi
je 0x362c7
movq %rbx, %rcx
subq %rsi, %rcx
shrq $0xc, %rcx
leaq 0x4e375(%rip), %rax     # 0x84548
movq %rcx, %rdx
subq (%rax), %rdx
movq 0x68(%rsi,%rdx,8), %rax
testb $0x2, %al
jne 0x362da
testq %r14, %r14
je 0x3630b
shrl $0x5, %eax
movzbl %al, %ebp
cmpb $0x1, 0x4d536(%rip)     # 0x83732
movl %ebp, %r12d
je 0x36331
movl %ebp, %eax
shll $0x5, %eax
leaq (%r14,%rax), %r13
addq $0x20, %r13
leaq 0x4eb87(%rip), %rax     # 0x84da0
movq (%rax), %rax
movl (%rax,%r12,4), %r8d
cmpl %r8d, 0x10(%r13)
je 0x36352
movq 0x18(%r13), %rax
movl 0x10(%r13), %ecx
movq %rbx, (%rax,%rcx,8)
leal 0x1(%rcx), %eax
movl %eax, 0x10(%r13)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl $0xe4, %eax
je 0x3631b
cmpb $0x1, 0x4d53b(%rip)     # 0x83794
je 0x3629a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x48cd7
jmp 0x3618d
movq %rbx, %rdi
callq 0x350e7
movq %rax, %r9
jmp 0x361a1
movq %r15, %rdi
movq %rbx, %rsi
movq %r9, %r14
callq 0x4aed0
jmp 0x36329
movq %rbx, %rdi
movq %r9, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x50866
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
addq $-0x1000, %rax          # imm = 0xF000
jmp 0x3618d
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r9, %r14
callq 0x488cb
jmp 0x36329
testq %r14, %r14
je 0x362fb
shrq %rax
andq $-0x1000, %rax          # imm = 0xF000
leaq -0x1000(%rax), %r13
leaq 0x4eada(%rip), %rcx     # 0x84dd0
cmpq (%rcx), %r13
jbe 0x36370
movq (%rsi), %rdi
movq %rbx, %rdx
movq %r9, %r14
callq 0x3bb14
jmp 0x36329
movq (%rsi), %rdi
movq %rbx, %rdx
movq %r9, %r14
callq 0x3b9e8
jmp 0x36329
movq %r15, %rdi
movq %r14, %rsi
movq %r9, %r14
callq 0x4e7cd
movq %r14, %r9
jmp 0x36252
leaq (%r12,%r12,2), %rsi
shll $0x5, %esi
addq 0x37c89(%rip), %rsi     # 0x6dfc8
movq %rbx, %rdi
movq %r9, %r13
callq 0x3b00b
movq %r13, %r9
jmp 0x36205
shrl %r8d
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl %ebp, %ecx
movq %r9, %r12
callq 0x4e87e
movq %r12, %r9
jmp 0x3622a
cmpq $0x1000, %r13           # imm = 0x1000
ja 0x363d3
addq $-0x1001, %rax          # imm = 0xEFFF
shrq $0x3, %rax
leaq 0x23476(%rip), %rcx     # 0x59800
movzbl (%rax,%rcx), %ebp
cmpb $0x1, 0x4d39d(%rip)     # 0x83732
je 0x363e5
movl %ebp, %eax
leaq 0x4ea00(%rip), %rcx     # 0x84da0
movq (%rcx), %rcx
movl (%rcx,%rax,4), %ecx
shlq $0x5, %rax
leaq (%r14,%rax), %r13
addq $0x20, %r13
cmpl %ecx, 0x10(%r13)
jne 0x3622a
shrl %ecx
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
movq %r14, %r8
movq %r9, %r12
callq 0x4ea32
jmp 0x36368
movq %r13, %rdi
movq %r9, %r12
callq 0x39850
movq %r12, %r9
movl %eax, %ebp
jmp 0x3638e
movq %rbx, %rdi
movq %r13, %rsi
movq %r9, %r12
callq 0x3b9ed
movq %r12, %r9
jmp 0x36397