	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_corerev_fifofixup
_brcms_b_corerev_fifofixup:             ## @brcms_b_corerev_fifofixup
	.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
	subq	$24, %rsp
	.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_1
## %bb.2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_TXFIFO_START_BLK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rcx), %rax
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%r15,8), %rax
	movzbl	-56(%rbp), %edx                 ## 1-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	decq	%rbx
	movzbl	%bl, %r12d
	movq	_TXFIFO_FIFOTOP_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shlq	%cl, %r12
	orq	%rdx, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	$8, %eax
	andl	$1, %eax
	shrl	$8, %ebx
	andl	$1, %ebx
	shlq	%cl, %rbx
	movq	_TXFIFOCMD_FIFOSEL_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movq	%r15, %r13
	shlq	%cl, %r13
	orq	%rax, %rbx
	movq	_TXFIFOCMD_RESET_MASK@GOTPCREL(%rip), %rax
	orq	(%rax), %r13
	movq	_xmtfifocmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_bcma_write16
	movq	_xmtfifodef@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_bcma_write16
	movq	_xmtfifodef1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_bcma_write16
	movq	_xmtfifocmd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_bcma_write16
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_NFIFO@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	(%rax,%r15,8), %rdx
	incq	%r15
	cmpq	(%rcx), %r15
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_4:
	movq	_M_FIFOSIZE0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_AC_BE_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_brcms_b_write_shm
	movq	_M_FIFOSIZE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_TX_AC_VI_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %edx
	movq	%rbx, %rdi
	callq	_brcms_b_write_shm
	movq	_M_FIFOSIZE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_TX_AC_VO_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %edx
	shll	$8, %edx
	movq	_TX_AC_BK_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rax,%rcx,8), %edx
	movq	%rbx, %rdi
	callq	_brcms_b_write_shm
	movq	_M_FIFOSIZE3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	_TX_ATIM_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,8), %edx
	shll	$8, %edx
	movq	_TX_BCMC_FIFO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%rax,%rcx,8), %edx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcms_b_write_shm              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXFIFO_START_BLK,8,3           ## @TXFIFO_START_BLK
	.comm	_NFIFO,8,3                      ## @NFIFO
	.comm	_TXFIFO_FIFOTOP_SHIFT,8,3       ## @TXFIFO_FIFOTOP_SHIFT
	.comm	_TXFIFOCMD_RESET_MASK,8,3       ## @TXFIFOCMD_RESET_MASK
	.comm	_TXFIFOCMD_FIFOSEL_SHIFT,8,3    ## @TXFIFOCMD_FIFOSEL_SHIFT
	.comm	_xmtfifocmd,4,2                 ## @xmtfifocmd
	.comm	_xmtfifodef,4,2                 ## @xmtfifodef
	.comm	_xmtfifodef1,4,2                ## @xmtfifodef1
	.comm	_M_FIFOSIZE0,4,2                ## @M_FIFOSIZE0
	.comm	_TX_AC_BE_FIFO,8,3              ## @TX_AC_BE_FIFO
	.comm	_M_FIFOSIZE1,4,2                ## @M_FIFOSIZE1
	.comm	_TX_AC_VI_FIFO,8,3              ## @TX_AC_VI_FIFO
	.comm	_M_FIFOSIZE2,4,2                ## @M_FIFOSIZE2
	.comm	_TX_AC_VO_FIFO,8,3              ## @TX_AC_VO_FIFO
	.comm	_TX_AC_BK_FIFO,8,3              ## @TX_AC_BK_FIFO
	.comm	_M_FIFOSIZE3,4,2                ## @M_FIFOSIZE3
	.comm	_TX_ATIM_FIFO,8,3               ## @TX_ATIM_FIFO
	.comm	_TX_BCMC_FIFO,8,3               ## @TX_BCMC_FIFO
	.no_dead_strip	_brcms_b_corerev_fifofixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_corerev_fifofixup
_brcms_b_corerev_fifofixup:             ; @brcms_b_corerev_fifofixup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _NFIFO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NFIFO@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x25, #0
Lloh2:
	adrp	x8, _TXFIFO_START_BLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TXFIFO_START_BLK@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x8]
	ldp	x8, x20, [x19]
Lloh5:
	adrp	x27, _xmtfifocmd@GOTPAGE
