	.file	"extr_if_bfe.c_bfe_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Descriptor Error\n"
.LC1:
	.string	"Descriptor Protocol Error\n"
	.text
	.p2align 4
	.type	bfe_intr, @function
bfe_intr:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	call	BFE_LOCK@PLT
	mov	esi, DWORD PTR BFE_ISTAT[rip]
	mov	rdi, rbp
	call	CSR_READ_4@PLT
	mov	esi, DWORD PTR BFE_ISTAT[rip]
	and	eax, DWORD PTR BFE_IMASK_DEF[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	ebx, eax
	call	CSR_WRITE_4@PLT
	mov	esi, DWORD PTR BFE_ISTAT[rip]
	mov	rdi, rbp
	call	CSR_READ_4@PLT
	test	ebx, ebx
	je	.L25
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	je	.L25
	test	DWORD PTR BFE_ISTAT_RX[rip], ebx
	jne	.L28
	test	DWORD PTR BFE_ISTAT_TX[rip], ebx
	jne	.L29
.L7:
	test	DWORD PTR BFE_ISTAT_ERRORS[rip], ebx
	je	.L8
.L32:
	lea	rsi, .LC0[rip]
	test	DWORD PTR BFE_ISTAT_DSCE[rip], ebx
	jne	.L26
	test	DWORD PTR BFE_ISTAT_DPE[rip], ebx
	jne	.L30
	mov	eax, DWORD PTR IFF_DRV_RUNNING[rip]
	mov	rdi, rbp
	not	eax
	and	DWORD PTR [r12], eax
	call	bfe_init_locked@PLT
.L8:
	lea	rdi, 4[r12]
	call	IFQ_DRV_IS_EMPTY@PLT
	test	eax, eax
	je	.L31
.L25:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BFE_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	rdi, rbp
	call	bfe_rxeof@PLT
	test	DWORD PTR BFE_ISTAT_TX[rip], ebx
	je	.L7
.L29:
	mov	rdi, rbp
	call	bfe_txeof@PLT
	test	DWORD PTR BFE_ISTAT_ERRORS[rip], ebx
	jne	.L32
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r12
	call	bfe_start_locked@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BFE_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
.L26:
	mov	edi, DWORD PTR 0[rbp]
	call	device_printf@PLT
	mov	rdi, rbp
	call	bfe_stop@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	BFE_UNLOCK@PLT
	.cfi_endproc
.LFE0:
	.size	bfe_intr, .-bfe_intr
	.comm	IFF_DRV_RUNNING,4,4
	.comm	BFE_ISTAT_TX,4,4
	.comm	BFE_ISTAT_RX,4,4
	.comm	BFE_ISTAT_ERRORS,4,4
	.comm	BFE_ISTAT_DSCE,4,4
	.comm	BFE_ISTAT_DPE,4,4
	.comm	BFE_ISTAT,4,4
	.comm	BFE_IMASK_DEF,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_bfe.c_bfe_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Descriptor Error\012\000"
	.align	2
.LC1:
	.ascii	"Descriptor Protocol Error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfe_intr, %function
bfe_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r6, .L33
	ldr	r7, [r0, #4]
	bl	BFE_LOCK
	ldr	r1, [r6]
	mov	r0, r4
	bl	CSR_READ_4
	mov	r5, r0
	ldr	r3, .L33+4
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r4
	and	r5, r5, r2
	mov	r2, r5
	bl	CSR_WRITE_4
	mov	r0, r4
	ldr	r1, [r6]
	bl	CSR_READ_4
	cmp	r5, #0
	beq	.L25
	ldr	r6, .L33+8
	ldr	r2, [r7]
	ldr	r3, [r6]
	tst	r2, r3
	beq	.L25
	ldr	r3, .L33+12
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L28
	ldr	r3, .L33+16
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L29
.L7:
	ldr	r3, .L33+20
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L8
.L32:
	ldr	r3, .L33+24
	ldr	r3, [r3]
	tst	r5, r3
	ldrne	r1, .L33+28
	bne	.L26
	ldr	r3, .L33+32
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L30
	ldr	r2, [r6]
	ldr	r3, [r7]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r7]
	bl	bfe_init_locked
.L8:
	add	r0, r7, #4
	bl	IFQ_DRV_IS_EMPTY
	cmp	r0, #0
	beq	.L31
.L25:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	BFE_UNLOCK
.L28:
	mov	r0, r4
	bl	bfe_rxeof
	ldr	r3, .L33+16
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L7
.L29:
	mov	r0, r4
	bl	bfe_txeof
	ldr	r3, .L33+20
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L32
	b	.L8
.L31:
	mov	r0, r7
	bl	bfe_start_locked
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	BFE_UNLOCK
.L30:
	ldr	r1, .L33+36
.L26:
	ldr	r0, [r4]
	bl	device_printf
	mov	r0, r4
	bl	bfe_stop
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	BFE_UNLOCK
.L34:
	.align	2
.L33:
	.word	BFE_ISTAT
	.word	BFE_IMASK_DEF
	.word	IFF_DRV_RUNNING
	.word	BFE_ISTAT_RX
	.word	BFE_ISTAT_TX
	.word	BFE_ISTAT_ERRORS
	.word	BFE_ISTAT_DSCE
	.word	.LC0
	.word	BFE_ISTAT_DPE
	.word	.LC1
	.size	bfe_intr, .-bfe_intr
	.comm	IFF_DRV_RUNNING,4,4
	.comm	BFE_ISTAT_TX,4,4
	.comm	BFE_ISTAT_RX,4,4
	.comm	BFE_ISTAT_ERRORS,4,4
	.comm	BFE_ISTAT_DSCE,4,4
	.comm	BFE_ISTAT_DPE,4,4
	.comm	BFE_ISTAT,4,4
	.comm	BFE_IMASK_DEF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
