	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_do_detach                ## -- Begin function zpool_do_detach
	.p2align	4, 0x90
_zpool_do_detach:                       ## @zpool_do_detach
	.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, %r14
	movl	%edi, %r13d
	leaq	L_.str(%rip), %r15
	movq	_optopt@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movl	(%r12), %edx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$63, %eax
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$102, %eax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_1
## %bb.4:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	subl	%ebx, %r13d
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.6:
	cmpl	$1, %r13d
	je	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rdi
	callq	_gettext
	movl	%r15d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.3(%rip), %rdi
	callq	_gettext
	movl	%r15d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_8:
	movq	(%r14,%rbx,8), %rsi
	movq	8(%r14,%rbx,8), %r14
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zpool_open
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_zpool_vdev_detach
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_zpool_close
	movl	%r14d, %eax
	jmp	LBB0_11
LBB0_10:
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"missing <device> specification\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_detach                ; -- Begin function zpool_do_detach
	.p2align	2
_zpool_do_detach:                       ; @zpool_do_detach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _stderr@GOTPAGE
Lloh3:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x26, _optopt@GOTPAGE
Lloh5:
	ldr	x26, [x26, _optopt@GOTPAGEOFF]
Lloh6:
	adrp	x24, _B_FALSE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _B_FALSE@GOTPAGEOFF]
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w23, [x25]
	mov	x0, x22
	bl	_gettext
	mov	x1, x0
	ldr	w8, [x26]
	str	x8, [sp]
	mov	x0, x23
	bl	_fprintf
	ldr	w0, [x24]
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #63
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #102
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.5:
Lloh10:
	adrp	x8, _optind@GOTPAGE
Lloh11:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x8]
	sub	w8, w20, w9
	add	x20, x19, x9, lsl #3
	cmp	w8, #0
	b.le	LBB0_7
; %bb.6:
	cmp	w8, #1
	b.eq	LBB0_8
	b	LBB0_9
LBB0_7:
	ldr	w19, [x25]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	ldr	w0, [x24]
	bl	_usage
LBB0_8:
	ldr	w19, [x25]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	ldr	w0, [x24]
	bl	_usage
LBB0_9:
	ldp	x1, x19, [x20]
Lloh17:
	adrp	x8, _g_zfs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_zpool_open
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	mov	x1, x19
	bl	_zpool_vdev_detach
	mov	x19, x0
	mov	x0, x20
	bl	_zpool_close
	mov	x0, x19
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"missing <device> specification\n"

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