	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_leftover_checkpoint_blocks
_dump_leftover_checkpoint_blocks:       ## @dump_leftover_checkpoint_blocks
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movq	_VDEV_TOP_ZAP_POOL_CHECKPOINT_SM@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	(%r13), %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	$0, -48(%rbp)
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_spa_meta_objset
	movq	8(%r15), %rsi
	movl	(%r14), %edx
	movl	%eax, %edi
	callq	_zap_contains
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_spa_meta_objset
	movq	8(%r15), %rsi
	movl	(%r14), %edx
	movl	%eax, %edi
	movl	$8, %ecx
	movl	$1, %r8d
	leaq	-56(%rbp), %r9
	callq	_zap_lookup
	movl	%eax, %edi
	callq	_VERIFY0
	movq	%r12, %rdi
	callq	_spa_meta_objset
	movq	-56(%rbp), %rdx
	movl	16(%r15), %r9d
	movl	20(%r15), %r8d
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_space_map_open
	movl	%eax, %edi
	callq	_VERIFY0
	movq	-48(%rbp), %rdi
	callq	_space_map_update
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	callq	_dump_spacemap
	movq	-48(%rbp), %rdi
	callq	_space_map_close
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VDEV_TOP_ZAP_POOL_CHECKPOINT_SM,4,2 ## @VDEV_TOP_ZAP_POOL_CHECKPOINT_SM
	.no_dead_strip	_dump_leftover_checkpoint_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_leftover_checkpoint_blocks
_dump_leftover_checkpoint_blocks:       ; @dump_leftover_checkpoint_blocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x21, #0
Lloh0:
	adrp	x22, _VDEV_TOP_ZAP_POOL_CHECKPOINT_SM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VDEV_TOP_ZAP_POOL_CHECKPOINT_SM@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [x20]
	cmp	x21, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x23, [x8, x21, lsl #3]
	str	xzr, [sp, #8]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spa_meta_objset
	ldr	x1, [x23, #8]
	ldr	w2, [x22]
	bl	_zap_contains
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spa_meta_objset
	ldr	x1, [x23, #8]
	ldr	w2, [x22]
	mov	x5, sp
	mov	w3, #8
	mov	w4, #1
	bl	_zap_lookup
	bl	_VERIFY0
	mov	x0, x19
	bl	_spa_meta_objset
	mov	x1, x0
	ldr	x2, [sp]
	ldp	w5, w4, [x23, #16]
	add	x0, sp, #8
	mov	w3, #0
	bl	_space_map_open
	bl	_VERIFY0
	ldr	x0, [sp, #8]
	bl	_space_map_update
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_dump_spacemap
	ldr	x0, [sp, #8]
	bl	_space_map_close
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VDEV_TOP_ZAP_POOL_CHECKPOINT_SM,4,2 ; @VDEV_TOP_ZAP_POOL_CHECKPOINT_SM
	.no_dead_strip	_dump_leftover_checkpoint_blocks
.subsections_via_symbols
