	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_rx
_gve_rx:                                ## @gve_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	32(%rdi), %r12
	shlq	$2, %r13
	addq	24(%r12), %r13
	movq	16(%r12), %rbx
	movq	_GVE_RXF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rsi), %edi
	callq	_unlikely
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_26
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_be16_to_cpu
	movq	%rax, %rbx
	movq	_GVE_RX_PAD@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(,%rcx,4), %r15
	movq	24(%r14), %r13
	addq	%r15, %r13
	movq	8(%r12), %rdi
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_sync_single_for_cpu
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	$4096, (%rax)                   ## imm = 0x1000
	jne	LBB0_11
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	cmpq	(%r12), %rbx
	jle	LBB0_11
## %bb.3:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_gve_can_recycle_pages
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	jmp	LBB0_12
LBB0_11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_gve_rx_copy
	movq	%rax, %r13
	movl	$1, %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testq	%r13, %r13
	je	LBB0_26
LBB0_14:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r14d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_16
## %bb.17:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	callq	_csum_unfold
	movl	%eax, (%r13)
LBB0_19:
	movq	_NETIF_F_RXHASH@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movl	(%r12), %edi
	callq	_gve_needs_rss
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	4(%r12), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	movl	(%r12), %edi
	callq	_gve_rss_type
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_skb_set_hash
LBB0_22:
	movq	%r13, %rdi
	callq	_skb_is_nonlinear
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_napi_gro_frags
	jmp	LBB0_25
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_napi_gro_receive
LBB0_25:
	movl	$1, %ecx
LBB0_26:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r13), %edi
	callq	_page_count
	cmpl	$1, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_gve_rx_add_frags
	testq	%rax, %rax
	je	LBB0_25
## %bb.7:
	movq	%r13, %r15
	movq	%rax, %r13
	movl	(%r15), %edi
	callq	_get_page
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	addq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_gve_rx_flip_buff
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_14
LBB0_8:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_gve_rx_copy
	movq	%rax, %r13
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	xorl	%ecx, %ecx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_GVE_RXF_ERR,4,2                ## @GVE_RXF_ERR
	.comm	_GVE_RX_PAD,8,3                 ## @GVE_RX_PAD
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pagecount should never be < 1"

	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_CHECKSUM_COMPLETE,4,2          ## @CHECKSUM_COMPLETE
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_NETIF_F_RXHASH,4,2             ## @NETIF_F_RXHASH
	.no_dead_strip	_gve_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gve_rx
_gve_rx:                                ; @gve_rx
	.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	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x27, [x0, #32]
	ldr	x19, [x0]
	ldp	x22, x25, [x27, #16]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _GVE_RXF_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GVE_RXF_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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
	ret
LBB0_3:
	add	x19, x25, x19, lsl #2
	ldr	w0, [x20, #16]
	bl	_be16_to_cpu
Lloh3:
	adrp	x8, _GVE_RX_PAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GVE_RX_PAD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x26, x0, x8
	lsl	x8, x23, #2
	ldp	x10, x9, [x24, #16]
	add	x25, x9, x8
	ldr	x0, [x27, #8]
	ldr	x9, [x10]
	ldr	w1, [x9, x8]
Lloh6:
	adrp	x28, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh8:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_dma_sync_single_for_cpu
	ldr	w8, [x28]
	cmp	w8, #1, lsl #12                 ; =4096
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x27]
	cmp	x26, x8
	b.le	LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_gve_can_recycle_pages
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
LBB0_6:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x25
	mov	x3, x26
	bl	_gve_rx_copy
	mov	x22, x0
	cbz	x0, LBB0_1
LBB0_7:
Lloh11:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_likely
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x20, #8]
Lloh14:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh16:
	adrp	x9, _CHECKSUM_COMPLETE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CHECKSUM_COMPLETE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x22, #4]
	bl	_csum_unfold
	str	w0, [x22]
LBB0_9:
Lloh18:
	adrp	x8, _NETIF_F_RXHASH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETIF_F_RXHASH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_likely
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x20]
	bl	_gve_needs_rss
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x20]
	bl	_gve_rss_type
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_skb_set_hash
LBB0_12:
	mov	x0, x22
	bl	_skb_is_nonlinear
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_napi_gro_frags
	b	LBB0_1
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	bl	_napi_gro_receive
	b	LBB0_1
LBB0_15:
	ldr	w0, [x25]
	bl	_page_count
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x25
	mov	x3, x26
	bl	_gve_rx_add_frags
	cbz	x0, LBB0_1
; %bb.17:
	mov	x22, x0
	ldr	w0, [x25]
	bl	_get_page
	ldr	x8, [x24, #8]
	add	x1, x8, x23, lsl #2
	mov	x0, x25
	bl	_gve_rx_flip_buff
	b	LBB0_7
LBB0_18:
	cmp	w0, #2
	b.ge	LBB0_6
; %bb.19:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GVE_RXF_ERR,4,2                ; @GVE_RXF_ERR
	.comm	_GVE_RX_PAD,8,3                 ; @GVE_RX_PAD
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pagecount should never be < 1"

	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_CHECKSUM_COMPLETE,4,2          ; @CHECKSUM_COMPLETE
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_NETIF_F_RXHASH,4,2             ; @NETIF_F_RXHASH
	.no_dead_strip	_gve_rx
.subsections_via_symbols
