	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_iter_snapshots             ## -- Begin function zfs_iter_snapshots
	.p2align	4, 0x90
_zfs_iter_snapshots:                    ## @zfs_iter_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	(%rdi), %rax
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.1:
	movq	_ZFS_TYPE_BOOKMARK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.2:
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, -64(%rbp)
	movl	8(%rdi), %edi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_zcmd_alloc_dst_nvlist
	movl	$-1, %r13d
	testq	%rax, %rax
	jne	LBB0_26
## %bb.3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %rdi
	movq	_SNAP_ITER_MIN_TXG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	callq	_fnvlist_add_uint64
	testq	%r14, %r14
	je	LBB0_5
## %bb.8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	jne	LBB0_10
	jmp	LBB0_9
LBB0_6:
	testq	%r14, %r14
	je	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %r15
LBB0_10:
	movq	_SNAP_ITER_MAX_TXG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_fnvlist_add_uint64
	testq	%r15, %r15
	je	LBB0_7
LBB0_12:
	movl	8(%r12), %edi
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdx
	callq	_zcmd_write_src_nvlist
	testq	%rax, %rax
	je	LBB0_13
## %bb.27:
	leaq	-64(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movq	%r15, %rdi
	jmp	LBB0_25
LBB0_5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	jne	LBB0_12
LBB0_7:
	movq	%rbx, %r13
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_13:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
LBB0_14:
	movq	_ZFS_IOC_SNAPSHOT_LIST_NEXT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_zfs_do_list_ioctl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	leaq	-64(%rbp), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %r13
	movl	(%r15), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_zfs_do_list_ioctl
	testl	%eax, %eax
	jne	LBB0_21
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	testq	%r13, %r13
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_make_dataset_simple_handle_zc
	testq	%rax, %rax
	jne	LBB0_23
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	8(%r12), %edi
	movq	%r14, %rsi
	callq	_make_dataset_handle_zc
	testq	%rax, %rax
	je	LBB0_20
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_20
## %bb.24:
	movl	%eax, %r13d
	leaq	-64(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_25:
	callq	_fnvlist_free
	jmp	LBB0_26
LBB0_21:
	movl	%eax, %ebx
LBB0_22:
	leaq	-64(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fnvlist_free
	movl	%ebx, %r13d
	sarl	$31, %r13d
	andl	%ebx, %r13d
LBB0_26:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ## @ZFS_TYPE_SNAPSHOT
	.comm	_ZFS_TYPE_BOOKMARK,8,3          ## @ZFS_TYPE_BOOKMARK
	.comm	_SNAP_ITER_MIN_TXG,4,2          ## @SNAP_ITER_MIN_TXG
	.comm	_SNAP_ITER_MAX_TXG,4,2          ## @SNAP_ITER_MAX_TXG
	.comm	_ZFS_IOC_SNAPSHOT_LIST_NEXT,4,2 ## @ZFS_IOC_SNAPSHOT_LIST_NEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_iter_snapshots             ; -- Begin function zfs_iter_snapshots
	.p2align	2
_zfs_iter_snapshots:                    ; @zfs_iter_snapshots
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	xzr, [sp, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ZFS_TYPE_BOOKMARK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ZFS_TYPE_BOOKMARK@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_23
LBB0_2:
	mov	x24, x5
	mov	x25, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	x1, [sp]
	ldr	w0, [x0, #8]
	mov	x1, sp
	mov	w2, #0
	bl	_zcmd_alloc_dst_nvlist
	cbz	x0, LBB0_4
; %bb.3:
	mov	w24, #-1
	b	LBB0_23
LBB0_4:
	cbz	x25, LBB0_7
; %bb.5:
	bl	_fnvlist_alloc
	mov	x23, x0
Lloh6:
	adrp	x8, _SNAP_ITER_MIN_TXG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNAP_ITER_MIN_TXG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_fnvlist_add_uint64
	cbz	x24, LBB0_10
; %bb.6:
	cbnz	x23, LBB0_9
	b	LBB0_8
LBB0_7:
	cbz	x24, LBB0_13
LBB0_8:
	bl	_fnvlist_alloc
	mov	x23, x0
LBB0_9:
Lloh9:
	adrp	x8, _SNAP_ITER_MAX_TXG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNAP_ITER_MAX_TXG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x24
	bl	_fnvlist_add_uint64
LBB0_10:
	cbz	x23, LBB0_14
; %bb.11:
	ldr	w0, [x22, #8]
	mov	x1, sp
	mov	x2, x23
	bl	_zcmd_write_src_nvlist
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, sp
	bl	_zcmd_free_nvlists
	mov	x0, x23
	bl	_fnvlist_free
	mov	w24, #-1
	b	LBB0_23
LBB0_13:
	mov	x23, #0
LBB0_14:
Lloh12:
	adrp	x25, _ZFS_IOC_SNAPSHOT_LIST_NEXT@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ZFS_IOC_SNAPSHOT_LIST_NEXT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x2, sp
	mov	x0, x22
	bl	_zfs_do_list_ioctl
	mov	x24, x0
	cbnz	w0, LBB0_22
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x25]
	mov	x2, sp
	mov	x0, x22
	bl	_zfs_do_list_ioctl
	cbnz	w0, LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, sp
	mov	x0, x22
	bl	_make_dataset_simple_handle_zc
	cbnz	x0, LBB0_19
	b	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x22, #8]
	mov	x1, sp
	bl	_make_dataset_handle_zc
	cbz	x0, LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x1, x19
	blr	x20
	cbz	w0, LBB0_15
; %bb.20:
	mov	x24, x0
	mov	x0, sp
	bl	_zcmd_free_nvlists
	mov	x0, x23
	bl	_fnvlist_free
	b	LBB0_23
LBB0_21:
	mov	x24, x0
LBB0_22:
	mov	x0, sp
	bl	_zcmd_free_nvlists
	mov	x0, x23
	bl	_fnvlist_free
	cmp	w24, #0
	csel	w24, w24, wzr, lt
LBB0_23:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ; @ZFS_TYPE_SNAPSHOT
	.comm	_ZFS_TYPE_BOOKMARK,8,3          ; @ZFS_TYPE_BOOKMARK
	.comm	_SNAP_ITER_MIN_TXG,4,2          ; @SNAP_ITER_MIN_TXG
	.comm	_SNAP_ITER_MAX_TXG,4,2          ; @SNAP_ITER_MAX_TXG
	.comm	_ZFS_IOC_SNAPSHOT_LIST_NEXT,4,2 ; @ZFS_IOC_SNAPSHOT_LIST_NEXT
.subsections_via_symbols
