	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fst_recover_rx_error
_fst_recover_rx_error:                  ## @fst_recover_rx_error
	.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
	movl	%ecx, %ebx
	movslq	(%rsi), %r12
	movq	_DMA_OWN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RX_STP@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	orb	%al, %cl
	xorl	%r15d, %r15d
	testb	%dl, %cl
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	jmp	LBB0_6
LBB0_2:
	movl	$1, %ecx
	movq	%rdi, %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r15d
	leal	-1(%r15), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_rxDescrRing@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movslq	%ebx, %rbx
	movl	(%rcx,%rbx,4), %esi
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_FST_WRB
	incl	%ebx
	movq	_NUM_RX_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	cmpl	%ecx, -44(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_rxDescrRing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_FST_RDB
                                        ## kill: def $al killed $al def $eax
	movq	_DBG_ASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%al, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dbg
	movq	_DMA_OWN@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movzbl	(%r13), %edx
	orb	%al, %dl
	leal	1(%r15), %ecx
	testb	%bl, %dl
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movq	_DBG_ASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dbg
LBB0_6:
	movq	_DBG_ASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dbg
	movq	_DMA_OWN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testb	%al, -48(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	movq	_rxDescrRing@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movslq	%ebx, %rbx
	movl	(%rcx,%rbx,4), %esi
	movzbl	%al, %edx
	movq	%r14, %rdi
	callq	_FST_WRB
	incl	%ebx
	movq	_NUM_RX_BUFFER@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %ebx
LBB0_8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 4(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_OWN,1,0                    ## @DMA_OWN
	.comm	_RX_STP,1,0                     ## @RX_STP
	.comm	_rxDescrRing,8,3                ## @rxDescrRing
	.comm	_NUM_RX_BUFFER,4,2              ## @NUM_RX_BUFFER
	.comm	_DBG_ASS,4,2                    ## @DBG_ASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intr_rx: Discarding more bufs than we have\n"

L_.str.1:                               ## @.str.1
	.asciz	"DMA Bits of next buffer was %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"There were %d subsequent buffers in error\n"

	.no_dead_strip	_fst_recover_rx_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fst_recover_rx_error
_fst_recover_rx_error:                  ; @fst_recover_rx_error
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldrsw	x24, [x1]
Lloh0:
	adrp	x8, _DMA_OWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_OWN@GOTPAGEOFF]
Lloh2:
	adrp	x27, _RX_STP@GOTPAGE
Lloh3:
	ldr	x27, [x27, _RX_STP@GOTPAGEOFF]
	ldrb	w2, [x8]
	ldrb	w8, [x27]
	orr	w8, w8, w2
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_9
LBB0_2:
Lloh4:
	adrp	x28, _rxDescrRing@GOTPAGE
Lloh5:
	ldr	x28, [x28, _rxDescrRing@GOTPAGEOFF]
	ldr	x8, [x28]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w1, [x8, w20, sxtw #2]
	mov	x0, x21
	bl	_FST_WRB
	add	w8, w20, #1
Lloh6:
	adrp	x26, _NUM_RX_BUFFER@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NUM_RX_BUFFER@GOTPAGEOFF]
	ldr	w9, [x26]
	sdiv	w10, w8, w9
	msub	w20, w10, w9, w8
	cmp	w9, #1
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_6
; %bb.3:
	mov	w19, #1
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w1, [x8, w20, sxtw #2]
	mov	x0, x21
	bl	_FST_RDB
	mov	x22, x0
Lloh10:
	adrp	x8, _DBG_ASS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBG_ASS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w8, w22
	str	x8, [sp]
	mov	x1, x23
	bl	_dbg
Lloh13:
	adrp	x8, _DMA_OWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMA_OWN@GOTPAGEOFF]
	ldrb	w2, [x8]
	ldrb	w8, [x27]
	orr	w8, w8, w2
	tst	w8, w22
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w20
	ldr	x9, [x28]
	ldr	x9, [x9, x24, lsl #3]
	ldr	w1, [x9, x8, lsl #2]
	mov	x0, x21
	bl	_FST_WRB
	add	w8, w20, #1
	ldr	w9, [x26]
	sdiv	w10, w8, w9
	msub	w20, w10, w9, w8
	add	w25, w19, #1
	cmp	w19, w9
	mov	x19, x25
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w25, #1
LBB0_7:
Lloh15:
	adrp	x8, _DBG_ASS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBG_ASS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dbg
	mov	x19, x25
LBB0_8:
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
LBB0_9:
Lloh20:
	adrp	x8, _DBG_ASS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DBG_ASS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dbg
Lloh25:
	adrp	x8, _DMA_OWN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DMA_OWN@GOTPAGEOFF]
	ldrb	w2, [x8]
	tst	w2, w22
	b.ne	LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, _rxDescrRing@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rxDescrRing@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w1, [x8, w20, sxtw #2]
	mov	x0, x21
	bl	_FST_WRB
	add	w8, w20, #1
Lloh30:
	adrp	x9, _NUM_RX_BUFFER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NUM_RX_BUFFER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w20, w10, w9, w8
LBB0_11:
	str	w20, [x23, #4]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_OWN,1,0                    ; @DMA_OWN
	.comm	_RX_STP,1,0                     ; @RX_STP
	.comm	_rxDescrRing,8,3                ; @rxDescrRing
	.comm	_NUM_RX_BUFFER,4,2              ; @NUM_RX_BUFFER
	.comm	_DBG_ASS,4,2                    ; @DBG_ASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intr_rx: Discarding more bufs than we have\n"

l_.str.1:                               ; @.str.1
	.asciz	"DMA Bits of next buffer was %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"There were %d subsequent buffers in error\n"

	.no_dead_strip	_fst_recover_rx_error
.subsections_via_symbols
