	.file	"extr_vdev_label.c_vdev_uberblock_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdev_uberblock_sync, @function
vdev_uberblock_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR [rcx], 0
	je	.L2
	xor	ebp, ebp
.L3:
	mov	rax, QWORD PTR 16[rbx]
	mov	r8d, r14d
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r12
	mov	rcx, QWORD PTR [rax+rbp*8]
	add	rbp, 1
	call	vdev_uberblock_sync
	cmp	QWORD PTR [rbx], rbp
	ja	.L3
.L2:
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jne	.L16
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L16:
	.cfi_restore_state
	mov	rdi, rbx
	call	vdev_writeable@PLT
	test	eax, eax
	je	.L1
	mov	rdi, rbx
	mov	ebp, DWORD PTR [r15]
	call	VDEV_UBERBLOCK_COUNT@PLT
	mov	rdi, rbx
	sub	eax, 1
	and	eax, ebp
	mov	ebp, DWORD PTR B_TRUE[rip]
	mov	DWORD PTR 12[rsp], eax
	call	VDEV_UBERBLOCK_SIZE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	abd_alloc_for_io@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	VDEV_UBERBLOCK_SIZE@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	abd_zero@PLT
	mov	edx, 4
	mov	rsi, r15
	mov	rdi, rbp
	call	abd_copy_from_buf@PLT
	mov	eax, DWORD PTR VDEV_LABELS[rip]
	test	eax, eax
	jle	.L7
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r10d, DWORD PTR ZIO_FLAG_DONT_PROPAGATE[rip]
	mov	ecx, DWORD PTR vdev_uberblock_sync_done[rip]
	mov	rdi, rbx
	or	r10d, r14d
	mov	DWORD PTR 4[rsp], ecx
	mov	DWORD PTR 8[rsp], r10d
	call	VDEV_UBERBLOCK_SIZE@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbx
	mov	DWORD PTR [rsp], eax
	call	VDEV_UBERBLOCK_OFFSET@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, r15d
	mov	rsi, rbx
	mov	r10d, DWORD PTR 16[rsp]
	mov	r8d, eax
	mov	rdi, r12
	add	r15d, 1
	push	r10
	.cfi_def_cfa_offset 96
	push	r13
	.cfi_def_cfa_offset 104
	mov	ecx, DWORD PTR 28[rsp]
	push	rcx
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR 32[rsp]
	mov	rcx, rbp
	call	vdev_label_write@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR VDEV_LABELS[rip], r15d
	jg	.L8
.L7:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	abd_free@PLT
	.cfi_endproc
.LFE0:
	.size	vdev_uberblock_sync, .-vdev_uberblock_sync
	.comm	vdev_uberblock_sync_done,4,4
	.comm	ZIO_FLAG_DONT_PROPAGATE,4,4
	.comm	VDEV_LABELS,4,4
	.comm	B_TRUE,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_uberblock_sync.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdev_uberblock_sync, %function
vdev_uberblock_sync:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	ldr	r3, [r3]
	sub	sp, sp, #36
	cmp	r3, #0
	mov	r5, r0
	mov	r6, r1
	mov	r10, r2
	ldr	r7, [sp, #72]
	beq	.L2
	mov	r8, #0
.L3:
	ldr	r3, [r4, #8]
	mov	r2, r10
	ldr	r3, [r3, r8, lsl #2]
	mov	r1, r6
	mov	r0, r5
	str	r7, [sp]
	bl	vdev_uberblock_sync
	ldr	r3, [r4]
	add	r8, r8, #1
	cmp	r3, r8
	bhi	.L3
.L2:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r0, r4
	bl	vdev_writeable
	cmp	r0, #0
	beq	.L1
	mov	r0, r4
	ldr	r8, [r10]
	bl	VDEV_UBERBLOCK_COUNT
	mov	r3, r0
	sub	r3, r3, #1
	and	r3, r3, r8
	mov	r0, r4
	str	r3, [sp, #28]
	bl	VDEV_UBERBLOCK_SIZE
	ldr	r3, .L20
	ldr	r9, .L20+4
	ldr	r1, [r3]
	bl	abd_alloc_for_io
	mov	r8, r0
	mov	r0, r4
	bl	VDEV_UBERBLOCK_SIZE
	mov	r1, r0
	mov	r0, r8
	bl	abd_zero
	mov	r1, r10
	mov	r0, r8
	mov	r2, #4
	bl	abd_copy_from_buf
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L7
	mov	r10, #0
	str	r6, [sp, #24]
	mov	r6, r5
	ldr	r5, [sp, #28]
	str	r7, [sp, #28]
	mov	r7, r10
	ldr	fp, .L20+8
.L8:
	mov	r1, r5
	mov	r0, r4
	bl	VDEV_UBERBLOCK_OFFSET
	mov	r10, r0
	mov	r0, r4
	bl	VDEV_UBERBLOCK_SIZE
	ldr	r2, .L20+12
	ldr	r3, [fp]
	ldr	ip, [r2]
	ldr	r2, [sp, #28]
	str	r0, [sp, #4]
	orr	r3, r2, r3
	ldr	r2, [sp, #24]
	str	r3, [sp, #16]
	str	r2, [sp, #12]
	mov	r3, r8
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	str	r10, [sp]
	str	ip, [sp, #8]
	bl	vdev_label_write
	ldr	r3, [r9]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L8
.L7:
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	abd_free
.L21:
	.align	2
.L20:
	.word	B_TRUE
	.word	VDEV_LABELS
	.word	ZIO_FLAG_DONT_PROPAGATE
	.word	vdev_uberblock_sync_done
	.size	vdev_uberblock_sync, .-vdev_uberblock_sync
	.comm	vdev_uberblock_sync_done,4,4
	.comm	ZIO_FLAG_DONT_PROPAGATE,4,4
	.comm	VDEV_LABELS,4,4
	.comm	B_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
