	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_clean_rx_ring
_gfar_clean_rx_ring:                    ## @gfar_clean_rx_ring
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	56(%rdi), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r14
	movq	24(%r12), %r13
	movq	%r12, %rdi
	callq	_gfar_rxbd_unused
	movl	%eax, %ebx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r15d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_gfar_process_frame
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	40(%r12), %esi
	movq	%r13, %rdi
	callq	_skb_record_rx_queue
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r13)
	movq	32(%r12), %rdi
	movq	%r13, %rsi
	callq	_napi_gro_receive
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFAR_RX_BUFF_ALLOC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_gfar_alloc_rx_buffs
	xorl	%ebx, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r12), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	movq	_RXBD_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BD_LFLAG
	testl	%r14d, %eax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_gfar_get_next_rxbuff
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	xorl	%edi, %edi
	cmpl	4(%r12), %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	movl	%r15d, (%r12)
	movq	_RXBD_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BD_LFLAG
	testl	%r14d, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_RXBD_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BD_LFLAG
	movl	%r14d, %edi
	andl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_count_errors
	movq	%r13, %rdi
	callq	_dev_kfree_skb
	incl	20(%r12)
	jmp	LBB0_13
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_15:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_16:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_17:
	movq	%r13, 24(%r12)
	addl	%ecx, 12(%r12)
	addl	%eax, 16(%r12)
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_gfar_alloc_rx_buffs
LBB0_19:
	movl	(%r14), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_gfar_rxbd_dma_lastfree
	movl	8(%r12), %edi
	movl	%eax, %esi
	callq	_gfar_write
LBB0_21:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFAR_RX_BUFF_ALLOC,4,2         ## @GFAR_RX_BUFF_ALLOC
	.comm	_RXBD_EMPTY,4,2                 ## @RXBD_EMPTY
	.comm	_RXBD_LAST,4,2                  ## @RXBD_LAST
	.comm	_RXBD_ERR,4,2                   ## @RXBD_ERR
	.no_dead_strip	_gfar_clean_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfar_clean_rx_ring
_gfar_clean_rx_ring:                    ; @gfar_clean_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x1
	mov	x19, x0
	ldr	x25, [x0, #56]
	mov	x0, x25
	bl	_netdev_priv
	mov	x21, x0
	ldr	x23, [x19, #24]
	mov	x0, x19
	bl	_gfar_rxbd_unused
	mov	x22, x0
	cbz	w24, LBB0_13
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	w20, #0
	movi.2d	v1, #0000000000000000
	ldr	w27, [x19]
Lloh0:
	adrp	x28, _GFAR_RX_BUFF_ALLOC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFAR_RX_BUFF_ALLOC@GOTPAGEOFF]
Lloh2:
	adrp	x21, _RXBD_EMPTY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RXBD_EMPTY@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	mov	x1, x25
	bl	_count_errors
	mov	x0, x23
	bl	_dev_kfree_skb
	mov	x23, #0
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	add	w20, w20, #1
	cmp	w24, w20
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
	ldr	w8, [x28]
	cmp	w22, w8
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_gfar_alloc_rx_buffs
	mov	w22, #0
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #48]
	ldr	w0, [x8, w27, sxtw #2]
	bl	_be32_to_cpu
	mov	x26, x0
	ldr	w0, [x21]
	bl	_BD_LFLAG
	tst	w0, w26
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_rmb
	mov	x0, x19
	mov	x1, x26
	mov	x2, x23
	bl	_gfar_get_next_rxbuff
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w27, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cmp	x0, #0
	csinc	w27, wzr, w27, ne
	str	w27, [x19]
Lloh4:
	adrp	x8, _RXBD_LAST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RXBD_LAST@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_BD_LFLAG
	tst	w0, w26
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x8, _RXBD_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RXBD_ERR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_BD_LFLAG
	and	w0, w0, w26
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_gfar_process_frame
	add	x8, x23, #8
	movi.2s	v0, #1
	ld1.s	{ v0 }[1], [x8]
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v1, v0
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
	ldr	w1, [x19, #40]
	mov	x0, x23
	bl	_skb_record_rx_queue
	mov	x0, x23
	mov	x1, x25
	bl	_eth_type_trans
	str	w0, [x23]
	ldr	x0, [x19, #32]
	mov	x1, x23
	bl	_napi_gro_receive
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	mov	x23, #0
	b	LBB0_4
LBB0_12:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	b	LBB0_15
LBB0_13:
	mov	w20, #0
	movi.2d	v1, #0000000000000000
	b	LBB0_15
LBB0_14:
	mov	x20, x24
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_15:
	str	x23, [x19, #24]
	ldur	d0, [x19, #12]
	add.2s	v0, v0, v1
	stur	d0, [x19, #12]
	cbz	w22, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x22
	bl	_gfar_alloc_rx_buffs
LBB0_17:
	ldr	w0, [x21]
	bl	_unlikely
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_gfar_rxbd_dma_lastfree
	mov	x1, x0
	ldr	w0, [x19, #8]
	bl	_gfar_write
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFAR_RX_BUFF_ALLOC,4,2         ; @GFAR_RX_BUFF_ALLOC
	.comm	_RXBD_EMPTY,4,2                 ; @RXBD_EMPTY
	.comm	_RXBD_LAST,4,2                  ; @RXBD_LAST
	.comm	_RXBD_ERR,4,2                   ; @RXBD_ERR
	.no_dead_strip	_gfar_clean_rx_ring
.subsections_via_symbols
