	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hisi_femac_rx
_hisi_femac_rx:                         ## @hisi_femac_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
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movq	24(%rax), %r13
	cmpl	$2, %r14d
	movl	$1, %eax
	cmovael	%r14d, %eax
	cltq
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_GLB_IRQ_RAW@GOTPCREL(%rip), %r14
	movq	_IRQ_INT_RX_RDY@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IRQ_INT_RX_RDY@GOTPCREL(%rip), %rbx
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_IQFRM_DES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r15), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	%r14, %rax
	movq	_RX_FRAME_LEN_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	movq	48(%r15), %rax
	movq	(%rax,%r13,8), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r12d, %rax
	andq	%rax, %r14
	subq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	48(%r15), %rax
	movq	$0, (%rax,%r13,8)
	movq	40(%r15), %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r13,4), %esi
	movl	4(%r15), %edi
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skb_put
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	incl	12(%r14)
	incl	8(%r14)
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_napi_gro_receive
	incl	4(%r14)
	movl	(%rbx), %eax
	addl	%eax, (%r14)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	32(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	_GLB_IRQ_RAW@GOTPCREL(%rip), %r14
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r13d
	jmp	LBB0_10
LBB0_11:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_netdev_err
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incq	%r12
LBB0_12:
	movq	%r13, 24(%r15)
	movq	%r15, %rdi
	callq	_hisi_femac_rx_refill
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLB_IRQ_RAW,8,3                ## @GLB_IRQ_RAW
	.comm	_IRQ_INT_RX_RDY,4,2             ## @IRQ_INT_RX_RDY
	.comm	_IQFRM_DES,8,3                  ## @IQFRM_DES
	.comm	_RX_FRAME_LEN_MASK,8,3          ## @RX_FRAME_LEN_MASK
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx skb NULL. pos=%d\n"

	.comm	_MAX_FRAME_SIZE,8,3             ## @MAX_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"rcv len err, len = %d\n"

	.no_dead_strip	_hisi_femac_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hisi_femac_rx
_hisi_femac_rx:                         ; @hisi_femac_rx
	.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	x23, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x19, #0
	ldr	x21, [x0, #24]
	cmp	w23, #1
	csinc	w8, w23, wzr, hi
Lloh0:
	adrp	x24, _GLB_IRQ_RAW@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GLB_IRQ_RAW@GOTPAGEOFF]
Lloh2:
	adrp	x28, _IRQ_INT_RX_RDY@GOTPAGE
Lloh3:
	ldr	x28, [x28, _IRQ_INT_RX_RDY@GOTPAGEOFF]
	sxtw	x8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_eth_type_trans
	str	w0, [x24, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_napi_gro_receive
	ldr	d0, [x22]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x24]
	add.2s	v0, v0, v1
	str	d0, [x22]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x21, #1
	ldr	x9, [x20, #32]
	udiv	x10, x8, x9
	msub	x21, x10, x9, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x8, x19
	mov	x24, x28
	mov	x28, x27
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
Lloh4:
	adrp	x9, _IQFRM_DES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IQFRM_DES@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x25, x0
Lloh7:
	adrp	x8, _RX_FRAME_LEN_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RX_FRAME_LEN_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x26, [x8]
Lloh10:
	adrp	x8, _ETH_FCS_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh12:
	ldr	x23, [x8]
	mov	x27, x28
	ldr	w0, [x28]
	ldr	x8, [x20, #8]
	mov	x28, x24
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	add	x19, x19, #1
	ldr	x8, [x20, #48]
	ldr	x24, [x8, x21, lsl #3]
	cmp	x24, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x8, w25
	and	x8, x26, x8
	sub	x25, x8, x23
	ldr	x8, [x20, #48]
	str	xzr, [x8, x21, lsl #3]
	ldr	x8, [x20, #40]
	ldr	w1, [x8, x21, lsl #2]
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x23, _MAX_FRAME_SIZE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MAX_FRAME_SIZE@GOTPAGEOFF]
	ldr	x2, [x23]
Lloh15:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	mov	x0, x24
	mov	x1, x25
	bl	_skb_put
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x24]
	mov	x0, x22
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	ldr	d0, [x22, #8]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x22, #8]
	mov	x0, x24
	bl	_dev_kfree_skb_any
	b	LBB0_2
LBB0_7:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_netdev_err
LBB0_9:
	str	x21, [x20, #24]
	mov	x0, x20
	bl	_hisi_femac_rx_refill
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GLB_IRQ_RAW,8,3                ; @GLB_IRQ_RAW
	.comm	_IRQ_INT_RX_RDY,4,2             ; @IRQ_INT_RX_RDY
	.comm	_IQFRM_DES,8,3                  ; @IQFRM_DES
	.comm	_RX_FRAME_LEN_MASK,8,3          ; @RX_FRAME_LEN_MASK
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx skb NULL. pos=%d\n"

	.comm	_MAX_FRAME_SIZE,8,3             ; @MAX_FRAME_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"rcv len err, len = %d\n"

	.no_dead_strip	_hisi_femac_rx
.subsections_via_symbols
