	.file	"extr_libata-eh.c_ata_eh_fastdrain_timerfn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ata_eh_fastdrain_timerfn
	.type	ata_eh_fastdrain_timerfn, @function
ata_eh_fastdrain_timerfn:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 4[rdi]
	call	spin_lock_irqsave@PLT
	mov	rdi, rbp
	call	ata_eh_nr_in_flight@PLT
	test	eax, eax
	je	.L2
	cmp	DWORD PTR 0[rbp], eax
	jne	.L3
	cmp	DWORD PTR ATA_MAX_QUEUE[rip], 1
	je	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, ebx
	mov	rdi, rbp
	call	ata_qc_from_tag@PLT
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR AC_ERR_TIMEOUT[rip]
	or	DWORD PTR [rax], edx
.L5:
	mov	eax, DWORD PTR ATA_MAX_QUEUE[rip]
	add	ebx, 1
	sub	eax, 1
	cmp	eax, ebx
	ja	.L6
.L4:
	mov	rdi, rbp
	call	ata_port_freeze@PLT
.L2:
	mov	edi, DWORD PTR 4[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR ATA_EH_FASTDRAIN_INTERVAL[rip]
	mov	edi, DWORD PTR jiffies[rip]
	mov	DWORD PTR 0[rbp], eax
	call	ata_deadline@PLT
	lea	rdi, 8[rbp]
	mov	DWORD PTR 8[rbp], eax
	call	add_timer@PLT
	mov	edi, DWORD PTR 4[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	ata_eh_fastdrain_timerfn, .-ata_eh_fastdrain_timerfn
	.comm	jiffies,4,4
	.comm	ATA_MAX_QUEUE,4,4
	.comm	ATA_EH_FASTDRAIN_INTERVAL,4,4
	.comm	AC_ERR_TIMEOUT,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_libata-eh.c_ata_eh_fastdrain_timerfn.c"
	.text
	.align	2
	.global	ata_eh_fastdrain_timerfn
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_eh_fastdrain_timerfn, %function
ata_eh_fastdrain_timerfn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r1, #0
	ldr	r0, [r0, #4]
	bl	spin_lock_irqsave
	mov	r0, r5
	bl	ata_eh_nr_in_flight
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, r0
	bne	.L3
	ldr	r7, .L19
	ldr	r3, [r7]
	cmp	r3, #1
	beq	.L4
	mov	r4, #0
	ldr	r6, .L19+4
.L6:
	mov	r1, r4
	mov	r0, r5
	bl	ata_qc_from_tag
	cmp	r0, #0
	ldrne	r3, [r0]
	ldrne	r2, [r6]
	add	r4, r4, #1
	orrne	r3, r3, r2
	strne	r3, [r0]
	ldr	r3, [r7]
	sub	r3, r3, #1
	cmp	r3, r4
	bhi	.L6
.L4:
	mov	r0, r5
	bl	ata_port_freeze
.L2:
	ldr	r0, [r5, #4]
	mov	r1, #0
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irqrestore
.L3:
	ldr	r2, .L19+8
	ldr	r3, .L19+12
	ldr	r1, [r2]
	str	r0, [r5]
	ldr	r0, [r3]
	bl	ata_deadline
	mov	r3, r5
	str	r0, [r3, #8]!
	mov	r0, r3
	bl	add_timer
	ldr	r0, [r5, #4]
	mov	r1, #0
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irqrestore
.L20:
	.align	2
.L19:
	.word	ATA_MAX_QUEUE
	.word	AC_ERR_TIMEOUT
	.word	ATA_EH_FASTDRAIN_INTERVAL
	.word	jiffies
	.size	ata_eh_fastdrain_timerfn, .-ata_eh_fastdrain_timerfn
	.comm	jiffies,4,4
	.comm	ATA_MAX_QUEUE,4,4
	.comm	ATA_EH_FASTDRAIN_INTERVAL,4,4
	.comm	AC_ERR_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
