	.file	"extr_main.c_brcms_b_fifoerrors.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wl%d: intstatus%d 0x%x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"wl%d: fifo %d: receive fifo overflow\n"
	.align 8
.LC2:
	.string	"wl%d: fifo %d: descriptor error\n"
	.section	.rodata.str1.1
.LC3:
	.string	"wl%d: fifo %d: data error\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"wl%d: fifo %d: descriptor protocol error\n"
	.align 8
.LC5:
	.string	"wl%d: fifo %d: receive descriptor underflow\n"
	.align 8
.LC6:
	.string	"wl%d: fifo %d: transmit fifo underflow\n"
	.text
	.p2align 4
	.type	brcms_b_fifoerrors, @function
brcms_b_fifoerrors:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR NFIFO[rip], 0
	mov	rbp, QWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], rdi
	mov	r13, QWORD PTR [rdi]
	je	.L1
	xor	r15d, r15d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L3:
	add	r15, 1
	cmp	QWORD PTR NFIFO[rip], r15
	jbe	.L1
.L12:
	mov	rax, QWORD PTR intctrlregs[rip]
	lea	rbx, 0[0+r15*4]
	mov	edi, DWORD PTR [rax+r15*4]
	call	D11REGOFFS@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	bcma_read32@PLT
	and	rax, QWORD PTR I_ERRORS[rip]
	mov	r12, rax
	je	.L3
	mov	r8, rax
	mov	rcx, r15
	mov	rdx, r13
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	xor	r14d, r14d
	call	brcms_dbg_int@PLT
	test	QWORD PTR I_RO[rip], r12
	jne	.L33
	test	QWORD PTR I_PC[rip], r12
	jne	.L34
.L5:
	test	QWORD PTR I_PD[rip], r12
	jne	.L35
.L6:
	test	QWORD PTR I_DE[rip], r12
	jne	.L36
.L7:
	test	QWORD PTR I_RU[rip], r12
	jne	.L37
.L8:
	test	QWORD PTR I_XU[rip], r12
	jne	.L38
.L9:
	test	r14d, r14d
	jne	.L10
	mov	rax, QWORD PTR intctrlregs[rip]
	add	r15, 1
	mov	edi, DWORD PTR [rax+rbx]
	call	D11REGOFFS@PLT
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, eax
	call	bcma_write32@PLT
	cmp	QWORD PTR NFIFO[rip], r15
	ja	.L12
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L33:
	.cfi_restore_state
	mov	rcx, r15
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	brcms_err@PLT
	mov	r14d, 1
	test	QWORD PTR I_PC[rip], r12
	je	.L5
.L34:
	mov	rcx, r15
	mov	rdx, r13
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	brcms_err@PLT
	mov	r14d, 1
	test	QWORD PTR I_PD[rip], r12
	je	.L6
.L35:
	mov	rcx, r15
	mov	rdx, r13
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	brcms_err@PLT
	mov	r14d, 1
	test	QWORD PTR I_DE[rip], r12
	je	.L7
.L36:
	mov	rcx, r15
	mov	rdx, r13
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	brcms_err@PLT
	mov	r14d, 1
	test	QWORD PTR I_RU[rip], r12
	je	.L8
.L37:
	mov	rcx, r13
	mov	rdx, r15
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	brcms_err@PLT
	test	QWORD PTR I_XU[rip], r12
	je	.L9
.L38:
	mov	rcx, r13
	mov	rdx, r15
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	brcms_err@PLT
.L10:
	mov	rax, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	jmp	brcms_fatal_error@PLT
	.cfi_endproc
.LFE0:
	.size	brcms_b_fifoerrors, .-brcms_b_fifoerrors
	.comm	intctrlregs,8,8
	.comm	NFIFO,8,8
	.comm	I_XU,8,8
	.comm	I_RU,8,8
	.comm	I_RO,8,8
	.comm	I_PD,8,8
	.comm	I_PC,8,8
	.comm	I_ERRORS,8,8
	.comm	I_DE,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_main.c_brcms_b_fifoerrors.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wl%d: intstatus%d 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"wl%d: fifo %d: receive fifo overflow\012\000"
	.align	2
.LC2:
	.ascii	"wl%d: fifo %d: descriptor error\012\000"
	.align	2
