	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_clear                    ## -- Begin function zpool_clear
	.p2align	4, 0x90
_zpool_clear:                           ## @zpool_clear
	.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	$1096, %rsp                     ## imm = 0x448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1104(%rbp)
	movq	16(%rdi), %r15
	movq	$0, -1112(%rbp)
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	movq	%rbx, %rcx
	callq	_snprintf
	movq	(%r12), %rsi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	leaq	-1120(%rbp), %rdx
	leaq	-1128(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_zpool_find_vdev
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	cmpq	$0, -1120(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_EZFS_ISSPARE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	(%r12), %rcx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	movq	(%r12), %rsi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	jmp	LBB0_8
LBB0_3:
	movq	_EZFS_NODEVICE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
LBB0_23:
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_7:
	movq	_ZPOOL_CONFIG_GUID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-1096(%rbp), %rdx
	movq	%rax, %rdi
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
LBB0_8:
	leaq	-1080(%rbp), %rsi
	movq	%r14, %rdi
	callq	_zpool_get_load_policy
	movl	-1080(%rbp), %eax
	movl	%eax, -1104(%rbp)
	movl	8(%r12), %edx
	addl	%edx, %edx
	leaq	-1104(%rbp), %rsi
	movq	%r15, %rdi
	callq	_zcmd_alloc_dst_nvlist
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_24
## %bb.9:
	leaq	-1104(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_zcmd_write_src_nvlist
	testq	%rax, %rax
	jne	LBB0_24
## %bb.10:
	movq	_ZFS_IOC_CLEAR@GOTPCREL(%rip), %r13
	leaq	-1104(%rbp), %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_zfs_ioctl
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	(%r14), %rcx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_zcmd_expand_dst_nvlist
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	leaq	-1104(%rbp), %rdi
	callq	_zcmd_free_nvlists
	jmp	LBB0_24
LBB0_15:
	movl	-1080(%rbp), %edx
	movq	_ZPOOL_TRY_REWIND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	testl	%edx, %esi
	je	LBB0_22
## %bb.17:
	movq	_EPERM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_22
## %bb.18:
	movq	_EACCES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_22
LBB0_19:
	movq	_ZPOOL_DO_REWIND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	testl	%edx, %esi
	je	LBB0_21
## %bb.20:
	leaq	-1104(%rbp), %rsi
	leaq	-1112(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zcmd_read_dst_nvlist
	movl	-1100(%rbp), %esi
	movl	(%rbx), %eax
	xorl	%edx, %edx
	andl	-1080(%rbp), %eax
	setne	%dl
	movq	-1112(%rbp), %rcx
	movq	%r15, %rdi
	callq	_zpool_rewind_exclaim
	movq	-1112(%rbp), %rdi
	callq	_nvlist_free
LBB0_21:
	leaq	-1104(%rbp), %rdi
	callq	_zcmd_free_nvlists
	xorl	%r12d, %r12d
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r12d, %eax
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	-1104(%rbp), %rdi
	callq	_zcmd_free_nvlists
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zpool_standard_error
	jmp	LBB0_23
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot clear errors for %s"

	.comm	_EZFS_NODEVICE,4,2              ## @EZFS_NODEVICE
	.comm	_EZFS_ISSPARE,4,2               ## @EZFS_ISSPARE
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.comm	_ZFS_IOC_CLEAR,4,2              ## @ZFS_IOC_CLEAR
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_ZPOOL_TRY_REWIND,4,2           ## @ZPOOL_TRY_REWIND
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_ZPOOL_DO_REWIND,4,2            ## @ZPOOL_DO_REWIND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_clear                    ; -- Begin function zpool_clear
	.p2align	2
_zpool_clear:                           ; @zpool_clear
	.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, #1088
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stp	xzr, xzr, [sp, #40]
	ldr	x19, [x0, #16]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	cbz	x22, LBB0_4
; %bb.1:
	add	x0, sp, #56
	mov	w1, #1024
	mov	x3, x22
	bl	_snprintf
	ldr	x1, [x21]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x22
	mov	x4, #0
	bl	_zpool_find_vdev
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _EZFS_ISSPARE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EZFS_ISSPARE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x3, [x21]
	add	x0, sp, #56
	mov	w1, #1024
	bl	_snprintf
	ldr	x1, [x21]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _EZFS_NODEVICE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EZFS_NODEVICE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	add	x2, sp, #56
	mov	x0, x19
	bl	_zfs_error
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x8, sp, #40
	add	x2, x8, #8
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
LBB0_8:
	add	x1, sp, #32
	mov	x0, x20
	bl	_zpool_get_load_policy
	ldr	w8, [sp, #32]
	str	w8, [sp, #40]
	ldr	w8, [x21, #8]
	lsl	w2, w8, #1
	add	x1, sp, #40
	mov	x0, x19
	bl	_zcmd_alloc_dst_nvlist
	cbnz	x0, LBB0_10
; %bb.9:
	add	x1, sp, #40
	mov	x0, x19
	mov	x2, x20
	bl	_zcmd_write_src_nvlist
	cbz	x0, LBB0_13
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.12:
	add	sp, sp, #1088
	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_13:
Lloh18:
	adrp	x21, _ZFS_IOC_CLEAR@GOTPAGE
Lloh19:
	ldr	x21, [x21, _ZFS_IOC_CLEAR@GOTPAGEOFF]
Lloh20:
	adrp	x20, _errno@GOTPAGE
Lloh21:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
Lloh22:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, sp, #40
	mov	x0, x19
	bl	_zfs_ioctl
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	w0, #0
	ccmp	x8, x9, #0, ne
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x1, sp, #40
	mov	x0, x19
	bl	_zcmd_expand_dst_nvlist
	cbz	x0, LBB0_14
; %bb.16:
	add	x0, sp, #40
	bl	_zcmd_free_nvlists
	mov	w0, #-1
	b	LBB0_11
LBB0_17:
	ldr	w9, [sp, #32]
Lloh24:
	adrp	x21, _ZPOOL_TRY_REWIND@GOTPAGE
Lloh25:
	ldr	x21, [x21, _ZPOOL_TRY_REWIND@GOTPAGEOFF]
	ldr	w10, [x21]
	cbz	w0, LBB0_20
; %bb.18:
	and	w11, w10, w9
Lloh26:
	adrp	x12, _EPERM@GOTPAGE
Lloh27:
	ldr	x12, [x12, _EPERM@GOTPAGEOFF]
Lloh28:
	ldr	x12, [x12]
Lloh29:
	adrp	x13, _EACCES@GOTPAGE
Lloh30:
	ldr	x13, [x13, _EACCES@GOTPAGEOFF]
Lloh31:
	ldr	x13, [x13]
	cmp	w11, #0
	ccmp	x8, x12, #4, ne
	ccmp	x8, x13, #4, ne
	b.ne	LBB0_20
; %bb.19:
	add	x0, sp, #40
	bl	_zcmd_free_nvlists
	ldr	x1, [x20]
	add	x2, sp, #56
	mov	x0, x19
	bl	_zpool_standard_error
	b	LBB0_11
LBB0_20:
Lloh32:
	adrp	x8, _ZPOOL_DO_REWIND@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ZPOOL_DO_REWIND@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	orr	w8, w10, w8
	tst	w8, w9
	b.eq	LBB0_22
; %bb.21:
	add	x1, sp, #40
	add	x2, sp, #8
	mov	x0, x19
	bl	_zcmd_read_dst_nvlist
	ldr	w1, [sp, #44]
	ldr	w8, [sp, #32]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w2, ne
	ldr	x3, [sp, #8]
	mov	x0, x19
	bl	_zpool_rewind_exclaim
	ldr	x0, [sp, #8]
	bl	_nvlist_free
LBB0_22:
	add	x0, sp, #40
	bl	_zcmd_free_nvlists
	mov	w0, #0
	b	LBB0_11
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot clear errors for %s"

	.comm	_EZFS_NODEVICE,4,2              ; @EZFS_NODEVICE
	.comm	_EZFS_ISSPARE,4,2               ; @EZFS_ISSPARE
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.comm	_ZFS_IOC_CLEAR,4,2              ; @ZFS_IOC_CLEAR
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_ZPOOL_TRY_REWIND,4,2           ; @ZPOOL_TRY_REWIND
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_ZPOOL_DO_REWIND,4,2            ; @ZPOOL_DO_REWIND
.subsections_via_symbols
