	.file	"extr_spi-qcom-qspi.c_qcom_qspi_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IRQ error: FIFO underrun\n"
.LC1:
	.string	"IRQ error: FIFO overrun\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"IRQ error: NOC response error\n"
	.text
	.p2align 4
	.type	qcom_qspi_irq, @function
qcom_qspi_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR IRQ_NONE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR MSTR_INT_STATUS[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	readl@PLT
	mov	rsi, QWORD PTR MSTR_INT_STATUS[rip]
	add	rsi, QWORD PTR 8[rbp]
	mov	edi, eax
	mov	ebx, eax
	call	writel@PLT
	mov	rax, QWORD PTR QSPI_WRITE[rip]
	cmp	QWORD PTR 16[rbp], rax
	je	.L29
	test	DWORD PTR RESP_FIFO_RDY[rip], ebx
	jne	.L30
.L3:
	test	DWORD PTR QSPI_ERR_IRQS[rip], ebx
	je	.L4
	test	DWORD PTR RESP_FIFO_UNDERRUN[rip], ebx
	jne	.L31
	test	DWORD PTR WR_FIFO_OVERRUN[rip], ebx
	jne	.L32
.L6:
	test	DWORD PTR HRESP_FROM_NOC_ERR[rip], ebx
	jne	.L33
.L7:
	mov	r12d, DWORD PTR IRQ_HANDLED[rip]
.L4:
	mov	eax, DWORD PTR 24[rbp]
	test	eax, eax
	je	.L34
.L8:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rdi, rbp
	call	pio_read@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	test	DWORD PTR WR_FIFO_EMPTY[rip], ebx
	je	.L3
	mov	rdi, rbp
	call	pio_write@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L34:
	xor	edi, edi
	mov	rsi, QWORD PTR MSTR_INT_EN[rip]
	add	rsi, QWORD PTR 8[rbp]
	call	writel@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	dev_get_drvdata@PLT
	mov	edi, eax
	call	spi_finalize_current_transfer@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	test	DWORD PTR WR_FIFO_OVERRUN[rip], ebx
	je	.L6
.L32:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	test	DWORD PTR HRESP_FROM_NOC_ERR[rip], ebx
	je	.L7
	jmp	.L33
	.cfi_endproc
.LFE0:
	.size	qcom_qspi_irq, .-qcom_qspi_irq
	.comm	WR_FIFO_OVERRUN,4,4
	.comm	WR_FIFO_EMPTY,4,4
	.comm	RESP_FIFO_UNDERRUN,4,4
	.comm	RESP_FIFO_RDY,4,4
	.comm	QSPI_WRITE,8,8
	.comm	QSPI_ERR_IRQS,4,4
	.comm	MSTR_INT_STATUS,8,8
	.comm	MSTR_INT_EN,8,8
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	HRESP_FROM_NOC_ERR,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-qcom-qspi.c_qcom_qspi_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IRQ error: FIFO underrun\012\000"
	.align	2
.LC1:
	.ascii	"IRQ error: FIFO overrun\012\000"
	.align	2
.LC2:
	.ascii	"IRQ error: NOC response error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qcom_qspi_irq, %function
qcom_qspi_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L35
	ldr	r7, .L35+4
	mov	r0, r1
	mov	r1, #0
	ldr	r6, [r3]
	bl	spin_lock_irqsave
	ldr	r3, [r7]
	ldr	r0, [r4, #8]
	add	r0, r0, r3
	bl	readl
	ldr	r3, [r7]
	ldr	r1, [r4, #8]
	mov	r5, r0
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L35+8
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L29
	ldr	r3, .L35+12
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L30
.L3:
	ldr	r3, .L35+16
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L4
	ldr	r3, .L35+20
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L31
	ldr	r3, .L35+24
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L32
.L6:
	ldr	r3, .L35+28
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L33
.L7:
	ldr	r3, .L35+32
	ldr	r6, [r3]
.L4:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L34
.L8:
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	mov	r0, r4
	bl	pio_read
	mov	r6, r0
	b	.L3
.L29:
	ldr	r3, .L35+36
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L3
	mov	r0, r4
	bl	pio_write
	mov	r6, r0
	b	.L3
.L34:
	ldr	r3, .L35+40
	ldr	r1, [r4, #8]
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	writel
	ldr	r0, [r4, #4]
	bl	dev_get_drvdata
	bl	spi_finalize_current_transfer
	b	.L8
.L33:
	ldr	r1, .L35+44
	ldr	r0, [r4, #4]
	bl	dev_err
	b	.L7
.L31:
	ldr	r1, .L35+48
	ldr	r0, [r4, #4]
	bl	dev_err
	ldr	r3, .L35+24
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L6
.L32:
	ldr	r1, .L35+52
	ldr	r0, [r4, #4]
	bl	dev_err
	ldr	r3, .L35+28
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L7
	b	.L33
.L36:
	.align	2
.L35:
	.word	IRQ_NONE
	.word	MSTR_INT_STATUS
	.word	QSPI_WRITE
	.word	RESP_FIFO_RDY
	.word	QSPI_ERR_IRQS
	.word	RESP_FIFO_UNDERRUN
	.word	WR_FIFO_OVERRUN
	.word	HRESP_FROM_NOC_ERR
	.word	IRQ_HANDLED
	.word	WR_FIFO_EMPTY
	.word	MSTR_INT_EN
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	qcom_qspi_irq, .-qcom_qspi_irq
	.comm	WR_FIFO_OVERRUN,4,4
	.comm	WR_FIFO_EMPTY,4,4
	.comm	RESP_FIFO_UNDERRUN,4,4
	.comm	RESP_FIFO_RDY,4,4
	.comm	QSPI_WRITE,4,4
	.comm	QSPI_ERR_IRQS,4,4
	.comm	MSTR_INT_STATUS,4,4
	.comm	MSTR_INT_EN,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	HRESP_FROM_NOC_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
