	.file	"extr_libata-sff.c_ata_sff_busy_sleep.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"port is slow to respond, please be patient (Status 0x%x)\n"
	.align 8
.LC1:
	.string	"port failed to respond (%lu secs, Status 0x%x)\n"
	.text
	.p2align 4
	.globl	ata_sff_busy_sleep
	.type	ata_sff_busy_sleep, @function
ata_sff_busy_sleep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, DWORD PTR ATA_BUSY[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	mov	edx, 300
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	ata_sff_busy_wait@PLT
	mov	r14, QWORD PTR jiffies[rip]
	mov	rsi, r13
	mov	ebx, eax
	mov	rdi, r14
	call	ata_deadline@PLT
	cmp	ebx, 255
	je	.L6
	mov	r13, rax
	test	DWORD PTR ATA_BUSY[rip], ebx
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 50
	mov	rdi, rbp
	call	ata_msleep@PLT
	mov	esi, DWORD PTR ATA_BUSY[rip]
	mov	edx, 3
	mov	rdi, rbp
	call	ata_sff_busy_wait@PLT
	mov	ebx, eax
	cmp	eax, 255
	je	.L6
	test	DWORD PTR ATA_BUSY[rip], eax
	je	.L5
.L4:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r13
	call	time_before@PLT
	test	rax, rax
	jne	.L7
	test	DWORD PTR ATA_BUSY[rip], ebx
	je	.L18
	mov	esi, DWORD PTR KERN_WARNING[rip]
	mov	ecx, ebx
	mov	rdi, rbp
	xor	eax, eax
	lea	rdx, .LC0[rip]
	call	ata_port_printk@PLT
.L18:
	mov	rsi, r12
	mov	rdi, r14
	call	ata_deadline@PLT
	mov	r13, rax
	cmp	ebx, 255
	jne	.L37
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r13
	call	time_before@PLT
	test	rax, rax
	je	.L39
	mov	esi, 50
	mov	rdi, rbp
	call	ata_msleep@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	mov	ebx, eax
	cmp	eax, 255
	je	.L3
.L37:
	test	DWORD PTR ATA_BUSY[rip], ebx
	jne	.L40
.L16:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	test	DWORD PTR ATA_BUSY[rip], ebx
	je	.L16
	mov	rdi, r12
	mov	esi, 1000
	call	DIV_ROUND_UP@PLT
	mov	esi, DWORD PTR KERN_ERR[rip]
	mov	r8d, ebx
	mov	rdi, rbp
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	ata_port_printk@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, r14
	call	ata_deadline@PLT
	mov	r13, rax
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, r12
	mov	rdi, r14
	call	ata_deadline@PLT
.L3:
	mov	eax, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ata_sff_busy_sleep, .-ata_sff_busy_sleep
	.comm	jiffies,8,8
	.comm	KERN_WARNING,4,4
	.comm	KERN_ERR,4,4
	.comm	ENODEV,4,4
	.comm	EBUSY,4,4
	.comm	ATA_BUSY,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-sff.c_ata_sff_busy_sleep.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"port is slow to respond, please be patient (Status "
	.ascii	"0x%x)\012\000"
	.align	2
.LC1:
	.ascii	"port failed to respond (%lu secs, Status 0x%x)\012\000"
	.text
	.align	2
	.global	ata_sff_busy_sleep
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_sff_busy_sleep, %function
ata_sff_busy_sleep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L41
	mov	r9, r1
	sub	sp, sp, #8
	ldr	r1, [r6]
	mov	r8, r2
	mov	r2, #300
	mov	r5, r0
	bl	ata_sff_busy_wait
	mov	r4, r0
	ldr	r7, .L41+4
	mov	r1, r9
	ldr	r10, [r7]
	mov	r0, r10
	bl	ata_deadline
	cmp	r4, #255
	beq	.L6
	ldr	r3, [r6]
	mov	r9, r0
	tst	r4, r3
	bne	.L4
	b	.L5
.L7:
	mov	r1, #50
	mov	r0, r5
	bl	ata_msleep
	mov	r2, #3
	mov	r0, r5
	ldr	r1, [r6]
	bl	ata_sff_busy_wait
	cmp	r0, #255
	mov	r4, r0
	beq	.L6
	ldr	r3, [r6]
	tst	r0, r3
	beq	.L5
.L4:
	mov	r1, r9
	ldr	r0, [r7]
	bl	time_before
	cmp	r0, #0
	bne	.L7
	ldr	r3, [r6]
	tst	r4, r3
	beq	.L18
	ldr	r2, .L41+8
	mov	r3, r4
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r2, .L41+12
	bl	ata_port_printk
.L18:
	mov	r0, r10
	mov	r1, r8
	bl	ata_deadline
	cmp	r4, #255
	mov	r9, r0
	bne	.L37
	b	.L3
.L40:
	mov	r1, r9
	ldr	r0, [r7]
	bl	time_before
	cmp	r0, #0
	beq	.L39
	mov	r1, #50
	mov	r0, r5
	bl	ata_msleep
	ldr	r3, [r5]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	cmp	r0, #255
	mov	r4, r0
	beq	.L3
.L37:
	ldr	r3, [r6]
	tst	r4, r3
	bne	.L40
.L16:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L39:
	ldr	r3, [r6]
	tst	r4, r3
	beq	.L16
	ldr	r3, .L41+16
	mov	r0, r8
	mov	r1, #1000
	ldr	r6, [r3]
	bl	DIV_ROUND_UP
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L41+20
	mov	r0, r5
	str	r4, [sp]
	bl	ata_port_printk
	ldr	r3, .L41+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r0, r10
	mov	r1, r8
	bl	ata_deadline
	mov	r9, r0
	b	.L37
.L6:
	mov	r1, r8
	mov	r0, r10
	bl	ata_deadline
.L3:
	ldr	r3, .L41+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L42:
	.align	2
.L41:
	.word	ATA_BUSY
	.word	jiffies
	.word	KERN_WARNING
	.word	.LC0
	.word	KERN_ERR
	.word	.LC1
	.word	EBUSY
	.word	ENODEV
	.size	ata_sff_busy_sleep, .-ata_sff_busy_sleep
	.comm	jiffies,4,4
	.comm	KERN_WARNING,4,4
	.comm	KERN_ERR,4,4
	.comm	ENODEV,4,4
	.comm	EBUSY,4,4
	.comm	ATA_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
