	.file	"extr_spi-ti-qspi.c_qspi_is_busy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"qspi busy\n"
	.text
	.p2align 4
	.type	qspi_is_busy, @function
qspi_is_busy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR QSPI_SPI_STATUS_REG[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	r12, QWORD PTR QSPI_COMPLETION_TIMEOUT[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	add	r12, QWORD PTR jiffies[rip]
	call	ti_qspi_read@PLT
	mov	ebx, eax
	mov	edi, eax
	and	edi, DWORD PTR BUSY[rip]
	jne	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	cpu_relax@PLT
	mov	esi, DWORD PTR QSPI_SPI_STATUS_REG[rip]
	mov	rdi, rbp
	call	ti_qspi_read@PLT
	mov	ebx, eax
	mov	edi, eax
	and	edi, DWORD PTR BUSY[rip]
	je	.L3
.L2:
	mov	rsi, QWORD PTR jiffies[rip]
	mov	rdi, r12
	call	time_after@PLT
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR BUSY[rip]
	and	edi, ebx
.L3:
	lea	rsi, .LC0[rip]
	call	WARN@PLT
	mov	eax, DWORD PTR BUSY[rip]
	and	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qspi_is_busy, .-qspi_is_busy
	.comm	jiffies,8,8
	.comm	QSPI_SPI_STATUS_REG,4,4
	.comm	QSPI_COMPLETION_TIMEOUT,8,8
	.comm	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_spi-ti-qspi.c_qspi_is_busy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qspi busy\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qspi_is_busy, %function
qspi_is_busy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L11
	ldr	r8, .L11+4
	ldr	r9, .L11+8
	ldr	r6, [r8]
	ldr	r3, [r3]
	ldr	r1, [r9]
	mov	r7, r0
	add	r6, r6, r3
	bl	ti_qspi_read
	mov	r4, r0
	ldr	r5, .L11+12
	ldr	r0, [r5]
	ands	r0, r4, r0
	bne	.L2
	b	.L3
.L4:
	bl	cpu_relax
	mov	r0, r7
	ldr	r1, [r9]
	bl	ti_qspi_read
	mov	r4, r0
	ldr	r0, [r5]
	ands	r0, r4, r0
	beq	.L3
.L2:
	mov	r0, r6
	ldr	r1, [r8]
	bl	time_after
	cmp	r0, #0
	bne	.L4
	ldr	r0, [r5]
	and	r0, r0, r4
.L3:
	ldr	r1, .L11+16
	bl	WARN
	ldr	r0, [r5]
	and	r0, r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	QSPI_COMPLETION_TIMEOUT
	.word	jiffies
	.word	QSPI_SPI_STATUS_REG
	.word	BUSY
	.word	.LC0
	.size	qspi_is_busy, .-qspi_is_busy
	.comm	jiffies,4,4
	.comm	QSPI_SPI_STATUS_REG,4,4
	.comm	QSPI_COMPLETION_TIMEOUT,4,4
	.comm	BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
