	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_vdev_offline             ## -- Begin function zpool_vdev_offline
	.p2align	4, 0x90
_zpool_vdev_offline:                    ## @zpool_vdev_offline
	.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
	subq	$1088, %rsp                     ## imm = 0x440
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1104(%rbp)
	movl	$0, -1088(%rbp)
	movq	8(%rdi), %r15
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_snprintf
	movl	(%rbx), %esi
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	leaq	-1112(%rbp), %rdx
	leaq	-1120(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_zpool_find_vdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	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
	cmpq	$0, -1112(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_EZFS_ISSPARE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EZFS_NODEVICE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_error
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$1088, %rsp                     ## imm = 0x440
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_VDEV_STATE_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1100(%rbp)
	xorl	%ebx, %ebx
	movl	$0, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	_ZFS_OFFLINE_TEMPORARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movl	%eax, -1104(%rbp)
	movq	_ZFS_IOC_VDEV_SET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1104(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zfs_ioctl
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$128, %esi
	je	LBB0_11
## %bb.9:
	cmpl	$129, %esi
	jne	LBB0_12
## %bb.10:
	movq	_EZFS_NOREPLICAS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	_EZFS_UNPLAYED_LOGS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	leaq	-1072(%rbp), %rdx
	movq	%r15, %rdi
	callq	_zpool_standard_error
	jmp	LBB0_13
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 offline %s"

	.comm	_EZFS_NODEVICE,4,2              ## @EZFS_NODEVICE
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.comm	_EZFS_ISSPARE,4,2               ## @EZFS_ISSPARE
	.comm	_VDEV_STATE_OFFLINE,4,2         ## @VDEV_STATE_OFFLINE
	.comm	_ZFS_OFFLINE_TEMPORARY,4,2      ## @ZFS_OFFLINE_TEMPORARY
	.comm	_ZFS_IOC_VDEV_SET_STATE,4,2     ## @ZFS_IOC_VDEV_SET_STATE
	.comm	_errno,4,2                      ## @errno
	.comm	_EZFS_NOREPLICAS,4,2            ## @EZFS_NOREPLICAS
	.comm	_EZFS_UNPLAYED_LOGS,4,2         ## @EZFS_UNPLAYED_LOGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_vdev_offline             ; -- Begin function zpool_vdev_offline
	.p2align	2
_zpool_vdev_offline:                    ; @zpool_vdev_offline
	.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	x20, x2
	mov	x21, x1
	mov	x22, 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, #16]
	str	wzr, [sp, #32]
	ldr	x19, [x0, #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
	add	x0, sp, #40
	mov	w1, #1024
	mov	x3, x21
	bl	_snprintf
	ldr	w1, [x22]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x22
	mov	x1, x21
	mov	x4, #0
	bl	_zpool_find_vdev
	cbz	x0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x8, sp, #16
	add	x2, x8, #8
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.2:
Lloh11:
	adrp	x8, _EZFS_ISSPARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EZFS_ISSPARE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EZFS_NODEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EZFS_NODEVICE@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	bl	_zfs_error
LBB0_5:
	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_13
; %bb.6:
	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_7:
Lloh18:
	adrp	x8, _VDEV_STATE_OFFLINE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VDEV_STATE_OFFLINE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _ZFS_OFFLINE_TEMPORARY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ZFS_OFFLINE_TEMPORARY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	x20, #0
	csel	w9, wzr, w9, eq
	stp	w9, w8, [sp, #16]
Lloh24:
	adrp	x8, _ZFS_IOC_VDEV_SET_STATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ZFS_IOC_VDEV_SET_STATE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	bl	_zfs_ioctl
	cbz	x0, LBB0_5
; %bb.8:
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	cmp	w1, #128
	b.eq	LBB0_11
; %bb.9:
	cmp	w1, #129
	b.ne	LBB0_12
; %bb.10:
Lloh30:
	adrp	x8, _EZFS_NOREPLICAS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EZFS_NOREPLICAS@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
Lloh32:
	adrp	x8, _EZFS_UNPLAYED_LOGS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EZFS_UNPLAYED_LOGS@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	add	x2, sp, #40
	mov	x0, x19
	bl	_zpool_standard_error
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot offline %s"

	.comm	_EZFS_NODEVICE,4,2              ; @EZFS_NODEVICE
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.comm	_EZFS_ISSPARE,4,2               ; @EZFS_ISSPARE
	.comm	_VDEV_STATE_OFFLINE,4,2         ; @VDEV_STATE_OFFLINE
	.comm	_ZFS_OFFLINE_TEMPORARY,4,2      ; @ZFS_OFFLINE_TEMPORARY
	.comm	_ZFS_IOC_VDEV_SET_STATE,4,2     ; @ZFS_IOC_VDEV_SET_STATE
	.comm	_errno,4,2                      ; @errno
	.comm	_EZFS_NOREPLICAS,4,2            ; @EZFS_NOREPLICAS
	.comm	_EZFS_UNPLAYED_LOGS,4,2         ; @EZFS_UNPLAYED_LOGS
.subsections_via_symbols
