	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_destroy                  ## -- Begin function zpool_destroy
	.p2align	4, 0x90
_zpool_destroy:                         ## @zpool_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1080(%rbp)
	movq	16(%rdi), %r15
	movq	(%rdi), %rax
	movq	_POOL_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movl	8(%rbx), %esi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_zfs_open
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:
	movl	$-1, %r12d
	jmp	LBB0_12
LBB0_1:
	xorl	%r14d, %r14d
LBB0_2:
	movl	8(%rbx), %esi
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r13, -1088(%rbp)
	movq	_ZFS_IOC_POOL_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1088(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_ioctl
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	movl	8(%rbx), %ecx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_EROFS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_7
## %bb.4:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dgettext
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_zfs_error_aux
	movq	_EZFS_BADDEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
	jmp	LBB0_8
LBB0_9:
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_remove_mountpoint
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_7:
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zpool_standard_error
LBB0_8:
	movl	$-1, %r12d
	testq	%r14, %r14
	je	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_zfs_close
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POOL_STATE_ACTIVE,8,3          ## @POOL_STATE_ACTIVE
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_IOC_POOL_DESTROY,4,2       ## @ZFS_IOC_POOL_DESTROY
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot destroy '%s'"

	.comm	_errno,8,3                      ## @errno
	.comm	_EROFS,8,3                      ## @EROFS
L_.str.1:                               ## @.str.1
	.asciz	"one or more devices is read only"

	.comm	_EZFS_BADDEV,4,2                ## @EZFS_BADDEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_destroy                  ; -- Begin function zpool_destroy
	.p2align	2
_zpool_destroy:                         ; @zpool_destroy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1056
	mov	x22, x1
	mov	x21, x0
	mov	x19, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	xzr, [sp, #16]
	ldr	x20, [x0, #16]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _POOL_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POOL_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x21, #8]
Lloh6:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_zfs_open
	mov	x19, x0
	cbz	x0, LBB0_10
LBB0_2:
	ldr	w1, [x21, #8]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	str	x22, [sp, #8]
Lloh9:
	adrp	x8, _ZFS_IOC_POOL_DESTROY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZFS_IOC_POOL_DESTROY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_zfs_ioctl
	cbz	x0, LBB0_5
; %bb.3:
Lloh12:
	adrp	x22, _TEXT_DOMAIN@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TEXT_DOMAIN@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	w3, [x21, #8]
	add	x0, sp, #24
	mov	w1, #1024
	bl	_snprintf
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x8]
Lloh19:
	adrp	x8, _EROFS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	mov	x0, x20
	bl	_zfs_error_aux
Lloh24:
	adrp	x8, _EZFS_BADDEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EZFS_BADDEV@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x20
	bl	_zfs_error
	b	LBB0_8
LBB0_5:
	cbz	x19, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_remove_mountpoint
	mov	w20, #0
	b	LBB0_9
LBB0_7:
	add	x2, sp, #24
	mov	x0, x20
	bl	_zpool_standard_error
LBB0_8:
	mov	w20, #-1
	cbz	x19, LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_zfs_close
	b	LBB0_12
LBB0_10:
	mov	w20, #-1
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_POOL_STATE_ACTIVE,8,3          ; @POOL_STATE_ACTIVE
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_IOC_POOL_DESTROY,4,2       ; @ZFS_IOC_POOL_DESTROY
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot destroy '%s'"

	.comm	_errno,8,3                      ; @errno
	.comm	_EROFS,8,3                      ; @EROFS
l_.str.1:                               ; @.str.1
	.asciz	"one or more devices is read only"

	.comm	_EZFS_BADDEV,4,2                ; @EZFS_BADDEV
.subsections_via_symbols
