	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_poll_rx
_mtk_poll_rx:                           ## @mtk_poll_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_31
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	leaq	20(%rdx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r13), %edi
	callq	_RX_DMA_PLEN0
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movl	%ecx, (%r13)
	incl	%ebx
	cmpl	%ebx, -52(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_28
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_mtk_get_rx_ring
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_29
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	movl	32(%r13), %esi
	callq	_NEXT_DESP_IDX
	movq	8(%r13), %rcx
	movq	24(%r13), %rdx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cltq
	movq	%rax, %r12
	shlq	$4, %r12
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	leaq	(%rdx,%r12), %rsi
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	(%rcx,%rax,8), %r15
	leaq	-88(%rbp), %rdi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	callq	_mtk_rx_get_desc
	movq	_RX_DMA_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -88(%rbp)
	je	LBB0_29
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_MTK_SOC_MT7628@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MTK_HAS_CAPS
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-84(%rbp), %ebx
	movq	_RX_DMA_FPORT_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	movq	_RX_DMA_FPORT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	decl	%ebx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %al
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MTK_MAC_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movl	%ebx, %ecx
	cmpq	$0, (%rax,%rcx,8)
	sete	%al
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_MTK_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %edi
	callq	_napi_alloc_frag
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rcx
	movq	%r14, %rbx
	movl	16(%r14), %edi
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,4), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	4(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	16(%r14), %edi
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	16(%r13), %esi
	movq	%r15, %rdi
	callq	_build_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_free_frag
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_MTK_SOC_MT7628@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MTK_HAS_CAPS
	testq	%rax, %rax
	je	LBB0_2
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_RX_DMA_LSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_reserve
	movq	%r14, %r15
	movl	16(%r14), %edi
	movl	-80(%rbp), %esi
	movl	4(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movl	-88(%rbp), %edi
	callq	_RX_DMA_GET_PLEN0
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_skb_put
	movl	4(%r14), %eax
	testl	%eax, -84(%rbp)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_skb_checksum_none_assert
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-76(%rbp), %edi
	callq	_RX_DMA_VID
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, %r15d
	movl	-76(%rbp), %edi
	callq	_RX_DMA_VID
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	___vlan_hwaccel_put_tag
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_skb_record_rx_queue
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_napi_gro_receive
	movq	8(%r13), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, 8(%rax,%r12)
	jmp	LBB0_18
LBB0_28:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_29:
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.30:
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_mtk_update_rx_cpu_idx
	jmp	LBB0_32
LBB0_31:
	xorl	%ebx, %ebx
LBB0_32:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DMA_DONE,4,2                ## @RX_DMA_DONE
	.comm	_MTK_SOC_MT7628,4,2             ## @MTK_SOC_MT7628
	.comm	_RX_DMA_FPORT_SHIFT,4,2         ## @RX_DMA_FPORT_SHIFT
	.comm	_RX_DMA_FPORT_MASK,4,2          ## @RX_DMA_FPORT_MASK
	.comm	_MTK_MAC_COUNT,4,2              ## @MTK_MAC_COUNT
	.comm	_MTK_RESETTING,4,2              ## @MTK_RESETTING
	.comm	_NET_SKB_PAD,4,2                ## @NET_SKB_PAD
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_RX_DMA_LSO,4,2                 ## @RX_DMA_LSO
	.no_dead_strip	_mtk_poll_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_poll_rx
_mtk_poll_rx:                           ; @mtk_poll_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	cmp	w1, #1
	b.lt	LBB0_29
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	w19, #0
Lloh0:
	adrp	x23, _MTK_SOC_MT7628@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MTK_SOC_MT7628@GOTPAGEOFF]
	add	x8, x2, #20
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24, #4]
	bl	_RX_DMA_PLEN0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x26]
	str	w25, [x24]
	add	w19, w19, #1
	cmp	w21, w19
	b.eq	LBB0_30
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mtk_get_rx_ring
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_31
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	ldr	w1, [x24, #32]
	bl	_NEXT_DESP_IDX
	mov	x25, x0
	ldr	x27, [x24, #24]
	add	x26, x27, w0, sxtw #4
	ldr	x8, [x24, #8]
	ldr	x22, [x8, w0, sxtw #3]
	add	x0, sp, #32
	mov	x1, x26
	bl	_mtk_rx_get_desc
	ldr	w8, [sp, #32]
Lloh2:
	adrp	x9, _RX_DMA_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RX_DMA_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_MTK_HAS_CAPS
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	mov	w0, #1
	tbz	w28, #31, LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #36]
Lloh5:
	adrp	x9, _RX_DMA_FPORT_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RX_DMA_FPORT_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh8:
	adrp	x9, _RX_DMA_FPORT_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RX_DMA_FPORT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w8, w9
	sub	w28, w8, #1
	mov	w0, #1
	tbnz	w28, #31, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _MTK_MAC_COUNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MTK_MAC_COUNT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w28, w8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, w28, uxtw #3]
	cmp	x8, #0
	cset	w0, eq
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	ldr	x28, [x8, w28, sxtw #3]
Lloh14:
	adrp	x8, _MTK_RESETTING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MTK_RESETTING@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_test_bit
	bl	_unlikely
	cbnz	x0, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24, #16]
	bl	_napi_alloc_frag
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
Lloh17:
	adrp	x8, _NET_SKB_PAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NET_SKB_PAD@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x24, #4]
Lloh20:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	bl	_dma_map_single
	mov	x1, x0
	ldr	w0, [x20, #16]
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [sp]                       ; 8-byte Folded Spill
	ldr	w1, [x24, #16]
	mov	x0, x22
	bl	_build_skb
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_skb_free_frag
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28, #4]
	add	w8, w8, #1
	str	w8, [x28, #4]
Lloh23:
	adrp	x23, _MTK_SOC_MT7628@GOTPAGE
Lloh24:
	ldr	x23, [x23, _MTK_SOC_MT7628@GOTPAGEOFF]
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_MTK_HAS_CAPS
	cbz	x0, LBB0_2
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x8, _RX_DMA_LSO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RX_DMA_LSO@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x8, _NET_SKB_PAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NET_SKB_PAD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x0, x22
	bl	_skb_reserve
	ldr	w0, [x20, #16]
	ldr	w1, [sp, #40]
	ldr	w2, [x24, #4]
Lloh34:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	w0, [sp, #32]
	bl	_RX_DMA_GET_PLEN0
	mov	x1, x0
	str	x28, [x22, #8]
	mov	x0, x22
	bl	_skb_put
	ldr	w8, [sp, #36]
	ldr	w9, [x20, #4]
	tst	w9, w8
Lloh37:
	adrp	x23, _MTK_SOC_MT7628@GOTPAGE
Lloh38:
	ldr	x23, [x23, _MTK_SOC_MT7628@GOTPAGEOFF]
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh39:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_skb_checksum_none_assert
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x28
	bl	_eth_type_trans
	str	w0, [x22]
	ldr	w8, [x28]
Lloh42:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh43:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #44]
	bl	_RX_DMA_VID
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh45:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_htons
	mov	x28, x0
	ldr	w0, [sp, #44]
	bl	_RX_DMA_VID
	mov	x2, x0
	mov	x0, x22
	mov	x1, x28
	bl	___vlan_hwaccel_put_tag
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x28, w25
	mov	x0, x22
	mov	w1, #0
	bl	_skb_record_rx_queue
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_napi_gro_receive
	ldr	x8, [x24, #8]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	x9, [x8, x28, lsl #3]
	add	x8, x27, x28, lsl #4
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w9, [x8, #8]
	b	LBB0_20
LBB0_29:
	mov	w19, #0
	b	LBB0_33
LBB0_30:
	mov	x19, x21
LBB0_31:
	cbz	w19, LBB0_33
; %bb.32:
	bl	_wmb
	mov	x0, x20
	bl	_mtk_update_rx_cpu_idx
LBB0_33:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DMA_DONE,4,2                ; @RX_DMA_DONE
	.comm	_MTK_SOC_MT7628,4,2             ; @MTK_SOC_MT7628
	.comm	_RX_DMA_FPORT_SHIFT,4,2         ; @RX_DMA_FPORT_SHIFT
	.comm	_RX_DMA_FPORT_MASK,4,2          ; @RX_DMA_FPORT_MASK
	.comm	_MTK_MAC_COUNT,4,2              ; @MTK_MAC_COUNT
	.comm	_MTK_RESETTING,4,2              ; @MTK_RESETTING
	.comm	_NET_SKB_PAD,4,2                ; @NET_SKB_PAD
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_RX_DMA_LSO,4,2                 ; @RX_DMA_LSO
	.no_dead_strip	_mtk_poll_rx
.subsections_via_symbols
