// File: /workspace/github_c_makefile_star2_O0/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/arena.c
// Function: arena_dalloc_large_locked_impl
static void
arena_dalloc_large_locked_impl(tsdn_t *tsdn, 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_mutable(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(tsdn, arena, run, true, false, false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movb %r8b, %al
movq %rdi, -0xa8(%rbp)
movq %rsi, -0xb0(%rbp)
movq %rdx, -0xb8(%rbp)
movq %rcx, -0xc0(%rbp)
andb $0x1, %al
movb %al, -0xc1(%rbp)
movq -0xc0(%rbp), %rax
movq -0xb8(%rbp), %rcx
subq %rcx, %rax
shrq $0xc, %rax
movq %rax, -0xd0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, -0x88(%rbp)
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
addq 0x643f0(%rip), %rax     # 0xa3fa8
imulq $0x60, -0x90(%rbp), %rcx
addq %rcx, %rax
xorl %ecx, %ecx
subq 0x643d4(%rip), %rcx     # 0xa3fa0
imulq $0x60, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
addq $0x18, %rax
movq %rax, -0xe0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rcx
movq -0x68(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rcx
movq -0x40(%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 $0x78, %rax
movq -0x20(%rbp), %rcx
subq 0x6434b(%rip), %rcx     # 0xa3fa0
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $-0x2000, %rax          # imm = 0xE000
shrq %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
subq $0x1000, %rax           # imm = 0x1000
movq %rax, -0xe8(%rbp)
testb $0x1, -0xc1(%rbp)
jne 0x3fcb1
movq -0xc0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x3fab0
movq -0xe8(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x1000, -0xa0(%rbp) # imm = 0x1000
setbe %al
testb $0x1, %al
jne 0x3fcd3
jmp 0x3fd03
movq -0xa0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rcx
subq $0x1, %rcx
shrq $0x3, %rcx
leaq 0x50d8f(%rip), %rax     # 0x90a80
movzbl (%rax,%rcx), %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x94(%rbp)
jmp 0x3fd15
movq -0xa0(%rbp), %rdi
callq 0x4d7d0
movl %eax, -0x94(%rbp)
movl -0x94(%rbp), %eax
subl $0x27, %eax
movl %eax, -0xec(%rbp)
movq -0xb0(%rbp), %rax
movq 0xa8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xa8(%rax)
movq -0xe8(%rbp), %rdx
movq -0xb0(%rbp), %rax
movq 0x98(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x98(%rax)
movq -0xb0(%rbp), %rax
movq 0xd0(%rax), %rax
movl -0xec(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0xb0(%rbp), %rax
movq 0xd0(%rax), %rax
movl -0xec(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x18(%rax)
movq -0xa8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq -0xe0(%rbp), %rdx
movl $0x1, %ecx
xorl %r9d, %r9d
movl %r9d, %r8d
callq 0x49a50
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax,%rax)