	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gather_snapshots
_gather_snapshots:                      ## @gather_snapshots
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rsi), %esi
	movq	_snapshot_to_nvl_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	callq	_zfs_iter_snapspec
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_destroy_print_snapshots
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.6:
	leaq	_gather_snapshots(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_zfs_iter_filesystems
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_zfs_close
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snapshot_to_nvl_cb,4,2         ## @snapshot_to_nvl_cb
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_gather_snapshots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gather_snapshots
_gather_snapshots:                      ; @gather_snapshots
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #16]
Lloh0:
	adrp	x8, _snapshot_to_nvl_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snapshot_to_nvl_cb@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_zfs_iter_snapspec
	mov	x21, x0
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_destroy_print_snapshots
	mov	x21, x0
	cbnz	w0, LBB0_6
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, _gather_snapshots@PAGE
Lloh7:
	add	x1, x1, _gather_snapshots@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_zfs_iter_filesystems
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	bl	_zfs_close
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_snapshot_to_nvl_cb,4,2         ; @snapshot_to_nvl_cb
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_gather_snapshots
.subsections_via_symbols
