	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_fifoerrors
_brcms_b_fifoerrors:                    ## @brcms_b_fifoerrors
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_NFIFO@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	16(%rax), %r12
	xorl	%ebx, %ebx
	movq	_intctrlregs@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_intctrlregs@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_D11REGOFFS
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_bcma_write32
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_NFIFO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_D11REGOFFS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	%rax, %r14
	movq	_I_ERRORS@GOTPCREL(%rip), %rax
	andq	(%rax), %r14
	je	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_brcms_dbg_int
	movq	_I_RO@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_brcms_err
	movl	$1, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_I_PC@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_brcms_err
	movl	$1, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_I_PD@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_brcms_err
	movl	$1, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I_DE@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_brcms_err
	movl	$1, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I_RU@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_brcms_err
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_I_XU@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	jne	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_18
	jmp	LBB0_16
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_brcms_err
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_fatal_error              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFIFO,8,3                      ## @NFIFO
	.comm	_intctrlregs,8,3                ## @intctrlregs
	.comm	_I_ERRORS,8,3                   ## @I_ERRORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wl%d: intstatus%d 0x%x\n"

	.comm	_I_RO,8,3                       ## @I_RO
L_.str.1:                               ## @.str.1
	.asciz	"wl%d: fifo %d: receive fifo overflow\n"

	.comm	_I_PC,8,3                       ## @I_PC
L_.str.2:                               ## @.str.2
	.asciz	"wl%d: fifo %d: descriptor error\n"

	.comm	_I_PD,8,3                       ## @I_PD
L_.str.3:                               ## @.str.3
	.asciz	"wl%d: fifo %d: data error\n"

	.comm	_I_DE,8,3                       ## @I_DE
L_.str.4:                               ## @.str.4
	.asciz	"wl%d: fifo %d: descriptor protocol error\n"

	.comm	_I_RU,8,3                       ## @I_RU
L_.str.5:                               ## @.str.5
	.asciz	"wl%d: fifo %d: receive descriptor underflow\n"

	.comm	_I_XU,8,3                       ## @I_XU
L_.str.6:                               ## @.str.6
	.asciz	"wl%d: fifo %d: transmit fifo underflow\n"

	.no_dead_strip	_brcms_b_fifoerrors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_fifoerrors
_brcms_b_fifoerrors:                    ; @brcms_b_fifoerrors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x25, _NFIFO@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NFIFO@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_18
; %bb.1:
	mov	x20, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x22, [x8, #16]
	ldr	x21, [x8]
Lloh2:
	adrp	x26, _intctrlregs@GOTPAGE
Lloh3:
	ldr	x26, [x26, _intctrlregs@GOTPAGEOFF]
Lloh4:
	adrp	x27, _I_ERRORS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _I_ERRORS@GOTPAGEOFF]
Lloh6:
	adrp	x19, _I_RU@GOTPAGE
Lloh7:
	ldr	x19, [x19, _I_RU@GOTPAGEOFF]
Lloh8:
	adrp	x23, _I_XU@GOTPAGE
Lloh9:
	ldr	x23, [x23, _I_XU@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	w0, [x8, x20, lsl #2]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x22
	mov	x2, x24
	bl	_bcma_write32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	x8, [x25]
	cmp	x20, x8
	b.hs	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w0, [x8, x20, lsl #2]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x22
	bl	_bcma_read32
	ldr	x8, [x27]
	ands	x24, x8, x0
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x24
	bl	_brcms_dbg_int
Lloh12:
	adrp	x8, _I_RO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I_RO@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_brcms_err
	mov	w28, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _I_PC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I_PC@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_brcms_err
	mov	w28, #1
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _I_PD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I_PD@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_brcms_err
	mov	w28, #1
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh27:
	adrp	x8, _I_DE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I_DE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	tst	x8, x24
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_brcms_err
	mov	w28, #1
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	tst	x8, x24
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_brcms_err
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	tst	x8, x24
	b.ne	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w28, LBB0_2
	b	LBB0_20
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_brcms_err
LBB0_20:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_brcms_fatal_error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_NFIFO,8,3                      ; @NFIFO
	.comm	_intctrlregs,8,3                ; @intctrlregs
	.comm	_I_ERRORS,8,3                   ; @I_ERRORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wl%d: intstatus%d 0x%x\n"

	.comm	_I_RO,8,3                       ; @I_RO
l_.str.1:                               ; @.str.1
	.asciz	"wl%d: fifo %d: receive fifo overflow\n"

	.comm	_I_PC,8,3                       ; @I_PC
l_.str.2:                               ; @.str.2
	.asciz	"wl%d: fifo %d: descriptor error\n"

	.comm	_I_PD,8,3                       ; @I_PD
l_.str.3:                               ; @.str.3
	.asciz	"wl%d: fifo %d: data error\n"

	.comm	_I_DE,8,3                       ; @I_DE
l_.str.4:                               ; @.str.4
	.asciz	"wl%d: fifo %d: descriptor protocol error\n"

	.comm	_I_RU,8,3                       ; @I_RU
l_.str.5:                               ; @.str.5
	.asciz	"wl%d: fifo %d: receive descriptor underflow\n"

	.comm	_I_XU,8,3                       ; @I_XU
l_.str.6:                               ; @.str.6
	.asciz	"wl%d: fifo %d: transmit fifo underflow\n"

	.no_dead_strip	_brcms_b_fifoerrors
.subsections_via_symbols
