	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_vdev_remove              ## -- Begin function zpool_vdev_remove
	.p2align	4, 0x90
_zpool_vdev_remove:                     ## @zpool_vdev_remove
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1092(%rbp)
	movq	8(%rdi), %r14
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	_snprintf
	movl	(%rbx), %esi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	leaq	-1112(%rbp), %rdx
	leaq	-1104(%rbp), %rcx
	leaq	-1080(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_zpool_find_vdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_ZPOOL_PROP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_zpool_get_prop_int
	cmpq	$0, -1080(%rbp)
	je	LBB0_6
## %bb.4:
	movq	_SPA_VERSION_HOLES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dgettext
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_zfs_error_aux
	movq	_EZFS_BADVERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EZFS_NODEVICE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r14, %rdi
	callq	_zfs_error
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_6:
	movq	_ZPOOL_CONFIG_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_fnvlist_lookup_uint64
	movl	%eax, -1096(%rbp)
	movq	_ZFS_IOC_VDEV_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1096(%rbp), %rdx
	movq	%r14, %rdi
	callq	_zfs_ioctl
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$129, %esi
	je	LBB0_11
## %bb.8:
	cmpl	$128, %esi
	jne	LBB0_12
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dgettext
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_zfs_error_aux
	movq	_EZFS_INVALCONFIG@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dgettext
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_zfs_error_aux
	movq	_EZFS_BUSY@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r14, %rdi
	callq	_zfs_error
	jmp	LBB0_13
LBB0_12:
	leaq	-1072(%rbp), %rdx
	movq	%r14, %rdi
	callq	_zpool_standard_error
LBB0_13:
	movl	$-1, %r15d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	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 remove %s"

	.comm	_EZFS_NODEVICE,4,2              ## @EZFS_NODEVICE
	.comm	_ZPOOL_PROP_VERSION,4,2         ## @ZPOOL_PROP_VERSION
	.comm	_SPA_VERSION_HOLES,8,3          ## @SPA_VERSION_HOLES
L_.str.1:                               ## @.str.1
	.asciz	"pool must be upgraded to support log removal"

	.comm	_EZFS_BADVERSION,4,2            ## @EZFS_BADVERSION
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.comm	_ZFS_IOC_VDEV_REMOVE,4,2        ## @ZFS_IOC_VDEV_REMOVE
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"invalid config; all top-level vdevs must have the same sector size and not be raidz."

	.comm	_EZFS_INVALCONFIG,4,2           ## @EZFS_INVALCONFIG
L_.str.3:                               ## @.str.3
	.asciz	"Pool busy; removal may already be in progress"

	.comm	_EZFS_BUSY,4,2                  ## @EZFS_BUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_vdev_remove              ; -- Begin function zpool_vdev_remove
	.p2align	2
_zpool_vdev_remove:                     ; @zpool_vdev_remove
	.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, #1072
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [sp, #28]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x22, _TEXT_DOMAIN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TEXT_DOMAIN@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	add	x0, sp, #40
	mov	w1, #1024
	mov	x3, x21
	bl	_snprintf
	ldr	w1, [x20]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	x1, x21
	bl	_zpool_find_vdev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh7:
	adrp	x8, _ZPOOL_PROP_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZPOOL_PROP_VERSION@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_zpool_get_prop_int
	ldr	x8, [sp]
	cbz	x8, LBB0_6
; %bb.2:
Lloh10:
	adrp	x8, _SPA_VERSION_HOLES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPA_VERSION_HOLES@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.3:
	ldr	w0, [x22]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	mov	x0, x19
	bl	_zfs_error_aux
Lloh15:
	adrp	x8, _EZFS_BADVERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EZFS_BADVERSION@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _EZFS_NODEVICE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EZFS_NODEVICE@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	bl	_zfs_error
	b	LBB0_14
LBB0_6:
Lloh19:
	adrp	x8, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_fnvlist_lookup_uint64
	str	w0, [sp, #24]
Lloh22:
	adrp	x8, _ZFS_IOC_VDEV_REMOVE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZFS_IOC_VDEV_REMOVE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_zfs_ioctl
	cbz	x0, LBB0_14
; %bb.7:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	cmp	w1, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w1, #128
	b.ne	LBB0_12
; %bb.9:
	ldr	w0, [x22]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	mov	x0, x19
	bl	_zfs_error_aux
Lloh30:
	adrp	x8, _EZFS_INVALCONFIG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EZFS_INVALCONFIG@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	ldr	w0, [x22]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	mov	x0, x19
	bl	_zfs_error_aux
Lloh34:
	adrp	x8, _EZFS_BUSY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EZFS_BUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	bl	_zfs_error
	b	LBB0_13
LBB0_12:
	add	x2, sp, #40
	mov	x0, x19
	bl	_zpool_standard_error
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #1072
	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_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot remove %s"

	.comm	_EZFS_NODEVICE,4,2              ; @EZFS_NODEVICE
	.comm	_ZPOOL_PROP_VERSION,4,2         ; @ZPOOL_PROP_VERSION
	.comm	_SPA_VERSION_HOLES,8,3          ; @SPA_VERSION_HOLES
l_.str.1:                               ; @.str.1
	.asciz	"pool must be upgraded to support log removal"

	.comm	_EZFS_BADVERSION,4,2            ; @EZFS_BADVERSION
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.comm	_ZFS_IOC_VDEV_REMOVE,4,2        ; @ZFS_IOC_VDEV_REMOVE
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"invalid config; all top-level vdevs must have the same sector size and not be raidz."

	.comm	_EZFS_INVALCONFIG,4,2           ; @EZFS_INVALCONFIG
l_.str.3:                               ; @.str.3
	.asciz	"Pool busy; removal may already be in progress"

	.comm	_EZFS_BUSY,4,2                  ; @EZFS_BUSY
.subsections_via_symbols
