	.file	"extr_spi.c_SPIIntStatus.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SPIIntStatus
	.type	SPIIntStatus, @function
SPIIntStatus:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	add	rdi, QWORD PTR MCSPI_O_IRQSTATUS[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	HWREG@PLT
	mov	rdi, rbp
	and	eax, 196623
	mov	r12, rax
	test	rbx, rbx
	jne	.L14
	call	SPIDmaMaskGet@PLT
	mov	rdi, QWORD PTR APPS_CONFIG_O_DMA_DONE_INT_STS_RAW[rip]
	add	rdi, QWORD PTR APPS_CONFIG_BASE[rip]
	mov	rbx, rax
	call	HWREG@PLT
.L5:
	test	rax, rbx
	je	.L3
	or	r12, QWORD PTR SPI_INT_DMATX[rip]
.L3:
	shr	rbx
	test	rbx, rax
	je	.L1
	or	r12, QWORD PTR SPI_INT_DMARX[rip]
.L1:
	mov	rax, r12
	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
.L14:
	.cfi_restore_state
	add	rdi, QWORD PTR MCSPI_O_IRQENABLE[rip]
	call	HWREG@PLT
	mov	rdi, rbp
	and	r12, rax
	call	SPIDmaMaskGet@PLT
	mov	rdi, QWORD PTR APPS_CONFIG_O_DMA_DONE_INT_STS_MASKED[rip]
	add	rdi, QWORD PTR APPS_CONFIG_BASE[rip]
	mov	rbx, rax
	call	HWREG@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	SPIIntStatus, .-SPIIntStatus
	.comm	SPI_INT_DMATX,8,8
	.comm	SPI_INT_DMARX,8,8
	.comm	MCSPI_O_IRQSTATUS,8,8
	.comm	MCSPI_O_IRQENABLE,8,8
	.comm	APPS_CONFIG_O_DMA_DONE_INT_STS_RAW,8,8
	.comm	APPS_CONFIG_O_DMA_DONE_INT_STS_MASKED,8,8
	.comm	APPS_CONFIG_BASE,8,8
	.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.c_SPIIntStatus.c"
	.text
	.align	2
	.global	SPIIntStatus
	.syntax unified
	.arm
	.fpu softvfp
	.type	SPIIntStatus, %function
SPIIntStatus:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L16
	mov	r6, r1
	ldr	r0, [r3]
	add	r0, r5, r0
	bl	HWREG
	ldr	r3, .L16+4
	cmp	r6, #0
	and	r4, r0, r3
	bne	.L15
	mov	r0, r5
	bl	SPIDmaMaskGet
	ldr	r2, .L16+8
	ldr	r3, .L16+12
.L13:
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r5, r0
	add	r0, r2, r3
	bl	HWREG
	tst	r0, r5
	ldrne	r3, .L16+16
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	ands	r3, r0, r5, lsr #1
	ldrne	r3, .L16+20
	ldrne	r3, [r3]
	orrne	r4, r4, r3
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	add	r0, r5, r0
	bl	HWREG
	mov	r3, r0
	mov	r0, r5
	and	r4, r4, r3
	bl	SPIDmaMaskGet
	ldr	r2, .L16+8
	ldr	r3, .L16+28
	b	.L13
.L17:
	.align	2
.L16:
	.word	MCSPI_O_IRQSTATUS
	.word	196623
	.word	APPS_CONFIG_BASE
	.word	APPS_CONFIG_O_DMA_DONE_INT_STS_RAW
	.word	SPI_INT_DMATX
	.word	SPI_INT_DMARX
	.word	MCSPI_O_IRQENABLE
	.word	APPS_CONFIG_O_DMA_DONE_INT_STS_MASKED
	.size	SPIIntStatus, .-SPIIntStatus
	.comm	SPI_INT_DMATX,4,4
	.comm	SPI_INT_DMARX,4,4
	.comm	MCSPI_O_IRQSTATUS,4,4
	.comm	MCSPI_O_IRQENABLE,4,4
	.comm	APPS_CONFIG_O_DMA_DONE_INT_STS_RAW,4,4
	.comm	APPS_CONFIG_O_DMA_DONE_INT_STS_MASKED,4,4
	.comm	APPS_CONFIG_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
