	.file	"extr_if_et.c_et_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DMA error(0x%08x) -- resetting\n"
	.text
	.p2align 4
	.type	et_intr, @function
et_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	ET_LOCK@PLT
	mov	r13, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	jne	.L26
.L3:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ET_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	esi, DWORD PTR ET_INTR_STATUS[rip]
	mov	rdi, rbp
	call	CSR_READ_4@PLT
	mov	r12d, eax
	test	DWORD PTR ET_INTRS[rip], eax
	je	.L3
	mov	esi, DWORD PTR ET_INTR_MASK[rip]
	mov	edx, -1
	mov	rdi, rbp
	call	CSR_WRITE_4@PLT
	mov	eax, DWORD PTR ET_INTR_RXDMA_ERROR[rip]
	or	eax, DWORD PTR ET_INTR_TXDMA_ERROR[rip]
	test	eax, r12d
	jne	.L27
	test	DWORD PTR ET_INTR_RXDMA[rip], r12d
	jne	.L28
.L6:
	mov	eax, DWORD PTR ET_INTR_TIMER[rip]
	mov	edx, DWORD PTR ET_INTR_TXDMA[rip]
	or	edx, eax
	test	edx, r12d
	jne	.L29
.L7:
	test	r12d, eax
	jne	.L30
.L8:
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	je	.L3
	mov	edx, DWORD PTR ET_INTRS[rip]
	mov	esi, DWORD PTR ET_INTR_MASK[rip]
	mov	rdi, rbp
	not	edx
	call	CSR_WRITE_4@PLT
	lea	rdi, 4[r13]
	call	IFQ_DRV_IS_EMPTY@PLT
	test	eax, eax
	jne	.L3
	mov	rdi, r13
	call	et_start_locked@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ET_TIMER[rip]
	mov	rdi, rbp
	call	CSR_WRITE_4@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, rbp
	call	et_txeof@PLT
	mov	eax, DWORD PTR ET_INTR_TIMER[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	et_rxeof@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR IFF_DRV_RUNNING[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR 0[r13], eax
	call	et_init_locked@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	et_intr, .-et_intr
	.comm	IFF_DRV_RUNNING,4,4
	.comm	ET_TIMER,4,4
	.comm	ET_INTR_TXDMA_ERROR,4,4
	.comm	ET_INTR_TXDMA,4,4
	.comm	ET_INTR_TIMER,4,4
	.comm	ET_INTR_STATUS,4,4
	.comm	ET_INTR_RXDMA_ERROR,4,4
	.comm	ET_INTR_RXDMA,4,4
	.comm	ET_INTR_MASK,4,4
	.comm	ET_INTRS,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_if_et.c_et_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA error(0x%08x) -- resetting\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	et_intr, %function
et_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r7, .L31
	bl	ET_LOCK
	ldr	r8, [r4, #8]
	ldr	r3, [r7]
	ldr	r2, [r8]
	tst	r2, r3
	bne	.L26
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ET_UNLOCK
.L26:
	ldr	r3, .L31+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	CSR_READ_4
	ldr	r6, .L31+8
	mov	r5, r0
	ldr	r3, [r6]
	tst	r0, r3
	beq	.L3
	ldr	r9, .L31+12
	mvn	r2, #0
	mov	r0, r4
	ldr	r1, [r9]
	bl	CSR_WRITE_4
	ldr	r3, .L31+16
	ldr	r2, .L31+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	tst	r3, r5
	bne	.L27
	ldr	r3, .L31+24
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L28
.L6:
	ldr	r10, .L31+28
	ldr	r3, .L31+32
	ldr	r2, [r10]
	ldr	r3, [r3]
	orr	r3, r2, r3
	tst	r3, r5
	bne	.L29
.L7:
	tst	r5, r2
	bne	.L30
.L8:
	ldr	r3, [r7]
	ldr	r2, [r8]
	tst	r2, r3
	beq	.L3
	ldr	r2, [r6]
	ldr	r1, [r9]
	mvn	r2, r2
	mov	r0, r4
	bl	CSR_WRITE_4
	add	r0, r8, #4
	bl	IFQ_DRV_IS_EMPTY
	cmp	r0, #0
	bne	.L3
	mov	r0, r8
	bl	et_start_locked
	b	.L3
.L30:
	ldr	r3, .L31+36
	mov	r0, r4
	ldr	r2, [r4]
	ldr	r1, [r3]
	bl	CSR_WRITE_4
	b	.L8
.L29:
	mov	r0, r4
	bl	et_txeof
	ldr	r2, [r10]
	b	.L7
.L28:
	mov	r0, r4
	bl	et_rxeof
	b	.L6
.L27:
	mov	r2, r5
	ldr	r1, .L31+40
	ldr	r0, [r4, #4]
	bl	device_printf
	ldr	r2, [r7]
	ldr	r3, [r8]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r8]
	bl	et_init_locked
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ET_UNLOCK
.L32:
	.align	2
.L31:
	.word	IFF_DRV_RUNNING
	.word	ET_INTR_STATUS
	.word	ET_INTRS
	.word	ET_INTR_MASK
	.word	ET_INTR_RXDMA_ERROR
	.word	ET_INTR_TXDMA_ERROR
	.word	ET_INTR_RXDMA
	.word	ET_INTR_TIMER
	.word	ET_INTR_TXDMA
	.word	ET_TIMER
	.word	.LC0
	.size	et_intr, .-et_intr
	.comm	IFF_DRV_RUNNING,4,4
	.comm	ET_TIMER,4,4
	.comm	ET_INTR_TXDMA_ERROR,4,4
	.comm	ET_INTR_TXDMA,4,4
	.comm	ET_INTR_TIMER,4,4
	.comm	ET_INTR_STATUS,4,4
	.comm	ET_INTR_RXDMA_ERROR,4,4
	.comm	ET_INTR_RXDMA,4,4
	.comm	ET_INTR_MASK,4,4
	.comm	ET_INTRS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
