	.file	"extr_spi-bcm2835.c_bcm2835_spi_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcm2835_spi_interrupt, @function
bcm2835_spi_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdi, rsi
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	spi_controller_get_devdata@PLT
	mov	esi, DWORD PTR BCM2835_SPI_CS[rip]
	mov	rdi, rax
	mov	rbx, rax
	call	bcm2835_rd@PLT
	mov	ebp, eax
	test	DWORD PTR BCM2835_SPI_CS_RXF[rip], eax
	jne	.L14
	test	DWORD PTR BCM2835_SPI_CS_RXR[rip], eax
	jne	.L15
.L3:
	cmp	QWORD PTR 8[rbx], 0
	je	.L4
	test	DWORD PTR BCM2835_SPI_CS_DONE[rip], ebp
	jne	.L16
.L4:
	mov	rdi, rbx
	call	bcm2835_rd_fifo@PLT
	mov	rdi, rbx
	call	bcm2835_wr_fifo@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L17
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR BCM2835_SPI_FIFO_SIZE_3_4[rip]
	mov	rdi, rbx
	call	bcm2835_rd_fifo_blind@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR BCM2835_SPI_FIFO_SIZE[rip]
	mov	rdi, rbx
	call	bcm2835_rd_fifo_blind@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	call	bcm2835_spi_reset_hw@PLT
	mov	rdi, r12
	call	complete@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR BCM2835_SPI_FIFO_SIZE[rip]
	mov	rdi, rbx
	call	bcm2835_wr_fifo_blind@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	bcm2835_spi_interrupt, .-bcm2835_spi_interrupt
	.comm	IRQ_HANDLED,4,4
	.comm	BCM2835_SPI_FIFO_SIZE_3_4,4,4
	.comm	BCM2835_SPI_FIFO_SIZE,4,4
	.comm	BCM2835_SPI_CS_RXR,4,4
	.comm	BCM2835_SPI_CS_RXF,4,4
	.comm	BCM2835_SPI_CS_DONE,4,4
	.comm	BCM2835_SPI_CS,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-bcm2835.c_bcm2835_spi_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm2835_spi_interrupt, %function
bcm2835_spi_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r6, r1
	bl	spi_controller_get_devdata
	ldr	r3, .L21
	mov	r4, r0
	ldr	r1, [r3]
	bl	bcm2835_rd
	ldr	r3, .L21+4
	mov	r5, r0
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L17
	ldr	r3, .L21+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L18
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L21+12
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L19
.L4:
	mov	r0, r4
	bl	bcm2835_rd_fifo
	mov	r0, r4
	bl	bcm2835_wr_fifo
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L20
.L5:
	ldr	r3, .L21+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, .L21+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm2835_rd_fifo_blind
	b	.L3
.L17:
	ldr	r3, .L21+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm2835_rd_fifo_blind
	b	.L3
.L20:
	mov	r0, r6
	bl	bcm2835_spi_reset_hw
	mov	r0, r6
	bl	complete
	b	.L5
.L19:
	ldr	r3, .L21+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	bcm2835_wr_fifo_blind
	b	.L4
.L22:
	.align	2
.L21:
	.word	BCM2835_SPI_CS
	.word	BCM2835_SPI_CS_RXF
	.word	BCM2835_SPI_CS_RXR
	.word	BCM2835_SPI_CS_DONE
	.word	IRQ_HANDLED
	.word	BCM2835_SPI_FIFO_SIZE_3_4
	.word	BCM2835_SPI_FIFO_SIZE
	.size	bcm2835_spi_interrupt, .-bcm2835_spi_interrupt
	.comm	IRQ_HANDLED,4,4
	.comm	BCM2835_SPI_FIFO_SIZE_3_4,4,4
	.comm	BCM2835_SPI_FIFO_SIZE,4,4
	.comm	BCM2835_SPI_CS_RXR,4,4
	.comm	BCM2835_SPI_CS_RXF,4,4
	.comm	BCM2835_SPI_CS_DONE,4,4
	.comm	BCM2835_SPI_CS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
