// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/arena.c
// Function: arena_run_split_large_helper
static bool
arena_run_split_large_helper(arena_t *arena, arena_run_t *run, size_t size,
    bool remove, bool zero)
{
	arena_chunk_t *chunk;
	arena_chunk_map_misc_t *miscelm;
	size_t flag_dirty, flag_decommitted, run_ind, need_pages;
	size_t flag_unzeroed_mask;

	chunk = (arena_chunk_t *)CHUNK_ADDR2BASE(run);
	miscelm = arena_run_to_miscelm(run);
	run_ind = arena_miscelm_to_pageind(miscelm);
	flag_dirty = arena_mapbits_dirty_get(chunk, run_ind);
	flag_decommitted = arena_mapbits_decommitted_get(chunk, run_ind);
	need_pages = (size >> LG_PAGE);
	assert(need_pages > 0);

	if (flag_decommitted != 0 && arena->chunk_hooks.commit(chunk, chunksize,
	    run_ind << LG_PAGE, size, arena->ind))
		return (true);

	if (remove) {
		arena_run_split_remove(arena, chunk, run_ind, flag_dirty,
		    flag_decommitted, need_pages);
	}

	if (zero) {
		if (flag_decommitted != 0) {
			/* The run is untouched, and therefore zeroed. */
			JEMALLOC_VALGRIND_MAKE_MEM_DEFINED((void
			    *)((uintptr_t)chunk + (run_ind << LG_PAGE)),
			    (need_pages << LG_PAGE));
		} else if (flag_dirty != 0) {
			/* The run is dirty, so all pages must be zeroed. */
			arena_run_zero(chunk, run_ind, need_pages);
		} else {
			/*
			 * The run is clean, so some pages may be zeroed (i.e.
			 * never before touched).
			 */
			size_t i;
			for (i = 0; i < need_pages; i++) {
				if (arena_mapbits_unzeroed_get(chunk, run_ind+i)
				    != 0)
					arena_run_zero(chunk, run_ind+i, 1);
				else if (config_debug) {
					arena_run_page_validate_zeroed(chunk,
					    run_ind+i);
				} else {
					arena_run_page_mark_zeroed(chunk,
					    run_ind+i);
				}
			}
		}
	} else {
		JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED((void *)((uintptr_t)chunk +
		    (run_ind << LG_PAGE)), (need_pages << LG_PAGE));
	}

	/*
	 * Set the last element first, in case the run only contains one page
	 * (i.e. both statements set the same element).
	 */
	flag_unzeroed_mask = (flag_dirty | flag_decommitted) == 0 ?
	    CHUNK_MAP_UNZEROED : 0;
	arena_mapbits_large_set(chunk, run_ind+need_pages-1, 0, flag_dirty |
	    (flag_unzeroed_mask & arena_mapbits_unzeroed_get(chunk,
	    run_ind+need_pages-1)));
	arena_mapbits_large_set(chunk, run_ind, size, flag_dirty |
	    (flag_unzeroed_mask & arena_mapbits_unzeroed_get(chunk, run_ind)));
	return (false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movb %r8b, %al
movq %rdi, -0x298(%rbp)
movq %rsi, -0x2a0(%rbp)
movq %rdx, -0x2a8(%rbp)
andb $0x1, %cl
movb %cl, -0x2a9(%rbp)
andb $0x1, %al
movb %al, -0x2aa(%rbp)
movq -0x2a0(%rbp), %rax
leaq 0x5b89e(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x2b8(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x280(%rbp)
movq -0x280(%rbp), %rax
subq $0x10, %rax
movq %rax, -0x288(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x268(%rbp), %rax
leaq 0x5b843(%rip), %rcx     # 0xa2730
movq (%rcx), %rcx
xorq $-0x1, %rcx
andq %rcx, %rax
movq %rax, -0x270(%rbp)
movq -0x268(%rbp), %rax
movq -0x270(%rbp), %rcx
addq 0x5b6cd(%rip), %rcx     # 0xa25e0
subq %rcx, %rax
movl $0x60, %ecx
xorl %edx, %edx
divq %rcx
addq 0x5b6b1(%rip), %rax     # 0xa25d8
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x2b8(%rbp), %rcx
movq -0x2d8(%rbp), %rax
movq %rcx, -0x250(%rbp)
movq %rax, -0x258(%rbp)
movq -0x250(%rbp), %rcx
movq -0x258(%rbp), %rax
movq %rcx, -0x240(%rbp)
movq %rax, -0x248(%rbp)
movq -0x240(%rbp), %rcx
movq -0x248(%rbp), %rax
movq %rcx, -0x228(%rbp)
movq %rax, -0x230(%rbp)
movq -0x228(%rbp), %rcx
movq -0x230(%rbp), %rax
movq %rcx, -0x218(%rbp)
movq %rax, -0x220(%rbp)
movq -0x218(%rbp), %rax
addq $0x68, %rax
movq -0x220(%rbp), %rcx
subq 0x5b613(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x260(%rbp)
movq -0x260(%rbp), %rax
andq $0x10, %rax
movq %rax, -0x2c8(%rbp)
movq -0x2b8(%rbp), %rcx
movq -0x2d8(%rbp), %rax
movq %rcx, -0x200(%rbp)
movq %rax, -0x208(%rbp)
movq -0x200(%rbp), %rcx
movq -0x208(%rbp), %rax
movq %rcx, -0x1f0(%rbp)
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rcx
movq -0x1f8(%rbp), %rax
movq %rcx, -0x1d8(%rbp)
movq %rax, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rcx
movq -0x1e0(%rbp), %rax
movq %rcx, -0x1c8(%rbp)
movq %rax, -0x1d0(%rbp)
movq -0x1c8(%rbp), %rax
addq $0x68, %rax
movq -0x1d0(%rbp), %rcx
subq 0x5b559(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
andq $0x4, %rax
movq %rax, -0x2d0(%rbp)
movq -0x2a8(%rbp), %rax
shrq $0xc, %rax
movq %rax, -0x2e0(%rbp)
jmp 0x470c4
cmpq $0x0, -0x2d0(%rbp)
je 0x4711d
movq -0x298(%rbp), %rax
movq 0x428(%rax), %rax
movq -0x2b8(%rbp), %rdi
leaq 0x5b63e(%rip), %rcx     # 0xa2728
movq (%rcx), %rsi
movq -0x2d8(%rbp), %rdx
shlq $0xc, %rdx
movq -0x2a8(%rbp), %rcx
movq -0x298(%rbp), %r8
movl (%r8), %r8d
callq *%rax
testb $0x1, %al
jne 0x47111
jmp 0x4711d
movb $0x1, -0x289(%rbp)
jmp 0x476a9
testb $0x1, -0x2a9(%rbp)
je 0x47155
movq -0x298(%rbp), %rdi
movq -0x2b8(%rbp), %rsi
movq -0x2d8(%rbp), %rdx
movq -0x2c8(%rbp), %rcx
movq -0x2d0(%rbp), %r8
movq -0x2e0(%rbp), %r9
callq 0x476c0
testb $0x1, -0x2aa(%rbp)
je 0x47316
cmpq $0x0, -0x2d0(%rbp)
je 0x471b4
jmp 0x4716e
leaq 0x5a58f(%rip), %rax     # 0xa1704
movb (%rax), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x471ad
movq -0x2b8(%rbp), %rdi
movq -0x2d8(%rbp), %rax
shlq $0xc, %rax
addq %rax, %rdi
movq -0x2e0(%rbp), %rsi
shlq $0xc, %rsi
callq 0x7fb10
jmp 0x471af
jmp 0x47314
cmpq $0x0, -0x2c8(%rbp)
je 0x471dd
movq -0x2b8(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
movq -0x2e0(%rbp), %rdx
callq 0x47c40
jmp 0x47312
movq $0x0, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rax
cmpq -0x2e0(%rbp), %rax
jae 0x47310
movq -0x2b8(%rbp), %rcx
movq -0x2d8(%rbp), %rax
addq -0x2f0(%rbp), %rax
movq %rcx, -0x110(%rbp)
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rcx
movq -0x118(%rbp), %rax
movq %rcx, -0x100(%rbp)
movq %rax, -0x108(%rbp)
movq -0x100(%rbp), %rcx
movq -0x108(%rbp), %rax
movq %rcx, -0xe8(%rbp)
movq %rax, -0xf0(%rbp)
movq -0xe8(%rbp), %rcx
movq -0xf0(%rbp), %rax
movq %rcx, -0xd8(%rbp)
movq %rax, -0xe0(%rbp)
movq -0xd8(%rbp), %rax
addq $0x68, %rax
movq -0xe0(%rbp), %rcx
subq 0x5b34c(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
andq $0x8, %rax
cmpq $0x0, %rax
je 0x472dd
movq -0x2b8(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
addq -0x2f0(%rbp), %rsi
movl $0x1, %edx
callq 0x47c40
jmp 0x472f7
movq -0x2b8(%rbp), %rdi
movq -0x2d8(%rbp), %rsi
addq -0x2f0(%rbp), %rsi
callq 0x47cb0
jmp 0x472f9
movq -0x2f0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2f0(%rbp)
jmp 0x471e8
jmp 0x47312
jmp 0x47314
jmp 0x4735b
jmp 0x47318
leaq 0x5a3e5(%rip), %rax     # 0xa1704
movb (%rax), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x47357
movq -0x2b8(%rbp), %rdi
movq -0x2d8(%rbp), %rax
shlq $0xc, %rax
addq %rax, %rdi
movq -0x2e0(%rbp), %rsi
shlq $0xc, %rsi
callq 0x7faa0
jmp 0x47359
jmp 0x4735b
movq -0x2c8(%rbp), %rdx
orq -0x2d0(%rbp), %rdx
xorl %eax, %eax
movl $0x8, %ecx
cmpq $0x0, %rdx
cmoveq %rcx, %rax
movq %rax, -0x2e8(%rbp)
movq -0x2b8(%rbp), %rdx
movq -0x2d8(%rbp), %rcx
addq -0x2e0(%rbp), %rcx
subq $0x1, %rcx
movq -0x2c8(%rbp), %rax
movq -0x2e8(%rbp), %rsi
movq -0x2b8(%rbp), %r8
movq -0x2d8(%rbp), %rdi
addq -0x2e0(%rbp), %rdi
subq $0x1, %rdi
movq %r8, -0x160(%rbp)
movq %rdi, -0x168(%rbp)
movq -0x160(%rbp), %r8
movq -0x168(%rbp), %rdi
movq %r8, -0x150(%rbp)
movq %rdi, -0x158(%rbp)
movq -0x150(%rbp), %r8
movq -0x158(%rbp), %rdi
movq %r8, -0x138(%rbp)
movq %rdi, -0x140(%rbp)
movq -0x138(%rbp), %r8
movq -0x140(%rbp), %rdi
movq %r8, -0x128(%rbp)
movq %rdi, -0x130(%rbp)
movq -0x128(%rbp), %rdi
addq $0x68, %rdi
movq -0x130(%rbp), %r8
subq 0x5b19e(%rip), %r8      # 0xa25d8
shlq $0x3, %r8
addq %r8, %rdi
movq %rdi, -0x148(%rbp)
movq -0x148(%rbp), %rdi
movq (%rdi), %rdi
movq %rdi, -0x170(%rbp)
movq -0x170(%rbp), %rdi
andq $0x8, %rdi
andq %rdi, %rsi
orq %rsi, %rax
movq %rdx, -0x48(%rbp)
movq %rcx, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rcx
movq -0x50(%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), %rax
addq $0x68, %rax
movq -0x30(%rbp), %rcx
subq 0x5b127(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rcx
movq -0x58(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
shlq %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
orq $0x1fe0, %rax           # imm = 0x1FE0
orq -0x60(%rbp), %rax
orq $0x2, %rax
orq $0x1, %rax
movq %rcx, -0x18(%rbp)
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x2b8(%rbp), %rsi
movq -0x2d8(%rbp), %rdx
movq -0x2a8(%rbp), %rcx
movq -0x2c8(%rbp), %rax
movq -0x2e8(%rbp), %rdi
movq -0x2b8(%rbp), %r9
movq -0x2d8(%rbp), %r8
movq %r9, -0x1b0(%rbp)
movq %r8, -0x1b8(%rbp)
movq -0x1b0(%rbp), %r9
movq -0x1b8(%rbp), %r8
movq %r9, -0x1a0(%rbp)
movq %r8, -0x1a8(%rbp)
movq -0x1a0(%rbp), %r9
movq -0x1a8(%rbp), %r8
movq %r9, -0x188(%rbp)
movq %r8, -0x190(%rbp)
movq -0x188(%rbp), %r9
movq -0x190(%rbp), %r8
movq %r9, -0x178(%rbp)
movq %r8, -0x180(%rbp)
movq -0x178(%rbp), %r8
addq $0x68, %r8
movq -0x180(%rbp), %r9
subq 0x5b030(%rip), %r9      # 0xa25d8
shlq $0x3, %r9
addq %r9, %r8
movq %r8, -0x198(%rbp)
movq -0x198(%rbp), %r8
movq (%r8), %r8
movq %r8, -0x1c0(%rbp)
movq -0x1c0(%rbp), %r8
andq $0x8, %r8
andq %r8, %rdi
orq %rdi, %rax
movq %rsi, -0xb0(%rbp)
movq %rdx, -0xb8(%rbp)
movq %rcx, -0xc0(%rbp)
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rcx
movq -0xb8(%rbp), %rax
movq %rcx, -0xa0(%rbp)
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rax
addq $0x68, %rax
movq -0x98(%rbp), %rcx
subq 0x5af93(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rcx
movq -0xc0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
shlq %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
orq $0x1fe0, %rax           # imm = 0x1FE0
orq -0xc8(%rbp), %rax
orq $0x2, %rax
orq $0x1, %rax
movq %rcx, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rcx
movq -0x80(%rbp), %rax
movq %rcx, (%rax)
movb $0x0, -0x289(%rbp)
movb -0x289(%rbp), %al
andb $0x1, %al
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
nopw (%rax,%rax)