	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bcm_bsc_empty_rx_fifo
LCPI0_0:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bcm_bsc_empty_rx_fifo:                 ## @bcm_bsc_empty_rx_fifo
	.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, %rbx
	movq	8(%rdi), %rcx
	movq	_BCM_BSC_DATA@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r14
	movq	_BCM_BSC_STATUS@GOTPCREL(%rip), %r12
	movq	_BCM_BSC_STATUS_RXD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	%rcx, 8(%rbx)
	addq	$16, %rax
	movq	%rax, 32(%rbx)
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_BCM_BSC_READ
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_DEBUGF
	addq	$8, 24(%rbx)
	movdqu	(%rbx), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_BCM_BSC_READ
	movq	8(%rbx), %rcx
	andl	(%r13), %eax
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	testl	%eax, %eax
	jne	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_BSC_DATA,4,2               ## @BCM_BSC_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%02x "

	.comm	_BCM_BSC_STATUS,4,2             ## @BCM_BSC_STATUS
	.comm	_BCM_BSC_STATUS_RXD,4,2         ## @BCM_BSC_STATUS_RXD
	.no_dead_strip	_bcm_bsc_empty_rx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_bsc_empty_rx_fifo
_bcm_bsc_empty_rx_fifo:                 ; @bcm_bsc_empty_rx_fifo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _BCM_BSC_DATA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BCM_BSC_DATA@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	ldr	x8, [x0, #8]
Lloh4:
	adrp	x22, _BCM_BSC_STATUS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _BCM_BSC_STATUS@GOTPAGEOFF]
Lloh6:
	adrp	x23, _BCM_BSC_STATUS_RXD@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BCM_BSC_STATUS_RXD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	cbnz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #32]
	ldp	x10, x9, [x8], #16
	stp	x10, x10, [x19, #8]
	stp	x9, x8, [x19, #24]
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x21]
	mov	x0, x19
	bl	_BCM_BSC_READ
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #24]
	ldr	x3, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_DEBUGF
	ldr	x8, [x19, #24]
	add	x8, x8, #8
	str	x8, [x19, #24]
	ldr	q0, [x19]
	movi.2d	v1, #0xffffffffffffffff
	add.2d	v0, v0, v1
	str	q0, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_BCM_BSC_READ
	ldr	x8, [x19, #8]
	ldr	w9, [x23]
	and	w9, w9, w0
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	cbnz	w9, LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x19]
	cmp	x10, #1
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w9, LBB0_1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_BSC_DATA,4,2               ; @BCM_BSC_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%02x "

	.comm	_BCM_BSC_STATUS,4,2             ; @BCM_BSC_STATUS
	.comm	_BCM_BSC_STATUS_RXD,4,2         ; @BCM_BSC_STATUS_RXD
	.no_dead_strip	_bcm_bsc_empty_rx_fifo
.subsections_via_symbols
