	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy_callback
_destroy_callback:                      ## @destroy_callback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_zfs_get_name
	movq	%rax, %r15
	cmpq	$0, 40(%r12)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 32(%r12)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	cmpq	$0, 24(%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_gettext
	movq	%rax, %rdi
LBB0_4:
	movq	%r15, %rsi
	callq	_printf
LBB0_5:
	movq	%r14, %rdi
	callq	_zfs_get_name
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_zfs_get_type
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_16
LBB0_7:
	xorl	%ebx, %ebx
	cmpq	$0, 24(%r12)
	jne	LBB0_16
## %bb.8:
	movq	%r14, %rdi
	callq	_zfs_get_type
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	16(%r12), %edi
	movq	%r15, %rsi
	callq	_fnvlist_add_boolean
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_10:
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r12), %esi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_zfs_destroy_snaps_nvl
	movl	%eax, %r13d
	movl	16(%r12), %edi
	callq	_fnvlist_free
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movl	%eax, 16(%r12)
	movl	$-1, %ebx
	testl	%r13d, %r13d
	jne	LBB0_16
## %bb.11:
	cmpq	$0, 8(%r12)
	je	LBB0_13
## %bb.12:
	movq	_MS_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_zfs_unmount
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_zfs_destroy
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_zfs_close
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroy\t%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"would destroy %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"will destroy %s\n"

	.comm	_ZFS_TYPE_FILESYSTEM,8,3        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ## @ZFS_TYPE_SNAPSHOT
	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_MS_FORCE,4,2                   ## @MS_FORCE
	.no_dead_strip	_destroy_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy_callback
_destroy_callback:                      ; @destroy_callback
	.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
	bl	_zfs_get_name
	mov	x21, x0
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20, #24]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_gettext
LBB0_4:
	mov	x1, x21
	bl	_printf
LBB0_5:
	mov	x0, x19
	bl	_zfs_get_name
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_zfs_get_type
Lloh6:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
LBB0_7:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_zfs_get_type
Lloh9:
	adrp	x8, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.9:
	ldr	w0, [x20, #16]
	mov	x1, x21
	bl	_fnvlist_add_boolean
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_zfs_close
	mov	x0, x20
	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
LBB0_12:
Lloh12:
	adrp	x8, _g_zfs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
Lloh15:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_zfs_destroy_snaps_nvl
	mov	x21, x0
	ldr	w0, [x20, #16]
	bl	_fnvlist_free
	bl	_fnvlist_alloc
	str	w0, [x20, #16]
	cbnz	w21, LBB0_15
; %bb.13:
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _MS_FORCE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MS_FORCE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	mov	x1, #0
	bl	_zfs_unmount
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_zfs_destroy
	cbz	x0, LBB0_10
LBB0_15:
	mov	w20, #-1
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroy\t%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"would destroy %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"will destroy %s\n"

	.comm	_ZFS_TYPE_FILESYSTEM,8,3        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ; @ZFS_TYPE_SNAPSHOT
	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_MS_FORCE,4,2                   ; @MS_FORCE
	.no_dead_strip	_destroy_callback
.subsections_via_symbols
