	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_rx
_mvpp2_rx:                              ## @mvpp2_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	callq	_mvpp2_rxq_received
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mvpp2_rxq_next_desc_get
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_mvpp2_rxdesc_status_get
	movl	%eax, %r12d
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mvpp2_rxdesc_size_get
	movq	%r13, %rbx
	movl	%eax, %r13d
	movq	_MVPP2_MH_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mvpp2_rxdesc_dma_addr_get
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mvpp2_rxdesc_cookie_get
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_phys_to_virt
	movl	%r12d, %ebx
	movq	_MVPP2_RXD_BM_POOL_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	andl	%ebx, %r12d
	movq	_MVPP2_RXD_BM_POOL_ID_OFFS@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %r12d
	movq	_MVPP2_RXD_ERR_SUMMARY@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mvpp2_rx_error
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_mvpp2_bm_pool_put
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	jne	LBB0_3
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movslq	%r12d, %rdx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rdx,8), %rcx
	movq	%rcx, %r13
	movl	(%rcx), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	movl	$0, %ecx
	cmoval	%ecx, %esi
	movq	%rax, %rdi
	callq	_build_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_mvpp2_rx_refill
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rax,%rcx,8), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_single
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	addl	%r13d, -44(%rbp)                ## 4-byte Folded Spill
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_MVPP2_MH_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_skb_reserve
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_mvpp2_rx_csum
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_napi_gro_receive
	movq	%rbx, %r13
	jmp	LBB0_10
LBB0_11:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r14d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	(%r13), %edi
	movl	%eax, %r15d
	callq	_this_cpu_ptr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_u64_stats_update_begin
	addl	%r15d, 8(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_1:
	xorl	%r14d, %r14d
LBB0_13:
	xorl	%eax, %eax
	callq	_wmb
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	callq	_mvpp2_rxq_status_update
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_MH_SIZE,8,3              ## @MVPP2_MH_SIZE
	.comm	_MVPP2_RXD_BM_POOL_ID_MASK,4,2  ## @MVPP2_RXD_BM_POOL_ID_MASK
	.comm	_MVPP2_RXD_BM_POOL_ID_OFFS,4,2  ## @MVPP2_RXD_BM_POOL_ID_OFFS
	.comm	_MVPP2_RXD_ERR_SUMMARY,4,2      ## @MVPP2_RXD_ERR_SUMMARY
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb build failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to refill BM pools\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_NET_SKB_PAD,8,3                ## @NET_SKB_PAD
	.no_dead_strip	_mvpp2_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_rx
_mvpp2_rx:                              ; @mvpp2_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	x8, [x0, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	str	x3, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w1, [x3]
	bl	_mvpp2_rxq_received
	cmp	w0, w19
	csel	w23, w0, w19, lt
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.1:
	movi.2d	v0, #0000000000000000
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	bl	_mvpp2_rxq_next_desc_get
	mov	x27, x0
	mov	x0, x20
	mov	x1, x27
	bl	_mvpp2_rxdesc_status_get
	mov	x26, x0
	mov	x0, x20
	mov	x1, x27
	bl	_mvpp2_rxdesc_size_get
	mov	x21, x0
Lloh0:
	adrp	x8, _MVPP2_MH_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP2_MH_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x27
	bl	_mvpp2_rxdesc_dma_addr_get
	mov	x28, x0
	mov	x0, x20
	mov	x1, x27
	bl	_mvpp2_rxdesc_cookie_get
	mov	x24, x0
	bl	_phys_to_virt
Lloh3:
	adrp	x8, _MVPP2_RXD_BM_POOL_ID_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MVPP2_RXD_BM_POOL_ID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh6:
	adrp	x9, _MVPP2_RXD_BM_POOL_ID_OFFS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MVPP2_RXD_BM_POOL_ID_OFFS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x25, w8
Lloh9:
	adrp	x9, _MVPP2_RXD_ERR_SUMMARY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MVPP2_RXD_ERR_SUMMARY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w26
	b.eq	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x27
	bl	_mvpp2_rx_error
	mov	x0, x20
	mov	x1, x25
	mov	x2, x28
	mov	x3, x24
	bl	_mvpp2_bm_pool_put
	subs	w23, w23, #1
	b.ne	LBB0_2
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	stp	w22, w21, [sp, #48]             ; 8-byte Folded Spill
	ldr	x9, [x20, #16]
	ldr	x22, [x9]
	add	x19, x22, w8, sxtw #3
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w1, wzr, w8, hi
	bl	_build_skb
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_mvpp2_rx_refill
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, #8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20, #8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w8, [sp, #48]               ; 8-byte Folded Reload
	sub	w19, w8, w9
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w0, [x24]
	add	x8, x22, x25, lsl #3
	ldr	w2, [x8, #4]
Lloh19:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x1, x28
	bl	_dma_unmap_single
	movi.2s	v0, #1
	mov.s	v0[0], w19
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v1, v0, v1
	str	q1, [sp, #16]                   ; 16-byte Folded Spill
Lloh22:
	adrp	x22, _MVPP2_MH_SIZE@GOTPAGE
Lloh23:
	ldr	x22, [x22, _MVPP2_MH_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x22]
Lloh25:
	adrp	x9, _NET_SKB_PAD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NET_SKB_PAD@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_skb_reserve
	mov	x0, x21
	mov	x1, x19
	mov	x19, x24
	bl	_skb_put
	mov	x0, x21
	mov	x1, x24
	bl	_eth_type_trans
	str	w0, [x21]
	mov	x0, x20
	mov	x1, x26
	mov	x2, x21
	bl	_mvpp2_rx_csum
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x21
	bl	_napi_gro_receive
	subs	w23, w23, #1
	b.ne	LBB0_2
LBB0_9:
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	mov.s	w8, v0[1]
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
	mov	x19, x23
	cbz	w8, LBB0_12
; %bb.10:
	ldr	w0, [x20]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
	bl	_this_cpu_ptr
	mov	x19, x0
	bl	_u64_stats_update_begin
	ldur	d0, [x19, #4]
	ldr	q1, [sp, #16]                   ; 16-byte Folded Reload
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	mov	x0, x19
	bl	_u64_stats_update_end
	mov	x19, x23
	b	LBB0_12
LBB0_11:
	mov	w19, #0
LBB0_12:
	bl	_wmb
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x19
	bl	_mvpp2_rxq_status_update
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_MH_SIZE,8,3              ; @MVPP2_MH_SIZE
	.comm	_MVPP2_RXD_BM_POOL_ID_MASK,4,2  ; @MVPP2_RXD_BM_POOL_ID_MASK
	.comm	_MVPP2_RXD_BM_POOL_ID_OFFS,4,2  ; @MVPP2_RXD_BM_POOL_ID_OFFS
	.comm	_MVPP2_RXD_ERR_SUMMARY,4,2      ; @MVPP2_RXD_ERR_SUMMARY
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb build failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to refill BM pools\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_NET_SKB_PAD,8,3                ; @NET_SKB_PAD
	.no_dead_strip	_mvpp2_rx
.subsections_via_symbols
