	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_spare
_is_spare:                              ## @is_spare
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_open
	movq	_B_FALSE@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	%eax, %ebx
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-112(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movl	%ebx, %esi
	callq	_zpool_in_use
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	cmpl	$0, -52(%rbp)
	je	LBB0_5
## %bb.3:
	movq	-112(%rbp), %rax
	movq	_POOL_STATE_SPARE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-72(%rbp), %rsi
	movl	%ebx, %edi
	callq	_zpool_read_label
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	-48(%rbp), %rdi
	callq	_free
	movl	%ebx, %edi
	callq	_close
LBB0_12:
	movl	(%r15), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rdi
	callq	_free
	movl	%ebx, %edi
	callq	_close
	movq	-72(%rbp), %rdi
	movq	_ZPOOL_CONFIG_GUID@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-104(%rbp), %rdx
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-72(%rbp), %rdi
	callq	_nvlist_free
	movq	_ZPOOL_CONFIG_VDEV_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nvlist_lookup_nvlist
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-88(%rbp), %rdi
	movq	_ZPOOL_CONFIG_SPARES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	cmpq	$0, -64(%rbp)
	je	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	leaq	-96(%rbp), %r14
	movq	_B_TRUE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r12), %esi
	movq	%r14, %rdx
	callq	_nvlist_lookup_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-96(%rbp), %rax
	cmpq	-104(%rbp), %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	-64(%rbp), %rbx
	jb	LBB0_10
	jmp	LBB0_12
LBB0_11:
	movq	%r13, %r15
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_POOL_STATE_SPARE,8,3           ## @POOL_STATE_SPARE
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ## @ZPOOL_CONFIG_VDEV_TREE
	.comm	_ZPOOL_CONFIG_SPARES,4,2        ## @ZPOOL_CONFIG_SPARES
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.no_dead_strip	_is_spare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_spare
_is_spare:                              ; @is_spare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x8, x1
	mov	x19, x0
	stur	xzr, [x29, #-48]
Lloh0:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_open
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _g_zfs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	sub	x2, x29, #40
	sub	x3, x29, #48
	add	x4, sp, #12
	mov	x1, x20
	bl	_zpool_in_use
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_4
; %bb.2:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, _POOL_STATE_SPARE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POOL_STATE_SPARE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x1, sp, #56
	mov	x0, x20
	bl	_zpool_read_label
	cbz	x0, LBB0_7
LBB0_4:
	ldur	x0, [x29, #-48]
	bl	_free
	mov	x0, x20
	bl	_close
LBB0_5:
Lloh9:
	adrp	x19, _B_FALSE@GOTPAGE
Lloh10:
	ldr	x19, [x19, _B_FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	ldur	x0, [x29, #-48]
	bl	_free
	mov	x0, x20
	bl	_close
	ldr	x0, [sp, #56]
Lloh11:
	adrp	x20, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh12:
	ldr	x20, [x20, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #48
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #56]
	bl	_nvlist_free
Lloh13:
	adrp	x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	bl	_nvlist_lookup_nvlist
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #32]
Lloh16:
	adrp	x8, _ZPOOL_CONFIG_SPARES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZPOOL_CONFIG_SPARES@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_nvlist_lookup_nvlist_array
Lloh19:
	adrp	x19, _B_FALSE@GOTPAGE
Lloh20:
	ldr	x19, [x19, _B_FALSE@GOTPAGEOFF]
	cbnz	x0, LBB0_6
; %bb.8:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_6
; %bb.9:
	mov	x21, #0
Lloh21:
	adrp	x22, _B_TRUE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _B_TRUE@GOTPAGEOFF]
Lloh23:
	adrp	x19, _B_FALSE@GOTPAGE
Lloh24:
	ldr	x19, [x19, _B_FALSE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x0, [x8, x21, lsl #3]
	ldr	w1, [x20]
	add	x2, sp, #40
	bl	_nvlist_lookup_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldp	x8, x9, [sp, #40]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldr	x8, [sp, #16]
	cmp	x21, x8
	b.lo	LBB0_10
	b	LBB0_6
LBB0_12:
	mov	x19, x22
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_POOL_STATE_SPARE,8,3           ; @POOL_STATE_SPARE
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ; @ZPOOL_CONFIG_VDEV_TREE
	.comm	_ZPOOL_CONFIG_SPARES,4,2        ; @ZPOOL_CONFIG_SPARES
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.no_dead_strip	_is_spare
.subsections_via_symbols
