	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_destroy                    ## -- Begin function zfs_destroy
	.p2align	4, 0x90
_zfs_destroy:                           ## @zfs_destroy
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpq	%rcx, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	_ZFS_TYPE_BOOKMARK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %r12
	movl	8(%r14), %esi
	movq	%rax, %rdi
	callq	_fnvlist_add_boolean
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_lzc_destroy_bookmarks
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_fnvlist_free
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.5:
	movl	12(%r14), %ebx
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	movl	8(%r14), %ecx
	movl	%ebx, %edi
	movl	%r15d, %esi
	jmp	LBB0_6
LBB0_7:
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %r15
	movl	8(%r14), %esi
	movq	%rax, %rdi
	callq	_fnvlist_add_boolean
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_lzc_destroy_snaps
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_fnvlist_free
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_13
LBB0_9:
	movl	8(%r14), %edi
	callq	_lzc_destroy
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_13
LBB0_11:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_13
## %bb.12:
	movl	12(%r14), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	movl	8(%r14), %ecx
	movl	%r15d, %edi
	movl	%ebx, %esi
LBB0_6:
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zfs_standard_error_fmt         ## TAILCALL
LBB0_13:
	movq	%r14, %rdi
	callq	_remove_mountpoint
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ## @ZFS_TYPE_SNAPSHOT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ZFS_TYPE_BOOKMARK,8,3          ## @ZFS_TYPE_BOOKMARK
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot destroy '%s'"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_destroy                    ; -- Begin function zfs_destroy
	.p2align	2
_zfs_destroy:                           ; @zfs_destroy
	.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	x8, [x0]
Lloh0:
	adrp	x9, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cbz	x1, LBB0_3
; %bb.1:
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_3:
Lloh6:
	adrp	x10, _ZFS_TYPE_BOOKMARK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ZFS_TYPE_BOOKMARK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.4:
	bl	_fnvlist_alloc
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_fnvlist_add_boolean
	mov	x0, x21
	mov	x1, #0
	bl	_lzc_destroy_bookmarks
	mov	x20, x0
	mov	x0, x21
	bl	_fnvlist_free
	cbz	w20, LBB0_13
; %bb.5:
	ldr	w21, [x19, #12]
Lloh9:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	w3, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	b	LBB0_11
LBB0_6:
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	bl	_fnvlist_alloc
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_fnvlist_add_boolean
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_lzc_destroy_snaps
	mov	x20, x0
	mov	x0, x21
	bl	_fnvlist_free
	cbnz	w20, LBB0_9
	b	LBB0_12
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_lzc_destroy
	mov	x20, x0
	cbz	w20, LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	w20, [x19, #12]
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
Lloh20:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	w3, [x19, #8]
	mov	x0, x20
	mov	x1, x21
LBB0_11:
	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
	b	_zfs_standard_error_fmt
LBB0_12:
	mov	x0, x19
	bl	_remove_mountpoint
LBB0_13:
	mov	w0, #0
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ; @ZFS_TYPE_SNAPSHOT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ZFS_TYPE_BOOKMARK,8,3          ; @ZFS_TYPE_BOOKMARK
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot destroy '%s'"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