.LC3:
	.ascii	"wl%d: fifo %d: data error\012\000"
	.align	2
.LC4:
	.ascii	"wl%d: fifo %d: descriptor protocol error\012\000"
	.align	2
.LC5:
	.ascii	"wl%d: fifo %d: receive descriptor underflow\012\000"
	.align	2
.LC6:
	.ascii	"wl%d: fifo %d: transmit fifo underflow\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcms_b_fifoerrors, %function
brcms_b_fifoerrors:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L41
	sub	sp, sp, #20
	ldr	r3, [r10]
	ldr	r7, [r0, #8]
	cmp	r3, #0
	ldr	r9, [r0]
	str	r0, [sp, #12]
	beq	.L1
	mov	r5, #0
	ldr	r8, .L41+4
	ldr	fp, .L41+8
	b	.L12
.L3:
	ldr	r3, [r10]
	add	r5, r5, #1
	cmp	r3, r5
	bls	.L1
.L12:
	ldr	r3, [r8]
	lsl	r2, r5, #2
	ldr	r0, [r3, r5, lsl #2]
	str	r2, [sp, #8]
	bl	D11REGOFFS
	mov	r1, r0
	mov	r0, r7
	bl	bcma_read32
	ldr	r3, [fp]
	ands	r4, r0, r3
	beq	.L3
	mov	r3, r5
	mov	r2, r9
	mov	r0, r7
	ldr	r1, .L41+12
	str	r4, [sp]
	bl	brcms_dbg_int
	ldr	r3, .L41+16
	ldr	r6, [r3]
	ands	r6, r4, r6
	bne	.L35
	ldr	r3, .L41+20
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L36
.L5:
	ldr	r3, .L41+24
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L37
.L6:
	ldr	r3, .L41+28
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L38
.L7:
	ldr	r3, .L41+32
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L39
.L8:
	ldr	r3, .L41+36
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L40
.L9:
	cmp	r6, #0
	bne	.L10
	ldr	r3, [r8]
	ldr	r2, [sp, #8]
	add	r5, r5, #1
	ldr	r0, [r3, r2]
	bl	D11REGOFFS
	mov	r2, r4
	mov	r1, r0
	mov	r0, r7
	bl	bcma_write32
	ldr	r3, [r10]
	cmp	r3, r5
	bhi	.L12
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	mov	r3, r5
	mov	r2, r9
	mov	r0, r7
	ldr	r1, .L41+40
	bl	brcms_err
	ldr	r3, .L41+20
	mov	r6, #1
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L5
.L36:
	mov	r3, r5
	mov	r2, r9
	mov	r0, r7
	ldr	r1, .L41+44
	bl	brcms_err
	ldr	r3, .L41+24
	mov	r6, #1
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L6
.L37:
	mov	r3, r5
	mov	r2, r9
	mov	r0, r7
	ldr	r1, .L41+48
	bl	brcms_err
	ldr	r3, .L41+28
	mov	r6, #1
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L7
.L38:
	mov	r3, r5
	mov	r2, r9
	mov	r0, r7
	ldr	r1, .L41+52
	bl	brcms_err
	ldr	r3, .L41+32
	mov	r6, #1
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L8
.L39:
	mov	r3, r9
	mov	r2, r5
	mov	r0, r7
	ldr	r1, .L41+56
	bl	brcms_err
	ldr	r3, .L41+36
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L9
.L40:
	mov	r3, r9
	mov	r2, r5
	mov	r0, r7
	ldr	r1, .L41+60
	bl	brcms_err
.L10:
	ldr	r3, [sp, #12]
	ldr	r3, [r3, #4]
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	brcms_fatal_error
.L42:
	.align	2
.L41:
	.word	NFIFO
	.word	intctrlregs
	.word	I_ERRORS
	.word	.LC0
	.word	I_RO
	.word	I_PC
	.word	I_PD
	.word	I_DE
	.word	I_RU
	.word	I_XU
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	brcms_b_fifoerrors, .-brcms_b_fifoerrors
	.comm	intctrlregs,4,4
	.comm	NFIFO,4,4
	.comm	I_XU,4,4
	.comm	I_RU,4,4
	.comm	I_RO,4,4
	.comm	I_PD,4,4
	.comm	I_PC,4,4
	.comm	I_ERRORS,4,4
	.comm	I_DE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
