	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_rollback                   ## -- Begin function zfs_rollback
	.p2align	4, 0x90
_zfs_rollback:                          ## @zfs_rollback
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1104(%rbp)
	movaps	%xmm0, -1120(%rbp)
	movq	(%rdi), %rax
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_ZFS_TYPE_VOLUME@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	movl	%edx, %ebx
	movq	%rsi, %r15
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	%ebx, -1120(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -1096(%rbp)
	movq	_ZFS_PROP_CREATETXG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_zfs_prop_get_int
	movq	%rax, -1112(%rbp)
	xorl	%r12d, %r12d
	testq	%rax, %rax
	cmovleq	%r12, %rax
	movq	_B_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_rollback_destroy@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-1120(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rcx
	movq	%rax, %r8
	xorl	%r9d, %r9d
	callq	_zfs_iter_snapshots
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_zfs_iter_bookmarks
	movl	$-1, %r14d
	cmpq	$0, -1104(%rbp)
	je	LBB0_1
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%r14d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r13), %rax
	movq	_ZFS_TYPE_VOLUME@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.3:
	leaq	-1076(%rbp), %rsi
	movq	%r13, %rdi
	callq	_zfs_which_resv_prop
	testq	%rax, %rax
	js	LBB0_20
## %bb.4:
	movq	_ZFS_PROP_VOLSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_zfs_prop_get_int
	movq	%rax, %r14
	movl	-1076(%rbp), %esi
	movq	%r13, %rdi
	callq	_zfs_prop_get_int
	xorl	%r12d, %r12d
	movq	%r14, %rcx
	movq	%r14, -1088(%rbp)               ## 8-byte Spill
	cmpq	%rax, %r14
	sete	%r12b
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
LBB0_5:
	movl	8(%r13), %edi
	movl	8(%r15), %esi
	callq	_lzc_rollback_to
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %r14d
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	movl	8(%r13), %ecx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	cmpl	$128, %r14d
	je	LBB0_10
## %bb.7:
	cmpl	$129, %r14d
	je	LBB0_11
## %bb.8:
	cmpl	$130, %r14d
	jne	LBB0_13
## %bb.9:
	movl	12(%r13), %r12d
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dgettext
	movl	8(%r15), %edx
	movl	%r12d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movl	12(%r13), %edi
	movq	_EZFS_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	cmpq	(%rbx), %rax
	jne	LBB0_20
## %bb.15:
	movl	8(%r13), %esi
	movl	12(%r13), %edi
	callq	_make_dataset_handle
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.17:
	movq	_ZFS_PROP_VOLSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_zfs_prop_get_int
	cmpq	%rax, -1088(%rbp)               ## 8-byte Folded Reload
	je	LBB0_19
## %bb.18:
	movl	-1076(%rbp), %esi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_zfs_prop_set_int
	movl	%eax, %r14d
LBB0_19:
	movq	%r15, %rdi
	callq	_zfs_close
	jmp	LBB0_20
LBB0_10:
	movl	12(%r13), %r12d
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dgettext
	movl	8(%r15), %edx
	movl	8(%r13), %ecx
	movl	%r12d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movl	12(%r13), %edi
	movq	_EZFS_NOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movl	12(%r13), %edi
	movq	_EZFS_BADTYPE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	callq	_zfs_error
	jmp	LBB0_20
LBB0_13:
	movl	12(%r13), %edi
	leaq	-1072(%rbp), %rdx
	movl	%r14d, %esi
	callq	_zfs_standard_error
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_TYPE_FILESYSTEM,8,3        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_VOLUME,8,3            ## @ZFS_TYPE_VOLUME
	.comm	_ZFS_PROP_CREATETXG,4,2         ## @ZFS_PROP_CREATETXG
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_rollback_destroy,4,2           ## @rollback_destroy
	.comm	_ZFS_PROP_VOLSIZE,4,2           ## @ZFS_PROP_VOLSIZE
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot rollback '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"there is a snapshot or bookmark more recent than '%s'"

	.comm	_EZFS_EXISTS,4,2                ## @EZFS_EXISTS
L_.str.2:                               ## @.str.2
	.asciz	"'%s' is not found among snapshots of '%s'"

	.comm	_EZFS_NOENT,4,2                 ## @EZFS_NOENT
	.comm	_EZFS_BADTYPE,4,2               ## @EZFS_BADTYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_rollback                   ; -- Begin function zfs_rollback
	.p2align	2
_zfs_rollback:                          ; @zfs_rollback
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1088
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh6:
	adrp	x23, _ZFS_TYPE_VOLUME@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ZFS_TYPE_VOLUME@GOTPAGEOFF]
	ldr	x9, [x23]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #8]
	str	w21, [sp, #16]
	str	w8, [sp, #40]
Lloh8:
	adrp	x8, _ZFS_PROP_CREATETXG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZFS_PROP_CREATETXG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_zfs_prop_get_int
	str	x0, [sp, #24]
	cmp	x0, #0
	csel	x4, x0, xzr, gt
Lloh11:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x21, _rollback_destroy@GOTPAGE
Lloh15:
	ldr	x21, [x21, _rollback_destroy@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #16
	mov	x0, x19
	mov	w5, #0
	bl	_zfs_iter_snapshots
	ldr	w1, [x21]
	add	x2, sp, #16
	mov	x0, x19
	bl	_zfs_iter_bookmarks
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_4
LBB0_1:
	mov	w21, #-1
LBB0_2:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.3:
	mov	x0, x21
	add	sp, sp, #1088
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	add	x1, sp, #12
	mov	x0, x19
	bl	_zfs_which_resv_prop
	tbnz	x0, #63, LBB0_1
; %bb.6:
Lloh19:
	adrp	x8, _ZFS_PROP_VOLSIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ZFS_PROP_VOLSIZE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zfs_prop_get_int
	mov	x22, x0
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_zfs_prop_get_int
	cmp	x22, x0
	cset	w24, eq
	b	LBB0_8
LBB0_7:
	mov	w24, #0
	mov	x22, #0
LBB0_8:
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #8]
	bl	_lzc_rollback_to
	cbz	w0, LBB0_13
; %bb.9:
	mov	x21, x0
Lloh22:
	adrp	x23, _TEXT_DOMAIN@GOTPAGE
Lloh23:
	ldr	x23, [x23, _TEXT_DOMAIN@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	w3, [x19, #8]
	add	x0, sp, #56
	mov	w1, #1024
	bl	_snprintf
	cmp	w21, #128
	b.eq	LBB0_19
; %bb.10:
	cmp	w21, #129
	b.eq	LBB0_20
; %bb.11:
	cmp	w21, #130
	b.ne	LBB0_22
; %bb.12:
	ldr	w22, [x19, #12]
	ldr	w0, [x23]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	w2, [x20, #8]
	mov	x0, x22
	bl	_zfs_error_aux
	ldr	w0, [x19, #12]
Lloh28:
	adrp	x8, _EZFS_EXISTS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EZFS_EXISTS@GOTPAGEOFF]
	b	LBB0_21
LBB0_13:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:
	ldp	w1, w0, [x19, #8]
	bl	_make_dataset_handle
	cbz	x0, LBB0_18
; %bb.15:
	mov	x19, x0
	cbz	w24, LBB0_17
; %bb.16:
Lloh30:
	adrp	x8, _ZFS_PROP_VOLSIZE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ZFS_PROP_VOLSIZE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zfs_prop_get_int
	cmp	x22, x0
	b.ne	LBB0_23
LBB0_17:
	mov	w21, #0
	b	LBB0_24
LBB0_18:
	mov	w21, #0
	b	LBB0_2
LBB0_19:
	ldr	w22, [x19, #12]
	ldr	w0, [x23]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	w2, [x20, #8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
	mov	x0, x22
	bl	_zfs_error_aux
	ldr	w0, [x19, #12]
Lloh35:
	adrp	x8, _EZFS_NOENT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EZFS_NOENT@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
	ldr	w0, [x19, #12]
Lloh37:
	adrp	x8, _EZFS_BADTYPE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EZFS_BADTYPE@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	add	x2, sp, #56
	bl	_zfs_error
	b	LBB0_2
LBB0_22:
	ldr	w0, [x19, #12]
	add	x2, sp, #56
	mov	x1, x21
	bl	_zfs_standard_error
	b	LBB0_2
LBB0_23:
	mov	x2, x0
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_zfs_prop_set_int
	mov	x21, x0
LBB0_24:
	mov	x0, x19
	bl	_zfs_close
	b	LBB0_2
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_TYPE_FILESYSTEM,8,3        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_VOLUME,8,3            ; @ZFS_TYPE_VOLUME
	.comm	_ZFS_PROP_CREATETXG,4,2         ; @ZFS_PROP_CREATETXG
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_rollback_destroy,4,2           ; @rollback_destroy
	.comm	_ZFS_PROP_VOLSIZE,4,2           ; @ZFS_PROP_VOLSIZE
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot rollback '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"there is a snapshot or bookmark more recent than '%s'"

	.comm	_EZFS_EXISTS,4,2                ; @EZFS_EXISTS
l_.str.2:                               ; @.str.2
	.asciz	"'%s' is not found among snapshots of '%s'"

	.comm	_EZFS_NOENT,4,2                 ; @EZFS_NOENT
	.comm	_EZFS_BADTYPE,4,2               ; @EZFS_BADTYPE
.subsections_via_symbols
