	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_metaslab
_dump_metaslab:                         ## @dump_metaslab
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r15
	movq	48(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%r15, %rdi
	callq	_space_map_allocated
	subq	%rax, %rbx
	leaq	-80(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$32, %edx
	callq	_zdb_nicenum
	movl	32(%r12), %ebx
	movl	40(%r12), %r14d
	movq	%r15, %rdi
	callq	_space_map_object
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_printf
	movq	_dump_opt@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	436(%rcx), %eax
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.1:
	cmpl	$0, 304(%rcx)
	jne	LBB0_3
## %bb.2:
	leaq	24(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_enter
	movq	%r12, %rdi
	callq	_metaslab_load
	movl	%eax, %edi
	callq	_VERIFY0
	movl	28(%r12), %edi
	callq	_range_tree_stat_verify
	movq	%r12, %rdi
	callq	_dump_metaslab_stats
	movq	%r12, %rdi
	callq	_metaslab_unload
	movq	%r14, %rdi
	callq	_mutex_exit
	movq	(%r13), %rax
	movl	436(%rax), %eax
LBB0_3:
	testq	%r15, %r15
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.4:
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	movq	_SPA_FEATURE_SPACEMAP_HISTOGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_spa_feature_is_active
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	16(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movq	_SPACE_MAP_HISTOGRAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_dump_histogram
LBB0_7:
	movq	(%r13), %rax
	cmpl	$5, 400(%rax)
	jg	LBB0_9
## %bb.8:
	cmpl	$4, 436(%rax)
	jl	LBB0_10
LBB0_9:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movb	(%rax), %cl
	movl	$1, %eax
	shlq	%cl, %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r12)
	sete	%dil
	callq	_ASSERT
	movl	(%rbx), %edi
	movq	8(%r12), %rsi
	callq	_dump_spacemap
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tmetaslab %6llu   offset %12llx   spacemap %6llu   free    %5s\n"

	.comm	_dump_opt,8,3                   ## @dump_opt
	.comm	_SPA_FEATURE_SPACEMAP_HISTOGRAM,4,2 ## @SPA_FEATURE_SPACEMAP_HISTOGRAM
L_.str.1:                               ## @.str.1
	.asciz	"\tOn-disk histogram:\t\tfragmentation %llu\n"

	.comm	_SPACE_MAP_HISTOGRAM_SIZE,4,2   ## @SPACE_MAP_HISTOGRAM_SIZE
	.no_dead_strip	_dump_metaslab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_metaslab
_dump_metaslab:                         ; @dump_metaslab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x0, #48]
	ldr	x23, [x8]
	ldr	x20, [x23, #8]
	ldp	x22, x21, [x0]
	mov	x0, x21
	bl	_space_map_allocated
	sub	x0, x22, x0
	add	x24, sp, #24
	add	x1, sp, #24
	mov	w2, #32
	bl	_zdb_nicenum
	ldr	w22, [x19, #40]
	ldr	x25, [x19, #32]
	mov	x0, x21
	bl	_space_map_object
	stp	x0, x24, [sp, #8]
	str	x25, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_printf
Lloh5:
	adrp	x24, _dump_opt@GOTPAGE
Lloh6:
	ldr	x24, [x24, _dump_opt@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w8, [x9, #436]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	ldr	w9, [x9, #304]
	cbnz	w9, LBB0_3
; %bb.2:
	add	x22, x19, #24
	mov	x0, x22
	bl	_mutex_enter
	mov	x0, x19
	bl	_metaslab_load
	bl	_VERIFY0
	ldr	w0, [x19, #28]
	bl	_range_tree_stat_verify
	mov	x0, x19
	bl	_dump_metaslab_stats
	mov	x0, x19
	bl	_metaslab_unload
	mov	x0, x22
	bl	_mutex_exit
	ldr	x8, [x24]
	ldr	w8, [x8, #436]
LBB0_3:
	cbz	x21, LBB0_7
; %bb.4:
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
Lloh7:
	adrp	x8, _SPA_FEATURE_SPACEMAP_HISTOGRAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPA_FEATURE_SPACEMAP_HISTOGRAM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_spa_feature_is_active
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x19, #16]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _SPACE_MAP_HISTOGRAM_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPACE_MAP_HISTOGRAM_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_dump_histogram
LBB0_7:
	ldr	x8, [x24]
	ldr	w9, [x8, #400]
	cmp	w9, #5
	b.gt	LBB0_9
; %bb.8:
	ldr	w8, [x8, #436]
	cmp	w8, #4
	b.lt	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x23]
	mov	w10, #1
	lsl	x9, x10, x9
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	ldr	w0, [x20]
	ldr	x1, [x19, #8]
	bl	_dump_spacemap
LBB0_10:
	ldr	x8, [sp, #56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tmetaslab %6llu   offset %12llx   spacemap %6llu   free    %5s\n"

	.comm	_dump_opt,8,3                   ; @dump_opt
	.comm	_SPA_FEATURE_SPACEMAP_HISTOGRAM,4,2 ; @SPA_FEATURE_SPACEMAP_HISTOGRAM
l_.str.1:                               ; @.str.1
	.asciz	"\tOn-disk histogram:\t\tfragmentation %llu\n"

	.comm	_SPACE_MAP_HISTOGRAM_SIZE,4,2   ; @SPACE_MAP_HISTOGRAM_SIZE
	.no_dead_strip	_dump_metaslab
.subsections_via_symbols
