	.file	"extr_vdev_label.c_vdev_config_sync.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vdev_label_sync_list() returned error %d for pool '%s' when syncing out the even labels of dirty vdevs"
	.align 8
.LC1:
	.string	"vdev_uberblock_sync_list() returned error %d for pool '%s'"
	.align 8
.LC2:
	.string	"vdev_label_sync_list() returned error %d for pool '%s' when syncing out the odd labels of dirty vdevs"
	.text
	.p2align 4
	.globl	vdev_config_sync
	.type	vdev_config_sync, @function
vdev_config_sync:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR [rdi]
	mov	r13d, DWORD PTR ZIO_FLAG_CONFIG_WRITER[rip]
	mov	QWORD PTR 8[rsp], rdi
	or	r13d, DWORD PTR ZIO_FLAG_CANFAIL[rip]
	xor	edi, edi
	test	esi, esi
	mov	r12, QWORD PTR [rax]
	setne	dil
	mov	DWORD PTR 20[rsp], esi
	lea	rax, 24[r12]
	mov	QWORD PTR [rsp], rax
	call	ASSERT@PLT
	lea	rax, 12[r12]
	mov	QWORD PTR 24[rsp], rax
	.p2align 4,,10
	.p2align 3
.L2:
	xor	edi, edi
	cmp	QWORD PTR 24[r12], rbx
	setle	dil
	call	ASSERT@PLT
	cmp	QWORD PTR 24[r12], rbx
	jge	.L6
	mov	ecx, DWORD PTR 16[r12]
	mov	esi, DWORD PTR 20[r12]
	mov	rdx, rbx
	mov	rdi, QWORD PTR [rsp]
	call	uberblock_update@PLT
	test	eax, eax
	je	.L41
.L6:
	mov	rdi, r12
	call	spa_freeze_txg@PLT
	cmp	rax, rbx
	jl	.L4
	xor	edi, edi
	cmp	QWORD PTR [r12], rbx
	lea	rbp, 8[r12]
	setge	dil
	call	ASSERT@PLT
	mov	ecx, r13d
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	zio_root@PLT
	mov	rdi, rbx
	mov	r15, rax
	call	TXG_CLEAN@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	txg_list_head@PLT
	mov	r14, rax
	test	rax, rax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r14
	mov	rdi, r15
	call	zio_flush@PLT
	mov	rdi, rbx
	call	TXG_CLEAN@PLT
	mov	rsi, r14
	mov	rdi, rbp
	mov	edx, eax
	call	txg_list_next@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L9
.L8:
	mov	rdi, r15
	call	zio_wait@PLT
	mov	ecx, r13d
	mov	rdx, rbx
	xor	esi, esi
	mov	rdi, r12
	call	vdev_label_sync_list@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L10
	test	DWORD PTR ZIO_FLAG_TRYHARD[rip], r13d
	jne	.L42
.L11:
	mov	eax, DWORD PTR ZIO_FLAG_TRYHARD[rip]
	test	eax, r13d
	jne	.L1
	or	r13d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR [rsp]
	mov	esi, DWORD PTR 20[rsp]
	mov	ecx, r13d
	mov	rdi, QWORD PTR 8[rsp]
	call	vdev_uberblock_sync_list@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L12
	test	DWORD PTR ZIO_FLAG_TRYHARD[rip], r13d
	je	.L11
	mov	rdi, r12
	call	spa_name@PLT
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	mov	edx, eax
	call	zfs_dbgmsg@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	spa_multihost@PLT
	test	rax, rax
	jne	.L43
.L13:
	mov	ecx, r13d
	mov	rdx, rbx
	mov	esi, 1
	mov	rdi, r12
	call	vdev_label_sync_list@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L4
	test	DWORD PTR ZIO_FLAG_TRYHARD[rip], r13d
	je	.L11
	mov	rdi, r12
	call	spa_name@PLT
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	mov	edx, eax
	call	zfs_dbgmsg@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, QWORD PTR 24[rsp]
	call	list_is_empty@PLT
	test	rax, rax
	je	.L6
.L4:
	xor	ebp, ebp
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebp
	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
.L42:
	.cfi_restore_state
	mov	rdi, r12
	call	spa_name@PLT
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	zfs_dbgmsg@PLT
	jmp	.L11
.L43:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r12
	call	mmp_update_uberblock@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	vdev_config_sync, .-vdev_config_sync
	.comm	ZIO_FLAG_TRYHARD,4,4
	.comm	ZIO_FLAG_CONFIG_WRITER,4,4
	.comm	ZIO_FLAG_CANFAIL,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_vdev_label.c_vdev_config_sync.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vdev_label_sync_list() returned error %d for pool '"
	.ascii	"%s' when syncing out the even labels of dirty vdevs"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"vdev_uberblock_sync_list() returned error %d for po"
	.ascii	"ol '%s'\000"
	.align	2
