	.file	"extr_zpool_vdev.c_check_replication.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mismatched replication level: pool and new vdev with different redundancy, %s and %s vdevs, %llu vs. %llu (%llu-way)\n"
	.align 8
.LC1:
	.string	"mismatched replication level: pool uses %s and new vdev is %s\n"
	.align 8
.LC2:
	.string	"mismatched replication level: pool uses %llu device parity and new vdev uses %llu\n"
	.align 8
.LC3:
	.string	"mismatched replication level: pool uses %llu-way %s and new vdev uses %llu-way %s\n"
	.text
	.p2align 4
	.type	check_replication, @function
check_replication:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	mov	esi, DWORD PTR ZPOOL_CONFIG_VDEV_TREE[rip]
	lea	rdx, 48[rsp]
	call	nvlist_lookup_nvlist@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	verify@PLT
	mov	esi, DWORD PTR B_FALSE[rip]
	mov	rdi, QWORD PTR 48[rsp]
	call	get_replication@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L24
.L2:
	mov	esi, DWORD PTR ZPOOL_CONFIG_CHILDREN[rip]
	lea	rcx, 32[rsp]
	lea	rdx, 24[rsp]
	mov	rdi, r12
	call	nvlist_lookup_nvlist_array@PLT
	test	rax, rax
	jne	.L25
	cmp	QWORD PTR 32[rsp], 0
	jne	.L6
.L25:
	mov	rdi, rbp
	xor	r12d, r12d
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	num_logs@PLT
	cmp	rax, QWORD PTR 32[rsp]
	je	.L25
	mov	esi, DWORD PTR B_TRUE[rip]
	mov	rdi, r12
	call	get_replication@PLT
	mov	r13, rax
	test	rax, rax
	je	.L28
	test	rbp, rbp
	je	.L9
	lea	r14, 48[rsp]
	lea	r12, 40[rsp]
	mov	rsi, rax
	mov	rdi, rbp
	mov	rcx, r14
	mov	rdx, r12
	call	is_raidz_mirror@PLT
	test	rax, rax
	je	.L10
.L13:
	mov	rdx, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR 40[rsp]
	mov	ebx, DWORD PTR 4[rdx]
	mov	r12d, DWORD PTR [rax]
	lea	r14d, -1[rbx]
	cmp	r12d, r14d
	je	.L12
	movsx	rdx, DWORD PTR 8[rdx]
	movsx	r15, DWORD PTR 8[rax]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 8[rsp], rdx
	call	gettext@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	ecx, r12d
	mov	r9d, ebx
	mov	edi, eax
	mov	r8d, r14d
	mov	rsi, r15
	xor	eax, eax
	call	vdev_error@PLT
	mov	r12d, -1
.L15:
	mov	rdi, r13
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rax
	call	free@PLT
.L24:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r12d, r12d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rcx, r14
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	call	is_raidz_mirror@PLT
	test	rax, rax
	jne	.L13
	mov	esi, DWORD PTR 8[r13]
	mov	edi, DWORD PTR 8[rbp]
	call	strcmp@PLT
	test	rax, rax
	jne	.L29
	mov	ebx, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR 0[r13]
	cmp	ebx, r12d
	je	.L17
	lea	rdi, .LC2[rip]
	call	gettext@PLT
	movsx	rdx, r12d
	movsx	rsi, ebx
	mov	r12d, -1
	mov	edi, eax
	xor	eax, eax
	call	vdev_error@PLT
	jmp	.L15
.L17:
	mov	ebx, DWORD PTR 4[rbp]
	mov	r12d, DWORD PTR 4[r13]
	cmp	ebx, r12d
	je	.L12
	mov	r15d, DWORD PTR 8[r13]
	movsx	r14, DWORD PTR 8[rbp]
	lea	rdi, .LC3[rip]
	call	gettext@PLT
	mov	ecx, r12d
	movsx	rsi, ebx
	mov	r12d, -1
	mov	edi, eax
	mov	r8d, r15d
	mov	rdx, r14
	xor	eax, eax
	call	vdev_error@PLT
	jmp	.L15
.L29:
	movsx	r12, DWORD PTR 8[rbp]
	movsx	r14, DWORD PTR 8[r13]
	lea	rdi, .LC1[rip]
	call	gettext@PLT
	mov	edi, eax
	mov	rsi, r12
	mov	rdx, r14
	xor	eax, eax
	call	vdev_error@PLT
	mov	r12d, -1
	jmp	.L15
