	.file	"extr_pcd.c_do_pcd_read_drq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"read block"
	.text
	.p2align 4
	.type	do_pcd_read_drq, @function
do_pcd_read_drq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR pcd_buffer[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, QWORD PTR pcd_current[rip]
	call	pcd_completion@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR PCD_RETRIES[rip]
	cmp	QWORD PTR pcd_retries[rip], rax
	jge	.L3
	mov	edi, 1
	call	mdelay@PLT
	mov	rax, QWORD PTR pcd_current[rip]
	add	QWORD PTR pcd_retries[rip], 1
	mov	esi, DWORD PTR pcd_start[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	edi, DWORD PTR [rax]
	jmp	pi_do_claimed@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR EIO[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR pcd_bufblk[rip], -1
	neg	edi
	jmp	next_request@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	ebp, ebp
	xor	eax, eax
	call	do_pcd_read@PLT
	mov	rsi, rbp
	lea	rdi, pcd_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR pcd_queue[rip]
	call	do_pcd_request@PLT
	mov	rsi, rbp
	lea	rdi, pcd_lock[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	do_pcd_read_drq, .-do_pcd_read_drq
	.comm	pcd_start,4,4
	.comm	pcd_retries,8,8
	.comm	pcd_queue,4,4
	.comm	pcd_lock,4,4
	.comm	pcd_current,8,8
	.comm	pcd_buffer,4,4
	.comm	pcd_bufblk,4,4
	.comm	PCD_RETRIES,8,8
	.comm	EIO,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_pcd.c_do_pcd_read_drq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read block\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_pcd_read_drq, %function
do_pcd_read_drq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L6
	ldr	r4, .L6+4
	ldr	r1, [r3]
	ldr	r0, [r4]
	ldr	r2, .L6+8
	bl	pcd_completion
	cmp	r0, #0
	beq	.L2
	ldr	r5, .L6+12
	ldr	r3, .L6+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L3
	mov	r0, #1
	bl	mdelay
	ldr	r3, [r5]
	ldr	r1, [r4]
	ldr	r2, .L6+20
	add	r3, r3, #1
	ldr	r0, [r1]
	str	r3, [r5]
	ldr	r1, [r2]
	pop	{r4, r5, r6, lr}
	b	pi_do_claimed
.L3:
	mvn	r2, #0
	pop	{r4, r5, r6, lr}
	ldr	r1, .L6+24
	ldr	r3, .L6+28
	ldr	r0, [r1]
	str	r2, [r3]
	rsb	r0, r0, #0
	b	next_request
.L2:
	mov	r4, #0
	bl	do_pcd_read
	mov	r1, r4
	ldr	r0, .L6+32
	bl	spin_lock_irqsave
	ldr	r3, .L6+36
	ldr	r0, [r3]
	bl	do_pcd_request
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	ldr	r0, .L6+32
	b	spin_unlock_irqrestore
.L7:
	.align	2
.L6:
	.word	pcd_buffer
	.word	pcd_current
	.word	.LC0
	.word	pcd_retries
	.word	PCD_RETRIES
	.word	pcd_start
	.word	EIO
	.word	pcd_bufblk
	.word	pcd_lock
	.word	pcd_queue
	.size	do_pcd_read_drq, .-do_pcd_read_drq
	.comm	pcd_start,4,4
	.comm	pcd_retries,4,4
	.comm	pcd_queue,4,4
	.comm	pcd_lock,4,4
	.comm	pcd_current,4,4
	.comm	pcd_buffer,4,4
	.comm	pcd_bufblk,4,4
	.comm	PCD_RETRIES,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
