	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_replacing_spare
_is_replacing_spare:                    ## @is_replacing_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_nvlist_lookup_nvlist_array
	movq	_B_FALSE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_1
LBB0_10:
	movq	(%r12), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ZPOOL_CONFIG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-64(%rbp), %rdi
	movq	_VDEV_TYPE_SPARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	movl	-44(%rbp), %ecx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	cmpl	$2, %ecx
	jne	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax
	movslq	%r14d, %rcx
	cmpq	%r15, (%rax,%rcx,8)
	jne	LBB0_6
## %bb.4:
	movq	_B_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_5:
	testl	%ecx, %ecx
	jle	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	movq	_B_TRUE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_is_replacing_spare
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %r12
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ## @ZPOOL_CONFIG_CHILDREN
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ## @ZPOOL_CONFIG_TYPE
	.comm	_VDEV_TYPE_SPARE,4,2            ## @VDEV_TYPE_SPARE
	.comm	_B_TRUE,8,3                     ## @B_TRUE
	.comm	_B_FALSE,8,3                    ## @B_FALSE
	.no_dead_strip	_is_replacing_spare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_replacing_spare
_is_replacing_spare:                    ; @is_replacing_spare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #20
	bl	_nvlist_lookup_nvlist_array
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x21, _B_FALSE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _B_FALSE@GOTPAGEOFF]
LBB0_2:
	ldr	x0, [x21]
	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
	add	sp, sp, #96
	ret
LBB0_3:
Lloh5:
	adrp	x8, _ZPOOL_CONFIG_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZPOOL_CONFIG_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_nvlist_lookup_string
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #8]
Lloh8:
	adrp	x8, _VDEV_TYPE_SPARE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VDEV_TYPE_SPARE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_strcmp
	ldr	w8, [sp, #20]
	cmp	x0, #0
	ccmp	w8, #2, #0, eq
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #1
	b.ge	LBB0_6
	b	LBB0_1
LBB0_5:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, w19, sxtw #3]
	cmp	x8, x20
	b.eq	LBB0_10
LBB0_6:
	mov	x22, #0
Lloh11:
	adrp	x23, _B_TRUE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _B_TRUE@GOTPAGEOFF]
Lloh13:
	adrp	x21, _B_FALSE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _B_FALSE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x0, [x8, x22, lsl #3]
	mov	x1, x20
	mov	x2, x19
	bl	_is_replacing_spare
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [sp, #20]
	cmp	x22, x8
	b.lt	LBB0_7
	b	LBB0_2
LBB0_9:
	mov	x21, x23
	b	LBB0_2
LBB0_10:
Lloh15:
	adrp	x21, _B_TRUE@GOTPAGE
Lloh16:
	ldr	x21, [x21, _B_TRUE@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ; @ZPOOL_CONFIG_CHILDREN
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ; @ZPOOL_CONFIG_TYPE
	.comm	_VDEV_TYPE_SPARE,4,2            ; @VDEV_TYPE_SPARE
	.comm	_B_TRUE,8,3                     ; @B_TRUE
	.comm	_B_FALSE,8,3                    ; @B_FALSE
	.no_dead_strip	_is_replacing_spare
.subsections_via_symbols