.L28:
	mov	rdi, rbp
	or	r12d, -1
	call	free@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_replication, .-check_replication
	.comm	ZPOOL_CONFIG_VDEV_TREE,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,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
	.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_zpool_vdev.c_check_replication.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mismatched replication level: pool and new vdev wit"
	.ascii	"h different redundancy, %s and %s vdevs, %llu vs. %"
	.ascii	"llu (%llu-way)\012\000"
	.align	2
.LC1:
	.ascii	"mismatched replication level: pool uses %s and new "
	.ascii	"vdev is %s\012\000"
	.align	2
.LC2:
	.ascii	"mismatched replication level: pool uses %llu device"
	.ascii	" parity and new vdev uses %llu\012\000"
	.align	2
.LC3:
	.ascii	"mismatched replication level: pool uses %llu-way %s"
	.ascii	" and new vdev uses %llu-way %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_replication, %function
check_replication:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L30
	sub	sp, sp, #32
	subs	r4, r0, #0
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L30+4
	add	r2, sp, #24
	ldr	r1, [r3]
	bl	nvlist_lookup_nvlist
	clz	r0, r0
	lsr	r0, r0, #5
	bl	verify
	ldr	r3, .L30+8
	ldr	r0, [sp, #24]
	ldr	r1, [r3]
	bl	get_replication
	subs	r4, r0, #0
	beq	.L24
.L2:
	ldr	r2, .L30+12
	mov	r0, r6
	ldr	r1, [r2]
	add	r3, sp, #16
	add	r2, sp, #12
	bl	nvlist_lookup_nvlist_array
	subs	r5, r0, #0
	bne	.L5
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L6
.L5:
	mov	r0, r4
	bl	free
.L24:
	mov	r5, #0
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r5
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r6
	bl	num_logs
	ldr	r3, [sp, #16]
	cmp	r0, r3
	beq	.L25
	ldr	r3, .L30+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	get_replication
	subs	r6, r0, #0
	beq	.L28
	cmp	r4, #0
	beq	.L9
	mov	r1, r6
	mov	r0, r4
	add	r3, sp, #24
	add	r2, sp, #20
	bl	is_raidz_mirror
	cmp	r0, #0
	beq	.L10
.L13:
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #20]
	ldr	r3, [r3, #4]
	ldr	r2, [r2]
	sub	r3, r3, #1
	cmp	r2, r3
	beq	.L15
	ldr	r0, .L30+20
	bl	gettext
	ldr	r3, [sp, #24]
	ldr	r1, [sp, #20]
	ldr	ip, [r3, #4]
	ldr	r2, [r3, #8]
	sub	lr, ip, #1
	ldr	r3, [r1]
	ldr	r1, [r1, #8]
	str	lr, [sp]
	str	ip, [sp, #4]
	bl	vdev_error
	mvn	r5, #0
.L15:
	mov	r0, r6
	bl	free
.L25:
	mov	r0, r4
	bl	free
	b	.L1
.L9:
	bl	free
	b	.L1
.L10:
	mov	r1, r4
	mov	r0, r6
	add	r3, sp, #24
	add	r2, sp, #20
	bl	is_raidz_mirror
	cmp	r0, #0
	bne	.L13
	ldr	r1, [r6, #8]
	ldr	r0, [r4, #8]
	bl	strcmp
	cmp	r0, #0
	bne	.L29
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L17
	ldr	r0, .L30+24
	bl	gettext
	ldr	r2, [r6]
	ldr	r1, [r4]
	bl	vdev_error
	mvn	r5, #0
	b	.L15
.L17:
	ldr	r2, [r4, #4]
	ldr	r3, [r6, #4]
	cmp	r2, r3
	beq	.L15
	ldr	r0, .L30+28
	bl	gettext
	ldmib	r4, {r1, r2}
	ldr	ip, [r6, #8]
	ldr	r3, [r6, #4]
	str	ip, [sp]
	bl	vdev_error
	mvn	r5, #0
	b	.L15
.L29:
	ldr	r0, .L30+32
	bl	gettext
	ldr	r2, [r6, #8]
	ldr	r1, [r4, #8]
	bl	vdev_error
	mvn	r5, #0
	b	.L15
.L28:
	mov	r0, r4
	bl	free
	mvn	r5, #0
	b	.L1
.L27:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	ZPOOL_CONFIG_VDEV_TREE
	.word	B_FALSE
	.word	ZPOOL_CONFIG_CHILDREN
	.word	B_TRUE
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.size	check_replication, .-check_replication
	.comm	ZPOOL_CONFIG_VDEV_TREE,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,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
