// File: /workspace/github_c_makefile_star2_O0/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/arena.c
// Function: arena_chunk_init_hard
static arena_chunk_t *
arena_chunk_init_hard(tsdn_t *tsdn, 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(tsdn, arena, &zero, &commit);
	if (chunk == NULL)
		return (NULL);

	chunk->hugepage = true;

	/*
	 * Initialize the map to contain one maximal free untouched run.  Mark
	 * the pages as zeroed if arena_chunk_alloc_internal() 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_const(chunk, map_bias+1),
		    (size_t)((uintptr_t)arena_bitselm_get_const(chunk,
		    chunk_npages-1) -
		    (uintptr_t)arena_bitselm_get_const(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_const(chunk, map_bias+1),
		    (size_t)((uintptr_t)arena_bitselm_get_const(chunk,
		    chunk_npages-1) -
		    (uintptr_t)arena_bitselm_get_const(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 $0x230, %rsp            # imm = 0x230
movq %rdi, -0x1f0(%rbp)
movq %rsi, -0x1f8(%rbp)
jmp 0x460ab
movb $0x0, -0x201(%rbp)
movb $0x0, -0x202(%rbp)
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
leaq -0x201(%rbp), %rdx
leaq -0x202(%rbp), %rcx
callq 0x46770
movq %rax, -0x200(%rbp)
cmpq $0x0, -0x200(%rbp)
jne 0x460fb
movq $0x0, -0x1e8(%rbp)
jmp 0x4668a
movq -0x200(%rbp), %rax
movb $0x1, 0x70(%rax)
movb $0x1, %al
testb $0x1, -0x201(%rbp)
movb %al, -0x221(%rbp)
jne 0x46125
movb -0x202(%rbp), %al
xorb $-0x1, %al
movb %al, -0x221(%rbp)
movb -0x221(%rbp), %dl
movl $0x8, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x210(%rbp)
movb -0x202(%rbp), %dl
movl $0x4, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovneq %rcx, %rax
movq %rax, -0x218(%rbp)
movq -0x200(%rbp), %rsi
movq 0x5de37(%rip), %rdx     # 0xa3fa0
movq 0x5de40(%rip), %rcx     # 0xa3fb0
movq -0x210(%rbp), %rax
orq -0x218(%rbp), %rax
movq %rsi, -0x178(%rbp)
movq %rdx, -0x180(%rbp)
movq %rcx, -0x188(%rbp)
movq %rax, -0x190(%rbp)
movq -0x178(%rbp), %rcx
movq -0x180(%rbp), %rax
movq %rcx, -0x168(%rbp)
movq %rax, -0x170(%rbp)
movq -0x168(%rbp), %rcx
movq -0x170(%rbp), %rax
movq %rcx, -0x158(%rbp)
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rax
addq $0x78, %rax
movq -0x160(%rbp), %rcx
subq 0x5ddb5(%rip), %rcx     # 0xa3fa0
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rcx
movq -0x188(%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 -0x190(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
testb $0x1, -0x201(%rbp)
jne 0x4645a
jmp 0x46249
leaq 0x5d32c(%rip), %rax     # 0xa357c
movb (%rax), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x46386
movq -0x200(%rbp), %rcx
movq 0x5dd2b(%rip), %rax     # 0xa3fa0
addq $0x1, %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), %rdi
addq $0x78, %rdi
movq -0xa0(%rbp), %rax
subq 0x5dce4(%rip), %rax     # 0xa3fa0
shlq $0x3, %rax
addq %rax, %rdi
movq -0x200(%rbp), %rcx
leaq 0x5dde7(%rip), %rax     # 0xa40b8
movq (%rax), %rax
subq $0x1, %rax
movq %rcx, -0xc8(%rbp)
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, -0xb8(%rbp)
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rsi
addq $0x78, %rsi
movq -0xc0(%rbp), %rax
subq 0x5dc85(%rip), %rax     # 0xa3fa0
shlq $0x3, %rax
addq %rax, %rsi
movq -0x200(%rbp), %rcx
movq 0x5dc70(%rip), %rax     # 0xa3fa0
addq $0x1, %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 $0x78, %rax
movq -0xe0(%rbp), %rcx
subq 0x5dc29(%rip), %rcx     # 0xa3fa0
shlq $0x3, %rcx
addq %rcx, %rax
subq %rax, %rsi
callq 0x86000
jmp 0x46388
movq 0x5dc11(%rip), %rax     # 0xa3fa0
addq $0x1, %rax
movq %rax, -0x220(%rbp)
movq -0x220(%rbp), %rax
leaq 0x5dd10(%rip), %rcx     # 0xa40b8
movq (%rcx), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x46455
movq -0x200(%rbp), %rdx
movq -0x220(%rbp), %rcx
movq -0x210(%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 $0x78, %rax
movq -0x60(%rbp), %rcx
subq 0x5db91(%rip), %rcx     # 0xa3fa0
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 -0x220(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x220(%rbp)
jmp 0x4639a
jmp 0x4659d
jmp 0x4645c
leaq 0x5d119(%rip), %rax     # 0xa357c
movb (%rax), %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x46599
movq -0x200(%rbp), %rcx
movq 0x5db18(%rip), %rax     # 0xa3fa0
addq $0x1, %rax
movq %rcx, -0x108(%rbp)
movq %rax, -0x110(%rbp)
movq -0x108(%rbp), %rcx
movq -0x110(%rbp), %rax
movq %rcx, -0xf8(%rbp)
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rdi
addq $0x78, %rdi
movq -0x100(%rbp), %rax
subq 0x5dad1(%rip), %rax     # 0xa3fa0
shlq $0x3, %rax
addq %rax, %rdi
movq -0x200(%rbp), %rcx
leaq 0x5dbd4(%rip), %rax     # 0xa40b8
movq (%rax), %rax
subq $0x1, %rax
movq %rcx, -0x128(%rbp)
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rcx
movq -0x130(%rbp), %rax
movq %rcx, -0x118(%rbp)
movq %rax, -0x120(%rbp)
movq -0x118(%rbp), %rsi
addq $0x78, %rsi
movq -0x120(%rbp), %rax
subq 0x5da72(%rip), %rax     # 0xa3fa0
shlq $0x3, %rax
addq %rax, %rsi
movq -0x200(%rbp), %rcx
movq 0x5da5d(%rip), %rax     # 0xa3fa0
addq $0x1, %rax
movq %rcx, -0x148(%rbp)
movq %rax, -0x150(%rbp)
movq -0x148(%rbp), %rcx
movq -0x150(%rbp), %rax
movq %rcx, -0x138(%rbp)
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rax
addq $0x78, %rax
movq -0x140(%rbp), %rcx
subq 0x5da16(%rip), %rcx     # 0xa3fa0
shlq $0x3, %rcx
addq %rcx, %rax
subq %rax, %rsi
callq 0x86070
jmp 0x4659b
jmp 0x4659d
movq -0x200(%rbp), %rsi
leaq 0x5db0d(%rip), %rax     # 0xa40b8
movq (%rax), %rdx
subq $0x1, %rdx
movq 0x5d9f7(%rip), %rcx     # 0xa3fb0
movq -0x210(%rbp), %rax
movq %rsi, -0x1c0(%rbp)
movq %rdx, -0x1c8(%rbp)
movq %rcx, -0x1d0(%rbp)
movq %rax, -0x1d8(%rbp)
movq -0x1c0(%rbp), %rcx
movq -0x1c8(%rbp), %rax
movq %rcx, -0x1b0(%rbp)
movq %rax, -0x1b8(%rbp)
movq -0x1b0(%rbp), %rcx
movq -0x1b8(%rbp), %rax
movq %rcx, -0x1a0(%rbp)
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rax
addq $0x78, %rax
movq -0x1a8(%rbp), %rcx
subq 0x5d973(%rip), %rcx     # 0xa3fa0
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rcx
movq -0x1d0(%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 -0x1d8(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x200(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rax
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
nopw (%rax,%rax)