	.file	"extr_cassini.c_cas_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cas_interrupt, @function
cas_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR REG_INTR_STATUS[rip]
	add	rdi, QWORD PTR 8[rax]
	mov	rbp, rax
	call	readl@PLT
	test	eax, eax
	jne	.L2
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_NONE[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR INTR_TX_ALL[rip]
	or	eax, DWORD PTR INTR_TX_INTME[rip]
	test	eax, r12d
	jne	.L17
	test	DWORD PTR INTR_RX_DONE[rip], r12d
	je	.L8
.L7:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	cas_rx_ringN@PLT
	mov	eax, DWORD PTR INTR_RX_DONE[rip]
	not	eax
	and	r12d, eax
.L5:
	test	r12d, r12d
	jne	.L8
.L6:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r13
	call	cas_handle_irq@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r13
	call	cas_tx@PLT
	mov	eax, DWORD PTR INTR_TX_ALL[rip]
	or	eax, DWORD PTR INTR_TX_INTME[rip]
	not	eax
	and	r12d, eax
	test	DWORD PTR INTR_RX_DONE[rip], r12d
	je	.L5
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	cas_interrupt, .-cas_interrupt
	.comm	REG_INTR_STATUS,8,8
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	INTR_TX_INTME,4,4
	.comm	INTR_TX_ALL,4,4
	.comm	INTR_RX_DONE,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_cassini.c_cas_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cas_interrupt, %function
cas_interrupt:
	@ 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	r6, r1
	bl	netdev_priv
	ldr	r3, .L18
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r0, #8]
	add	r0, r0, r3
	bl	readl
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L18+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r9, .L18+8
	ldr	r8, .L18+12
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, [r9]
	ldr	r2, [r8]
	orr	r3, r3, r2
	tst	r3, r4
	bne	.L17
	ldr	r7, .L18+16
	ldr	r3, [r7]
	tst	r4, r3
	beq	.L8
.L7:
	mov	r2, #0
	mov	r0, r5
	mov	r1, r2
	bl	cas_rx_ringN
	ldr	r3, [r7]
	bic	r4, r4, r3
.L5:
	cmp	r4, #0
	bne	.L8
.L6:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L18+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r2, r4
	mov	r0, r6
	mov	r1, r5
	bl	cas_handle_irq
	b	.L6
.L17:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	cas_tx
	ldr	r7, .L18+16
	ldr	r3, [r9]
	ldr	r1, [r8]
	ldr	r2, [r7]
	orr	r3, r3, r1
	bic	r4, r4, r3
	tst	r4, r2
	beq	.L5
	b	.L7
.L19:
	.align	2
.L18:
	.word	REG_INTR_STATUS
	.word	IRQ_NONE
	.word	INTR_TX_ALL
	.word	INTR_TX_INTME
	.word	INTR_RX_DONE
	.word	IRQ_HANDLED
	.size	cas_interrupt, .-cas_interrupt
	.comm	REG_INTR_STATUS,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	INTR_TX_INTME,4,4
	.comm	INTR_TX_ALL,4,4
	.comm	INTR_RX_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
