	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_do_offline               ## -- Begin function zpool_do_offline
	.p2align	4, 0x90
_zpool_do_offline:                      ## @zpool_do_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	%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, %rbx
	movl	%edi, %r15d
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	leaq	L_.str(%rip), %r12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%rax), %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$102, %eax
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%r14d, %r13d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movq	_optopt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%r13d, %r14d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$101, %eax
	jg	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$63, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %eax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$116, %eax
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r15d
	leaq	(%rbx,%rax,8), %r12
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.11:
	cmpl	$1, %r15d
	je	LBB0_12
	jmp	LBB0_13
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_gettext
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_gettext
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_13:
	movq	(%r12), %rsi
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zpool_open
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %rdi
	xorl	%r13d, %r13d
	cmpl	$2, %r15d
	jl	LBB0_18
## %bb.16:
	movl	%r14d, %ecx
	movl	%r15d, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rsi
	movq	%rdi, %r14
	movl	%ecx, %r15d
	movl	%ecx, %edx
	callq	_zpool_vdev_offline
	movl	%r15d, %ecx
	movq	%r14, %rdi
	testq	%rax, %rax
	movl	$1, %edx
	cmovnel	%edx, %r13d
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
LBB0_18:
	callq	_zpool_close
	jmp	LBB0_19
LBB0_14:
	movl	$1, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ft"

	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"invalid option '%c'\n"

	.comm	_optopt,4,2                     ## @optopt
	.comm	_optind,8,3                     ## @optind
L_.str.2:                               ## @.str.2
	.asciz	"missing pool name\n"

L_.str.3:                               ## @.str.3
	.asciz	"missing device name\n"

	.comm	_g_zfs,4,2                      ## @g_zfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_do_offline               ; -- Begin function zpool_do_offline
	.p2align	2
_zpool_do_offline:                      ; @zpool_do_offline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _B_FALSE@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x26, _stderr@GOTPAGE
Lloh5:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh8:
	adrp	x27, _optopt@GOTPAGE
Lloh9:
	ldr	x27, [x27, _optopt@GOTPAGEOFF]
Lloh10:
	adrp	x28, _B_TRUE@GOTPAGE
Lloh11:
	ldr	x28, [x28, _B_TRUE@GOTPAGEOFF]
	mov	x8, x25
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w19, [x8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w0, #102
	b.ne	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w24, [x26]
	mov	x0, x23
	bl	_gettext
	mov	x1, x0
	ldr	w8, [x27]
	str	x8, [sp]
	mov	x0, x24
	bl	_fprintf
	ldr	w0, [x25]
	bl	_usage
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmp	w0, #101
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w0, #63
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	cmn	w0, #1
	b.ne	LBB0_4
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w0, #116
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x28
	b	LBB0_1
LBB0_9:
Lloh12:
	adrp	x8, _optind@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
	sub	w24, w21, w23
	cmp	w24, #0
	b.le	LBB0_11
; %bb.10:
	cmp	w24, #1
	b.eq	LBB0_12
	b	LBB0_13
LBB0_11:
	ldr	w21, [x26]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x21
	bl	_fprintf
	ldr	w0, [x25]
	bl	_usage
LBB0_12:
	ldr	w21, [x26]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x21
	bl	_fprintf
	ldr	w0, [x25]
	bl	_usage
LBB0_13:
	ldr	x1, [x20, x23, lsl #3]
Lloh19:
	adrp	x8, _g_zfs@GOTPAGE
Lloh20:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_zpool_open
	cbz	x0, LBB0_17
; %bb.14:
	mov	x22, x0
	cmp	w24, #2
	b.lt	LBB0_18
; %bb.15:
	mov	w21, #0
	add	x8, x20, x23, lsl #3
	add	x20, x8, #8
	sub	x23, x24, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20], #8
	mov	x0, x22
	mov	x2, x19
	bl	_zpool_vdev_offline
	cmp	x0, #0
	csinc	w21, w21, wzr, eq
	subs	x23, x23, #1
	b.ne	LBB0_16
	b	LBB0_19
LBB0_17:
	mov	w21, #1
	b	LBB0_20
LBB0_18:
	mov	w21, #0
LBB0_19:
	mov	x0, x22
	bl	_zpool_close
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ft"

	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"invalid option '%c'\n"

	.comm	_optopt,4,2                     ; @optopt
	.comm	_optind,8,3                     ; @optind
l_.str.2:                               ; @.str.2
	.asciz	"missing pool name\n"

l_.str.3:                               ; @.str.3
	.asciz	"missing device name\n"

	.comm	_g_zfs,4,2                      ; @g_zfs
.subsections_via_symbols
