	.file	"extr_libzfs_pool.c_is_replacing_spare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	is_replacing_spare, @function
is_replacing_spare:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR ZPOOL_CONFIG_CHILDREN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 4[rsp]
	lea	rdx, 8[rsp]
	call	nvlist_lookup_nvlist_array@PLT
	test	rax, rax
	je	.L14
.L2:
	mov	rax, QWORD PTR B_FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR ZPOOL_CONFIG_TYPE[rip]
	lea	rdx, 16[rsp]
	mov	rdi, r13
	call	nvlist_lookup_string@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	verify@PLT
	mov	esi, DWORD PTR VDEV_TYPE_SPARE[rip]
	mov	rdi, QWORD PTR 16[rsp]
	call	strcmp@PLT
	test	rax, rax
	mov	eax, DWORD PTR 4[rsp]
	jne	.L4
	cmp	eax, 2
	jne	.L4
	mov	rax, QWORD PTR 8[rsp]
	movsx	rdx, r12d
	cmp	QWORD PTR [rax+rdx*8], rbp
	je	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	xor	ebx, ebx
.L9:
	mov	rdi, QWORD PTR [rax+rbx*8]
	mov	edx, r12d
	mov	rsi, rbp
	call	is_replacing_spare
	test	rax, rax
	jne	.L12
	add	rbx, 1
	cmp	DWORD PTR 4[rsp], ebx
	jle	.L2
	mov	rax, QWORD PTR 8[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	test	eax, eax
	jle	.L2
	mov	rax, QWORD PTR 8[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR B_TRUE[rip]
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	is_replacing_spare, .-is_replacing_spare
	.comm	ZPOOL_CONFIG_TYPE,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,4,4
	.comm	VDEV_TYPE_SPARE,4,4
	.comm	B_TRUE,8,8
	.comm	B_FALSE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_libzfs_pool.c_is_replacing_spare.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_replacing_spare, %function
is_replacing_spare:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r2
	ldr	r2, .L18
	sub	sp, sp, #20
	ldr	ip, .L18+4
	mov	r6, r1
	add	r3, sp, #4
	ldr	r1, [r2]
	mov	r2, sp
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r5, r0
	bl	nvlist_lookup_nvlist_array
	subs	r4, r0, #0
	beq	.L15
.L2:
	ldr	r3, .L18+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	ldr	r3, .L18+12
	add	r2, sp, #8
	ldr	r1, [r3]
	mov	r0, r5
	bl	nvlist_lookup_string
	clz	r0, r0
	lsr	r0, r0, #5
	bl	verify
	ldr	r3, .L18+16
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	ldr	r3, [sp, #4]
	beq	.L17
.L4:
	cmp	r3, #0
	bgt	.L12
	b	.L2
.L8:
	ldr	r3, [sp, #4]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L12:
	ldr	r3, [sp]
.L9:
	mov	r2, r7
	mov	r1, r6
	ldr	r0, [r3, r4, lsl #2]
	bl	is_replacing_spare
	cmp	r0, #0
	beq	.L8
.L13:
	ldr	r3, .L18+20
	ldr	r0, [r3]
	b	.L1
.L17:
	cmp	r3, #2
	bne	.L4
	ldr	r3, [sp]
	ldr	r2, [r3, r7, lsl #2]
	cmp	r2, r6
	bne	.L9
	b	.L13
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	ZPOOL_CONFIG_CHILDREN
	.word	.LC0
	.word	B_FALSE
	.word	ZPOOL_CONFIG_TYPE
	.word	VDEV_TYPE_SPARE
	.word	B_TRUE
	.size	is_replacing_spare, .-is_replacing_spare
	.comm	ZPOOL_CONFIG_TYPE,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,4,4
	.comm	VDEV_TYPE_SPARE,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
