	.file	"extr_spi-zynqmp-gqspi.c_zynqmp_qspi_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zynqmp_qspi_irq, @function
zynqmp_qspi_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	spi_master_get_devdata@PLT
	mov	esi, DWORD PTR GQSPI_ISR_OFST[rip]
	mov	r14d, DWORD PTR IRQ_NONE[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	zynqmp_gqspi_read@PLT
	mov	esi, DWORD PTR GQSPI_ISR_OFST[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r13d, eax
	call	zynqmp_gqspi_write@PLT
	mov	esi, DWORD PTR GQSPI_IMASK_OFST[rip]
	mov	rdi, rbp
	call	zynqmp_gqspi_read@PLT
	not	eax
	mov	ebx, eax
	mov	rax, QWORD PTR GQSPI_MODE_DMA[rip]
	and	ebx, r13d
	cmp	QWORD PTR 0[rbp], rax
	je	.L20
	test	DWORD PTR GQSPI_ISR_TXNOT_FULL_MASK[rip], ebx
	jne	.L21
.L4:
	test	DWORD PTR GQSPI_IER_RXEMPTY_MASK[rip], ebx
	je	.L22
.L5:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L1
	cmp	QWORD PTR 16[rbp], 0
	jne	.L1
	mov	edx, DWORD PTR GQSPI_IRQ_MASK[rip]
	and	r13d, edx
	cmp	edx, r13d
	je	.L23
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	test	DWORD PTR GQSPI_IER_GENFIFOEMPTY_MASK[rip], ebx
	je	.L5
	mov	esi, DWORD PTR GQSPI_RX_FIFO_FILL[rip]
	mov	rdi, rbp
	call	zynqmp_qspi_readrxfifo@PLT
	mov	r14d, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r15d, r15d
.L7:
	mov	esi, DWORD PTR GQSPI_TX_FIFO_FILL[rip]
	mov	rdi, rbp
	call	zynqmp_qspi_filltxfifo@PLT
	mov	r14d, DWORD PTR IRQ_HANDLED[rip]
.L3:
	test	DWORD PTR GQSPI_QSPIDMA_DST_I_STS_DONE_MASK[rip], r15d
	je	.L4
	mov	rdi, rbp
	call	zynqmp_process_dma_irq@PLT
	mov	r14d, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR GQSPI_QSPIDMA_DST_I_STS_OFST[rip]
	mov	rdi, rbp
	call	zynqmp_gqspi_read@PLT
	mov	esi, DWORD PTR GQSPI_QSPIDMA_DST_I_STS_OFST[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r15d, eax
	call	zynqmp_gqspi_write@PLT
	test	DWORD PTR GQSPI_ISR_TXNOT_FULL_MASK[rip], ebx
	je	.L3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, DWORD PTR GQSPI_ISR_IDR_MASK[rip]
	mov	esi, DWORD PTR GQSPI_IDR_OFST[rip]
	mov	rdi, rbp
	call	zynqmp_gqspi_write@PLT
	mov	rdi, r12
	call	spi_finalize_current_transfer@PLT
	mov	r14d, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	zynqmp_qspi_irq, .-zynqmp_qspi_irq
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	GQSPI_TX_FIFO_FILL,4,4
	.comm	GQSPI_RX_FIFO_FILL,4,4
	.comm	GQSPI_QSPIDMA_DST_I_STS_OFST,4,4
	.comm	GQSPI_QSPIDMA_DST_I_STS_DONE_MASK,4,4
	.comm	GQSPI_MODE_DMA,8,8
	.comm	GQSPI_ISR_TXNOT_FULL_MASK,4,4
	.comm	GQSPI_ISR_OFST,4,4
	.comm	GQSPI_ISR_IDR_MASK,4,4
	.comm	GQSPI_IRQ_MASK,4,4
	.comm	GQSPI_IMASK_OFST,4,4
	.comm	GQSPI_IER_RXEMPTY_MASK,4,4
	.comm	GQSPI_IER_GENFIFOEMPTY_MASK,4,4
	.comm	GQSPI_IDR_OFST,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-zynqmp-gqspi.c_zynqmp_qspi_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zynqmp_qspi_irq, %function
zynqmp_qspi_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, r1
	mov	r7, r1
	bl	spi_master_get_devdata
	ldr	r6, .L24
	ldr	r3, .L24+4
	ldr	r1, [r6]
	mov	r4, r0
	ldr	r8, [r3]
	bl	zynqmp_gqspi_read
	ldr	r1, [r6]
	mov	r2, r0
	mov	r5, r0
	mov	r0, r4
	bl	zynqmp_gqspi_write
	ldr	r3, .L24+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	zynqmp_gqspi_read
	ldr	r3, .L24+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	bic	r6, r5, r0
	cmp	r2, r3
	beq	.L20
	ldr	r3, .L24+16
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L21
.L4:
	ldr	r3, .L24+20
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L22
.L5:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L1
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L1
	ldr	r3, .L24+24
	ldr	r3, [r3]
	bics	r3, r3, r5
	beq	.L23
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r3, .L24+28
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L5
	ldr	r3, .L24+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	zynqmp_qspi_readrxfifo
	ldr	r3, .L24+36
	ldr	r8, [r3]
	b	.L5
.L21:
	mov	r9, #0
.L7:
	ldr	r3, .L24+40
	mov	r0, r4
	ldr	r1, [r3]
	bl	zynqmp_qspi_filltxfifo
	ldr	r3, .L24+36
	ldr	r8, [r3]
.L3:
	ldr	r3, .L24+44
	ldr	r3, [r3]
	tst	r9, r3
	beq	.L4
	mov	r0, r4
	bl	zynqmp_process_dma_irq
	ldr	r3, .L24+36
	ldr	r8, [r3]
	b	.L5
.L20:
	ldr	r10, .L24+48
	mov	r0, r4
	ldr	r1, [r10]
	bl	zynqmp_gqspi_read
	ldr	r1, [r10]
	mov	r2, r0
	mov	r9, r0
	mov	r0, r4
	bl	zynqmp_gqspi_write
	ldr	r3, .L24+16
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L3
	b	.L7
.L23:
	ldr	r3, .L24+52
	ldr	r2, .L24+56
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	zynqmp_gqspi_write
	mov	r0, r7
	bl	spi_finalize_current_transfer
	ldr	r3, .L24+36
	ldr	r8, [r3]
	b	.L1
.L25:
	.align	2
.L24:
	.word	GQSPI_ISR_OFST
	.word	IRQ_NONE
	.word	GQSPI_IMASK_OFST
	.word	GQSPI_MODE_DMA
	.word	GQSPI_ISR_TXNOT_FULL_MASK
	.word	GQSPI_IER_RXEMPTY_MASK
	.word	GQSPI_IRQ_MASK
	.word	GQSPI_IER_GENFIFOEMPTY_MASK
	.word	GQSPI_RX_FIFO_FILL
	.word	IRQ_HANDLED
	.word	GQSPI_TX_FIFO_FILL
	.word	GQSPI_QSPIDMA_DST_I_STS_DONE_MASK
	.word	GQSPI_QSPIDMA_DST_I_STS_OFST
	.word	GQSPI_IDR_OFST
	.word	GQSPI_ISR_IDR_MASK
	.size	zynqmp_qspi_irq, .-zynqmp_qspi_irq
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	GQSPI_TX_FIFO_FILL,4,4
	.comm	GQSPI_RX_FIFO_FILL,4,4
	.comm	GQSPI_QSPIDMA_DST_I_STS_OFST,4,4
	.comm	GQSPI_QSPIDMA_DST_I_STS_DONE_MASK,4,4
	.comm	GQSPI_MODE_DMA,4,4
	.comm	GQSPI_ISR_TXNOT_FULL_MASK,4,4
	.comm	GQSPI_ISR_OFST,4,4
	.comm	GQSPI_ISR_IDR_MASK,4,4
	.comm	GQSPI_IRQ_MASK,4,4
	.comm	GQSPI_IMASK_OFST,4,4
	.comm	GQSPI_IER_RXEMPTY_MASK,4,4
	.comm	GQSPI_IER_GENFIFOEMPTY_MASK,4,4
	.comm	GQSPI_IDR_OFST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
