	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfcpci_clear_fifo_rx
_hfcpci_clear_fifo_rx:                  ## @hfcpci_clear_fifo_rx
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	leaq	24(%rax), %r15
	testl	%esi, %esi
	cmoveq	%rax, %r15
	movq	_HFCPCI_FIFOEN_B2RX@GOTPCREL(%rip), %rax
	cmoveq	_HFCPCI_FIFOEN_B1RX@GOTPCREL(%rip), %rax
	movl	(%rdi), %edx
	movl	(%rax), %r12d
	andl	%edx, %r12d
	je	LBB0_2
## %bb.1:
	xorl	%r12d, %edx
	movl	%edx, (%rbx)
LBB0_2:
	movq	_HFCPCI_FIFO_EN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_Write_hfc
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_MAX_B_FRAMES@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, (%r15)
	movq	%rax, 8(%r15)
	movq	_B_FIFO_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_B_SUB_VAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	callq	_cpu_to_le16
	movq	16(%r15), %rcx
	movq	(%r14), %rdx
	shlq	$4, %rdx
	movq	%rax, (%rcx,%rdx)
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movq	(%r14), %rcx
	shlq	$4, %rcx
	movq	16(%r15), %rdx
	movq	%rax, 8(%rdx,%rcx)
	movl	(%rbx), %edx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	orl	%r12d, %edx
	movl	%edx, (%rbx)
LBB0_4:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Write_hfc                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HFCPCI_FIFOEN_B2RX,4,2         ## @HFCPCI_FIFOEN_B2RX
	.comm	_HFCPCI_FIFOEN_B1RX,4,2         ## @HFCPCI_FIFOEN_B1RX
	.comm	_HFCPCI_FIFO_EN,4,2             ## @HFCPCI_FIFO_EN
	.comm	_MAX_B_FRAMES,8,3               ## @MAX_B_FRAMES
	.comm	_B_FIFO_SIZE,8,3                ## @B_FIFO_SIZE
	.comm	_B_SUB_VAL,8,3                  ## @B_SUB_VAL
	.no_dead_strip	_hfcpci_clear_fifo_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfcpci_clear_fifo_rx
_hfcpci_clear_fifo_rx:                  ; @hfcpci_clear_fifo_rx
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	add	x9, x8, #24
	cmp	w1, #0
	csel	x21, x8, x9, eq
Lloh0:
	adrp	x8, _HFCPCI_FIFOEN_B1RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFCPCI_FIFOEN_B1RX@GOTPAGEOFF]
	ldr	w2, [x0]
Lloh2:
	adrp	x9, _HFCPCI_FIFOEN_B2RX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HFCPCI_FIFOEN_B2RX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ands	w22, w8, w2
	b.eq	LBB0_2
; %bb.1:
	eor	w2, w2, w22
	str	w2, [x19]
LBB0_2:
Lloh4:
	adrp	x23, _HFCPCI_FIFO_EN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HFCPCI_FIFO_EN@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_Write_hfc
	ldr	x8, [x19, #8]
	str	xzr, [x8, w20, sxtw #3]
Lloh6:
	adrp	x20, _MAX_B_FRAMES@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MAX_B_FRAMES@GOTPAGEOFF]
	ldr	x8, [x20]
	stp	x8, x8, [x21]
Lloh8:
	adrp	x8, _B_FIFO_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B_FIFO_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _B_SUB_VAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _B_SUB_VAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x8, x8, x9
	sub	x0, x8, #1
	bl	_cpu_to_le16
	ldr	x8, [x21, #16]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	str	x0, [x8, x9]
	bl	_le16_to_cpu
	bl	_cpu_to_le16
	ldr	x8, [x21, #16]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	str	x0, [x8, #8]
	ldr	w2, [x19]
	cbz	w22, LBB0_4
; %bb.3:
	orr	w2, w2, w22
	str	w2, [x19]
LBB0_4:
	ldr	w1, [x23]
	mov	x0, x19
	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
	b	_Write_hfc
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HFCPCI_FIFOEN_B2RX,4,2         ; @HFCPCI_FIFOEN_B2RX
	.comm	_HFCPCI_FIFOEN_B1RX,4,2         ; @HFCPCI_FIFOEN_B1RX
	.comm	_HFCPCI_FIFO_EN,4,2             ; @HFCPCI_FIFO_EN
	.comm	_MAX_B_FRAMES,8,3               ; @MAX_B_FRAMES
	.comm	_B_FIFO_SIZE,8,3                ; @B_FIFO_SIZE
	.comm	_B_SUB_VAL,8,3                  ; @B_SUB_VAL
	.no_dead_strip	_hfcpci_clear_fifo_rx
.subsections_via_symbols
