// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/jemalloc/src/arena.c
// Function: arena_chunk_init_hard
static arena_chunk_t *
arena_chunk_init_hard(arena_t *arena)
{
	arena_chunk_t *chunk;
	bool zero, commit;
	size_t flag_unzeroed, flag_decommitted, i;

	assert(arena->spare == NULL);

	zero = false;
	commit = false;
	chunk = arena_chunk_alloc_internal(arena, &zero, &commit);
	if (chunk == NULL)
		return (NULL);

	/*
	 * Initialize the map to contain one maximal free untouched run.  Mark
	 * the pages as zeroed if chunk_alloc() returned a zeroed or decommitted
	 * chunk.
	 */
	flag_unzeroed = (zero || !commit) ? 0 : CHUNK_MAP_UNZEROED;
	flag_decommitted = commit ? 0 : CHUNK_MAP_DECOMMITTED;
	arena_mapbits_unallocated_set(chunk, map_bias, arena_maxrun,
	    flag_unzeroed | flag_decommitted);
	/*
	 * There is no need to initialize the internal page map entries unless
	 * the chunk is not zeroed.
	 */
	if (!zero) {
		JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(
		    (void *)arena_bitselm_get(chunk, map_bias+1),
		    (size_t)((uintptr_t) arena_bitselm_get(chunk,
		    chunk_npages-1) - (uintptr_t)arena_bitselm_get(chunk,
		    map_bias+1)));
		for (i = map_bias+1; i < chunk_npages-1; i++)
			arena_mapbits_internal_set(chunk, i, flag_unzeroed);
	} else {
		JEMALLOC_VALGRIND_MAKE_MEM_DEFINED((void
		    *)arena_bitselm_get(chunk, map_bias+1), (size_t)((uintptr_t)
		    arena_bitselm_get(chunk, chunk_npages-1) -
		    (uintptr_t)arena_bitselm_get(chunk, map_bias+1)));
		if (config_debug) {
			for (i = map_bias+1; i < chunk_npages-1; i++) {
				assert(arena_mapbits_unzeroed_get(chunk, i) ==
				    flag_unzeroed);
			}
		}
	}
	arena_mapbits_unallocated_set(chunk, chunk_npages-1, arena_maxrun,
	    flag_unzeroed);

	return (chunk);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rdi, -0x190(%rbp)
jmp 0x45cb4
movb $0x0, -0x199(%rbp)
movb $0x0, -0x19a(%rbp)
movq -0x190(%rbp), %rdi
leaq -0x199(%rbp), %rsi
leaq -0x19a(%rbp), %rdx
callq 0x46260
movq %rax, -0x198(%rbp)
cmpq $0x0, -0x198(%rbp)
jne 0x45cfd
movq $0x0, -0x188(%rbp)
jmp 0x461d9
movb $0x1, %al
testb $0x1, -0x199(%rbp)
movb %al, -0x1b9(%rbp)
jne 0x45d1c
movb -0x19a(%rbp), %al
xorb $-0x1, %al
movb %al, -0x1b9(%rbp)
movb -0x1b9(%rbp), %dl
movl $0x8, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x1a8(%rbp)
movb -0x19a(%rbp), %dl
movl $0x4, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x1b0(%rbp)
movq -0x198(%rbp), %rsi
movq 0x5c878(%rip), %rdx     # 0xa25d8
movq 0x5c881(%rip), %rcx     # 0xa25e8
movq -0x1a8(%rbp), %rax
orq -0x1b0(%rbp), %rax
movq %rsi, -0xb8(%rbp)
movq %rdx, -0xc0(%rbp)
movq %rcx, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movq -0xb8(%rbp), %rcx
movq -0xc0(%rbp), %rax
movq %rcx, -0xa8(%rbp)
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rcx
movq -0xb0(%rbp), %rax
movq %rcx, -0x98(%rbp)
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rax
addq $0x68, %rax
movq -0xa0(%rbp), %rcx
subq 0x5c7f6(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rcx
movq -0xc8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
shlq %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
orq $0x1fe0, %rax           # imm = 0x1FE0
orq -0xd0(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
testb $0x1, -0x199(%rbp)
jne 0x45ffd
jmp 0x45e40
leaq 0x5b8bd(%rip), %rax     # 0xa1704
movb (%rax), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x45f29
movq -0x198(%rbp), %rcx
movq 0x5c76c(%rip), %rax     # 0xa25d8
addq $0x1, %rax
movq %rcx, -0x128(%rbp)
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rdi
addq $0x68, %rdi
movq -0x130(%rbp), %rax
subq 0x5c741(%rip), %rax     # 0xa25d8
shlq $0x3, %rax
addq %rax, %rdi
movq -0x198(%rbp), %rcx
leaq 0x5c88c(%rip), %rax     # 0xa2738
movq (%rax), %rax
subq $0x1, %rax
movq %rcx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rsi
addq $0x68, %rsi
movq -0x140(%rbp), %rax
subq 0x5c6fe(%rip), %rax     # 0xa25d8
shlq $0x3, %rax
addq %rax, %rsi
movq -0x198(%rbp), %rcx
movq 0x5c6e9(%rip), %rax     # 0xa25d8
addq $0x1, %rax
movq %rcx, -0x148(%rbp)
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rax
addq $0x68, %rax
movq -0x150(%rbp), %rcx
subq 0x5c6be(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
subq %rax, %rsi
callq 0x7faa0
jmp 0x45f2b
movq 0x5c6a6(%rip), %rax     # 0xa25d8
addq $0x1, %rax
movq %rax, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
leaq 0x5c7ed(%rip), %rcx     # 0xa2738
movq (%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x45ff8
movq -0x198(%rbp), %rdx
movq -0x1b8(%rbp), %rcx
movq -0x1a8(%rbp), %rax
movq %rdx, -0x78(%rbp)
movq %rcx, -0x80(%rbp)
movq %rax, -0x88(%rbp)
movq -0x78(%rbp), %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x68(%rbp)
movq %rax, -0x70(%rbp)
movq -0x68(%rbp), %rcx
movq -0x70(%rbp), %rax
movq %rcx, -0x58(%rbp)
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
addq $0x68, %rax
movq -0x60(%rbp), %rcx
subq 0x5c626(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %rax
movq %rcx, -0x48(%rbp)
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movq -0x1b8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1b8(%rbp)
jmp 0x45f3d
jmp 0x460ec
jmp 0x45fff
leaq 0x5b6fe(%rip), %rax     # 0xa1704
movb (%rax), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x460e8
movq -0x198(%rbp), %rcx
movq 0x5c5ad(%rip), %rax     # 0xa25d8
addq $0x1, %rax
movq %rcx, -0x158(%rbp)
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rdi
addq $0x68, %rdi
movq -0x160(%rbp), %rax
subq 0x5c582(%rip), %rax     # 0xa25d8
shlq $0x3, %rax
addq %rax, %rdi
movq -0x198(%rbp), %rcx
leaq 0x5c6cd(%rip), %rax     # 0xa2738
movq (%rax), %rax
subq $0x1, %rax
movq %rcx, -0x168(%rbp)
movq %rax, -0x170(%rbp)
movq -0x168(%rbp), %rsi
addq $0x68, %rsi
movq -0x170(%rbp), %rax
subq 0x5c53f(%rip), %rax     # 0xa25d8
shlq $0x3, %rax
addq %rax, %rsi
movq -0x198(%rbp), %rcx
movq 0x5c52a(%rip), %rax     # 0xa25d8
addq $0x1, %rax
movq %rcx, -0x178(%rbp)
movq %rax, -0x180(%rbp)
movq -0x178(%rbp), %rax
addq $0x68, %rax
movq -0x180(%rbp), %rcx
subq 0x5c4ff(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
subq %rax, %rsi
callq 0x7fb10
jmp 0x460ea
jmp 0x460ec
movq -0x198(%rbp), %rsi
leaq 0x5c63e(%rip), %rax     # 0xa2738
movq (%rax), %rdx
subq $0x1, %rdx
movq 0x5c4e0(%rip), %rcx     # 0xa25e8
movq -0x1a8(%rbp), %rax
movq %rsi, -0x100(%rbp)
movq %rdx, -0x108(%rbp)
movq %rcx, -0x110(%rbp)
movq %rax, -0x118(%rbp)
movq -0x100(%rbp), %rcx
movq -0x108(%rbp), %rax
movq %rcx, -0xf0(%rbp)
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq %rcx, -0xe0(%rbp)
movq %rax, -0xe8(%rbp)
movq -0xe0(%rbp), %rax
addq $0x68, %rax
movq -0xe8(%rbp), %rcx
subq 0x5c45c(%rip), %rcx     # 0xa25d8
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rcx
movq -0x110(%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 -0x118(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x198(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x188(%rbp), %rax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbp
retq
nopl (%rax)