	.file	"extr_spi-ep93xx.c_ep93xx_spi_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"receive overrun, aborting the message\n"
	.text
	.p2align 4
	.type	ep93xx_spi_interrupt, @function
ep93xx_spi_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spi_master_get_devdata@PLT
	mov	rdi, QWORD PTR SSPIIR[rip]
	add	rdi, QWORD PTR [rax]
	mov	rbx, rax
	call	readl@PLT
	test	DWORD PTR SSPIIR_RORIS[rip], eax
	je	.L2
	mov	rsi, QWORD PTR SSPICR[rip]
	xor	edi, edi
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	lea	rdi, 8[rbp]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	eax, DWORD PTR EIO[rip]
	mov	rdx, QWORD PTR 0[rbp]
	neg	eax
	mov	DWORD PTR [rdx], eax
.L3:
	mov	rdi, QWORD PTR SSPCR1[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	edi, DWORD PTR SSPCR1_RORIE[rip]
	or	edi, DWORD PTR SSPCR1_TIE[rip]
	or	edi, DWORD PTR SSPCR1_RIE[rip]
	mov	rsi, QWORD PTR SSPCR1[rip]
	not	edi
	add	rsi, QWORD PTR [rbx]
	and	edi, eax
	call	writel@PLT
	mov	rdi, rbp
	call	spi_finalize_current_transfer@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	ep93xx_spi_read_write@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ep93xx_spi_interrupt, .-ep93xx_spi_interrupt
	.comm	SSPIIR_RORIS,4,4
	.comm	SSPIIR,8,8
	.comm	SSPICR,8,8
	.comm	SSPCR1_TIE,4,4
	.comm	SSPCR1_RORIE,4,4
	.comm	SSPCR1_RIE,4,4
	.comm	SSPCR1,8,8
	.comm	IRQ_HANDLED,4,4
	.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_spi-ep93xx.c_ep93xx_spi_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"receive overrun, aborting the message\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ep93xx_spi_interrupt, %function
ep93xx_spi_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r4, r1
	bl	spi_master_get_devdata
	ldr	r3, .L11
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r0]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L11+4
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L2
	ldr	r3, .L11+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel
	ldr	r1, .L11+12
	add	r0, r4, #4
	bl	dev_warn
	ldr	r3, .L11+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r2]
.L3:
	ldr	r6, .L11+20
	ldr	r0, [r5]
	ldr	r3, [r6]
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L11+24
	ldr	r3, .L11+28
	ldr	r1, .L11+32
	ldr	lr, [r2]
	ldr	r3, [r3]
	ldr	ip, [r1]
	ldr	r2, [r6]
	ldr	r1, [r5]
	orr	r3, r3, lr
	orr	r3, r3, ip
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	writel
	mov	r0, r4
	bl	spi_finalize_current_transfer
.L9:
	ldr	r3, .L11+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	ep93xx_spi_read_write
	cmp	r0, #0
	beq	.L3
	b	.L9
.L12:
	.align	2
.L11:
	.word	SSPIIR
	.word	SSPIIR_RORIS
	.word	SSPICR
	.word	.LC0
	.word	EIO
	.word	SSPCR1
	.word	SSPCR1_TIE
	.word	SSPCR1_RORIE
	.word	SSPCR1_RIE
	.word	IRQ_HANDLED
	.size	ep93xx_spi_interrupt, .-ep93xx_spi_interrupt
	.comm	SSPIIR_RORIS,4,4
	.comm	SSPIIR,4,4
	.comm	SSPICR,4,4
	.comm	SSPCR1_TIE,4,4
	.comm	SSPCR1_RORIE,4,4
	.comm	SSPCR1_RIE,4,4
	.comm	SSPCR1,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
