	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_metaslab_stats
_dump_metaslab_stats:                   ## @dump_metaslab_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r15
	leaq	4(%rdi), %r14
	movq	%r15, %rdi
	callq	_range_tree_space
	imull	$100, %eax, %eax
	cltd
	idivl	(%rbx)
	movl	%eax, %r12d
	movq	_NN_NUMBUF_SZ@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$33, (%rax)
	setb	%dil
	callq	_CTASSERT
	movq	%rbx, %rdi
	callq	_metaslab_block_maxsize
	leaq	-80(%rbp), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_zdb_nicenum
	movq	%r14, %rdi
	callq	_avl_numnodes
	movl	%r12d, (%rsp)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %r9
	movl	%eax, %edx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%r15), %edi
	movq	_RANGE_TREE_HISTOGRAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_dump_histogram
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NN_NUMBUF_SZ,4,2               ## @NN_NUMBUF_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\t %25s %10lu   %7s  %6s   %4s %4d%%\n"

L_.str.1:                               ## @.str.1
	.asciz	"segments"

L_.str.2:                               ## @.str.2
	.asciz	"maxsize"

L_.str.3:                               ## @.str.3
	.asciz	"freepct"

	.comm	_RANGE_TREE_HISTOGRAM_SIZE,4,2  ## @RANGE_TREE_HISTOGRAM_SIZE
L_str:                                  ## @str
	.asciz	"\tIn-memory histogram:"

	.no_dead_strip	_dump_metaslab_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_metaslab_stats
_dump_metaslab_stats:                   ; @dump_metaslab_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x19, [x0, #8]
	add	x21, x0, #4
	mov	x0, x19
	bl	_range_tree_space
	mov	w8, #100
	mul	w8, w0, w8
	ldr	w9, [x20]
	sdiv	w22, w8, w9
Lloh3:
	adrp	x8, _NN_NUMBUF_SZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NN_NUMBUF_SZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #33
	cset	w0, lo
	bl	_CTASSERT
	mov	x0, x20
	bl	_metaslab_block_maxsize
	add	x20, sp, #56
	add	x1, sp, #56
	mov	w2, #32
	bl	_zdb_nicenum
	mov	x0, x21
	bl	_avl_numnodes
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x8, l_.str.3@PAGE
Lloh7:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x8, x22, [sp, #32]
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x20, [sp, #16]
	stp	x9, x0, [sp]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _RANGE_TREE_HISTOGRAM_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RANGE_TREE_HISTOGRAM_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_dump_histogram
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NN_NUMBUF_SZ,4,2               ; @NN_NUMBUF_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\t %25s %10lu   %7s  %6s   %4s %4d%%\n"

l_.str.1:                               ; @.str.1
	.asciz	"segments"

l_.str.2:                               ; @.str.2
	.asciz	"maxsize"

l_.str.3:                               ; @.str.3
	.asciz	"freepct"

	.comm	_RANGE_TREE_HISTOGRAM_SIZE,4,2  ; @RANGE_TREE_HISTOGRAM_SIZE
l_str:                                  ; @str
	.asciz	"\tIn-memory histogram:"

	.no_dead_strip	_dump_metaslab_stats
.subsections_via_symbols
