// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/arena.c
// Function: arena_dalloc_large_locked_impl
static void
arena_dalloc_large_locked_impl(arena_t *arena, arena_chunk_t *chunk,
    void *ptr, bool junked)
{
	size_t pageind = ((uintptr_t)ptr - (uintptr_t)chunk) >> LG_PAGE;
	arena_chunk_map_misc_t *miscelm = arena_miscelm_get(chunk, pageind);
	arena_run_t *run = &miscelm->run;

	if (config_fill || config_stats) {
		size_t usize = arena_mapbits_large_size_get(chunk, pageind) -
		    large_pad;

		if (!junked)
			arena_dalloc_junk_large(ptr, usize);
		if (config_stats) {
			szind_t index = size2index(usize) - NBINS;

			arena->stats.ndalloc_large++;
			arena->stats.allocated_large -= usize;
			arena->stats.lstats[index].ndalloc++;
			arena->stats.lstats[index].curruns--;
		}
	}

	arena_run_dalloc_decommit(arena, chunk, run);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movb %cl, %al
movq %rdi, -0x98(%rbp)
movq %rsi, -0xa0(%rbp)
movq %rdx, -0xa8(%rbp)
andb $0x1, %al
movb %al, -0xa9(%rbp)
movq -0xa8(%rbp), %rax
movq -0xa0(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0xb8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xb8(%rbp), %rax
movq %rcx, -0x78(%rbp)
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rax
addq 0x62559(%rip), %rax     # 0xa25e0
imulq $0x60, -0x80(%rbp), %rcx
addq %rcx, %rax
xorl %ecx, %ecx
subq 0x62540(%rip), %rcx     # 0xa25d8
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
addq $0x10, %rax
movq %rax, -0xc8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xb8(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
addq $0x68, %rax
movq -0x20(%rbp), %rcx
subq 0x624c7(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0xd0(%rbp)
testb $0x1, -0xa9(%rbp)
jne 0x4016d
movq -0xa8(%rbp), %rdi
movq -0xd0(%rbp), %rsi
callq 0x3ffa0
movq -0xd0(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x1000, -0x90(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x4018f
jmp 0x401c1
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x4ead3(%rip), %rax     # 0x8ec80
movzbl (%rax,%rcx), %eax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl %eax, -0x84(%rbp)
jmp 0x401d3
movq -0x90(%rbp), %rdi
callq 0x4ca20
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
subl $0x27, %eax
movl %eax, -0xd4(%rbp)
movq -0x98(%rbp), %rax
movq 0x70(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x70(%rax)
movq -0xd0(%rbp), %rdx
movq -0x98(%rbp), %rax
movq 0x60(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x60(%rax)
movq -0x98(%rbp), %rax
movq 0x98(%rax), %rax
movl -0xd4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x98(%rbp), %rax
movq 0x98(%rax), %rax
movl -0xd4(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x18(%rax)
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rsi
movq -0xc8(%rbp), %rdx
callq 0x4c3c0
addq $0xe0, %rsp
popq %rbp
retq
nop