Lloh6:
	ldr	x27, [x27, _xmtfifocmd@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x28, x25, #3
	ldr	x8, [x8, x28]
	and	x9, x26, #0xff
	add	x8, x26, x8
	sub	x8, x8, #1
	and	x10, x8, #0xff
Lloh7:
	adrp	x11, _TXFIFO_FIFOTOP_SHIFT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _TXFIFO_FIFOTOP_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	lsl	x10, x10, x11
	orr	x21, x10, x9
	ubfx	x9, x26, #8, #1
	ubfx	x8, x8, #8, #1
	lsl	x8, x8, x11
	orr	x22, x8, x9
Lloh10:
	adrp	x8, _TXFIFOCMD_RESET_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TXFIFOCMD_RESET_MASK@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _TXFIFOCMD_FIFOSEL_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TXFIFOCMD_FIFOSEL_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	lsl	x9, x25, x9
	orr	x23, x9, x8
	ldr	w0, [x27]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_bcma_write16
Lloh16:
	adrp	x8, _xmtfifodef@GOTPAGE
Lloh17:
	ldr	x8, [x8, _xmtfifodef@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_bcma_write16
Lloh19:
	adrp	x8, _xmtfifodef1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _xmtfifodef1@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_bcma_write16
	ldr	w0, [x27]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_bcma_write16
	ldr	x8, [x19]
	ldr	x9, [x8, x28]
	add	x26, x9, x26
	add	x25, x25, #1
	ldr	x9, [x24]
	cmp	x25, x9
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
LBB0_4:
Lloh22:
	adrp	x9, _M_FIFOSIZE0@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M_FIFOSIZE0@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
Lloh25:
	adrp	x9, _TX_AC_BE_FIFO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TX_AC_BE_FIFO@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ldr	x2, [x8, x9, lsl #3]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_brcms_b_write_shm
Lloh28:
	adrp	x8, _M_FIFOSIZE1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _M_FIFOSIZE1@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _TX_AC_VI_FIFO@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TX_AC_VI_FIFO@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	ldr	x2, [x8, x9, lsl #3]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_brcms_b_write_shm
Lloh34:
	adrp	x8, _M_FIFOSIZE2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _M_FIFOSIZE2@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	x8, [x19]
Lloh37:
	adrp	x9, _TX_AC_VO_FIFO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TX_AC_VO_FIFO@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh40:
	adrp	x10, _TX_AC_BK_FIFO@GOTPAGE
Lloh41:
	ldr	x10, [x10, _TX_AC_BK_FIFO@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	bl	_brcms_b_write_shm
Lloh43:
	adrp	x8, _M_FIFOSIZE3@GOTPAGE
Lloh44:
	ldr	x8, [x8, _M_FIFOSIZE3@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	x8, [x19]
Lloh46:
	adrp	x9, _TX_ATIM_FIFO@GOTPAGE
Lloh47:
	ldr	x9, [x9, _TX_ATIM_FIFO@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
Lloh49:
	adrp	x10, _TX_BCMC_FIFO@GOTPAGE
Lloh50:
	ldr	x10, [x10, _TX_BCMC_FIFO@GOTPAGEOFF]
Lloh51:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	orr	w2, w8, w9, lsl #8
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_brcms_b_write_shm
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TXFIFO_START_BLK,8,3           ; @TXFIFO_START_BLK
	.comm	_NFIFO,8,3                      ; @NFIFO
	.comm	_TXFIFO_FIFOTOP_SHIFT,8,3       ; @TXFIFO_FIFOTOP_SHIFT
	.comm	_TXFIFOCMD_RESET_MASK,8,3       ; @TXFIFOCMD_RESET_MASK
	.comm	_TXFIFOCMD_FIFOSEL_SHIFT,8,3    ; @TXFIFOCMD_FIFOSEL_SHIFT
	.comm	_xmtfifocmd,4,2                 ; @xmtfifocmd
	.comm	_xmtfifodef,4,2                 ; @xmtfifodef
	.comm	_xmtfifodef1,4,2                ; @xmtfifodef1
	.comm	_M_FIFOSIZE0,4,2                ; @M_FIFOSIZE0
	.comm	_TX_AC_BE_FIFO,8,3              ; @TX_AC_BE_FIFO
	.comm	_M_FIFOSIZE1,4,2                ; @M_FIFOSIZE1
	.comm	_TX_AC_VI_FIFO,8,3              ; @TX_AC_VI_FIFO
	.comm	_M_FIFOSIZE2,4,2                ; @M_FIFOSIZE2
	.comm	_TX_AC_VO_FIFO,8,3              ; @TX_AC_VO_FIFO
	.comm	_TX_AC_BK_FIFO,8,3              ; @TX_AC_BK_FIFO
	.comm	_M_FIFOSIZE3,4,2                ; @M_FIFOSIZE3
	.comm	_TX_ATIM_FIFO,8,3               ; @TX_ATIM_FIFO
	.comm	_TX_BCMC_FIFO,8,3               ; @TX_BCMC_FIFO
	.no_dead_strip	_brcms_b_corerev_fifofixup
.subsections_via_symbols
