	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zdb_load_obsolete_counts
_zdb_load_obsolete_counts:              ## @zdb_load_obsolete_counts
	.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, %rbx
	movq	24(%rdi), %r12
	movq	32(%rdi), %r14
	callq	_vdev_obsolete_sm_object
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	xorl	%esi, %esi
	cmpq	$0, 16(%rbx)
	setne	%sil
	callq	_EQUIV
	movq	%r14, %rdi
	callq	_vdev_indirect_mapping_load_obsolete_counts
	movq	%rax, %r15
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vdev_indirect_mapping_load_obsolete_spacemap
LBB0_2:
	movq	8(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.3:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	$0, -40(%rbp)
	movl	(%r12), %esi
	movl	8(%rbx), %r8d
	leaq	-40(%rbp), %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_space_map_open
	movl	%eax, %edi
	callq	_VERIFY0
	movq	-40(%rbp), %rdi
	callq	_space_map_update
	movq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vdev_indirect_mapping_load_obsolete_spacemap
	movq	-40(%rbp), %rdi
	callq	_space_map_close
LBB0_5:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_zdb_load_obsolete_counts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zdb_load_obsolete_counts
_zdb_load_obsolete_counts:              ; @zdb_load_obsolete_counts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	ldp	x22, x19, [x0, #24]
	bl	_vdev_obsolete_sm_object
	cmp	x0, #0
	cset	w0, ne
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w1, ne
	bl	_EQUIV
	mov	x0, x19
	bl	_vdev_indirect_mapping_load_obsolete_counts
	mov	x20, x0
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_vdev_indirect_mapping_load_obsolete_spacemap
LBB0_2:
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x2, [x22, #16]
	cbz	x2, LBB0_5
; %bb.4:
	str	xzr, [sp, #8]
	ldr	w1, [x22]
	ldr	w4, [x21, #8]
	add	x0, sp, #8
	mov	w3, #0
	mov	w5, #0
	bl	_space_map_open
	bl	_VERIFY0
	ldr	x0, [sp, #8]
	bl	_space_map_update
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_vdev_indirect_mapping_load_obsolete_spacemap
	ldr	x0, [sp, #8]
	bl	_space_map_close
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_zdb_load_obsolete_counts
.subsections_via_symbols