.LC2:
	.ascii	"vdev_label_sync_list() returned error %d for pool '"
	.ascii	"%s' when syncing out the odd labels of dirty vdevs\000"
	.text
	.align	2
	.global	vdev_config_sync
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdev_config_sync, %function
vdev_config_sync:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, [r0]
	sub	sp, sp, #20
	ldr	r3, .L44
	str	r0, [sp, #4]
	ldr	r0, .L44+4
	ldr	r7, [ip]
	ldr	r8, [r0]
	ldr	r3, [r3]
	subs	r0, r1, #0
	mov	r4, r2
	movne	r0, #1
	add	r2, r7, #8
	ldr	r9, .L44+8
	add	r10, r7, #20
	str	r2, [sp, #12]
	orr	r8, r8, r3
	str	r1, [sp, #8]
	bl	ASSERT
.L2:
	ldr	r0, [r7, #20]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
	bl	ASSERT
	ldr	r3, [r7, #20]
	cmp	r3, r4
	bge	.L6
	mov	r2, r4
	mov	r0, r10
	ldr	r3, [r7, #12]
	ldr	r1, [r7, #16]
	bl	uberblock_update
	cmp	r0, #0
	beq	.L41
.L6:
	mov	r0, r7
	bl	spa_freeze_txg
	cmp	r0, r4
	blt	.L4
	ldr	r0, [r7]
	add	r6, r7, #4
	cmp	r0, r4
	movlt	r0, #0
	movge	r0, #1
	bl	ASSERT
	mov	r2, #0
	mov	r3, r8
	mov	r1, r2
	mov	r0, r7
	bl	zio_root
	mov	r5, r0
	mov	r0, r4
	bl	TXG_CLEAN
	mov	r1, r0
	mov	r0, r6
	bl	txg_list_head
	subs	fp, r0, #0
	beq	.L8
.L9:
	mov	r1, fp
	mov	r0, r5
	bl	zio_flush
	mov	r0, r4
	bl	TXG_CLEAN
	mov	r1, fp
	mov	r2, r0
	mov	r0, r6
	bl	txg_list_next
	subs	fp, r0, #0
	bne	.L9
.L8:
	mov	r0, r5
	bl	zio_wait
	mov	r3, r8
	mov	r2, r4
	mov	r1, #0
	mov	r0, r7
	bl	vdev_label_sync_list
	subs	r5, r0, #0
	beq	.L10
	ldr	r3, [r9]
	tst	r8, r3
	bne	.L42
.L11:
	ldr	r3, [r9]
	tst	r3, r8
	bne	.L1
	orr	r8, r8, r3
	b	.L2
.L10:
	mov	r3, r8
	ldmib	sp, {r0, r1}
	mov	r2, r10
	bl	vdev_uberblock_sync_list
	subs	r5, r0, #0
	beq	.L12
	ldr	r3, [r9]
	tst	r8, r3
	beq	.L11
	mov	r0, r7
	bl	spa_name
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L44+12
	bl	zfs_dbgmsg
	b	.L11
.L12:
	mov	r0, r7
	bl	spa_multihost
	cmp	r0, #0
	bne	.L43
.L13:
	mov	r3, r8
	mov	r2, r4
	mov	r1, #1
	mov	r0, r7
	bl	vdev_label_sync_list
	subs	r5, r0, #0
	beq	.L4
	ldr	r3, [r9]
	tst	r8, r3
	beq	.L11
	mov	r0, r7
	bl	spa_name
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L44+16
	bl	zfs_dbgmsg
	b	.L11
.L41:
	ldr	r0, [sp, #12]
	bl	list_is_empty
	cmp	r0, #0
	beq	.L6
.L4:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	mov	r0, r7
	bl	spa_name
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L44+20
	bl	zfs_dbgmsg
	b	.L11
.L43:
	mov	r1, r10
	mov	r0, r7
	bl	mmp_update_uberblock
	b	.L13
.L45:
	.align	2
.L44:
	.word	ZIO_FLAG_CANFAIL
	.word	ZIO_FLAG_CONFIG_WRITER
	.word	ZIO_FLAG_TRYHARD
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	vdev_config_sync, .-vdev_config_sync
	.comm	ZIO_FLAG_TRYHARD,4,4
	.comm	ZIO_FLAG_CONFIG_WRITER,4,4
	.comm	ZIO_FLAG_CANFAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
