// File: /workspace/github_c_makefile_star2_O0/zhou-yuxin[P]redis-aof-no-cow/deps/jemalloc/src/stats.c
// Function: stats_arena_hchunks_print
static void
stats_arena_hchunks_print(void (*write_cb)(void *, const char *),
    void *cbopaque, bool json, unsigned i)
{
	unsigned nbins, nlruns, nhchunks, j;
	bool in_gap, in_gap_prev;

	CTL_GET("arenas.nbins", &nbins, unsigned);
	CTL_GET("arenas.nlruns", &nlruns, unsigned);
	CTL_GET("arenas.nhchunks", &nhchunks, unsigned);
	if (json) {
		malloc_cprintf(write_cb, cbopaque,
		    "\t\t\t\t\"hchunks\": [\n");
	} else {
		malloc_cprintf(write_cb, cbopaque,
		    "huge:           size ind    allocated      nmalloc"
		    "      ndalloc    nrequests   curhchunks\n");
	}
	for (j = 0, in_gap = false; j < nhchunks; j++) {
		uint64_t nmalloc, ndalloc, nrequests;
		size_t hchunk_size, curhchunks;

		CTL_M2_M4_GET("stats.arenas.0.hchunks.0.nmalloc", i, j,
		    &nmalloc, uint64_t);
		CTL_M2_M4_GET("stats.arenas.0.hchunks.0.ndalloc", i, j,
		    &ndalloc, uint64_t);
		CTL_M2_M4_GET("stats.arenas.0.hchunks.0.nrequests", i, j,
		    &nrequests, uint64_t);
		in_gap_prev = in_gap;
		in_gap = (nrequests == 0);

		if (!json && in_gap_prev && !in_gap) {
			malloc_cprintf(write_cb, cbopaque,
			    "                     ---\n");
		}

		CTL_M2_GET("arenas.hchunk.0.size", j, &hchunk_size, size_t);
		CTL_M2_M4_GET("stats.arenas.0.hchunks.0.curhchunks", i, j,
		    &curhchunks, size_t);
		if (json) {
			malloc_cprintf(write_cb, cbopaque,
			    "\t\t\t\t\t{\n"
			    "\t\t\t\t\t\t\"curhchunks\": %zu\n"
			    "\t\t\t\t\t}%s\n",
			    curhchunks,
			    (j + 1 < nhchunks) ? "," : "");
		} else if (!in_gap) {
			malloc_cprintf(write_cb, cbopaque,
			    "%20zu %3u %12zu %12"FMTu64" %12"FMTu64
			    " %12"FMTu64" %12zu\n",
			    hchunk_size, nbins + nlruns + j,
			    curhchunks * hchunk_size, nmalloc, ndalloc,
			    nrequests, curhchunks);
		}
	}
	if (json) {
		malloc_cprintf(write_cb, cbopaque,
		    "\t\t\t\t]\n");
	} else {
		if (in_gap) {
			malloc_cprintf(write_cb, cbopaque,
			    "                     ---\n");
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movb %dl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movl %ecx, -0x20(%rbp)
movq $0x4, -0x40(%rbp)
leaq 0x142fe(%rip), %rdi     # 0x9262b
leaq -0x24(%rbp), %rsi
leaq -0x40(%rbp), %rdx
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x35ca0
cmpl $0x0, %eax
je 0x7e361
leaq 0x13830(%rip), %rdi     # 0x91b7e
leaq 0x142d6(%rip), %rsi     # 0x9262b
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e363
jmp 0x7e365
jmp 0x7e367
movq $0x4, -0x48(%rbp)
leaq 0x143e2(%rip), %rdi     # 0x92758
leaq -0x28(%rbp), %rsi
leaq -0x48(%rbp), %rdx
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x35ca0
cmpl $0x0, %eax
je 0x7e3aa
leaq 0x137e7(%rip), %rdi     # 0x91b7e
leaq 0x143ba(%rip), %rsi     # 0x92758
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e3ac
jmp 0x7e3ae
jmp 0x7e3b0
movq $0x4, -0x50(%rbp)
leaq 0x143ec(%rip), %rdi     # 0x927ab
leaq -0x2c(%rbp), %rsi
leaq -0x50(%rbp), %rdx
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rcx
callq 0x35ca0
cmpl $0x0, %eax
je 0x7e3f3
leaq 0x1379e(%rip), %rdi     # 0x91b7e
leaq 0x143c4(%rip), %rsi     # 0x927ab
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e3f5
jmp 0x7e3f7
testb $0x1, -0x19(%rbp)
je 0x7e415
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq 0x15223(%rip), %rdx     # 0x9362f
movb $0x0, %al
callq 0x85b80
jmp 0x7e42b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq 0x1521d(%rip), %rdx     # 0x93641
movb $0x0, %al
callq 0x85b80
movl $0x0, -0x30(%rbp)
movb $0x0, -0x31(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jae 0x7e863
jmp 0x7e444
movq $0x6, -0xb8(%rbp)
movq $0x8, -0xc0(%rbp)
leaq -0xb0(%rbp), %rsi
leaq 0x15234(%rip), %rdi     # 0x9369c
leaq -0xb8(%rbp), %rdx
callq 0x360b0
cmpl $0x0, %eax
je 0x7e493
leaq 0x1420f(%rip), %rdi     # 0x9268f
leaq 0x15215(%rip), %rsi     # 0x9369c
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e495
movl -0x20(%rbp), %eax
movq %rax, -0xa0(%rbp)
movl -0x30(%rbp), %eax
movq %rax, -0x90(%rbp)
leaq -0xb0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0xc0(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x364c0
cmpl $0x0, %eax
je 0x7e4e5
leaq 0x141e9(%rip), %rdi     # 0x926c4
callq 0x828c0
callq 0xb050
jmp 0x7e4e7
jmp 0x7e4e9
jmp 0x7e4eb
movq $0x6, -0xf8(%rbp)
movq $0x8, -0x100(%rbp)
leaq -0xf0(%rbp), %rsi
leaq 0x151ae(%rip), %rdi     # 0x936bd
leaq -0xf8(%rbp), %rdx
callq 0x360b0
cmpl $0x0, %eax
je 0x7e53a
leaq 0x14168(%rip), %rdi     # 0x9268f
leaq 0x1518f(%rip), %rsi     # 0x936bd
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e53c
movl -0x20(%rbp), %eax
movq %rax, -0xe0(%rbp)
movl -0x30(%rbp), %eax
movq %rax, -0xd0(%rbp)
leaq -0xf0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
leaq -0x60(%rbp), %rdx
leaq -0x100(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x364c0
cmpl $0x0, %eax
je 0x7e58c
leaq 0x14142(%rip), %rdi     # 0x926c4
callq 0x828c0
callq 0xb050
jmp 0x7e58e
jmp 0x7e590
jmp 0x7e592
movq $0x6, -0x138(%rbp)
movq $0x8, -0x140(%rbp)
leaq -0x130(%rbp), %rsi
leaq 0x15128(%rip), %rdi     # 0x936de
leaq -0x138(%rbp), %rdx
callq 0x360b0
cmpl $0x0, %eax
je 0x7e5e1
leaq 0x140c1(%rip), %rdi     # 0x9268f
leaq 0x15109(%rip), %rsi     # 0x936de
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e5e3
movl -0x20(%rbp), %eax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movq %rax, -0x110(%rbp)
leaq -0x130(%rbp), %rdi
movq -0x138(%rbp), %rsi
leaq -0x68(%rbp), %rdx
leaq -0x140(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x364c0
cmpl $0x0, %eax
je 0x7e633
leaq 0x1409b(%rip), %rdi     # 0x926c4
callq 0x828c0
callq 0xb050
jmp 0x7e635
jmp 0x7e637
movb -0x31(%rbp), %al
andb $0x1, %al
movb %al, -0x32(%rbp)
cmpq $0x0, -0x68(%rbp)
sete %al
andb $0x1, %al
movb %al, -0x31(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x7e674
testb $0x1, -0x32(%rbp)
je 0x7e674
testb $0x1, -0x31(%rbp)
jne 0x7e674
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq 0x14bfe(%rip), %rdx     # 0x9326b
movb $0x0, %al
callq 0x85b80
jmp 0x7e676
movq $0x6, -0x178(%rbp)
movq $0x8, -0x180(%rbp)
leaq -0x170(%rbp), %rsi
leaq 0x14145(%rip), %rdi     # 0x927df
leaq -0x178(%rbp), %rdx
callq 0x360b0
cmpl $0x0, %eax
je 0x7e6c5
leaq 0x13fdd(%rip), %rdi     # 0x9268f
leaq 0x14126(%rip), %rsi     # 0x927df
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e6c7
movl -0x30(%rbp), %eax
movq %rax, -0x160(%rbp)
leaq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
leaq -0x70(%rbp), %rdx
leaq -0x180(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x364c0
cmpl $0x0, %eax
je 0x7e70d
leaq 0x13fc1(%rip), %rdi     # 0x926c4
callq 0x828c0
callq 0xb050
jmp 0x7e70f
jmp 0x7e711
jmp 0x7e713
movq $0x6, -0x1b8(%rbp)
movq $0x8, -0x1c0(%rbp)
leaq -0x1b0(%rbp), %rsi
leaq 0x14fca(%rip), %rdi     # 0x93701
leaq -0x1b8(%rbp), %rdx
callq 0x360b0
cmpl $0x0, %eax
je 0x7e762
leaq 0x13f40(%rip), %rdi     # 0x9268f
leaq 0x14fab(%rip), %rsi     # 0x93701
movb $0x0, %al
callq 0x85c20
callq 0xb050
jmp 0x7e764
movl -0x20(%rbp), %eax
movq %rax, -0x1a0(%rbp)
movl -0x30(%rbp), %eax
movq %rax, -0x190(%rbp)
leaq -0x1b0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
leaq -0x78(%rbp), %rdx
leaq -0x1c0(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x364c0
cmpl $0x0, %eax
je 0x7e7b4
leaq 0x13f1a(%rip), %rdi     # 0x926c4
callq 0x828c0
callq 0xb050
jmp 0x7e7b6
jmp 0x7e7b8
testb $0x1, -0x19(%rbp)
je 0x7e7f9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x78(%rbp), %rcx
movl -0x30(%rbp), %edx
addl $0x1, %edx
movl -0x2c(%rbp), %r9d
leaq 0x10922(%rip), %r8      # 0x8f0fd
leaq 0xfa1d(%rip), %rax      # 0x8e1ff
cmpl %r9d, %edx
cmovbq %rax, %r8
leaq 0x14f35(%rip), %rdx     # 0x93725
movb $0x0, %al
callq 0x85b80
jmp 0x7e853
testb $0x1, -0x31(%rbp)
jne 0x7e851
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x70(%rbp), %rcx
movl -0x24(%rbp), %r8d
addl -0x28(%rbp), %r8d
addl -0x30(%rbp), %r8d
movq -0x78(%rbp), %r9
imulq -0x70(%rbp), %r9
movq -0x58(%rbp), %rbx
movq -0x60(%rbp), %r11
movq -0x68(%rbp), %r10
movq -0x78(%rbp), %rax
leaq 0x14dcf(%rip), %rdx     # 0x93606
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x85b80
jmp 0x7e853
jmp 0x7e855
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x7e436
testb $0x1, -0x19(%rbp)
je 0x7e881
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq 0x14ed6(%rip), %rdx     # 0x9374e
movb $0x0, %al
callq 0x85b80
jmp 0x7e89f
testb $0x1, -0x31(%rbp)
je 0x7e89d
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq 0x149d5(%rip), %rdx     # 0x9326b
movb $0x0, %al
callq 0x85b80
jmp 0x7e89f
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %rbp
retq
nopl (%rax)