	.file	"extr_raid10.c___end_sync_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__end_sync_read, @function
__end_sync_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movsx	rbx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	mov	r12, QWORD PTR [rax]
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR R10BIO_Uptodate[rip]
	mov	rsi, r13
	call	set_bit@PLT
.L3:
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR [r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	rdev_dec_pending@PLT
	mov	edi, DWORD PTR R10BIO_IsRecover[rip]
	mov	rsi, r13
	call	test_bit@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, rbp
	call	atomic_dec_and_test@PLT
	test	rax, rax
	je	.L8
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	reschedule_retry@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR 8[rdi]
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	atomic_add@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	__end_sync_read, .-__end_sync_read
	.comm	R10BIO_Uptodate,4,4
	.comm	R10BIO_IsRecover,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_raid10.c___end_sync_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__end_sync_read, %function
__end_sync_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, [r1]
	ldr	r3, [r0, #12]
	cmp	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r2
	ldr	r6, [r3]
	add	r7, r0, #4
	bne	.L2
	ldr	r3, .L9
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
.L3:
	ldm	r6, {r1, r3}
	ldr	r0, [r3, r5, lsl #2]
	bl	rdev_dec_pending
	ldr	r3, .L9+4
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	atomic_dec_and_test
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	reschedule_retry
.L2:
	ldr	r3, [r6, #4]
	ldr	r0, [r0, #8]
	ldr	r1, [r3, r2, lsl #2]
	bl	atomic_add
	b	.L3
.L10:
	.align	2
.L9:
	.word	R10BIO_Uptodate
	.word	R10BIO_IsRecover
	.size	__end_sync_read, .-__end_sync_read
	.comm	R10BIO_Uptodate,4,4
	.comm	R10BIO_IsRecover,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
