	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpool_do_attach_or_replace
_zpool_do_attach_or_replace:            ## @zpool_do_attach_or_replace
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	leaq	L_.str(%rip), %r15
	movq	_stderr@GOTPCREL(%rip), %rbx
	movq	%rax, %r12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext
	movq	_optopt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movq	_stderr@GOTPCREL(%rip), %rbx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	callq	_usage
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %edi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$63, %eax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$102, %eax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_1
LBB0_7:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r14d
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.8:
	movq	(%r12), %r13
	cmpl	$1, %r14d
	je	LBB0_12
## %bb.9:
	movq	8(%r12), %rax
	cmpl	$2, %r14d
	ja	LBB0_24
## %bb.10:
	addq	$8, %r12
	movq	%rax, %rbx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_13
LBB0_11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_gettext
	movl	%ebx, %edi
	movq	_stderr@GOTPCREL(%rip), %rbx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	movq	(%r12), %r13
LBB0_12:
	movl	(%rbx), %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
	movq	8(%r12), %rbx
	addq	$8, %r12
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.4(%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_14:
	decl	%r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_stderr@GOTPCREL(%rip), %rbx
LBB0_15:
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_zpool_open
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_zpool_get_config
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	%r15, %rdi
	callq	_zpool_is_bootable
	testq	%rax, %rax
	jne	LBB0_21
## %bb.18:
	movq	_ZPOOL_NO_BOOT_LABEL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	movl	$1, %ebx
	jmp	LBB0_28
LBB0_20:
	movl	(%rbx), %ebx
	leaq	L_.str.6(%rip), %rdi
	callq	_gettext
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_26
LBB0_21:
	movq	_ZPOOL_COPY_BOOT_LABEL@GOTPCREL(%rip), %rax
LBB0_22:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	(%rax), %ebx
	movq	_ZPOOL_PROP_BOOTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_zpool_get_prop_int
                                        ## kill: def $eax killed $eax def $rax
	movq	_B_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%edx, %r8d
	movl	%ebx, %r9d
	pushq	%r12
	pushq	%r14
	pushq	%rax
	callq	_make_root_vdev
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	movl	%r13d, %r8d
	callq	_zpool_vdev_attach
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_nvlist_free
	jmp	LBB0_27
LBB0_26:
	movl	$1, %ebx
LBB0_27:
	movq	%r15, %rdi
	callq	_zpool_close
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$16, %r12
	addl	$-2, %r14d
	cmpl	$2, %r14d
	jb	LBB0_29
## %bb.25:
	movl	(%rbx), %r15d
	leaq	L_.str.5(%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
	jmp	LBB0_15
LBB0_29:
	movl	$1, %r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f"

	.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 argument\n"

L_.str.3:                               ## @.str.3
	.asciz	"missing <device> specification\n"

L_.str.4:                               ## @.str.4
	.asciz	"missing <new_device> specification\n"

L_.str.5:                               ## @.str.5
	.asciz	"too many arguments\n"

	.comm	_g_zfs,4,2                      ## @g_zfs
L_.str.6:                               ## @.str.6
	.asciz	"pool '%s' is unavailable\n"

	.comm	_ZPOOL_COPY_BOOT_LABEL,4,2      ## @ZPOOL_COPY_BOOT_LABEL
	.comm	_ZPOOL_NO_BOOT_LABEL,4,2        ## @ZPOOL_NO_BOOT_LABEL
	.comm	_ZPOOL_PROP_BOOTSIZE,4,2        ## @ZPOOL_PROP_BOOTSIZE
	.no_dead_strip	_zpool_do_attach_or_replace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpool_do_attach_or_replace
_zpool_do_attach_or_replace:            ; @zpool_do_attach_or_replace
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x26, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _B_FALSE@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x27, _stderr@GOTPAGE
Lloh5:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh8:
	adrp	x28, _optopt@GOTPAGE
Lloh9:
	ldr	x28, [x28, _optopt@GOTPAGEOFF]
Lloh10:
	adrp	x20, _B_TRUE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _B_TRUE@GOTPAGEOFF]
	mov	x8, x26
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=2
	ldr	w25, [x27]
	mov	x0, x24
	bl	_gettext
	mov	x1, x0
	ldr	w8, [x28]
	str	x8, [sp]
	mov	x0, x25
	bl	_fprintf
	ldr	w0, [x26]
	bl	_usage
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	cmp	w0, #63
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	cmp	w0, #102
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x20
	b	LBB0_1
LBB0_7:
Lloh12:
	adrp	x8, _optind@GOTPAGE
Lloh13:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	sub	w25, w22, w8
	add	x28, x21, x8, lsl #3
	cmp	w25, #0
	b.le	LBB0_11
; %bb.8:
	ldr	x21, [x28]
	cmp	w25, #1
	b.eq	LBB0_12
; %bb.9:
	mov	x8, x28
	ldr	x23, [x8, #8]!
	subs	w24, w25, #2
	b.hi	LBB0_24
; %bb.10:
	mov	x22, x23
	mov	x28, x8
	cbnz	w19, LBB0_14
	b	LBB0_13
LBB0_11:
	ldr	w21, [x27]
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, [x26]
	bl	_usage
	ldr	x21, [x28]
LBB0_12:
	ldr	w22, [x27]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x22
	bl	_fprintf
	ldr	w0, [x26]
	bl	_usage
	ldr	x22, [x28, #8]!
	cbnz	w19, LBB0_14
LBB0_13:
	ldr	w23, [x27]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x23
	bl	_fprintf
	ldr	w0, [x26]
	bl	_usage
LBB0_14:
	sub	w24, w25, #1
	mov	x23, x22
LBB0_15:
Lloh21:
	adrp	x8, _g_zfs@GOTPAGE
Lloh22:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_zpool_open
	cbz	x0, LBB0_19
; %bb.16:
	mov	x25, x0
	mov	x1, #0
	bl	_zpool_get_config
	cbz	x0, LBB0_20
; %bb.17:
	mov	x0, x25
	bl	_zpool_is_bootable
Lloh24:
	adrp	x8, _ZPOOL_NO_BOOT_LABEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ZPOOL_NO_BOOT_LABEL@GOTPAGEOFF]
Lloh26:
	adrp	x9, _ZPOOL_COPY_BOOT_LABEL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ZPOOL_COPY_BOOT_LABEL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
Lloh28:
	adrp	x8, _ZPOOL_PROP_BOOTSIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ZPOOL_PROP_BOOTSIZE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, #0
	bl	_zpool_get_prop_int
	mov	x6, x0
	ldr	w2, [x26]
	str	x28, [sp]
	mov	x0, x25
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x19
	mov	x4, x2
	mov	x5, x21
	mov	x7, x24
	bl	_make_root_vdev
	cbz	x0, LBB0_21
; %bb.18:
	mov	x20, x0
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_zpool_vdev_attach
	mov	x19, x0
	mov	x0, x20
	bl	_nvlist_free
	b	LBB0_22
LBB0_19:
	mov	w19, #1
	b	LBB0_23
LBB0_20:
	ldr	w19, [x27]
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_gettext
	mov	x1, x0
	str	x21, [sp]
	mov	x0, x19
	bl	_fprintf
LBB0_21:
	mov	w19, #1
LBB0_22:
	mov	x0, x25
	bl	_zpool_close
LBB0_23:
	mov	x0, x19
	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
LBB0_24:
	ldr	x22, [x28, #16]!
	cmp	w24, #2
	b.lo	LBB0_26
; %bb.25:
	ldr	w25, [x27]
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_gettext
	mov	x1, x0
	mov	x0, x25
	bl	_fprintf
	ldr	w0, [x26]
	bl	_usage
	b	LBB0_15
LBB0_26:
	mov	w24, #1
	b	LBB0_15
	.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 AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f"

	.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 argument\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"missing <new_device> specification\n"

l_.str.5:                               ; @.str.5
	.asciz	"too many arguments\n"

	.comm	_g_zfs,4,2                      ; @g_zfs
l_.str.6:                               ; @.str.6
	.asciz	"pool '%s' is unavailable\n"

	.comm	_ZPOOL_COPY_BOOT_LABEL,4,2      ; @ZPOOL_COPY_BOOT_LABEL
	.comm	_ZPOOL_NO_BOOT_LABEL,4,2        ; @ZPOOL_NO_BOOT_LABEL
	.comm	_ZPOOL_PROP_BOOTSIZE,4,2        ; @ZPOOL_PROP_BOOTSIZE
	.no_dead_strip	_zpool_do_attach_or_replace
.subsections_via_symbols
