	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_spacemap_refcounts
_verify_spacemap_refcounts:             ## @verify_spacemap_refcounts
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	_spa_feature_table@GOTPCREL(%rip), %rax
	movq	_SPA_FEATURE_SPACEMAP_HISTOGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	leaq	-40(%rbp), %rdx
	callq	_feature_get_refcount
	movl	(%r15), %edi
	callq	_get_dtl_refcount
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_get_metaslab_refcount
	movq	%rax, %r12
	addq	%r14, %r12
	movl	(%r15), %edi
	callq	_get_obsolete_refcount
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	%r15, %rdi
	callq	_get_prev_obsolete_spacemap_refcount
	movq	%rax, %r14
	addq	%rbx, %r14
	movl	(%r15), %edi
	callq	_get_checkpoint_refcount
	addq	%r14, %rax
	movq	-40(%rbp), %rsi
	xorl	%ecx, %ecx
	cmpq	%rax, %rsi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_printf
	movl	$2, %ecx
LBB0_2:
	movl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spa_feature_table,8,3          ## @spa_feature_table
	.comm	_SPA_FEATURE_SPACEMAP_HISTOGRAM,8,3 ## @SPA_FEATURE_SPACEMAP_HISTOGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"space map refcount mismatch: expected %lld != actual %lld\n"

	.no_dead_strip	_verify_spacemap_refcounts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_spacemap_refcounts
_verify_spacemap_refcounts:             ; @verify_spacemap_refcounts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _spa_feature_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _spa_feature_table@GOTPAGEOFF]
	str	xzr, [sp, #8]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SPA_FEATURE_SPACEMAP_HISTOGRAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPA_FEATURE_SPACEMAP_HISTOGRAM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	add	x2, sp, #8
	bl	_feature_get_refcount
	ldr	w0, [x19]
	bl	_get_dtl_refcount
	mov	x20, x0
	ldr	w0, [x19]
	bl	_get_metaslab_refcount
	add	x20, x0, x20
	ldr	w0, [x19]
	bl	_get_obsolete_refcount
	add	x20, x20, x0
	mov	x0, x19
	bl	_get_prev_obsolete_spacemap_refcount
	add	x20, x20, x0
	ldr	w0, [x19]
	bl	_get_checkpoint_refcount
	ldr	x1, [sp, #8]
	add	x2, x20, x0
	cmp	x1, x2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_printf
	mov	w0, #2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_spa_feature_table,8,3          ; @spa_feature_table
	.comm	_SPA_FEATURE_SPACEMAP_HISTOGRAM,8,3 ; @SPA_FEATURE_SPACEMAP_HISTOGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"space map refcount mismatch: expected %lld != actual %lld\n"

	.no_dead_strip	_verify_spacemap_refcounts
.subsections_via_symbols
